1 2005-01-13 Michael Snyder <msnyder@redhat.com>
3 * tracepoint.[ch]: Whitespace tweaks.
4 * solist.h: Whitespace tweaks.
6 2005-01-13 Andrew Cagney <cagney@gnu.org>
8 * exceptions.h (struct exception): Make message const.
9 * mi/mi-main.c (mi_execute_command): Pass result.message directly
10 to fputstr_unfiltered.
12 2005-01-13 Michael Snyder <msnyder@redhat.com>
14 * stack.c: Whitespace tweaks.
15 * somsolib.[ch]: Whitespace tweaks.
16 * solib-aix.c: Whitespace tweaks.
17 * solib.c: Whitespace tweaks.
18 * solib-frv.c: Whitespace tweaks.
19 * solib.h: Whitespace tweaks.
20 * solib-irix.c: Whitespace tweaks.
21 * solib-som.c: Whitespace tweaks.
22 * solib-sunos.c: Whitespace tweaks.
23 * solib-svr4.[ch]: Whitespace tweaks.
24 * ser-tcp.c: Whitespace tweaks.
25 * ser-unix.c: Whitespace tweaks.
26 * serial.h: Whitespace tweaks.
27 * scm-valprint.c: Whitespace tweaks.
28 * rs6000-tdep.c: Whitespace tweaks.
29 * rs6000-nat.c: Whitespace tweaks.
30 * remote.c: Whitespace tweaks.
32 2005-01-13 Andrew Cagney <cagney@gnu.org>
34 * defs.h (error_last_message, error_init): Delete declaration.
35 * utils.c (fatal, vfatal): Call throw_vfatal.
36 (error, verror): Call throw_verror;
37 (do_write, error_stream_1): Delete function.
38 (error_stream): Simplify, call error.
39 (error_last_message, error_init, gdb_lasterr): Delete.
40 (error_silent): Simplify, call throw_vsilent.
41 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dup the message.
42 * main.c (captured_main): Delete call to error_init.
43 * exceptions.c (throw_verror, throw_verror)
44 (throw_vsilent): New functions.
45 (do_write, print_and_throw): New functions.
46 (last_message): New global.
47 (throw_reason): Replace error_last_message with last_message.
48 (catch_exceptions_with_msg): Dup the message.
49 * exceptions.h (throw_verror, throw_vfatal, throw_vsilent):
52 2005-01-13 Michael Snyder <msnyder@redhat.com>
54 * remote-st.c: Whitespace tweaks.
55 * remote-sim.c: Whitespace tweaks.
56 * remote-mips.c: Whitespace tweaks.
57 * pa64solib.[ch]: Whitespace tweaks.
58 * mdebugread.c: Whitespace tweaks.
59 * main.c: Whitespace tweaks.
60 * interps.c: Whitespace tweaks.
61 * infrun.c: Whitespace tweaks.
62 * infcmd.c: Whitespace tweaks.
63 * hpux-thread.c: Whitespace tweaks.
64 * hppa-hpux-tdep.c: Whitespace tweaks.
65 * gdbcore.h: Whitespace tweaks.
66 * gdbcmd.h: Whitespace tweaks.
67 * gdb-events[.c, .h, .sh]: Whitespace tweaks.
68 * corefile.c: Whitespace tweaks.
69 * completer.c: Whitespace tweaks.
70 * coff-solib.c: Whitespace tweaks.
71 * coff-solib.h: Whitespace tweaks.
72 * cli-out.c: Whitespace tweaks.
73 * breakpoint.c: Whitespace tweaks.
74 * cli/cli-interp.c: Tweak comments, per coding standard.
76 2005-01-13 Andrew Cagney <cagney@gnu.org>
78 * breakpoint.c (gdb_breakpoint_query): Update, use
79 catch_exceptions_with_msg.
80 (do_captured_breakpoint): Add uiout parameter.
81 (gdb_breakpoint): Update, use catch_exceptions_with_msg.
82 * mi/mi-main.c (mi_cmd_thread_select): Pass mi_error_message to
83 gdb_thread_select. Return MI_CMD_ERROR instead of
85 (mi_cmd_thread_list_ids): Ditto for gdb_list_thread_ids.
86 (enum captured_mi_execute_command_actions): Delete
87 EXECUTE_COMMAND_DISPLAY_ERROR.
88 (captured_mi_execute_command): Delete code handling
90 (mi_execute_command): Don't check for
91 EXECUTE_COMMAND_DISPLAY_ERROR.
92 * mi/mi-cmd-break.c (breakpoint_notify): Update call to
94 (mi_cmd_break_insert): Pass mi_error_message to gdb_breakpoint.
95 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_CAUGHT_ERROR.
96 * gdb.h (gdb_thread_select, gdb_list_thread_ids)
97 (gdb_breakpoint, gdb_breakpoint_query): Add error_message
99 * thread.c (thread_command): Update call.
100 (gdb_thread_select, gdb_list_thread_ids): Update, call
101 catch_exceptions_with_msg.
103 * mi/mi-main.c (mi_execute_command): Use catch_exception,
104 eliminate call to error_last_message.
105 (captured_mi_execute_command): Change return type to void.
107 2005-01-12 Andrew Cagney <cagney@gnu.org>
109 * exceptions.c (exception_none): New variable.
110 * Makefile.in: Update dependencies.
111 * interps.c: Include "exceptions.h".
112 (interpreter_exec_cmd, interp_exec): Update to return "struct
114 * exceptions.h (no_exception): Declare.
115 * tui/tui-interp.c (tui_exec): Update to return "struct exception"
116 * mi/mi-interp.c: Include "exceptions.h".
117 (mi_cmd_interpreter_exec, mi_interpreter_exec): Update to return
119 * cli/cli-interp.c (cli_interpreter_exec, safe_execute_command)
120 (do_captured_execute_command): Update to use catch_exception.
121 * interps.h: Include "exceptions.h".
122 (interp_exec_ftype, interp_exec): Return "struct exception".
124 * exceptions.h (throw_reason): Rename throw_exception.
125 (enum errors, struct exception): Define.
126 (catch_exception_ftype): Define.
127 (catch_exception, throw_exception): Declare.
128 * exceptions.c (throw_exception): Rewrite.
129 (throw_reason): New function.
130 (struct catcher, catcher_state_machine): Replace "reason" with
131 "exception", delete "gdberrmsg".
132 (catch_exception): New function.
133 (catcher_init): Replace "gdberrmsg" parameter with "exception".
134 (catch_errors, catch_exceptions_with_msg): Re-implement passing
135 exception to catcher_init.
136 * utils.c (error_silent, error_stream_1): Use throw_reason.
137 (internal_verror, quit): Ditto.
138 * breakpoint.c (insert_catchpoint, break_command_1): Ditto.
139 * remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Ditto.
140 * remote.c (remote_open_1, interrupt_query): Ditto.
142 2005-01-12 Mark Kettenis <kettenis@gnu.org>
144 * i386fbsd-tdep.c: Update copyright year. Include "gdbcore.h",
145 "regcache.h", "gdb_assert.h" and "bsd-uthread.h".
146 (i386fbsd_jmp_buf_reg_offset): New variable.
147 (i386fbsd_supply_uthread, i386fbsd_collect_uthread): New
149 (i386fbsdaout_init_abi): Set supply_uthread and collect_uthread.
150 * Makefile.in (i386fbsd-tdep.o): Update dependency.
151 * config/i386/fbsd.mt (TDEPFILES): Add bsd-uthread.o.
153 * bsd-uthread.h: New file.
154 * bsd-uthread.c: New file.
155 * Makefile.in (bsd_uthread_h): New variable.
156 (ALLDEPFILES): Add bsd-uthread.c.
157 (bsd-uthread.o): New dependency.
159 * solib.h Update copyright year.
160 (struct so_list): Forward declaration.
161 (solib_read_symbols): New prototype.
162 * solib.c (solib_read_symbols): New function.
163 (solib_add): Call solib_read_symbols to read in symbols.
164 (update_solib_list): Call observer_notify_solib_loaded.
166 * i386bsd-nat.c: Update copyright year. Don't include
167 <sys/param.h> and <sys/user.h>.
168 (register_u_addr, kernel_u_size): Remove functions.
169 * config/i386/obsd.mh (NAT_FILE): Remove.
170 * config/i386/obsdaout.mh (NAT_FILE): Set to solib.h.
171 * config/i386/nm-obsd.h: Remove file.
173 2005-01-12 Andrew Cagney <cagney@gnu.org>
175 * exceptions.c: Include "gdb_string.h".
176 (enum catcher_state, struct catcher): Define.
177 (current_catcher): New global, replaces catch_return;
178 (catch_return): Delete.
179 (throw_exception): Use current_catcher->buf;
180 (catcher_init, catcher_pop, catcher_state_machine): New functions.
182 (struct catch_errors_args): Delete.
183 (do_catch_errors): Delete.
184 (catch_exceptions): Replace body with call to
185 catch_exceptions_with_msg.
187 (catch_exceptions_with_msg, catch_errors): Re-implement using
188 catcher_state_machine.
190 * exceptions.h (enum return_reason, RETURN_MASK)
191 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL)
192 (return_mask, throw_exception, catch_exceptions_ftype)
193 (catch_exceptions_with_msg, catch_errors_ftype, catch_errors)
194 (catch_command_errors_ftype, catch_command_errors): Move to
196 * exceptions.c, exceptions.h: New files.
197 * top.c: Do not include <setjmp.h>.
198 (SIGJMP_BUF, SIGSETJMP, SIGLONGJMP, catch_return)
199 (throw_exception, catcher, catch_exceptions)
200 (catch_exceptions_with_msg, struct catch_errors_args)
201 (do_catch_errors, catch_errors, struct captured_command_args)
202 (do_captured_command, catch_command_errors): Move to exceptions.c.
203 * wrapper.c, wince.c, win32-nat.c, utils.c: Include "exceptions.h".
204 * tui/tui-interp.c, top.c, thread.c, symmisc.c: Ditto.
205 * symfile-mem.c, stack.c, solib.c, rs6000-nat.c: Ditto.
206 * remote-sds.c, remote-mips.c, remote-fileio.c: Ditto.
207 * remote-e7000.c, objc-lang.c, ocd.c: Ditto.
208 * remote.c, nto-procfs.c, monitor.c, mi/mi-main.c: Ditto.
209 * main.c, m32r-rom.c, infrun.c, inf-loop.c: Ditto.
210 * hppa-hpux-tdep.c, frame.c, event-top.c, event-loop.c: Ditto.
211 * corelow.c, corefile.c, cli/cli-interp.c, breakpoint.c: Ditto.
212 * ada-valprint.c, ada-lang.c: Ditto.
213 * Makefile.in (HFILES_NO_SRCDIR, COMMON_OBS): Add exceptions.h and
214 exceptions.o. Update all dependencies.
216 2005-01-11 Mark Kettenis <kettenis@gnu.org>
218 * config/i386/nm-fbsd.h: Update copyright year.
219 Don't include "config/nm-bsd.h".
220 (KERNEL_U_SIZE): Remove macro.
221 (kernel_u_size): Remove prototype.
223 * config/vax/nbsdaout.mh (NAT_FILE): Remove.
224 * config/vax/nm-nbsdaout.h: Remove file.
226 2005-01-10 Elena Zannoni <ezannoni@redhat.com>
228 * MAINTAINERS: Remove self from sh/sh64 maintainership.
230 2005-01-10 Andrew Cagney <cagney@gnu.org>
232 * MAINTAINERS: List Andrew Cagney and Kevin Buettner as can commit
233 changes to PowerPC, and Andrew Cagney as lead PowerPC GNU/Linux
236 * MAINTAINERS: Hans-Peter Nilsson and Orjan Friberg can commit
239 * MAINTAINERS: Remove "Maintenance Only". Spell out that CAN
240 COMMIT means can approve).
242 2005-01-10 Mark Kettenis <kettenis@gnu.org>
244 * vax-nat.c: Update copyright year. Include "inf-ptrace.h".
245 (vax_register_u_offset): Make statuc.
246 (_initialize_vax_nat): Construct and add target vector.
247 * config/vax/vax.mh (NATDEPFILES): Remove infptrace.o and
248 inftarg.o. Add inf-ptrace.o.
249 * Makefile.in (vax-nat.o): Update dependencies.
251 * inf-ptrace.h: Update copyright year. Sync comment with
253 (inf_ptrace_trad_target): New prototype.
254 * inf-ptrace.c: Update copyright year. Include "regcache.h" and
256 (inf_ptrace_target): Add comment.
257 (inf_ptrace+register_u_offset): New variable.
258 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
259 (inf_ptrace_store_register, inf_ptrace_store_registers)
260 (inf_ptrace_trad_target): New functions.
261 * Makefile.in (inf-ptrace.o): Update dependencies.
263 2005-01-09 Mark Kettenis <kettenis@gnu.org>
265 * configure.ac: Provide prerequisite headers when checking
266 <link.h>, <sys/proc.h> and <sys/user.h>.
267 * configure: Regenerate.
269 2005-01-08 Mark Kettenis <kettenis@gnu.org>
271 * config/powerpc/obsd.mt (DEPRECATED_TM_FILE): Set to
272 tm-ppc-eabi.h instead of the removed tm-nbsd.h.
274 2005-01-07 Mark Kettenis <kettenis@gnu.org>
276 * config/ia64/tm-linux.h: Tweak comment. Update copyright year.
277 Don't include "tm-ia64.h".
278 * config/ia64/ia64.mt (DEPRECATED_TM_FILE): Remove.
279 * config/ia64/tm-ia64.h: Remove. Move contents ...
280 * ia64-tdep.h: ... here. Update copyright year.
282 2005-01-07 Andrew Cagney <cagney@gnu.org>
284 * configure.ac: Rename configure.in, require autoconf 2.59.
285 * configure: Re-generate.
287 * configure.tgt: Disable arm*-*-*, thumb*-*-*, strongarm*-*-*,
288 xscale-*-* and i[34567]86-*-netware* code adding rdi-share or nlm
291 * configure.in: Replace configdirs with multiple references to
293 * configure: Re-generate.
295 2005-01-05 Andreas Schwab <schwab@suse.de>
297 * ia64-tdep.c: Include "osabi.h".
298 (native_find_global_pointer): Delete.
299 (ia64_find_global_pointer): Renamed from
300 generic_elf_find_global_pointer.
301 (FIND_GLOBAL_POINTER): Delete. Change all users to call
302 ia64_find_global_pointer instead.
303 (ia64_gdbarch_init): Call gdbarch_init_osabi. Remove references
304 to ia64_linux_sigcontext_register_address and
305 ia64_linux_write_pc. Don't set tdep->find_global_pointer.
306 (_initialize_ia64_tdep): Call gdbarch_register instead of
307 deprecated register_gdbarch_init.
308 (struct gdbarch_tdep): Remove find_global_pointer field and move
310 * ia64-tdep.h (struct gdbarch_tdep): ... here.
311 (ia64_linux_sigcontext_register_address): Remove declaration.
312 (ia64_linux_getunwind_table): Likewise.
313 (ia64_linux_write_pc): Likewise.
314 * ia64-linux-tdep.c: Include "osabi.h".
315 (ia64_linux_sigcontext_register_address): Make static.
316 (ia64_linux_write_pc): Likewise.
317 (ia64_linux_init_abi): New.
318 (_initialize_ia64_linux_tdep): New.
319 * Makefile.in (ia64-tdep.o, ia64-linux-tdep.o): Depend on
322 2005-01-05 Kevin Buettner <kevinb@redhat.com>
324 * ia64-tdep.c (ia64_gdbarch_init): Eliminate dependency on
325 functions in ia64-aix-tdep.c.
326 * ia64-tdep.h (ia64_aix_sigcontext_register_address): Remove
327 function defined in ia64-aix-tdep.c.
328 * ia64-aix-tdep.c: Remove file.
329 * config/ia64/linux.mt (TDEPFILES): Remove ia64-aix-tdep.o from
331 * Makefile.in (ia64-aix-tdep.o): Delete.
333 2005-01-05 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
335 Committed by Andrew Cagney.
336 * ada-valprint.c, aix-thread.c, alpha-nat.c: I18n markup.
337 * alphabsd-nat.c, alphanbsd-tdep.c, amd64-linux-nat.c: I18n markup.
338 * amd64-tdep.c, amd64bsd-nat.c, amd64fbsd-nat.c: I18n markup.
339 * arch-utils.c, arm-linux-nat.c, arm-tdep.c: I18n markup.
340 * armnbsd-nat.c, armnbsd-tdep.c, auxv.c, avr-tdep.c: I18n markup.
341 * aix-thread.c (_initialize_aix_thread): Get rid of the
342 deprecated_add_show_from_set call.
343 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
344 * arm-tdep.c (_initialize_arm_tdep): Ditto.
345 * command.h (add_setshow_enum_cmd): Add arguments for returning
347 * cli/cli-decode.c (add_setshow_enum_cmd): Ditto.
348 * mips-tdep.c (_initialize_mips_tdep): Modify calls to
349 add_setshow_enum_cmd.
351 2005-01-04 Mark Kettenis <kettenis@gnu.org>
353 * configure.host (ia64-*-aix*): Remove.
354 * configure.tgt (ia64-*-aix*): Remove.
355 * config/ia64/aix.mh: Remove file.
356 * config/ia64/aix.mt: Remove file.
357 * config/ia64/tm-aix.h: Remove file.
358 * ia64-aix-nat.c: Remove file.
359 * Makefile.in (ia64-aix-nat.o): Remove dependency.
361 * config/m88k/obsd.mh (NATDEPFILES): Really remove inf-child.o.
362 Add back inf-ptrace.o.
364 2005-01-04 Andrew Cagney <cagney@gnu.org>
366 * version.in: Change format from 6.3.50_2005-01-04-cvs to
369 2005-01-04 Andreas Schwab <schwab@suse.de>
371 * breakpoint.c (break_command_1): Always free err_msg before
372 returning when an exception was caught.
374 2005-01-01 Joel Brobecker <brobecker@gnat.com>
376 * hppa-tdep.c (prologue_inst_adjust_sp): Fix small confusion
377 in register number for addil instruction.
379 For older changes see ChangeLog-2004.
385 version-control: never