1 2005-01-13 Michael Snyder <msnyder@redhat.com>
3 * gdbcmd.h: Whitespace tweaks.
4 * gdb-events[.c, .h, .sh]: Whitespace tweaks.
5 * corefile.c: Whitespace tweaks.
6 * completer.c: Whitespace tweaks.
7 * coff-solib.c: Whitespace tweaks.
8 * coff-solib.h: Whitespace tweaks.
9 * cli-out.c: Whitespace tweaks.
10 * breakpoint.c: Whitespace tweaks.
11 * cli/cli-interp.c: Tweak comments, per coding standard.
13 2005-01-13 Andrew Cagney <cagney@gnu.org>
15 * breakpoint.c (gdb_breakpoint_query): Update, use
16 catch_exceptions_with_msg.
17 (do_captured_breakpoint): Add uiout parameter.
18 (gdb_breakpoint): Update, use catch_exceptions_with_msg.
19 * mi/mi-main.c (mi_cmd_thread_select): Pass mi_error_message to
20 gdb_thread_select. Return MI_CMD_ERROR instead of
22 (mi_cmd_thread_list_ids): Ditto for gdb_list_thread_ids.
23 (enum captured_mi_execute_command_actions): Delete
24 EXECUTE_COMMAND_DISPLAY_ERROR.
25 (captured_mi_execute_command): Delete code handling
27 (mi_execute_command): Don't check for
28 EXECUTE_COMMAND_DISPLAY_ERROR.
29 * mi/mi-cmd-break.c (breakpoint_notify): Update call to
31 (mi_cmd_break_insert): Pass mi_error_message to gdb_breakpoint.
32 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_CAUGHT_ERROR.
33 * gdb.h (gdb_thread_select, gdb_list_thread_ids)
34 (gdb_breakpoint, gdb_breakpoint_query): Add error_message
36 * thread.c (thread_command): Update call.
37 (gdb_thread_select, gdb_list_thread_ids): Update, call
38 catch_exceptions_with_msg.
40 * mi/mi-main.c (mi_execute_command): Use catch_exception,
41 eliminate call to error_last_message.
42 (captured_mi_execute_command): Change return type to void.
44 2005-01-12 Andrew Cagney <cagney@gnu.org>
46 * exceptions.c (exception_none): New variable.
47 * Makefile.in: Update dependencies.
48 * interps.c: Include "exceptions.h".
49 (interpreter_exec_cmd, interp_exec): Update to return "struct
51 * exceptions.h (no_exception): Declare.
52 * tui/tui-interp.c (tui_exec): Update to return "struct exception"
53 * mi/mi-interp.c: Include "exceptions.h".
54 (mi_cmd_interpreter_exec, mi_interpreter_exec): Update to return
56 * cli/cli-interp.c (cli_interpreter_exec, safe_execute_command)
57 (do_captured_execute_command): Update to use catch_exception.
58 * interps.h: Include "exceptions.h".
59 (interp_exec_ftype, interp_exec): Return "struct exception".
61 * exceptions.h (throw_reason): Rename throw_exception.
62 (enum errors, struct exception): Define.
63 (catch_exception_ftype): Define.
64 (catch_exception, throw_exception): Declare.
65 * exceptions.c (throw_exception): Rewrite.
66 (throw_reason): New function.
67 (struct catcher, catcher_state_machine): Replace "reason" with
68 "exception", delete "gdberrmsg".
69 (catch_exception): New function.
70 (catcher_init): Replace "gdberrmsg" parameter with "exception".
71 (catch_errors, catch_exceptions_with_msg): Re-implement passing
72 exception to catcher_init.
73 * utils.c (error_silent, error_stream_1): Use throw_reason.
74 (internal_verror, quit): Ditto.
75 * breakpoint.c (insert_catchpoint, break_command_1): Ditto.
76 * remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Ditto.
77 * remote.c (remote_open_1, interrupt_query): Ditto.
79 2005-01-12 Mark Kettenis <kettenis@gnu.org>
81 * i386fbsd-tdep.c: Update copyright year. Include "gdbcore.h",
82 "regcache.h", "gdb_assert.h" and "bsd-uthread.h".
83 (i386fbsd_jmp_buf_reg_offset): New variable.
84 (i386fbsd_supply_uthread, i386fbsd_collect_uthread): New
86 (i386fbsdaout_init_abi): Set supply_uthread and collect_uthread.
87 * Makefile.in (i386fbsd-tdep.o): Update dependency.
88 * config/i386/fbsd.mt (TDEPFILES): Add bsd-uthread.o.
90 * bsd-uthread.h: New file.
91 * bsd-uthread.c: New file.
92 * Makefile.in (bsd_uthread_h): New variable.
93 (ALLDEPFILES): Add bsd-uthread.c.
94 (bsd-uthread.o): New dependency.
96 * solib.h Update copyright year.
97 (struct so_list): Forward declaration.
98 (solib_read_symbols): New prototype.
99 * solib.c (solib_read_symbols): New function.
100 (solib_add): Call solib_read_symbols to read in symbols.
101 (update_solib_list): Call observer_notify_solib_loaded.
103 * i386bsd-nat.c: Update copyright year. Don't include
104 <sys/param.h> and <sys/user.h>.
105 (register_u_addr, kernel_u_size): Remove functions.
106 * config/i386/obsd.mh (NAT_FILE): Remove.
107 * config/i386/obsdaout.mh (NAT_FILE): Set to solib.h.
108 * config/i386/nm-obsd.h: Remove file.
110 2005-01-12 Andrew Cagney <cagney@gnu.org>
112 * exceptions.c: Include "gdb_string.h".
113 (enum catcher_state, struct catcher): Define.
114 (current_catcher): New global, replaces catch_return;
115 (catch_return): Delete.
116 (throw_exception): Use current_catcher->buf;
117 (catcher_init, catcher_pop, catcher_state_machine): New functions.
119 (struct catch_errors_args): Delete.
120 (do_catch_errors): Delete.
121 (catch_exceptions): Replace body with call to
122 catch_exceptions_with_msg.
124 (catch_exceptions_with_msg, catch_errors): Re-implement using
125 catcher_state_machine.
127 * exceptions.h (enum return_reason, RETURN_MASK)
128 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL)
129 (return_mask, throw_exception, catch_exceptions_ftype)
130 (catch_exceptions_with_msg, catch_errors_ftype, catch_errors)
131 (catch_command_errors_ftype, catch_command_errors): Move to
133 * exceptions.c, exceptions.h: New files.
134 * top.c: Do not include <setjmp.h>.
135 (SIGJMP_BUF, SIGSETJMP, SIGLONGJMP, catch_return)
136 (throw_exception, catcher, catch_exceptions)
137 (catch_exceptions_with_msg, struct catch_errors_args)
138 (do_catch_errors, catch_errors, struct captured_command_args)
139 (do_captured_command, catch_command_errors): Move to exceptions.c.
140 * wrapper.c, wince.c, win32-nat.c, utils.c: Include "exceptions.h".
141 * tui/tui-interp.c, top.c, thread.c, symmisc.c: Ditto.
142 * symfile-mem.c, stack.c, solib.c, rs6000-nat.c: Ditto.
143 * remote-sds.c, remote-mips.c, remote-fileio.c: Ditto.
144 * remote-e7000.c, objc-lang.c, ocd.c: Ditto.
145 * remote.c, nto-procfs.c, monitor.c, mi/mi-main.c: Ditto.
146 * main.c, m32r-rom.c, infrun.c, inf-loop.c: Ditto.
147 * hppa-hpux-tdep.c, frame.c, event-top.c, event-loop.c: Ditto.
148 * corelow.c, corefile.c, cli/cli-interp.c, breakpoint.c: Ditto.
149 * ada-valprint.c, ada-lang.c: Ditto.
150 * Makefile.in (HFILES_NO_SRCDIR, COMMON_OBS): Add exceptions.h and
151 exceptions.o. Update all dependencies.
153 2005-01-11 Mark Kettenis <kettenis@gnu.org>
155 * config/i386/nm-fbsd.h: Update copyright year.
156 Don't include "config/nm-bsd.h".
157 (KERNEL_U_SIZE): Remove macro.
158 (kernel_u_size): Remove prototype.
160 * config/vax/nbsdaout.mh (NAT_FILE): Remove.
161 * config/vax/nm-nbsdaout.h: Remove file.
163 2005-01-10 Elena Zannoni <ezannoni@redhat.com>
165 * MAINTAINERS: Remove self from sh/sh64 maintainership.
167 2005-01-10 Andrew Cagney <cagney@gnu.org>
169 * MAINTAINERS: List Andrew Cagney and Kevin Buettner as can commit
170 changes to PowerPC, and Andrew Cagney as lead PowerPC GNU/Linux
173 * MAINTAINERS: Hans-Peter Nilsson and Orjan Friberg can commit
176 * MAINTAINERS: Remove "Maintenance Only". Spell out that CAN
177 COMMIT means can approve).
179 2005-01-10 Mark Kettenis <kettenis@gnu.org>
181 * vax-nat.c: Update copyright year. Include "inf-ptrace.h".
182 (vax_register_u_offset): Make statuc.
183 (_initialize_vax_nat): Construct and add target vector.
184 * config/vax/vax.mh (NATDEPFILES): Remove infptrace.o and
185 inftarg.o. Add inf-ptrace.o.
186 * Makefile.in (vax-nat.o): Update dependencies.
188 * inf-ptrace.h: Update copyright year. Sync comment with
190 (inf_ptrace_trad_target): New prototype.
191 * inf-ptrace.c: Update copyright year. Include "regcache.h" and
193 (inf_ptrace_target): Add comment.
194 (inf_ptrace+register_u_offset): New variable.
195 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
196 (inf_ptrace_store_register, inf_ptrace_store_registers)
197 (inf_ptrace_trad_target): New functions.
198 * Makefile.in (inf-ptrace.o): Update dependencies.
200 2005-01-09 Mark Kettenis <kettenis@gnu.org>
202 * configure.ac: Provide prerequisite headers when checking
203 <link.h>, <sys/proc.h> and <sys/user.h>.
204 * configure: Regenerate.
206 2005-01-08 Mark Kettenis <kettenis@gnu.org>
208 * config/powerpc/obsd.mt (DEPRECATED_TM_FILE): Set to
209 tm-ppc-eabi.h instead of the removed tm-nbsd.h.
211 2005-01-07 Mark Kettenis <kettenis@gnu.org>
213 * config/ia64/tm-linux.h: Tweak comment. Update copyright year.
214 Don't include "tm-ia64.h".
215 * config/ia64/ia64.mt (DEPRECATED_TM_FILE): Remove.
216 * config/ia64/tm-ia64.h: Remove. Move contents ...
217 * ia64-tdep.h: ... here. Update copyright year.
219 2005-01-07 Andrew Cagney <cagney@gnu.org>
221 * configure.ac: Rename configure.in, require autoconf 2.59.
222 * configure: Re-generate.
224 * configure.tgt: Disable arm*-*-*, thumb*-*-*, strongarm*-*-*,
225 xscale-*-* and i[34567]86-*-netware* code adding rdi-share or nlm
228 * configure.in: Replace configdirs with multiple references to
230 * configure: Re-generate.
232 2005-01-05 Andreas Schwab <schwab@suse.de>
234 * ia64-tdep.c: Include "osabi.h".
235 (native_find_global_pointer): Delete.
236 (ia64_find_global_pointer): Renamed from
237 generic_elf_find_global_pointer.
238 (FIND_GLOBAL_POINTER): Delete. Change all users to call
239 ia64_find_global_pointer instead.
240 (ia64_gdbarch_init): Call gdbarch_init_osabi. Remove references
241 to ia64_linux_sigcontext_register_address and
242 ia64_linux_write_pc. Don't set tdep->find_global_pointer.
243 (_initialize_ia64_tdep): Call gdbarch_register instead of
244 deprecated register_gdbarch_init.
245 (struct gdbarch_tdep): Remove find_global_pointer field and move
247 * ia64-tdep.h (struct gdbarch_tdep): ... here.
248 (ia64_linux_sigcontext_register_address): Remove declaration.
249 (ia64_linux_getunwind_table): Likewise.
250 (ia64_linux_write_pc): Likewise.
251 * ia64-linux-tdep.c: Include "osabi.h".
252 (ia64_linux_sigcontext_register_address): Make static.
253 (ia64_linux_write_pc): Likewise.
254 (ia64_linux_init_abi): New.
255 (_initialize_ia64_linux_tdep): New.
256 * Makefile.in (ia64-tdep.o, ia64-linux-tdep.o): Depend on
259 2005-01-05 Kevin Buettner <kevinb@redhat.com>
261 * ia64-tdep.c (ia64_gdbarch_init): Eliminate dependency on
262 functions in ia64-aix-tdep.c.
263 * ia64-tdep.h (ia64_aix_sigcontext_register_address): Remove
264 function defined in ia64-aix-tdep.c.
265 * ia64-aix-tdep.c: Remove file.
266 * config/ia64/linux.mt (TDEPFILES): Remove ia64-aix-tdep.o from
268 * Makefile.in (ia64-aix-tdep.o): Delete.
270 2005-01-05 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
272 Committed by Andrew Cagney.
273 * ada-valprint.c, aix-thread.c, alpha-nat.c: I18n markup.
274 * alphabsd-nat.c, alphanbsd-tdep.c, amd64-linux-nat.c: I18n markup.
275 * amd64-tdep.c, amd64bsd-nat.c, amd64fbsd-nat.c: I18n markup.
276 * arch-utils.c, arm-linux-nat.c, arm-tdep.c: I18n markup.
277 * armnbsd-nat.c, armnbsd-tdep.c, auxv.c, avr-tdep.c: I18n markup.
278 * aix-thread.c (_initialize_aix_thread): Get rid of the
279 deprecated_add_show_from_set call.
280 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
281 * arm-tdep.c (_initialize_arm_tdep): Ditto.
282 * command.h (add_setshow_enum_cmd): Add arguments for returning
284 * cli/cli-decode.c (add_setshow_enum_cmd): Ditto.
285 * mips-tdep.c (_initialize_mips_tdep): Modify calls to
286 add_setshow_enum_cmd.
288 2005-01-04 Mark Kettenis <kettenis@gnu.org>
290 * configure.host (ia64-*-aix*): Remove.
291 * configure.tgt (ia64-*-aix*): Remove.
292 * config/ia64/aix.mh: Remove file.
293 * config/ia64/aix.mt: Remove file.
294 * config/ia64/tm-aix.h: Remove file.
295 * ia64-aix-nat.c: Remove file.
296 * Makefile.in (ia64-aix-nat.o): Remove dependency.
298 * config/m88k/obsd.mh (NATDEPFILES): Really remove inf-child.o.
299 Add back inf-ptrace.o.
301 2005-01-04 Andrew Cagney <cagney@gnu.org>
303 * version.in: Change format from 6.3.50_2005-01-04-cvs to
306 2005-01-04 Andreas Schwab <schwab@suse.de>
308 * breakpoint.c (break_command_1): Always free err_msg before
309 returning when an exception was caught.
311 2005-01-01 Joel Brobecker <brobecker@gnat.com>
313 * hppa-tdep.c (prologue_inst_adjust_sp): Fix small confusion
314 in register number for addil instruction.
316 For older changes see ChangeLog-2004.
322 version-control: never