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