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