]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
2005-01-25 Andrew Cagney <cagney@gnu.org>
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2005-01-25 Andrew Cagney <cagney@gnu.org>
2
3 * ppc-linux-tdep.c: Include "tramp-frame.h"
4 (struct ppc_linux_sigtramp_cache)
5 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
6 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
7 (ppc_linux_sigtramp_cache): Delete.
8 (ppc32_linux_sigaction_cache_init)
9 (ppc64_linux_sigaction_cache_init)
10 (ppc32_linux_sighandler_cache_init)
11 (ppc64_linux_sighandler_cache_init)
12 (ppc32_linux_sigaction_tramp_frame)
13 (ppc64_linux_sigaction_tramp_frame)
14 (ppc32_linux_sighandler_tramp_frame)
15 (ppc64_linux_sighandler_tramp_frame)
16 (ppc_linux_sigtramp_cache, ppc_linux_init_abi): Implement 32 and
17 64-bit, sigaction and siginfo tramp-frame unwinders.
18
19 * ppc-linux-tdep.c (ppc_linux_init_abi): Always set
20 long_double_bit to 8.
21
22 2005-01-24 Andrew Cagney <cagney@gnu.org>
23
24 * infrun.c (handle_inferior_event): Handle back-to-back and nested
25 signals where the step_resume_breakpoint may have already been
26 inserted.
27
28 2005-01-24 Andrew Cagney <cagney@gnu.org>
29
30 * configure: Regenerate, ../gettext.m4 was updated.
31
32 2005-01-23 Mark Kettenis <kettenis@gnu.org>
33
34 * NEWS: Mention new BSD user-level threads support.
35
36 * i386obsd-tdep.c: Update copyright year. Include
37 "bsd-uthread.h".
38 (i386obsd_uthread_reg_offset): New variable.
39 (I386OBSD_UTHREAD_ESP_OFFSET): New define.
40 (i386obsd_supply_uthread, i386obsd_collect_uthread): New
41 functions.
42 (i386obsd_init_abi): Set supply_uthread and collect_uthread.
43 * Makefile.in (i386obsd-tdep.o): Update dependencies.
44 * config/i386/obsd.mt (TDEPFILES): Add bsd-uthread.o.
45
46 2005-01-23 Christopher Faylor <cgf@timesys.com>
47
48 * win32-nat.c: Update copyright year.
49 (child_init_thread_list): Set thread linked list point to NULL so that
50 it won't be reused after clearing.
51
52 2005-01-21 Mark Kettenis <kettenis@gnu.org>
53
54 * acconfig.h (HAVE_STRUCT_REG_R_FS, HAVE_STRUCT_R_GS): Remove
55 undefs.
56 * configure.ac: Use AC_CHECK_MEMBERS to check whether `struct
57 thread' has a td_pcb member and whether `struct reg' has r_fs and
58 r_gs members.
59 * configure, config.in: Regenerate.
60
61 2005-01-21 Mark Kettenis <kettenis@gnu.org>
62
63 * configure.ac: Remove ia64-*-aix* junk.
64 * configure: Regenerate.
65
66 * configure.ac: Use AC_CHECK_DECLS instead of gcc_AC_CHECK_DECLS
67 and BFD_NEED_DECLARATION. Don't check if a declaration of strdup
68 is necessary.
69 * configure, config.in: Regenerate.
70 * utils.c: Adjust for usage of AC_CHECK_DECLS instead of
71 BFD_NEED_DECLARATION. Never provide a prototype for
72 caninicalize_file_name.
73 * gdb_string.h: Adjust for usage of AC_CHECK_DECLS instead of
74 BFD_NEED_DECLARATION.
75
76 * configure.ac (targ_archs): Use standard autoconf check for
77 "struct stat.st_blocks" instead of rolling our own.
78 * configure: Regenerated.
79 * acconfig.h (HAVE_STRUCT_STAT_ST_BLOCKS): Remove undef.
80 * config.in: Regenerated.
81
82 2005-01-21 Mark Kettenis <kettenis@gnu.org>
83
84 * configure.ac: Modernize checks for `long long' and `long double'
85 support.
86 * configure: Regenerated.
87 * acconfig.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG)
88 (PRINT_HAS_LONG_DOUBLE, SCANF_HAS_LONG_DOUBLE): Remove undefs.
89 * config.in: Regenerated.
90
91 2005-01-20 Mark Kettenis <kettenis@gnu.org>
92
93 * acconfig.h (HAVE_STRUCT_SAVE_STATE_T)
94 (HAVE_STRUCT_MEMBER_SS_WIDE): Remove undefs.
95 * configure.ac: Remove checks for HP-UX save_state structure.
96 * configure: Regenerated.
97
98 2005-01-19 Andrew Cagney <cagney@gnu.org>
99
100 * utils.c (quit): Simplify, call fatal.
101 * exceptions.c: Include "serial.h"
102 (print_flush): Mimic flush code found in utils.c:quit.
103 * Makefile.in: Update dependencies.
104
105 2005-01-19 Jim Blandy <jimb@redhat.com>
106
107 * configure.tgt: Set build_rdi_share to "yes" on those targets
108 that use that debugging protocol.
109 Set build_nlm to yes to build NLM stub for Netware targets.
110 * configure.ac: If build_rdi_share is "yes", then configure the
111 rdi-share subdirectory.
112 If build_nlm is "yes", the configure the "nlm" subdirectory.
113 * configure: Regenerated.
114
115 * rdi-share/configure, rdi-share/aclocal.m4: Regenerated using
116 autoconf 2.59 and automake 1.9.3.
117
118 2005-01-19 Andrew Cagney <cagney@gnu.org>
119
120 * exceptions.h (deprecated_throw_reason): Rename throw_reason.
121 * exceptions.c (deprecated_throw_reason): Rename throw_reason.
122 * utils.c (internal_verror, quit): Update.
123 * remote-sds.c (interrupt_query): Update.
124 * remote-mips.c (mips_error, mips_kill): Update.
125 * remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Update.
126 * remote.c (interrupt_query): Update.
127 * ocd.c (interrupt_query): Update.
128 * nto-procfs.c (interrupt_query): Update.
129 * monitor.c (monitor_interrupt_query): Update.
130 * breakpoint.c (break_command_1): Update.
131
132 * infrun.c: (resume, proceed, wait_for_inferior)
133 (handle_inferior_event, stop_stepping)
134 (prepare_to_wait): Write debug output to gdb_stdlog.
135
136 2005-01-19 Mark Kettenis <kettenis@gnu.org>
137
138 * inf-ptrace.c (inf_ptrace_prepare_to_store)
139 (inf_ptrace_post_startup_inferior)
140 (inf_ptrace_acknowledge_created_inferior)
141 (inf_ptrace_insert_fork_catchpoint)
142 (inf_ptrace_remove_fork_catchpoint)
143 (inf_ptrace_insert_vfork_catchpoint):
144 (inf_ptrace_remove_vfork_catchpoint, inf_ptrace_follow_fork)
145 (inf_ptrace_insert_exec_catchpoint)
146 (inf_ptrace_remove_exec_catchpoint): Remove functions.
147 (inf_ptrace_reported_exec_events_per_exec_call): Tweak comment.
148 (inf_ptrace_target): Don't set to_prepare_to_store,
149 to_post_startup_inferior, to_acknowledge_created_inferior,
150 to_insert_fork_ctachpoint, to_remove_fork_catchpoint,
151 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
152 to_follow_fork, to_insert_exec_catchpoint,
153 to_remove_exec_catchpoint.
154
155 2005-01-18 Andrew Cagney <cagney@gnu.org>
156
157 * target.h (struct target_ops): Change return type of
158 to_insert_fork_catchpoint, to_insert_vfork_catchpoint and
159 to_insert_exec_catchpoint to void.
160 (child_insert_fork_catchpoint, child_insert_vfork_catchpoint)
161 (child_insert_exec_catchpoint): Change return type to void.
162 * target.c (update_current_target): Update.
163 (debug_to_insert_fork_catchpoint)
164 (debug_to_insert_vfork_catchpoint)
165 (debug_to_insert_exec_catchpoint): Update.
166 * inf-child.c (inf_child_insert_fork_catchpoint)
167 (inf_child_insert_vfork_catchpoint)
168 (inf_child_insert_exec_catchpoint): Update.
169 * breakpoint.c (insert_catchpoint): Update, do not throw an error.
170 * linux-nat.c (child_insert_fork_catchpoint)
171 (child_insert_vfork_catchpoint)
172 (child_insert_exec_catchpoint): Update.
173 * inftarg.c (child_insert_fork_catchpoint)
174 (child_insert_vfork_catchpoint,)
175 (child_insert_exec_catchpoint): Update.
176
177 * remote.c (remote_open_1): Use throw_exception.
178
179 2005-01-17 Michael Snyder <msnyder@redhat.com>
180
181 * mips-linux-tdep.c: Whitespace tweaks.
182
183 2005-01-17 Corinna Vinschen <vinschen@redhat.com>
184
185 * infcmd.c (attach_command): Call CLEAR_SOLIB if available.
186
187 2005-01-17 Andrew Cagney <cagney@gnu.org>
188
189 * top.h (source_error, source_pre_error): Delete declaration.
190 * cli/cli-script.c (source_error_allocated, source_error): Delete.
191 (script_from_file, source_cleanup_lines): Do not manipulate
192 source_error_allocated, error_pre_print and source_error.
193 (struct source_cleanup_lines_args): Delete fields old_pre_error,
194 and old_error_pre_print.
195 * top.c (source_error_allocated, source_error)
196 (source_pre_error): Delete.
197 (command_line_input): Do not set error_pre_print.
198 * event-top.c (command_line_handler): Do not set error_pre_print.
199
200 2005-01-16 Jason Thorpe <thorpej@netbsd.org>
201
202 * MAINTAINERS: Update my email address.
203
204 2005-01-16 Mark Kettenis <kettenis@gnu.org>
205
206 * configure.ac: Provide prerequisite headers when checking
207 <term.h>.
208 * configure: Regenerate.
209
210 * amd64fbsd-tdep.c: Update copyright year. Include "gdb_assert.h"
211 and "bsd-uthread.h".
212 (amd64fbsd_jmp_buf_reg_offset): New variable.
213 (amd64fbsd_supply_uthread, amd64fbsd_collect_uthread): New
214 functions.
215 (amd64fbsd_init_abi): Set supply_uthread and collect_uthread.
216 * i386fbsd-tdep.c: Fix typo.
217 * Makefile.in (amd64fbsd-tdep.o): Update dependencies.
218 * config/i386/fbsd64.mt (TDEPFILES): Add bsd-uthread.o.
219
220 2005-01-16 Andrew Cagney <cagney@gnu.org>
221
222 * cli/cli-script.c: Include "exceptions.h".
223 (struct wrapped_read_command_file_args): Define.
224 (wrapped_read_command_file): New function.
225 (script_from_file): Replace direct call to read_command_file by
226 one wrapped by an exception handler.
227 * exceptions.c (throw_it): Free the old message after creating the
228 new.
229 * Makefile.in: Update dependencies.
230
231 2005-01-16 Mark Kettenis <kettenis@gnu.org>
232
233 * sparc64fbsd-tdep.c: Update copyright year.
234 (sparc64fbsd_collect_gregset, sparc64fbsd_collect_fpregset): New
235 functions.
236 (sparc64fbsd_init_abi): Create register sets with collect
237 functions.
238
239 * sparc64fbsd-nat.c: Include "fbsd-nat.h".
240 (_initialize_sparc64fbsd_nat): Add some extra features to the
241 generic SPARC target.
242 * Makefile.in (sparc64fbsd-nat.o): Update dependencies.
243 * config/sparc/fbsd.mh (NATDEPFILES): Add fbsd-nat.o and gcore.o.
244 (NAT_FILE): Set to solib.h.
245 * config/sparc/nm-fbsd.h: Remove file.
246
247 * sparc64-tdep.c (sparc64_store_arguments): Fix typo.
248
249 * sparc-tdep.c (sparc_integral_or_pointer_p): Simplify.
250
251 2005-01-16 Andrew Cagney <cagney@gnu.org>
252
253 * exceptions.c (struct catcher): Delete saved_error_pre_print and
254 saved_quit_pre_print.
255 (catcher_init): Delete parameter errstring, do not override the
256 pre_print strings.
257 (catcher_pop): Do not restore the pre_print strings.
258 (catch_exception, catch_exceptions_with_msg, catch_errors)
259 (catch_command_errors): Update catch_init calls.
260
261 2005-01-16 Mark Kettenis <kettenis@gnu.org>
262
263 * Makefile.in (sparc64fbsd-nat.o): Update dependencies.
264 * sparc64fbsd-nat.c: Update copyright year. Include "target.h".
265
266 2005-01-15 Andrew Cagney <cagney@gnu.org>
267
268 * acinclude.m4: Include ../bfd/bfd.m4 instead of
269 ../bfd/acinclude.m4. Include ../gettext.m4.
270 * aclocal.m4, configure: Re-generate.
271
272 * exceptions.c (do_captured_command)
273 (struct captured_command_args): Delete.
274 (catch_command_errors): Simplify by inlining call to catch_errors.
275
276 * exceptions.c (struct catcher): Delete field print_message.
277 (catcher_init): Delete print_message parameter.
278 (catch_exception, catch_exceptions_with_msg, catch_errors): Update.
279 (throw_it): Delete prefix parameter.
280 (throw_verror, throw_vfatal, throw_error): Update.
281
282 2005-01-14 Andrew Cagney <cagney@gnu.org>
283
284 * exceptions.c (print_and_throw): Delete, replaced by throw_it.
285 (throw_reason): Leave the exception's message field blank.
286 (throw_it): New function, create the exception and throw it.
287 (throw_verror, throw_vfatal, throw_error): Call throw_it.
288 (print_any_exception): New function.
289 (catch_errors, catch_exceptions_with_msg): Call
290 print_any_exception.
291 (throw_exception): Move code calling annotate_error and
292 annotate_quit from here ...
293 (print_exception): ... to here.
294
295 * exceptions.c (exception_fprintf, exception_print): Move printing
296 of \n from here ...
297 (print_exception): ... to here.
298 (print_flush): New function.
299 (exception_print, exception_fprintf): Replace duplicated flush and
300 wrap code with call to print_flush.
301 (print_and_throw): Simplify, by using xstrvprintf, print_flush,
302 and print_exception.
303 (do_write): Delete.
304
305 * remote-sds.c (interrupt_query): Call throw_reason instead of
306 throw_exception.
307 * remote-mips.c (mips_error, mips_kill): Ditto
308 * ocd.c (interrupt_query): Ditto.
309 * nto-procfs.c (interrupt_query): Ditto.
310 * monitor.c (monitor_interrupt_query): Ditto.
311
312 2005-01-14 Jeff Johnston <jjohnstn@redhat.com>
313
314 * ia64-linux-nat.c: Include "ia64-tdep.h" to get register definitions.
315
316 2005-01-14 Andrew Cagney <cagney@gnu.org>
317
318 * exceptions.h (catch_exceptions): Delete errstring parameter.
319 (catch_exceptions_with_msg): Ditto.
320 * exceptions.c (catch_exceptions_with_msg): Update.
321 (catch_exceptions): Update.
322 * symfile-mem.c (add_vsyscall_page): Update.
323 * frame.c (get_current_frame): Update.
324 * wrapper.c (gdb_value_struct_elt): Update.
325 * exceptions.c (catch_exceptions): Update.
326 * thread.c (gdb_list_thread_ids, gdb_thread_select): Update.
327 * breakpoint.c (gdb_breakpoint_query, gdb_breakpoint): Update.
328 * remote-fileio.c (remote_fileio_request): Update.
329
330 * exceptions.h (exception_fprintf): Declare.
331 (exception_print): Drop pre_print parameter.
332 * mi/mi-main.c (mi_execute_command): Update exception_print call.
333 * cli/cli-interp.c (safe_execute_command): Update exception_print
334 call.
335 * remote.c (remote_open_1): Instead of passing an error prefix to
336 catch_exceptions, use catch_exceptions and exception_fprintf.
337 (remote_start_remote): Change return type to void.
338 * breakpoint.c (insert_bp_location): Instead of passing an error
339 prefix to catch_exceptions, use catch_exceptions and
340 exception_fprintf.
341 (insert_catchpoint): Change return type to void.
342 (break_command_1): Update exception_print call.
343 * exceptions.c (exception_fprintf): New function.
344 (print_exception): New function.
345 (exception_print): Use print_exception.
346
347 * utils.c (error_output_message): Delete function.
348 * defs.h (error_output_message): Delete declaration.
349
350 * linespec.c (symtab_from_filename, decode_variable): Use
351 throw_error instead of error_silent.
352 * breakpoint.c (do_captured_parse_breakpoint): Change return type
353 to void.
354 (break_command_1): Use catch_exception and check the error return
355 status.
356 * exceptions.c (throw_error): New function.
357 (throw_vsilent): Delete function.
358 * exceptions.h (throw_error): Declare.
359 (throw_vsilent): Delete declaration.
360 * utils.c (error_silent): Delete function.
361 * defs.h (error_silent): Delete declaration.
362
363 * mi/mi-main.c (mi_execute_command): Print the exception.
364 * cli/cli-interp.c (safe_execute_command): Print the exception.
365 * exceptions.h (exception_print): Declare.
366 * exceptions.c (struct catcher): Add field print_message.
367 (catcher_init): Add parameter print_message, store in the catcher
368 struct.
369 (print_and_throw): Only print the message when print_message.
370 (catch_exceptions_with_msg, catch_errors): Pass print_message=1 to
371 catcher_init.
372 (catch_exception): Pass print_message=0 to catcher_init.
373
374 * varobj.c (varobj_create): Add missing \n.
375
376 2005-01-13 Michael Snyder <msnyder@redhat.com>
377
378 * cli/cli-decode.h: Whitespace tweaks.
379 * wince.c: Whitespace tweaks.
380 * uw-thread.c: Whitespace tweaks.
381 * utils.c: Whitespace tweaks.
382 * tracepoint.[ch]: Whitespace tweaks.
383 * solist.h: Whitespace tweaks.
384
385 2005-01-13 Andrew Cagney <cagney@gnu.org>
386
387 * exceptions.h (struct exception): Make message const.
388 * mi/mi-main.c (mi_execute_command): Pass result.message directly
389 to fputstr_unfiltered.
390
391 2005-01-13 Michael Snyder <msnyder@redhat.com>
392
393 * stack.c: Whitespace tweaks.
394 * somsolib.[ch]: Whitespace tweaks.
395 * solib-aix.c: Whitespace tweaks.
396 * solib.c: Whitespace tweaks.
397 * solib-frv.c: Whitespace tweaks.
398 * solib.h: Whitespace tweaks.
399 * solib-irix.c: Whitespace tweaks.
400 * solib-som.c: Whitespace tweaks.
401 * solib-sunos.c: Whitespace tweaks.
402 * solib-svr4.[ch]: Whitespace tweaks.
403 * ser-tcp.c: Whitespace tweaks.
404 * ser-unix.c: Whitespace tweaks.
405 * serial.h: Whitespace tweaks.
406 * scm-valprint.c: Whitespace tweaks.
407 * rs6000-tdep.c: Whitespace tweaks.
408 * rs6000-nat.c: Whitespace tweaks.
409 * remote.c: Whitespace tweaks.
410
411 2005-01-13 Andrew Cagney <cagney@gnu.org>
412
413 * defs.h (error_last_message, error_init): Delete declaration.
414 * utils.c (fatal, vfatal): Call throw_vfatal.
415 (error, verror): Call throw_verror;
416 (do_write, error_stream_1): Delete function.
417 (error_stream): Simplify, call error.
418 (error_last_message, error_init, gdb_lasterr): Delete.
419 (error_silent): Simplify, call throw_vsilent.
420 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dup the message.
421 * main.c (captured_main): Delete call to error_init.
422 * exceptions.c (throw_verror, throw_verror)
423 (throw_vsilent): New functions.
424 (do_write, print_and_throw): New functions.
425 (last_message): New global.
426 (throw_reason): Replace error_last_message with last_message.
427 (catch_exceptions_with_msg): Dup the message.
428 * exceptions.h (throw_verror, throw_vfatal, throw_vsilent):
429 Declare.
430
431 2005-01-13 Michael Snyder <msnyder@redhat.com>
432
433 * remote-st.c: Whitespace tweaks.
434 * remote-sim.c: Whitespace tweaks.
435 * remote-mips.c: Whitespace tweaks.
436 * pa64solib.[ch]: Whitespace tweaks.
437 * mdebugread.c: Whitespace tweaks.
438 * main.c: Whitespace tweaks.
439 * interps.c: Whitespace tweaks.
440 * infrun.c: Whitespace tweaks.
441 * infcmd.c: Whitespace tweaks.
442 * hpux-thread.c: Whitespace tweaks.
443 * hppa-hpux-tdep.c: Whitespace tweaks.
444 * gdbcore.h: Whitespace tweaks.
445 * gdbcmd.h: Whitespace tweaks.
446 * gdb-events[.c, .h, .sh]: Whitespace tweaks.
447 * corefile.c: Whitespace tweaks.
448 * completer.c: Whitespace tweaks.
449 * coff-solib.c: Whitespace tweaks.
450 * coff-solib.h: Whitespace tweaks.
451 * cli-out.c: Whitespace tweaks.
452 * breakpoint.c: Whitespace tweaks.
453 * cli/cli-interp.c: Tweak comments, per coding standard.
454
455 2005-01-13 Andrew Cagney <cagney@gnu.org>
456
457 * breakpoint.c (gdb_breakpoint_query): Update, use
458 catch_exceptions_with_msg.
459 (do_captured_breakpoint): Add uiout parameter.
460 (gdb_breakpoint): Update, use catch_exceptions_with_msg.
461 * mi/mi-main.c (mi_cmd_thread_select): Pass mi_error_message to
462 gdb_thread_select. Return MI_CMD_ERROR instead of
463 MI_CMD_CAUGHT_ERROR.
464 (mi_cmd_thread_list_ids): Ditto for gdb_list_thread_ids.
465 (enum captured_mi_execute_command_actions): Delete
466 EXECUTE_COMMAND_DISPLAY_ERROR.
467 (captured_mi_execute_command): Delete code handling
468 MI_CMD_CAUGHT_ERROR.
469 (mi_execute_command): Don't check for
470 EXECUTE_COMMAND_DISPLAY_ERROR.
471 * mi/mi-cmd-break.c (breakpoint_notify): Update call to
472 gdb_breakpoint_query.
473 (mi_cmd_break_insert): Pass mi_error_message to gdb_breakpoint.
474 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_CAUGHT_ERROR.
475 * gdb.h (gdb_thread_select, gdb_list_thread_ids)
476 (gdb_breakpoint, gdb_breakpoint_query): Add error_message
477 parameter.
478 * thread.c (thread_command): Update call.
479 (gdb_thread_select, gdb_list_thread_ids): Update, call
480 catch_exceptions_with_msg.
481
482 * mi/mi-main.c (mi_execute_command): Use catch_exception,
483 eliminate call to error_last_message.
484 (captured_mi_execute_command): Change return type to void.
485
486 2005-01-12 Andrew Cagney <cagney@gnu.org>
487
488 * exceptions.c (exception_none): New variable.
489 * Makefile.in: Update dependencies.
490 * interps.c: Include "exceptions.h".
491 (interpreter_exec_cmd, interp_exec): Update to return "struct
492 exception"
493 * exceptions.h (no_exception): Declare.
494 * tui/tui-interp.c (tui_exec): Update to return "struct exception"
495 * mi/mi-interp.c: Include "exceptions.h".
496 (mi_cmd_interpreter_exec, mi_interpreter_exec): Update to return
497 'struct exception".
498 * cli/cli-interp.c (cli_interpreter_exec, safe_execute_command)
499 (do_captured_execute_command): Update to use catch_exception.
500 * interps.h: Include "exceptions.h".
501 (interp_exec_ftype, interp_exec): Return "struct exception".
502
503 * exceptions.h (throw_reason): Rename throw_exception.
504 (enum errors, struct exception): Define.
505 (catch_exception_ftype): Define.
506 (catch_exception, throw_exception): Declare.
507 * exceptions.c (throw_exception): Rewrite.
508 (throw_reason): New function.
509 (struct catcher, catcher_state_machine): Replace "reason" with
510 "exception", delete "gdberrmsg".
511 (catch_exception): New function.
512 (catcher_init): Replace "gdberrmsg" parameter with "exception".
513 (catch_errors, catch_exceptions_with_msg): Re-implement passing
514 exception to catcher_init.
515 * utils.c (error_silent, error_stream_1): Use throw_reason.
516 (internal_verror, quit): Ditto.
517 * breakpoint.c (insert_catchpoint, break_command_1): Ditto.
518 * remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Ditto.
519 * remote.c (remote_open_1, interrupt_query): Ditto.
520
521 2005-01-12 Mark Kettenis <kettenis@gnu.org>
522
523 * i386fbsd-tdep.c: Update copyright year. Include "gdbcore.h",
524 "regcache.h", "gdb_assert.h" and "bsd-uthread.h".
525 (i386fbsd_jmp_buf_reg_offset): New variable.
526 (i386fbsd_supply_uthread, i386fbsd_collect_uthread): New
527 functions.
528 (i386fbsdaout_init_abi): Set supply_uthread and collect_uthread.
529 * Makefile.in (i386fbsd-tdep.o): Update dependency.
530 * config/i386/fbsd.mt (TDEPFILES): Add bsd-uthread.o.
531
532 * bsd-uthread.h: New file.
533 * bsd-uthread.c: New file.
534 * Makefile.in (bsd_uthread_h): New variable.
535 (ALLDEPFILES): Add bsd-uthread.c.
536 (bsd-uthread.o): New dependency.
537
538 * solib.h Update copyright year.
539 (struct so_list): Forward declaration.
540 (solib_read_symbols): New prototype.
541 * solib.c (solib_read_symbols): New function.
542 (solib_add): Call solib_read_symbols to read in symbols.
543 (update_solib_list): Call observer_notify_solib_loaded.
544
545 * i386bsd-nat.c: Update copyright year. Don't include
546 <sys/param.h> and <sys/user.h>.
547 (register_u_addr, kernel_u_size): Remove functions.
548 * config/i386/obsd.mh (NAT_FILE): Remove.
549 * config/i386/obsdaout.mh (NAT_FILE): Set to solib.h.
550 * config/i386/nm-obsd.h: Remove file.
551
552 2005-01-12 Andrew Cagney <cagney@gnu.org>
553
554 * exceptions.c: Include "gdb_string.h".
555 (enum catcher_state, struct catcher): Define.
556 (current_catcher): New global, replaces catch_return;
557 (catch_return): Delete.
558 (throw_exception): Use current_catcher->buf;
559 (catcher_init, catcher_pop, catcher_state_machine): New functions.
560 (catcher): Delete.
561 (struct catch_errors_args): Delete.
562 (do_catch_errors): Delete.
563 (catch_exceptions): Replace body with call to
564 catch_exceptions_with_msg.
565 (catcher): Delete.
566 (catch_exceptions_with_msg, catch_errors): Re-implement using
567 catcher_state_machine.
568
569 * exceptions.h (enum return_reason, RETURN_MASK)
570 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL)
571 (return_mask, throw_exception, catch_exceptions_ftype)
572 (catch_exceptions_with_msg, catch_errors_ftype, catch_errors)
573 (catch_command_errors_ftype, catch_command_errors): Move to
574 exceptions.h.
575 * exceptions.c, exceptions.h: New files.
576 * top.c: Do not include <setjmp.h>.
577 (SIGJMP_BUF, SIGSETJMP, SIGLONGJMP, catch_return)
578 (throw_exception, catcher, catch_exceptions)
579 (catch_exceptions_with_msg, struct catch_errors_args)
580 (do_catch_errors, catch_errors, struct captured_command_args)
581 (do_captured_command, catch_command_errors): Move to exceptions.c.
582 * wrapper.c, wince.c, win32-nat.c, utils.c: Include "exceptions.h".
583 * tui/tui-interp.c, top.c, thread.c, symmisc.c: Ditto.
584 * symfile-mem.c, stack.c, solib.c, rs6000-nat.c: Ditto.
585 * remote-sds.c, remote-mips.c, remote-fileio.c: Ditto.
586 * remote-e7000.c, objc-lang.c, ocd.c: Ditto.
587 * remote.c, nto-procfs.c, monitor.c, mi/mi-main.c: Ditto.
588 * main.c, m32r-rom.c, infrun.c, inf-loop.c: Ditto.
589 * hppa-hpux-tdep.c, frame.c, event-top.c, event-loop.c: Ditto.
590 * corelow.c, corefile.c, cli/cli-interp.c, breakpoint.c: Ditto.
591 * ada-valprint.c, ada-lang.c: Ditto.
592 * Makefile.in (HFILES_NO_SRCDIR, COMMON_OBS): Add exceptions.h and
593 exceptions.o. Update all dependencies.
594
595 2005-01-11 Mark Kettenis <kettenis@gnu.org>
596
597 * config/i386/nm-fbsd.h: Update copyright year.
598 Don't include "config/nm-bsd.h".
599 (KERNEL_U_SIZE): Remove macro.
600 (kernel_u_size): Remove prototype.
601
602 * config/vax/nbsdaout.mh (NAT_FILE): Remove.
603 * config/vax/nm-nbsdaout.h: Remove file.
604
605 2005-01-10 Elena Zannoni <ezannoni@redhat.com>
606
607 * MAINTAINERS: Remove self from sh/sh64 maintainership.
608
609 2005-01-10 Andrew Cagney <cagney@gnu.org>
610
611 * MAINTAINERS: List Andrew Cagney and Kevin Buettner as can commit
612 changes to PowerPC, and Andrew Cagney as lead PowerPC GNU/Linux
613 maintainer.
614
615 * MAINTAINERS: Hans-Peter Nilsson and Orjan Friberg can commit
616 changes to CRIS.
617
618 * MAINTAINERS: Remove "Maintenance Only". Spell out that CAN
619 COMMIT means can approve).
620
621 2005-01-10 Mark Kettenis <kettenis@gnu.org>
622
623 * vax-nat.c: Update copyright year. Include "inf-ptrace.h".
624 (vax_register_u_offset): Make statuc.
625 (_initialize_vax_nat): Construct and add target vector.
626 * config/vax/vax.mh (NATDEPFILES): Remove infptrace.o and
627 inftarg.o. Add inf-ptrace.o.
628 * Makefile.in (vax-nat.o): Update dependencies.
629
630 * inf-ptrace.h: Update copyright year. Sync comment with
631 inf-ptrace.c.
632 (inf_ptrace_trad_target): New prototype.
633 * inf-ptrace.c: Update copyright year. Include "regcache.h" and
634 "gdb_assert.h"
635 (inf_ptrace_target): Add comment.
636 (inf_ptrace+register_u_offset): New variable.
637 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
638 (inf_ptrace_store_register, inf_ptrace_store_registers)
639 (inf_ptrace_trad_target): New functions.
640 * Makefile.in (inf-ptrace.o): Update dependencies.
641
642 2005-01-09 Mark Kettenis <kettenis@gnu.org>
643
644 * configure.ac: Provide prerequisite headers when checking
645 <link.h>, <sys/proc.h> and <sys/user.h>.
646 * configure: Regenerate.
647
648 2005-01-08 Mark Kettenis <kettenis@gnu.org>
649
650 * config/powerpc/obsd.mt (DEPRECATED_TM_FILE): Set to
651 tm-ppc-eabi.h instead of the removed tm-nbsd.h.
652
653 2005-01-07 Mark Kettenis <kettenis@gnu.org>
654
655 * config/ia64/tm-linux.h: Tweak comment. Update copyright year.
656 Don't include "tm-ia64.h".
657 * config/ia64/ia64.mt (DEPRECATED_TM_FILE): Remove.
658 * config/ia64/tm-ia64.h: Remove. Move contents ...
659 * ia64-tdep.h: ... here. Update copyright year.
660
661 2005-01-07 Andrew Cagney <cagney@gnu.org>
662
663 * configure.ac: Rename configure.in, require autoconf 2.59.
664 * configure: Re-generate.
665
666 * configure.tgt: Disable arm*-*-*, thumb*-*-*, strongarm*-*-*,
667 xscale-*-* and i[34567]86-*-netware* code adding rdi-share or nlm
668 to configdirs.
669
670 * configure.in: Replace configdirs with multiple references to
671 AC_CONFIG_SUBDIRS.
672 * configure: Re-generate.
673
674 2005-01-05 Andreas Schwab <schwab@suse.de>
675
676 * ia64-tdep.c: Include "osabi.h".
677 (native_find_global_pointer): Delete.
678 (ia64_find_global_pointer): Renamed from
679 generic_elf_find_global_pointer.
680 (FIND_GLOBAL_POINTER): Delete. Change all users to call
681 ia64_find_global_pointer instead.
682 (ia64_gdbarch_init): Call gdbarch_init_osabi. Remove references
683 to ia64_linux_sigcontext_register_address and
684 ia64_linux_write_pc. Don't set tdep->find_global_pointer.
685 (_initialize_ia64_tdep): Call gdbarch_register instead of
686 deprecated register_gdbarch_init.
687 (struct gdbarch_tdep): Remove find_global_pointer field and move
688 to ...
689 * ia64-tdep.h (struct gdbarch_tdep): ... here.
690 (ia64_linux_sigcontext_register_address): Remove declaration.
691 (ia64_linux_getunwind_table): Likewise.
692 (ia64_linux_write_pc): Likewise.
693 * ia64-linux-tdep.c: Include "osabi.h".
694 (ia64_linux_sigcontext_register_address): Make static.
695 (ia64_linux_write_pc): Likewise.
696 (ia64_linux_init_abi): New.
697 (_initialize_ia64_linux_tdep): New.
698 * Makefile.in (ia64-tdep.o, ia64-linux-tdep.o): Depend on
699 $(osabi_h).
700
701 2005-01-05 Kevin Buettner <kevinb@redhat.com>
702
703 * ia64-tdep.c (ia64_gdbarch_init): Eliminate dependency on
704 functions in ia64-aix-tdep.c.
705 * ia64-tdep.h (ia64_aix_sigcontext_register_address): Remove
706 function defined in ia64-aix-tdep.c.
707 * ia64-aix-tdep.c: Remove file.
708 * config/ia64/linux.mt (TDEPFILES): Remove ia64-aix-tdep.o from
709 this list.
710 * Makefile.in (ia64-aix-tdep.o): Delete.
711
712 2005-01-05 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
713
714 Committed by Andrew Cagney.
715 * ada-valprint.c, aix-thread.c, alpha-nat.c: I18n markup.
716 * alphabsd-nat.c, alphanbsd-tdep.c, amd64-linux-nat.c: I18n markup.
717 * amd64-tdep.c, amd64bsd-nat.c, amd64fbsd-nat.c: I18n markup.
718 * arch-utils.c, arm-linux-nat.c, arm-tdep.c: I18n markup.
719 * armnbsd-nat.c, armnbsd-tdep.c, auxv.c, avr-tdep.c: I18n markup.
720 * aix-thread.c (_initialize_aix_thread): Get rid of the
721 deprecated_add_show_from_set call.
722 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
723 * arm-tdep.c (_initialize_arm_tdep): Ditto.
724 * command.h (add_setshow_enum_cmd): Add arguments for returning
725 new list elements.
726 * cli/cli-decode.c (add_setshow_enum_cmd): Ditto.
727 * mips-tdep.c (_initialize_mips_tdep): Modify calls to
728 add_setshow_enum_cmd.
729
730 2005-01-04 Mark Kettenis <kettenis@gnu.org>
731
732 * configure.host (ia64-*-aix*): Remove.
733 * configure.tgt (ia64-*-aix*): Remove.
734 * config/ia64/aix.mh: Remove file.
735 * config/ia64/aix.mt: Remove file.
736 * config/ia64/tm-aix.h: Remove file.
737 * ia64-aix-nat.c: Remove file.
738 * Makefile.in (ia64-aix-nat.o): Remove dependency.
739
740 * config/m88k/obsd.mh (NATDEPFILES): Really remove inf-child.o.
741 Add back inf-ptrace.o.
742
743 2005-01-04 Andrew Cagney <cagney@gnu.org>
744
745 * version.in: Change format from 6.3.50_2005-01-04-cvs to
746 6.3.50.20050104-cvs.
747
748 2005-01-04 Andreas Schwab <schwab@suse.de>
749
750 * breakpoint.c (break_command_1): Always free err_msg before
751 returning when an exception was caught.
752
753 2005-01-01 Joel Brobecker <brobecker@gnat.com>
754
755 * hppa-tdep.c (prologue_inst_adjust_sp): Fix small confusion
756 in register number for addil instruction.
757
758 For older changes see ChangeLog-2004.
759 \f
760 Local Variables:
761 mode: change-log
762 left-margin: 8
763 fill-column: 74
764 version-control: never
765 End: