3 * acinclude.m4: Include ../bfd/bfd.m4 instead of
4 ../bfd/acinclude.m4. Include ../gettext.m4.
5 * aclocal.m4, configure: Re-generate.
7 * exceptions.c (do_captured_command)
8 (struct captured_command_args): Delete.
9 (catch_command_errors): Simplify by inlining call to catch_errors.
11 * exceptions.c (struct catcher): Delete field print_message.
12 (catcher_init): Delete print_message parameter.
13 (catch_exception, catch_exceptions_with_msg, catch_errors): Update.
14 (throw_it): Delete prefix parameter.
15 (throw_verror, throw_vfatal, throw_error): Update.
19 * exceptions.c (print_and_throw): Delete, replaced by throw_it.
20 (throw_reason): Leave the exception's message field blank.
21 (throw_it): New function, create the exception and throw it.
22 (throw_verror, throw_vfatal, throw_error): Call throw_it.
23 (print_any_exception): New function.
24 (catch_errors, catch_exceptions_with_msg): Call
26 (throw_exception): Move code calling annotate_error and
27 annotate_quit from here ...
28 (print_exception): ... to here.
30 * exceptions.c (exception_fprintf, exception_print): Move printing
32 (print_exception): ... to here.
33 (print_flush): New function.
34 (exception_print, exception_fprintf): Replace duplicated flush and
35 wrap code with call to print_flush.
36 (print_and_throw): Simplify, by using xstrvprintf, print_flush,
40 * remote-sds.c (interrupt_query): Call throw_reason instead of
42 * remote-mips.c (mips_error, mips_kill): Ditto
43 * ocd.c (interrupt_query): Ditto.
44 * nto-procfs.c (interrupt_query): Ditto.
45 * monitor.c (monitor_interrupt_query): Ditto.
49 * ia64-linux-nat.c: Include "ia64-tdep.h" to get register definitions.
53 * exceptions.h (catch_exceptions): Delete errstring parameter.
54 (catch_exceptions_with_msg): Ditto.
55 * exceptions.c (catch_exceptions_with_msg): Update.
56 (catch_exceptions): Update.
57 * symfile-mem.c (add_vsyscall_page): Update.
58 * frame.c (get_current_frame): Update.
59 * wrapper.c (gdb_value_struct_elt): Update.
60 * exceptions.c (catch_exceptions): Update.
61 * thread.c (gdb_list_thread_ids, gdb_thread_select): Update.
62 * breakpoint.c (gdb_breakpoint_query, gdb_breakpoint): Update.
63 * remote-fileio.c (remote_fileio_request): Update.
65 * exceptions.h (exception_fprintf): Declare.
66 (exception_print): Drop pre_print parameter.
67 * mi/mi-main.c (mi_execute_command): Update exception_print call.
68 * cli/cli-interp.c (safe_execute_command): Update exception_print
70 * remote.c (remote_open_1): Instead of passing an error prefix to
71 catch_exceptions, use catch_exceptions and exception_fprintf.
72 (remote_start_remote): Change return type to void.
73 * breakpoint.c (insert_bp_location): Instead of passing an error
74 prefix to catch_exceptions, use catch_exceptions and
76 (insert_catchpoint): Change return type to void.
77 (break_command_1): Update exception_print call.
78 * exceptions.c (exception_fprintf): New function.
79 (print_exception): New function.
80 (exception_print): Use print_exception.
82 * utils.c (error_output_message): Delete function.
83 * defs.h (error_output_message): Delete declaration.
85 * linespec.c (symtab_from_filename, decode_variable): Use
86 throw_error instead of error_silent.
87 * breakpoint.c (do_captured_parse_breakpoint): Change return type
89 (break_command_1): Use catch_exception and check the error return
91 * exceptions.c (throw_error): New function.
92 (throw_vsilent): Delete function.
93 * exceptions.h (throw_error): Declare.
94 (throw_vsilent): Delete declaration.
95 * utils.c (error_silent): Delete function.
96 * defs.h (error_silent): Delete declaration.
98 * mi/mi-main.c (mi_execute_command): Print the exception.
99 * cli/cli-interp.c (safe_execute_command): Print the exception.
100 * exceptions.h (exception_print): Declare.
101 * exceptions.c (struct catcher): Add field print_message.
102 (catcher_init): Add parameter print_message, store in the catcher
104 (print_and_throw): Only print the message when print_message.
105 (catch_exceptions_with_msg, catch_errors): Pass print_message=1 to
107 (catch_exception): Pass print_message=0 to catcher_init.
109 * varobj.c (varobj_create): Add missing \n.
113 * cli/cli-decode.h: Whitespace tweaks.
114 * wince.c: Whitespace tweaks.
115 * uw-thread.c: Whitespace tweaks.
116 * utils.c: Whitespace tweaks.
117 * tracepoint.[ch]: Whitespace tweaks.
118 * solist.h: Whitespace tweaks.
122 * exceptions.h (struct exception): Make message const.
123 * mi/mi-main.c (mi_execute_command): Pass result.message directly
124 to fputstr_unfiltered.
128 * stack.c: Whitespace tweaks.
129 * somsolib.[ch]: Whitespace tweaks.
130 * solib-aix.c: Whitespace tweaks.
131 * solib.c: Whitespace tweaks.
132 * solib-frv.c: Whitespace tweaks.
133 * solib.h: Whitespace tweaks.
134 * solib-irix.c: Whitespace tweaks.
135 * solib-som.c: Whitespace tweaks.
136 * solib-sunos.c: Whitespace tweaks.
137 * solib-svr4.[ch]: Whitespace tweaks.
138 * ser-tcp.c: Whitespace tweaks.
139 * ser-unix.c: Whitespace tweaks.
140 * serial.h: Whitespace tweaks.
141 * scm-valprint.c: Whitespace tweaks.
142 * rs6000-tdep.c: Whitespace tweaks.
143 * rs6000-nat.c: Whitespace tweaks.
144 * remote.c: Whitespace tweaks.
148 * defs.h (error_last_message, error_init): Delete declaration.
149 * utils.c (fatal, vfatal): Call throw_vfatal.
150 (error, verror): Call throw_verror;
151 (do_write, error_stream_1): Delete function.
152 (error_stream): Simplify, call error.
153 (error_last_message, error_init, gdb_lasterr): Delete.
154 (error_silent): Simplify, call throw_vsilent.
155 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dup the message.
156 * main.c (captured_main): Delete call to error_init.
157 * exceptions.c (throw_verror, throw_verror)
158 (throw_vsilent): New functions.
159 (do_write, print_and_throw): New functions.
160 (last_message): New global.
161 (throw_reason): Replace error_last_message with last_message.
162 (catch_exceptions_with_msg): Dup the message.
163 * exceptions.h (throw_verror, throw_vfatal, throw_vsilent):
168 * remote-st.c: Whitespace tweaks.
169 * remote-sim.c: Whitespace tweaks.
170 * remote-mips.c: Whitespace tweaks.
171 * pa64solib.[ch]: Whitespace tweaks.
172 * mdebugread.c: Whitespace tweaks.
173 * main.c: Whitespace tweaks.
174 * interps.c: Whitespace tweaks.
175 * infrun.c: Whitespace tweaks.
176 * infcmd.c: Whitespace tweaks.
177 * hpux-thread.c: Whitespace tweaks.
178 * hppa-hpux-tdep.c: Whitespace tweaks.
179 * gdbcore.h: Whitespace tweaks.
180 * gdbcmd.h: Whitespace tweaks.
181 * gdb-events[.c, .h, .sh]: Whitespace tweaks.
182 * corefile.c: Whitespace tweaks.
183 * completer.c: Whitespace tweaks.
184 * coff-solib.c: Whitespace tweaks.
185 * coff-solib.h: Whitespace tweaks.
186 * cli-out.c: Whitespace tweaks.
187 * breakpoint.c: Whitespace tweaks.
188 * cli/cli-interp.c: Tweak comments, per coding standard.
192 * breakpoint.c (gdb_breakpoint_query): Update, use
193 catch_exceptions_with_msg.
194 (do_captured_breakpoint): Add uiout parameter.
195 (gdb_breakpoint): Update, use catch_exceptions_with_msg.
196 * mi/mi-main.c (mi_cmd_thread_select): Pass mi_error_message to
197 gdb_thread_select. Return MI_CMD_ERROR instead of
199 (mi_cmd_thread_list_ids): Ditto for gdb_list_thread_ids.
200 (enum captured_mi_execute_command_actions): Delete
201 EXECUTE_COMMAND_DISPLAY_ERROR.
202 (captured_mi_execute_command): Delete code handling
204 (mi_execute_command): Don't check for
205 EXECUTE_COMMAND_DISPLAY_ERROR.
206 * mi/mi-cmd-break.c (breakpoint_notify): Update call to
207 gdb_breakpoint_query.
208 (mi_cmd_break_insert): Pass mi_error_message to gdb_breakpoint.
209 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_CAUGHT_ERROR.
210 * gdb.h (gdb_thread_select, gdb_list_thread_ids)
211 (gdb_breakpoint, gdb_breakpoint_query): Add error_message
213 * thread.c (thread_command): Update call.
214 (gdb_thread_select, gdb_list_thread_ids): Update, call
215 catch_exceptions_with_msg.
217 * mi/mi-main.c (mi_execute_command): Use catch_exception,
218 eliminate call to error_last_message.
219 (captured_mi_execute_command): Change return type to void.
223 * exceptions.c (exception_none): New variable.
224 * Makefile.in: Update dependencies.
225 * interps.c: Include "exceptions.h".
226 (interpreter_exec_cmd, interp_exec): Update to return "struct
228 * exceptions.h (no_exception): Declare.
229 * tui/tui-interp.c (tui_exec): Update to return "struct exception"
230 * mi/mi-interp.c: Include "exceptions.h".
231 (mi_cmd_interpreter_exec, mi_interpreter_exec): Update to return
233 * cli/cli-interp.c (cli_interpreter_exec, safe_execute_command)
234 (do_captured_execute_command): Update to use catch_exception.
235 * interps.h: Include "exceptions.h".
236 (interp_exec_ftype, interp_exec): Return "struct exception".
238 * exceptions.h (throw_reason): Rename throw_exception.
239 (enum errors, struct exception): Define.
240 (catch_exception_ftype): Define.
241 (catch_exception, throw_exception): Declare.
242 * exceptions.c (throw_exception): Rewrite.
243 (throw_reason): New function.
244 (struct catcher, catcher_state_machine): Replace "reason" with
245 "exception", delete "gdberrmsg".
246 (catch_exception): New function.
247 (catcher_init): Replace "gdberrmsg" parameter with "exception".
248 (catch_errors, catch_exceptions_with_msg): Re-implement passing
249 exception to catcher_init.
250 * utils.c (error_silent, error_stream_1): Use throw_reason.
251 (internal_verror, quit): Ditto.
252 * breakpoint.c (insert_catchpoint, break_command_1): Ditto.
253 * remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Ditto.
254 * remote.c (remote_open_1, interrupt_query): Ditto.
258 * i386fbsd-tdep.c: Update copyright year. Include "gdbcore.h",
259 "regcache.h", "gdb_assert.h" and "bsd-uthread.h".
260 (i386fbsd_jmp_buf_reg_offset): New variable.
261 (i386fbsd_supply_uthread, i386fbsd_collect_uthread): New
263 (i386fbsdaout_init_abi): Set supply_uthread and collect_uthread.
264 * Makefile.in (i386fbsd-tdep.o): Update dependency.
265 * config/i386/fbsd.mt (TDEPFILES): Add bsd-uthread.o.
267 * bsd-uthread.h: New file.
268 * bsd-uthread.c: New file.
269 * Makefile.in (bsd_uthread_h): New variable.
270 (ALLDEPFILES): Add bsd-uthread.c.
271 (bsd-uthread.o): New dependency.
273 * solib.h Update copyright year.
274 (struct so_list): Forward declaration.
275 (solib_read_symbols): New prototype.
276 * solib.c (solib_read_symbols): New function.
277 (solib_add): Call solib_read_symbols to read in symbols.
278 (update_solib_list): Call observer_notify_solib_loaded.
280 * i386bsd-nat.c: Update copyright year. Don't include
281 <sys/param.h> and <sys/user.h>.
282 (register_u_addr, kernel_u_size): Remove functions.
283 * config/i386/obsd.mh (NAT_FILE): Remove.
284 * config/i386/obsdaout.mh (NAT_FILE): Set to solib.h.
285 * config/i386/nm-obsd.h: Remove file.
289 * exceptions.c: Include "gdb_string.h".
290 (enum catcher_state, struct catcher): Define.
291 (current_catcher): New global, replaces catch_return;
292 (catch_return): Delete.
293 (throw_exception): Use current_catcher->buf;
294 (catcher_init, catcher_pop, catcher_state_machine): New functions.
296 (struct catch_errors_args): Delete.
297 (do_catch_errors): Delete.
298 (catch_exceptions): Replace body with call to
299 catch_exceptions_with_msg.
301 (catch_exceptions_with_msg, catch_errors): Re-implement using
302 catcher_state_machine.
304 * exceptions.h (enum return_reason, RETURN_MASK)
305 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL)
306 (return_mask, throw_exception, catch_exceptions_ftype)
307 (catch_exceptions_with_msg, catch_errors_ftype, catch_errors)
308 (catch_command_errors_ftype, catch_command_errors): Move to
310 * exceptions.c, exceptions.h: New files.
311 * top.c: Do not include <setjmp.h>.
312 (SIGJMP_BUF, SIGSETJMP, SIGLONGJMP, catch_return)
313 (throw_exception, catcher, catch_exceptions)
314 (catch_exceptions_with_msg, struct catch_errors_args)
315 (do_catch_errors, catch_errors, struct captured_command_args)
316 (do_captured_command, catch_command_errors): Move to exceptions.c.
317 * wrapper.c, wince.c, win32-nat.c, utils.c: Include "exceptions.h".
318 * tui/tui-interp.c, top.c, thread.c, symmisc.c: Ditto.
319 * symfile-mem.c, stack.c, solib.c, rs6000-nat.c: Ditto.
320 * remote-sds.c, remote-mips.c, remote-fileio.c: Ditto.
321 * remote-e7000.c, objc-lang.c, ocd.c: Ditto.
322 * remote.c, nto-procfs.c, monitor.c, mi/mi-main.c: Ditto.
323 * main.c, m32r-rom.c, infrun.c, inf-loop.c: Ditto.
324 * hppa-hpux-tdep.c, frame.c, event-top.c, event-loop.c: Ditto.
325 * corelow.c, corefile.c, cli/cli-interp.c, breakpoint.c: Ditto.
326 * ada-valprint.c, ada-lang.c: Ditto.
327 * Makefile.in (HFILES_NO_SRCDIR, COMMON_OBS): Add exceptions.h and
328 exceptions.o. Update all dependencies.
332 * config/i386/nm-fbsd.h: Update copyright year.
333 Don't include "config/nm-bsd.h".
334 (KERNEL_U_SIZE): Remove macro.
335 (kernel_u_size): Remove prototype.
337 * config/vax/nbsdaout.mh (NAT_FILE): Remove.
338 * config/vax/nm-nbsdaout.h: Remove file.
342 * MAINTAINERS: Remove self from sh/sh64 maintainership.
346 * MAINTAINERS: List Andrew Cagney and Kevin Buettner as can commit
347 changes to PowerPC, and Andrew Cagney as lead PowerPC GNU/Linux
350 * MAINTAINERS: Hans-Peter Nilsson and Orjan Friberg can commit
353 * MAINTAINERS: Remove "Maintenance Only". Spell out that CAN
354 COMMIT means can approve).
358 * vax-nat.c: Update copyright year. Include "inf-ptrace.h".
359 (vax_register_u_offset): Make statuc.
360 (_initialize_vax_nat): Construct and add target vector.
361 * config/vax/vax.mh (NATDEPFILES): Remove infptrace.o and
362 inftarg.o. Add inf-ptrace.o.
363 * Makefile.in (vax-nat.o): Update dependencies.
365 * inf-ptrace.h: Update copyright year. Sync comment with
367 (inf_ptrace_trad_target): New prototype.
368 * inf-ptrace.c: Update copyright year. Include "regcache.h" and
370 (inf_ptrace_target): Add comment.
371 (inf_ptrace+register_u_offset): New variable.
372 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
373 (inf_ptrace_store_register, inf_ptrace_store_registers)
374 (inf_ptrace_trad_target): New functions.
375 * Makefile.in (inf-ptrace.o): Update dependencies.
379 * configure.ac: Provide prerequisite headers when checking
380 <link.h>, <sys/proc.h> and <sys/user.h>.
381 * configure: Regenerate.
385 * config/powerpc/obsd.mt (DEPRECATED_TM_FILE): Set to
386 tm-ppc-eabi.h instead of the removed tm-nbsd.h.
390 * config/ia64/tm-linux.h: Tweak comment. Update copyright year.
391 Don't include "tm-ia64.h".
392 * config/ia64/ia64.mt (DEPRECATED_TM_FILE): Remove.
393 * config/ia64/tm-ia64.h: Remove. Move contents ...
394 * ia64-tdep.h: ... here. Update copyright year.
398 * configure.ac: Rename configure.in, require autoconf 2.59.
399 * configure: Re-generate.
401 * configure.tgt: Disable arm*-*-*, thumb*-*-*, strongarm*-*-*,
402 xscale-*-* and i[34567]86-*-netware* code adding rdi-share or nlm
405 * configure.in: Replace configdirs with multiple references to
407 * configure: Re-generate.
411 * ia64-tdep.c: Include "osabi.h".
412 (native_find_global_pointer): Delete.
413 (ia64_find_global_pointer): Renamed from
414 generic_elf_find_global_pointer.
415 (FIND_GLOBAL_POINTER): Delete. Change all users to call
416 ia64_find_global_pointer instead.
417 (ia64_gdbarch_init): Call gdbarch_init_osabi. Remove references
418 to ia64_linux_sigcontext_register_address and
419 ia64_linux_write_pc. Don't set tdep->find_global_pointer.
420 (_initialize_ia64_tdep): Call gdbarch_register instead of
421 deprecated register_gdbarch_init.
422 (struct gdbarch_tdep): Remove find_global_pointer field and move
424 * ia64-tdep.h (struct gdbarch_tdep): ... here.
425 (ia64_linux_sigcontext_register_address): Remove declaration.
426 (ia64_linux_getunwind_table): Likewise.
427 (ia64_linux_write_pc): Likewise.
428 * ia64-linux-tdep.c: Include "osabi.h".
429 (ia64_linux_sigcontext_register_address): Make static.
430 (ia64_linux_write_pc): Likewise.
431 (ia64_linux_init_abi): New.
432 (_initialize_ia64_linux_tdep): New.
433 * Makefile.in (ia64-tdep.o, ia64-linux-tdep.o): Depend on
438 * ia64-tdep.c (ia64_gdbarch_init): Eliminate dependency on
439 functions in ia64-aix-tdep.c.
440 * ia64-tdep.h (ia64_aix_sigcontext_register_address): Remove
441 function defined in ia64-aix-tdep.c.
442 * ia64-aix-tdep.c: Remove file.
443 * config/ia64/linux.mt (TDEPFILES): Remove ia64-aix-tdep.o from
445 * Makefile.in (ia64-aix-tdep.o): Delete.
449 Committed by Andrew Cagney.
450 * ada-valprint.c, aix-thread.c, alpha-nat.c: I18n markup.
451 * alphabsd-nat.c, alphanbsd-tdep.c, amd64-linux-nat.c: I18n markup.
452 * amd64-tdep.c, amd64bsd-nat.c, amd64fbsd-nat.c: I18n markup.
453 * arch-utils.c, arm-linux-nat.c, arm-tdep.c: I18n markup.
454 * armnbsd-nat.c, armnbsd-tdep.c, auxv.c, avr-tdep.c: I18n markup.
455 * aix-thread.c (_initialize_aix_thread): Get rid of the
456 deprecated_add_show_from_set call.
457 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
458 * arm-tdep.c (_initialize_arm_tdep): Ditto.
459 * command.h (add_setshow_enum_cmd): Add arguments for returning
461 * cli/cli-decode.c (add_setshow_enum_cmd): Ditto.
462 * mips-tdep.c (_initialize_mips_tdep): Modify calls to
463 add_setshow_enum_cmd.
467 * configure.host (ia64-*-aix*): Remove.
468 * configure.tgt (ia64-*-aix*): Remove.
469 * config/ia64/aix.mh: Remove file.
470 * config/ia64/aix.mt: Remove file.
471 * config/ia64/tm-aix.h: Remove file.
472 * ia64-aix-nat.c: Remove file.
473 * Makefile.in (ia64-aix-nat.o): Remove dependency.
475 * config/m88k/obsd.mh (NATDEPFILES): Really remove inf-child.o.
476 Add back inf-ptrace.o.
480 * version.in: Change format from 6.3.50_2005-01-04-cvs to
485 * breakpoint.c (break_command_1): Always free err_msg before
486 returning when an exception was caught.
490 * hppa-tdep.c (prologue_inst_adjust_sp): Fix small confusion
491 in register number for addil instruction.
493 For older changes see ChangeLog-2004.
499 version-control: never