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