* observer.sh: Move comments in sed command to first column.
[external/binutils.git] / gdb / ChangeLog
1 2004-04-16  Joel Brobecker  <brobecker@gnat.com>
2
3         * observer.sh: Move comments in sed command to first column.
4
5 2004-04-16  Jason Molenda  (jmolenda@apple.com)
6
7         * frame.c: Minor typeo corrections in comments.
8
9 2004-04-16  Joel Brobecker  <brobecker@gnat.com>
10
11         * observer.c (observer_test_first_notification_function): Update
12         function profile.
13         (observer_test_second_notification_function): Likewise.
14         (observer_test_third_notification_function): Likewise.
15
16 2004-04-16  Mark Kettenis  <kettenis@gnu.org>
17
18         From Brian Ford <ford@vss.fsi.com>:
19         * i386-tdep.c (i386_coff_init_abi): New function.
20         * i386-tdep.h (i386_coff_init_abi): New prototype.      
21         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it.  Use correct
22         register number translation functions for DWARF and DWARF 2.
23
24 2004-04-16  Joel Brobecker  <brobecker@gnat.com>
25
26         * dwarf2read.c: Back out my previous change, it was incorrect.
27
28 2004-04-16  Daniel Jacobowitz  <drow@mvista.com>
29
30         * dwarf2read.c: Include "hashtab.h".
31         (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
32         has_namespace_info.
33         (struct partial_die_info): Add comments.  Use bitfields to reduce
34         memory footprint.  Add scope, scope_set, has_specification,
35         spec_offset, die_parent, die_child, and die_sibling.
36         (peek_die_abbrev): Add prototype.
37         (partial_read_comp_unit_head): New function, broken out from
38         dwarf2_build_psymtabs_hard.
39         (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
40         Use partial_read_comp_unit_head.  Initialize the CU and
41         comp_unit_obstack.  Update calls to read_partial_die and
42         scan_partial_symbols.  Use free_stack_comp_unit and
43         load_partial_dies.
44         (scan_partial_symbols): Change PDI to a pointer.  Use the child and
45         sibling pointers to walk partial DIEs.  Call fixup_partial_die.
46         Update calls to helper functions.  Remove NAMESPACE argument.
47         Update comments.
48         (partial_die_parent_scope, partial_die_full_name): New functions.
49         (add_partial_symbol): Remove namespace argument.  Update call to
50         pdi_needs_namespace.  Use partial_die_full_name.  Handle
51         DW_TAG_namespace.  Check has_namespace_info flag.
52         (pdi_needs_namespace): Remove NAMESPACE argument.  Just check the
53         tag.  Handle namespaces.
54         (add_partial_namespace, add_partial_enumeration): Simplify.
55         (guess_structure_name): New function, derived from
56         add_partial_structure.
57         (add_partial_structure): Remove.
58         (determine_class_name): Update comment.
59         (dwarf2_read_abbrevs): Set has_namespace_info flag.
60         (is_type_tag_for_partial, load_partial_dies): New functions.
61         (read_partial_die): Pass abbrev and abbrev_len as arguments.
62         Record specifications instead of following them immediately.
63         (find_partial_die_in_comp_unit, find_partial_die)
64         (fixup_partial_die, free_stack_comp_unit)
65         (hashtab_obstack_allocate, dummy_obstack_deallocate)
66         (partial_die_hash, partial_die_eq): New functions.
67         * Makefile.in (hashtab_h): Define.
68         (dwarf2read.o): Update dependencies.
69         (observer_inc, observer_h): Move to the correct section.
70
71 2004-04-15  Joel Brobecker  <brobecker@gnat.com>
72
73         * dwarf2read.c (dwarf2_attribute_true_p): New function.
74         (die_is_declaration): Use the function above. Add comment.
75
76 2004-04-15  Joel Brobecker  <brobecker@gnat.com>
77
78         * dwarf2read.c (read_structure_scope): Identify stub types
79         using die_is_declaration() only.
80
81 2004-04-15  Roland McGrath  <roland@redhat.com>
82
83         * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
84         argument instead of NAME.
85         (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
86         in call to symbol_file_add_with_addrs_or_offsets.
87         (build_addr_info): New function, helper for ...
88         (symbol_file_add_from_memory): New function.
89         (add_symbol_file_from_memory_command): New function using that.
90         (_initialize_symfile): Register it for add-symbol-file-from-memory.
91         (pre_add_symbol_hook): Add const to argument type.
92         * symfile.h (symbol_file_add_from_memory): Declare it.
93
94 2004-04-15  Mark Kettenis  <kettenis@gnu.org>
95
96         * NEWS (New native configurations): Mention OpenBSD/vax.
97         * configure.host: Add vax-*-openbsd*.
98         * config/vax/obsd.mh: New file.
99         * config/vax/nm-obsd.h: New file.
100
101         * vax-tdep.c: Include "regset.h".
102         (vax_supply_gregset): New function.
103         (vax_gregset): New variable.
104         (vax_regset_from_core_section): New function.
105         (vax_gdbarch_init): Set regset_from_core_section.
106         * Makefile.in (vax-tdep.o): Update dependencies.
107
108 2004-04-15  Andrew Cagney  <cagney@redhat.com>
109
110         * observer.c (normal_stop_subject, observer_notify_normal_stop)
111         (observer_normal_stop_notification_stub)
112         (observer_attach_normal_stop, observer_detach_normal_stop):
113         Delete, replaced by #include "observer.inc".
114         * infrun.c (normal_stop): Pass "stop_bpstat" to
115         observer_notify_normal_stop.
116         * Makefile.in (observer_inc): Define.
117         (observer.o): Update dependencies.
118         (observer.h, observer.inc): New rules.
119         * observer.h: Delete file.
120         * observer.sh: New file.
121
122 2004-04-15  Mark Kettenis  <kettenis@gnu.org>
123
124         * vax-tdep.c (vax_frame_cache): Fix typo.
125
126 2004-04-14  Mark Kettenis  <kettenis@gnu.org>
127
128         * NEWS (New native configurations): Mention NetBSD/vax.
129         * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
130         * config/vax/nbsdelf.mh: New file.
131         * config/vax/nbsdaout.mh: New file.
132         * config/vax/nm-nbsd.h: New file.
133         * config/vax/nm-nbsdaout.h: New file.
134
135         * vaxnbsd-tdep.c: New file.
136         * Makefile.in (vaxnbsd-tdep.o): New dependency.
137         * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
138         * config/vax/nbsd.mt: New file.
139         * config/vax/tm-nbsd.h: New file.
140
141         * Makefile.in (vaxbsd-nat.o): New dependency.
142
143         * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
144         * vax-tdep.c (vax_store_arguments): Remove struct_return and
145         struct_addr arguments.  Don't push return value address.
146         (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
147         arguments to vax_store_arguments.  Store return value address in
148         R1.
149         (vax_store_struct_return, vax_extract_return_value)
150         (vax_store_return_value): Remove functions.
151         (vax_return_value): New function.
152         (vax_gdbarch_init): Set return value.  Don't set
153         deprecated_store_struct_return, deprecated_extract_struct_return
154         and deprecated_store_return_value.
155
156 2004-04-14  Andreas Schwab  <schwab@suse.de>
157
158         * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
159         value buffer.
160         * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
161
162 2004-04-14  Mark Kettenis  <kettenis@gnu.org>
163
164         * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
165         (vax_unwind_dummy_id): New functions.
166         (vax_push_dummy_frame, vax_pop_frame): Remove functions.
167         (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
168         variables.
169         (vax_fix_call_dummy): Remove function.
170         (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
171         Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
172         call_dummy_location, deprecated_call_dummy_words,
173         deprecated_sizeof_call_dummy_words,
174         deprecated_call_dummy_breakpoint_offset,
175         deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
176         and deprecated_dummy_write_sp.
177
178 2004-04-13  David Carlton  <carlton@kealia.com>
179
180         * MAINTAINERS: Move myself to "paper trail" section.
181
182 2004-04-12  Mark Kettenis  <kettenis@gnu.org>
183
184         * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
185         "trad-frame.h".
186         (vax_frame_init_saved_regs): Remove function.
187         (vax_sigtramp_saved_pc): Remove function.
188         (vax_frame_saved_pc): Remove function.
189         (vax_frame_args_address): Remove function.
190         (vax_frame_num_args): Rewrite.
191         (vax_frame_chain): Remove function.
192         (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
193         VAX_FP_REGNUM.
194         (vax_pop_frame): Likewise.
195         (vax_saved_pc_after_call): Remove function.
196         (struct vax_frame_cache): New structure.
197         (vax_frame_cache): New function.
198         (vax_frame_this_id): New function.
199         (vax_frame_prev_register): New function.
200         (vax_frame_unwind): New variable.
201         (vax_frame_sniffer): New function.
202         (vax_frame_base_address): New function.
203         (vax_frame_args_address): New function.
204         (vax_frame_base): New variable.
205         (vax_unwind_pc): New function.
206         (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
207         deprecated_fp_regnum, deprecated_saved_pc_after_call,
208         deprecated_frame_chain, deprecated_frame_saved_pc,
209         deprecated_frame_args_address and
210         deprecated_frame_init_saved_regs.
211         * Makefile.in (vax-tdep.o): Update dependencies.
212
213         * vaxbsd-nat.c: New file.
214
215         * vax-tdep.h: Update copyright year.  Adjust comments.
216         (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
217         VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
218         (vax_regnum): New enum.  Replacing...
219         (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
220         (VAX_PS_REGNUM): ... these removed macros.
221         * vax-tdep.c (vax_register_name): Remove prototype.
222         (vax_register_name): Reorganize somewhat.  Use ARRAY_SIZE.
223         (vax_register_byte, vax_register_raw_size,
224         vax_register_virtual_size, vax_register_virtual_type): Remove
225         functions.
226         (vax_register_type): New function.
227         (vax_breakpoint_from_pc): Reorganize.
228         (vax_gdbarch_init): Set register_type.  Don't set
229         deprecated_register_size, deprecated_register_bytes,
230         deprecated_register_byte, deprecated_register_raw_size,
231         deprecated_max_register_raw_size,
232         deprecated_register_virtual_size,
233         deprecated_max_register_virtual_size and
234         deprecated_register_virtual_type.  Add comment on stack direction.
235
236 2004-04-11  Mark Kettenis  <kettenis@gnu.org>
237
238         * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
239         AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
240         AMD64_FS_REGNUM and AMD64_GS_REGNUM.
241
242 2004-04-10  Randolph Chung  <tausq@debian.org>
243
244         * MAINTAINERS (write after approval): Add myself.
245
246 2004-04-07  Randolph Chung  <tausq@debian.org>
247
248         * hppa-tdep.c (hppa_inner_than): Remove.
249         (is_pa_2): Remove unused static variable.
250         (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
251
252 2004-03-10  Paul N. Hilfinger  <Hilfinger@gnat.com>
253
254         * language.h (language_defn): Add new la_post_parser field.
255         * parser-defs.h (null_post_parser): New declaration (default for
256         la_post_parser).
257
258         * parse.c (parse_exp_1): Move code to parse_exp_in_context and
259         insert call to that function.
260         (parse_exp_in_context): New function, including code formerly in
261         parse_exp_1.  Calls language-dependent post-parser after
262         prefixification.
263         (parse_expression_in_context): New exported function.
264         (null_post_parser): New definition.
265         * expression.h (parse_expression_in_context): Add declaration.
266
267         * p-lang.c (pascal_language_defn): Add trivial post-parser.
268         * c-lang.c (c_language_defn): Ditto.
269         (cplus_language_defn): Ditto.
270         (asm_language_defn): Ditto.
271         (minimal_language_defn): Ditto.
272         * f-lang.c (f_language_defn): Ditto.
273         * jv-lang.c (java_language_defn): Ditto.
274         * language.c (unknown_language_defn): Ditto.
275         (auto_language_defn): Ditto.
276         (local_language_defn): Ditto.
277         * m2-lang.c (m2_language_defn): Ditto.
278         * scm-lang.c (scm_language_defn): Ditto.
279         * obj-lang.c (objc_language_defn): Ditto.
280
281 2004-04-10  Mark Kettenis  <kettenis@gnu.org>
282
283         * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
284         (amd64nbsd_mcontext_addr): New function.
285         (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
286         amd64nbsd_mcontext_addr.  Directly initialize TDEP->sc_reg_offset
287         with amd64nbsd_r_reg_offset, instead of building it on the fly.
288
289         * corelow.c (core_xfer_partial): Fix coding standards violation.
290         Add support for TARGET_OBJECT_WCOOKIE.
291
292         * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
293         deprecated_pc_in_sigtramp.
294         * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
295         * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
296         * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
297         * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
298         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
299         * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
300         * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
301
302         * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
303         i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
304         Fix typo.
305
306         * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
307         I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
308         (amd64_collect_fxsave): Likewise.
309
310         * i386-sol2-tdep.c: Include "gdb_string.h".
311         (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
312         name.
313         * Makefile.in (i386-sol2-tdep.o): Update dependencies.
314
315 2004-04-10  Mark Kettenis  <kettenis@gnu.org>
316
317         * i386-sol2-tdep.c: Include "solib-svr4.h".
318         (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
319         * Makefile.in (i386-sol2-tdep.o): Update dependencies.
320         * config/i386/tm-i386sol2.h: Include :solib.h".
321         * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
322         solib-svr4.o and solib-legacy.o.
323         * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
324         solib-svr4.o.
325
326 2004-04-09  Mark Kettenis  <kettenis@gnu.org>
327
328         * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
329         whether a register is supplied by PTRACE_GETFPREGS.
330         (store_inferior_registers): Likewise.
331         * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
332         whether a register is supplied by PT_GETFPREGS.
333         (store_inferior_registers): Likewise.
334
335         * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
336         * config/i386/linux64.mt (TDEPFILES): Likewise.
337
338         * i386-linux-nat.c: Update copyrigth year.  Tweak comment.
339
340         * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
341         sigtramp_p member of `struct gdbarch_tdep'.  Also check whether
342         the program counter is in the range specified by `struct
343         gdbarch_tdep'.
344         * amd64-linux-tdep.c: Include "symtab.h".
345         (amd64_linux_pc_in_sigtramp): Remove function.
346         (amd64_linux_sigtramp_p): New function.
347         (amd64_linux_init_abi): Initialize TDEP->sigtramp_p.  Don't set
348         deprecated_pc_in_sigtramp.
349         * amd64nbsd-tdep.c: Include "symtab.h".
350         (amd64nbsd_sigtramp_p): New function.
351         (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p.  Don't set
352         deprecated_pc_in_sigtramp.
353         * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h".  Add a
354         few comments.
355         (amd64obsd_pc_in_sigtramp): Remove function.
356         (amd64obsd_sigtramp_p): New function.
357         (amd64obsd_init_abi): Initialize TDEP->sigtramp_p.  Don't set
358         deprecated_pc_in_sigtramp.
359         * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
360         (i386bsd_pc_ins_sigtramp): Remove prototype.
361         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
362         * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
363         sigtramp_p member of `struct gdbarch_tdep'.  Also check whether
364         the program counter is in the range specified by `struct
365         gdbarch_tdep'.
366         (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
367         (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
368         (i386_go32_pc_in_sigtramp): Remove function.
369         (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
370         Initialize TDEP->sigtramp_p.
371         (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
372         (i386_gdbarch_init): Initialize TDEP->sigtramp_p.  Don't set
373         deprecated_pc_in_sigtramp.
374         * i386-linux-tdep.c: Adjust comments.
375         (i386_linux_pc_in_sigtramp): Remove function.
376         (i386_linux_sigtramp_p): New function.
377         (i386_linux_init_abi): Initialize TDEP->sigtramp_p.  Don't set
378         deprecated_pc_in_sigtramp.
379         * i386-nto-tdep.c: Update copyright year.
380         (i386nto_pc_in_sigtramp): Remove function.
381         (i386nto_sigtramp_p): New function.
382         (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
383         SP_REGNUM.
384         (i386nto_init_abi): Initialize TDEP->sigtramp_p.  Don't set
385         deprecated_pc_in_sigtramp.
386         * i386-sol2-tdep.c: Update copyright year.
387         (i386_sol2_pc_in_sigtramp): Remove function.
388         (i386_sol2_sigtramp_p): New function.
389         (i386_sol2_init_abi): Initialize TDEP->sigtramp_p.  Don't set
390         deprecated_pc_in_sigtramp.
391         * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
392         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
393         (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
394         deprecated_sigtramp_start and deprecated_sigtramp_end.
395         * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
396         (i386nbsd_pc_in_sigtramp): Remove function.
397         (i386nbsd_sigtramp_p): New function.
398         (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
399         deprecated_sigtramp_start, deprecated_sigtramp_end.  Initialize
400         TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
401         * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
402         (i386obsd_pc_in_sigtramp): Remove function.
403         (i386obsd_sigtramp_p): New function.
404         (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
405         functions.
406         (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
407         deprecated_sigtramp_start, deprecated_sigtramp_end.  Initialize
408         TDEP->sigtramp_p.
409         * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
410         amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
411         dependencies.
412
413         * config/i386/i386aout.mt: Remove file.
414
415         * configure.tgt: Remove i[34567]86-*-go32*,
416         i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
417         and i[34567]86-*-isc*.  Set gdb_target to i386 for
418         i[34567]86-*-netware* and i[34567]86-*-*.
419         * config/i386/i386.mt: New file.
420         * config/i386/embed.mt: Remove file.
421         * config/i386/go32.mt: Remove file.
422         * config/i386/i386nw.mt: Remove file.
423         * config/i386/i386v.mt: Remove file.
424         * config/i386/tm-go32.h: Remove file.
425
426         * tui/tui-hooks.c: Include "readline/readline.h" after
427         "gdb_curses.h" instead of before.
428         * tui/tui-io.c: Likewise.
429
430         * tui/tui.c: Fix typo in comment.
431
432         * sparc64-tdep.c (sparc_address_from_register): Remove function.
433
434 2004-04-08  Andrew Cagney  <cagney@redhat.com>
435
436         * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
437         (deprecated_exception_support_initialized): Declare.
438         * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
439         (initialize_hp_cxx_exception_support)
440         (child_enable_exception_callback): Update.
441         * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
442         (deprecated_exception_support_initialized): Rename
443         deprecated_exception_catchpoints_are_fragile and
444         deprecated_exception_support_initialized.
445         (breakpoint_init_inferior, breakpoint_init_inferior): Update.
446
447         * symtab.c (deprecated_hp_som_som_object_present): Rename
448         hp_som_som_object_present.
449         * symtab.h (deprecated_hp_som_som_object_present): Declare.
450         * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
451         Update.  Delete extern declaration.
452         * valops.c (hp_som_som_object_present): Ditto.
453         * parse.c (deprecated_hp_som_som_object_present)
454         (parse_nested_classes_for_hpacc): Ditto.
455         * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
456         * hppa-hpux-tdep.c (hp_som_som_object_present)
457         (initialize_hp_cxx_exception_support): Ditto.
458         * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
459         * cp-valprint.c (hp_som_som_object_present)
460         (cp_print_class_method): Ditto.
461         * c-typeprint.c (hp_som_som_object_present):
462         (c_type_print_base): Ditto.
463         * c-exp.y (hp_som_som_object_present): Ditto.
464
465 2004-04-08  Andrew Cagney  <cagney@redhat.com>
466
467         * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
468         (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
469         (frame_unwind_find_by_frame): Re-implement the unwind code so
470         that it can both prepend and append sniffers.  Replace
471         frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
472         * tramp-frame.c (tramp_frame_append): Use
473         frame_unwind_prepend_unwinder.
474         * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
475         frame_unwind_register_unwinder.
476         * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
477         tramp_frame_append.
478         * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
479         * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
480         (mips_linux_init_abi): Update.
481
482 2004-04-08  Kevin Buettner  <kevinb@redhat.com>
483
484         * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
485         (ELF_FPREGSET_SIZE):  Delete constants formerly used in core
486         file support.
487
488 2004-04-07  Kevin Buettner  <kevinb@redhat.com>
489
490         * ia64-tdep.c (elf.h): Don't include.
491         (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
492
493 2004-04-07  Jason Molenda  (jmolenda@apple.com)
494
495         * frame.h: Typeo corrections in comments.
496
497 2004-04-07  Jim Blandy  <jimb@redhat.com>
498
499         * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
500         %esp and %ebp
501
502 2004-04-07  Mark Kettenis  <kettenis@gnu.org>
503
504         * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
505         * config/sparc/linux64.mt (TDEPFILES): Likewise.
506         * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
507         * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
508         and solib-legacy.o.
509         * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
510         solib-svr4.o.
511         * config/sparc/tm-sol2.h: Update copyright year.  Include
512         "solib.h".
513
514         * sparc-sol2-tdep.c: Update copyright year.  Include
515         "solib-svr4.h".
516         (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
517         * sparc64-sol2-tdep.c: Include "solib-svr4.h".
518         (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
519         * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
520         dependencies.
521
522 2004-04-06  Andrew Cagney  <cagney@redhat.com>
523
524         * infttrace.c: Include "infttrace.h".
525         * infttrace.h: Include "target.h".
526         * Makefile.in (infttrace_h): Update.
527         (infttrace.o): Update.
528
529 2004-04-06  Andrew Cagney  <cagney@redhat.com>
530
531         * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
532         (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
533         move extern declarations from here ...
534         * infttrace.h: ... to here.
535         * Makefile.in (hppah-nat.o): Update dependencies.
536
537         * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
538         (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
539         * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
540         (hppa_breakpoint_from_pc): Delete.
541
542         * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
543
544 2004-04-05  Andrew Cagney  <cagney@redhat.com>
545
546         * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
547         <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
548         <sys/file.h>.
549
550 2004-04-06  Randolph Chung  <tausq@debian.org>
551
552         Committed by Andrew Cagney (mechanical change).
553         * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
554         exception_catchpoints_are_fragile, find_stub_with_shl_get,
555         cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
556         child_enable_exception_callback, current_ex_event,
557         null_symtab_and_line, child_get_current_exception_event,
558         HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
559         HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
560         HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
561         hp_cxx_exception_support_initialized, eh_notify_hook_addr,
562         eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
563         eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
564         Move hpux-specific definitions ...
565         * hppa-hpux-tdep.c: ... to here.
566
567 2004-04-05  Andrew Cagney  <cagney@redhat.com>
568
569         * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
570         skip_prologue_using_sal.
571
572 2004-04-05  Andrew Cagney  <cagney@redhat.com>
573
574         * config/i386/tm-i386.h: Delete file.
575         * config/i386/tm-vxworks.h: Update copyright, do not include
576         "tm-i386.h".
577         * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
578         * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
579         * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
580         * config/i386/ncr3000.mt (TM_FILE): Delete.
581         * config/i386/interix.mt (TM_FILE): Delete.
582         * config/i386/i386v.mt (TM_FILE): Delete.
583         * config/i386/i386nw.mt (TM_FILE): Delete.
584         * config/i386/i386gnu.mt (TM_FILE): Delete.
585         * config/i386/i386aout.mt (TM_FILE): Delete.
586         * config/i386/embed.mt (TM_FILE): Delete.
587
588 2004-04-05  Kevin Buettner  <kevinb@redhat.com>
589
590         * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
591         (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
592         (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
593         (accg7_regnum): New constants.
594         (last_spr_regnum, last_pseudo_regnum): Update.
595         * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
596         accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
597         (frv_pseudo_register_read, frv_pseudo_register_write): Add support
598         for accg registers.
599         (frv_register_sim_regno): Update spr_map[].
600
601 2004-04-04  Andrew Cagney  <cagney@redhat.com>
602
603         * config/mips/xm-riscos.h: Delete.
604         * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
605         * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
606         * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
607         * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
608         * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
609         * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
610         * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
611         * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
612         * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
613         * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
614         * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
615         * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
616         * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
617         * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
618         * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
619         * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
620         * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
621         * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
622         * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
623         * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
624         * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
625         * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
626         * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
627         * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
628         * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
629         * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
630
631         * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
632         m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
633         m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
634         * configure.host: Remove m680[01]0-sun-sunos3*,
635         m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
636         m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
637         m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
638         mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
639         mips-*-riscos*.
640         * NEWS: Mention removed systems.
641
642 2004-04-04  Andrew Cagney  <cagney@redhat.com>
643
644         GDB 6.1 release created from 6.1 branch.
645
646 2004-04-04  Andrew Cagney  <cagney@redhat.com>
647
648         * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
649         * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
650         * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
651
652         * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
653         * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
654         * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
655
656 2004-04-03  Jim Blandy  <jimb@redhat.com>
657
658         * MAINTAINERS: Chris Faylor has changed employers; add him to
659         "paper trail" section, and update his E-mail address.
660
661 2004-04-03  Andrew Cagney  <cagney@redhat.com>
662
663         * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
664         generic dummy frames.
665         * dummy-frame.c: Update copyright.
666         (dummy_frame_sniffer): Delete check for generic dummy frames.
667
668         * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
669         * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
670         (REG_PARM_STACK_SPACE): Delete.
671         * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
672         Inline reference to REG_PARM_STACK_SPACE.
673
674         * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
675         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
676         (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
677         (FRAME_BASE_BEFORE_SIGTRAMP)
678         (hppa32_hpux_frame_base_before_sigtramp)
679         (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
680         * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
681         (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
682         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
683         (FRAME_BASE_BEFORE_SIGTRAMP)
684         (hppa64_hpux_frame_base_before_sigtramp)
685         (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
686
687 2004-04-03  Andrew Cagney  <cagney@redhat.com>
688
689         * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
690
691 2004-04-02  Andrew Cagney  <cagney@redhat.com>
692
693         * sh64-tdep.c (sh64_init_extra_frame_info): Replace
694         DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
695         * dummy-frame.h: Delete out-of-date comments.
696         * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
697         * gdbarch.h, gdbarch.c: Re-generate.
698
699 2004-04-02  Joel Brobecker  <brobecker@gnat.com>
700
701         Committed by Andrew Cagney <cagney@redhat.com>.
702         * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
703         into account an instruction saving a register if we have already
704         seen an earlier instruction saving that same register.
705
706 2004-04-02  Andrew Cagney  <cagney@redhat.com>
707
708         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
709         * gdbarch.h, gdbarch.c: Re-generate.
710         * frame.c (legacy_get_prev_frame): Delete references to
711         DEPRECATED_INIT_FRAME_PC_FIRST.
712
713         * infrun.c (pc_in_sigtramp): Delete function.
714         (check_sigtramp2): Inline call to pc_in_sigtramp, use
715         get_frame_type.
716
717 2004-04-02  Andrew Cagney  <cagney@redhat.com>
718
719         * infrun.c (handle_step_into_function): Delete code conditional on
720         legacy_frame_p.
721         (handle_inferior_event, step_over_function): Ditto.
722
723 2004-04-02  Andrew Cagney  <cagney@redhat.com>
724
725         * frame.c (get_prev_frame_1): Exclude signal trampolines from the
726         "previous frame inner to this frame" test.
727
728 2004-04-02  Andrew Cagney  <cagney@redhat.com>
729
730         * frame.c (safe_frame_unwind_memory): New function.
731         * frame.h (safe_frame_unwind_memory): Declare.  Update description
732         of /safe_/ methods.
733         * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
734         "next_frame".  Use safe_frame_unwind_memory.
735         (tramp_frame_sniffer): Update call to tramp_frame_start.
736
737 2004-04-01  Daniel Jacobowitz  <drow@mvista.com>
738
739         * dwarf2read.c (dwarf2_objfile_data_key): New.
740         (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
741         (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
742         (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
743         (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
744         (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
745         (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
746         (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
747         Remove variables.
748         (struct dwarf2_pinfo): Remove per-objfile members.  Update comments.
749         (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
750         (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
751         (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
752         (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
753         (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
754         Remove macros.
755         (dwarf2_has_info): Take an objfile argument.  Allocate per-objfile
756         data.
757         (dwarf2_locate_sections, dwarf2_build_psymtabs)
758         (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
759         (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
760         (read_partial_die, read_full_die, read_indirect_string)
761         (dwarf_decode_line_header, dwarf_decode_macros)
762         (dwarf2_symbol_mark_computed): Remove use of removed macros.
763         Update uses of removed variables.
764         (psymtab_to_symtab_1): Restore per-objfile data pointer.  Remove use
765         of removed macros.
766         (_initialize_dwarf2_read): New function.
767         * symfile.h (dwarf2_has_info): Update prototype.
768         * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
769         * elfread.c (elf_symfile_read): Likewise.
770
771 2004-04-01  Jim Blandy  <jimb@redhat.com>
772
773         * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
774         function for register numbers on all the rs6000-derived targets.
775         (rs6000_gdbarch_init): Don't register a separate
776         gdbarch_dwarf2_reg_to_regnum function for the E500.  Use
777         rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
778         variants.
779
780         * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
781         numbering.
782
783 2004-04-01  Paul N. Hilfinger  <Hilfinger@gnat.com>
784
785         * valarith.c: Update copyright notice.
786         (value_add): Handle range types.
787         (value_sub): Ditto.
788         (value_equal): Ditto.
789         (value_less): Ditto.
790         (value_neg): Ditto.
791         (value_complement): Ditto.
792         (value_binop): Simplify slightly by using is_integral_type and
793         eliminiating unnecessary COERCE_ENUMs.
794
795 2004-03-31  Andrew Cagney  <cagney@redhat.com>
796
797         * frame.h (frame_unwind_id): Declare.
798         * frame.c (frame_unwind_id): New function.
799         (get_prev_frame_1): New function.
800         (frame_debug_got_null_frame): New function.
801         (get_prev_frame): Use frame_debug_got_null_frame.  Move unwind
802         code proper to prev_frame, update description.
803         * infrun.c (step_over_function): Use frame_unwind_id.
804
805 2004-04-31  J. Brobecker  <brobecker@gnat.com>
806
807         * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
808         (hppa64_push_dummy_call): Likewise.
809
810 2004-03-30  Jim Blandy  <jimb@redhat.com>
811
812         From Ulrich Weigand:
813         * utils.c (query): Do not use a va_list variable multiple times.
814
815 2004-03-29  Daniel Jacobowitz  <drow@mvista.com>
816
817         * Makefile.in (linux_nat_h): Update dependencies.
818         * configure.in: Check for <gnu/libc-version.h>.
819         * configure: Regenerate.
820         * config.in: Regenerate.
821         * linux-nat.h: Include "target.h".  Add waitstatus field to
822         struct lwp_info.
823         * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
824         (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
825         to.
826         (lin_lwp_handle_extended): New function.  Handle clone events.
827         (wait_lwp): Use lin_lwp_handle_extended.  Update comment about
828         thread exit events.
829         (child_wait): Handle clone events.
830         (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
831         * linux-nat.c (linux_enable_event_reporting): Turn on
832         PTRACE_O_TRACECLONE.
833         (linux_handle_extended_wait): Handle clone events.
834         * thread-db.c: Include <gnu/libc-version.h>.
835         (struct private_thread_info): Add dying flag.
836         (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
837         higher.
838         (attach_thread): Update comments.  Handle dying threads.
839         (detach_thread): Set the dying flag.
840         (check_event): Always call attach_thread.
841
842 2004-03-29  Daniel Jacobowitz  <drow@mvista.com>
843
844         * mips-tdep.c (mips_pdr_data): New.
845         (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
846         (_initialize_mips_tdep): Initialize mips_pdr_data.
847
848 2004-03-29  Corinna Vinschen  <vinschen@redhat.com>
849
850         * minsyms.c (install_minimal_symbols): Move dropping leading
851         char from linkage name from here...
852         (prim_record_minimal_symbol_and_info): ...to here.  Simplify
853         test for "__gnu_compiled*" symbols.
854
855 2004-03-28  Jim Blandy  <jimb@redhat.com>
856
857         * rs6000-tdep.c (skip_prologue): Recognize moves from argument
858         registers to temp register r0 and byte stores as prologue
859         instructions.
860
861 2004-03-28  Andrew Cagney  <cagney@redhat.com>
862
863         * PROBLEMS (Stack backtraces): Rewrite.  Remove reference to
864         arm*-*-*.
865
866 2004-03-28  Stephane Carrez  <stcarrez@nerim.fr>
867
868         * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
869         and switch the layout to force a display of register window.
870
871 2004-02-26  J. Brobecker  <brobecker@gnat.com>
872
873         * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
874         of the INTEGER class.
875
876 2004-03-26  Jim Blandy  <jimb@redhat.com>
877
878         * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
879         bytes long on PPC GNU/Linux.
880
881 2004-03-26  David Carlton  <carlton@kealia.com>
882
883         * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
884
885 2004-03-25  Andrew Cagney  <cagney@redhat.com>
886
887         * PROBLEMS: Add general section titles, remove references to
888         specific releases.
889
890 2004-03-25  Daniel Jacobowitz  <drow@mvista.com>
891
892         * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
893         INT_REGISTER_SIZE.
894         (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
895         FP_REGISTER_VIRTUAL_SIZE.
896         * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
897         of DEPRECATED_REGISTER_RAW_SIZE.
898         (arm_register_type): Add gdbarch argument.
899         (arm_register_raw_size, arm_register_virtual_size): Delete.
900         (arm_register_byte, arm_extract_return_value)
901         (arm_store_return_value, arm_get_longjmp_target): Update references
902         to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
903         (arm_gdbarch_init): Likewise.  Don't set
904         deprecated_register_raw_size, deprecated_register_virtual_size,
905         deprecated_max_register_raw_size,
906         deprecated_max_register_virtual_size, or
907         deprecated_max_register_virtual_type.  Do set register_type.
908         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
909         (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
910         (FP_REGISTER_VIRTUAL_SIZE): Delete.
911         (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
912         (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
913         * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
914         INT_REGISTER_SIZE.
915         * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
916         (remote_rdp_store_register): Likewise.
917
918 2004-03-24  Daniel Jacobowitz  <drow@mvista.com>
919
920         * Makefile.in (mips-linux-tdep.o): Update dependencies.
921         * mips-tdep.c (mips_gdbarch_init): Move frame predicates
922         to after osabi initialization.
923         * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
924         (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
925         functions.
926         (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
927         (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
928         variables.
929         (mips_linux_init_abi): Append signal trampoline unwinders.
930
931 2004-03-24  Andrew Cagney  <cagney@redhat.com>
932
933         * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
934         * tramp-frame.c: Include "gdb_assert.h".
935         (tramp_frame_start): Use TRAMP_SENTINEL_INSN.  Use ULONGEST and
936         correct sizeof.
937         (tramp_frame_append): Validate the tramp frame's instructions.
938         * Makefile.in (tramp-frame.o): Update dependencies.
939
940 2004-03-23  Andrew Cagney  <cagney@redhat.com>
941
942         * trad-frame.h (trad_frame_set_reg_addr): Declare.
943
944 2004-03-23  Andrew Cagney  <cagney@redhat.com>
945
946         * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
947         Nasser as past testsuite/lib/ (and other) maintainers.
948
949 2004-03-23  Daniel Jacobowitz  <drow@mvista.com>
950
951         * infcmd.c (attach_command): Reread symbols if we already have
952         an exec file.
953
954 2004-03-23  Andrew Cagney  <cagney@redhat.com>
955
956         * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
957
958 2004-03-23  Andrew Cagney  <cagney@redhat.com>
959
960         * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
961         * gdbarch.h, gdbarch.c: Re-generate.
962         * i386obsd-tdep.c (i386obsd_init_abi): Update.
963         * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
964         * i386bsd-tdep.c (i386bsd_init_abi): Update.
965         * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
966         (DEPRECATED_SIGTRAMP_START): Update.
967         * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
968         (DEPRECATED_SIGTRAMP_START): Update.
969         * blockframe.c (find_pc_sect_partial_function): Update.
970         * arch-utils.c (legacy_pc_in_sigtramp): Update.
971
972 2004-03-23  Daniel Jacobowitz  <drow@mvista.com>
973
974         * remote.c (remote_open_1): Reopen the exec file and reread symbols
975         if necessary.
976
977 2004-03-23  Andrew Cagney  <cagney@redhat.com>
978
979         * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
980         predicate, deprecate.
981         * gdbarch.h, gdbarch.c: Re-generate.
982         * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
983         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
984         * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
985         * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
986         * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
987         * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
988         * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
989         * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
990         * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
991         * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
992         * blockframe.c (find_pc_partial_function): Update.
993         * breakpoint.c (bpstat_what): Update.
994         * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
995         * frv-linux-tdep.c (frv_linux_init_abi): Update.
996         * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
997         * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
998         * i386-interix-tdep.c (i386_interix_init_abi): Update.
999         * i386-linux-tdep.c (i386_linux_init_abi): Update.
1000         * i386-nto-tdep.c (i386nto_init_abi): Update.
1001         * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
1002         * i386-tdep.c (i386_sigtramp_frame_sniffer)
1003         (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
1004         * i386bsd-tdep.c (i386bsd_init_abi): Update.
1005         * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
1006         * i386obsd-tdep.c (i386obsd_init_abi): Update.
1007         * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
1008         * infrun.c (pc_in_sigtramp): Update.
1009         * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
1010         * m68klinux-tdep.c (m68k_linux_init_abi): Update.
1011         * mips-tdep.c (mips_gdbarch_init): Update.
1012         * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
1013         * ppc-linux-tdep.c: Update comment.
1014         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
1015         * shnbsd-tdep.c (shnbsd_init_abi): Update.
1016         * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
1017         * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
1018         * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
1019         * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
1020         * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
1021         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
1022         * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
1023         * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
1024
1025 2004-03-23  Andrew Cagney  <cagney@redhat.com>
1026
1027         * tramp-frame.h, tramp-frame.h: New files.
1028         * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
1029         Update rules to include "tramp-frame.h" and "tramp-frame.c".
1030
1031         * Makefile.in: Update all dependencies.
1032
1033 2004-03-23  Andrew Cagney  <cagney@redhat.com>
1034
1035         * Makefile.in (trad_frame_h): Add $(frame_h).
1036         * trad-frame.h: Update copyright.  Include "frame.h".
1037         (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
1038         (trad_frame_set_id, trad_frame_get_id): Declare.
1039         (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
1040         * trad-frame.c: Update copyright.
1041         (struct trad_frame_cache): Define.
1042         (trad_frame_cache_zalloc): New function.
1043         (trad_frame_set_id, trad_frame_get_id): New functions.
1044         (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
1045
1046 2004-03-22  Andrew Cagney  <cagney@redhat.com>
1047
1048         * s390-tdep.c (struct s390_stub_unwind_cache): Rename
1049         s390_pltstub_unwind_cache.
1050         (s390_stub_frame_unwind_cache): Rename
1051         s390_pltstub_frame_unwind_cache.
1052         (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
1053         (s390_stub_frame_prev_register): Rename
1054         s390_pltstub_frame_prev_register.
1055         (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
1056         (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
1057
1058         From Ulrich Weigand:
1059         * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
1060         pointer calls like PLT calls.
1061
1062 2004-03-22  Daniel Jacobowitz  <drow@mvista.com>
1063
1064         * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
1065         PC rather than the partial function start address.  Use the start
1066         address to sanity check the found PDR.
1067
1068 2004-03-22  Daniel Jacobowitz  <drow@mvista.com>
1069
1070         * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
1071         linux_handle_extended_wait.
1072
1073 2004-03-22  Andrew Cagney  <cagney@redhat.com>
1074
1075         * rs6000-tdep.c (frame_initial_stack_address): Delete unused
1076         function.
1077
1078         * frame.h (generic_pop_current_frame): Delete declaration.
1079         (deprecate_pop_dummy_frame): Deprecate
1080         generic_pop_dummy_frame.
1081         * dummy-frame.c (deprecated_pop_dummy_frame): Update.
1082         (generic_pop_current_frame): Delete function.
1083         * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
1084         generic_pop_current_frame.
1085         * v850-tdep.c (v850_pop_frame): Update.
1086         * mcore-tdep.c (mcore_pop_frame): Update.
1087         * sh64-tdep.c (sh64_pop_frame): Update.
1088         * h8300-tdep.c (h8300_pop_frame): Update.
1089
1090 2004-03-22  Andrew Cagney  <cagney@redhat.com>
1091
1092         * frame.h (deprecated_pc_in_call_dummy): Rename
1093         generic_pc_in_call_dummy.
1094         * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
1095         * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
1096         generic_pc_in_call_dummy.
1097         (pc_in_dummy_frame): Make static.
1098         * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
1099         * gdbarch.h, gdbarch.c: Re-generate.
1100         * dummy-frame.c (dummy_frame_sniffer): Simplify.
1101         * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
1102         (legacy_get_prev_frame): Ditto.
1103         * inferior.h: Delete reference to generic_pc_in_call_dummy in
1104         comment.
1105
1106 2004-03-21  Andrew Cagney  <cagney@redhat.com>
1107
1108         * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
1109         declaration and out-of-date comment.
1110         * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
1111         Delete function.
1112         * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
1113         deprecated_pc_in_call_dummy.
1114
1115         * infrun.c (handle_inferior_event): For non legacy frames, use the
1116         frame ID and frame type to identify a signal trampoline.  Update
1117         comments.
1118
1119 2004-03-21  Nathan J. Williams  <nathanw@wasabisystems.com>
1120
1121         * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
1122         * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
1123
1124 2004-03-21  Andrew Cagney  <cagney@redhat.com>
1125
1126         * frame-unwind.h: Update copyright.
1127         (struct frame_data): Add opaque declaration.
1128         (frame_sniffer_ftype): Declare.
1129         (struct frame_unwind): Add "unwind_data" and "sniffer".
1130         (frame_unwind_register_unwinder): Declare.
1131         (frame_unwind_find_by_frame): Add parameter "this_cache".
1132         * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
1133         (legacy_get_prev_frame, legacy_get_prev_frame)
1134         (get_frame_type): Pass the prologue_cache to
1135         frame_unwind_find_by_frame.
1136         * frame-unwind.c (struct frame_unwind_table_entry): Add field
1137         "unwinder".
1138         (frame_unwind_register_unwinder): New function.
1139         (frame_unwind_find_by_frame): Handle an unwind sniffer.
1140
1141 2004-03-20  Paul Hilfinger  <hilfingr@nile.gnat.com>
1142
1143         * bcache.c (print_percentage): Use floating point to avoid
1144         incorrect results when portion*100 overflows.
1145
1146 2004-03-19  Kevin Buettner  <kevinb@redhat.com>
1147
1148         * ppc_tdep.h (ppc_linux_frame_saved_pc)
1149         (ppc_linux_init_extra_frame_info)
1150         (ppc_linux_frameless_function_invocation)
1151         (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
1152         (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
1153         (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
1154         (rs6000_frame_chain): Delete declarations.
1155         * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
1156         (ppc_linux_init_extra_frame_info)
1157         (ppc_linux_frameless_function_invocation)
1158         (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
1159         (ppc_linux_init_abi): Remove registration of above deleted functions.
1160         * rs6000-tdep.c (rs6000_init_extra_frame_info)
1161         (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
1162         (rs6000_frame_args_address, rs6000_saved_pc_after_call)
1163         (rs6000_pop_frame, rs6000_frameless_function_invocation)
1164         (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
1165         (rs6000_gdbarch_init): Remove registration of above deleted functions.
1166         Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
1167         rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
1168         frame management for all OSABIs.
1169
1170 2004-03-19  Andrew Cagney  <cagney@redhat.com>
1171
1172         Committed by Kevin Buettner <kevinb@redhat.com>.
1173
1174         * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
1175         Update copyright.
1176         (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
1177         (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
1178         (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
1179         (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
1180         unwinders.  #ifdef legacy frame code.
1181         * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
1182         "frame-base.h".
1183         (rs6000_unwind_pc, rs6000_unwind_dummy_id)
1184         (struct rs6000_frame_cache, rs6000_frame_cache)
1185         (rs6000_frame_this_id, rs6000_frame_prev_register)
1186         (rs6000_frame_sniffer, rs6000_frame_unwind)
1187         (rs6000_frame_base_address, rs6000_frame_base_sniffer)
1188         (rs6000_frame_base): Implement a traditional frame unwinder.
1189         (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
1190         frame unwinder.
1191
1192 2004-03-19  Kevin Buettner  <kevinb@redhat.com>
1193
1194         * breakpoint.c (adjust_breakpoint_address): Don't adjust
1195         breakpoint address for watchpoints or the catch eventpoints.
1196         Add new paramter ``bptype''.  Adjust all callers.
1197
1198 2004-03-19  Andrew Cagney  <cagney@redhat.com>
1199
1200         * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
1201
1202         * PROBLEMS: Delete note that ARM does not use frame code, problem
1203         fixed.
1204
1205 2004-03-18  Andrew Cagney  <cagney@redhat.com>
1206
1207         * stack.c (return_command): Delete code wrapped in #ifdef
1208         DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
1209
1210         * rs6000-tdep.c (skip_prologue): Record only the first LR save.
1211
1212 2004-03-18  Andrew Cagney  <cagney@redhat.com>
1213
1214         * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
1215         DEPRECATED_IN_SIGTRAMP.
1216         * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
1217         * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
1218         * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
1219         * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
1220         * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
1221         * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
1222         * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
1223         * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
1224         * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
1225         * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
1226
1227 2004-03-18  Andrew Cagney  <cagney@redhat.com>
1228
1229         * frame-base.c: Update copyright.  Include "gdb_obstack.h".
1230         (struct frame_base_table_entry): Define.
1231         (struct frame_base_table): Re-implement as a linked list.
1232         (frame_base_init): Re-implement.
1233         (frame_base_table): Delete function.
1234         (append_predicate): Delete function.
1235         (frame_base_append_sniffer): Update.
1236         (frame_base_set_default): Update.
1237         (frame_base_find_by_frame): Update.
1238         (_initialize_frame_base): Use gdbarch_data_register_pre_init.
1239         * Makefile.in (frame-base.o): Update dependencies.
1240
1241 2004-03-17  Andrew Cagney  <cagney@redhat.com>
1242
1243         * frame.c (legacy_get_prev_frame): Pass correct frame to
1244         frame_unwind_find_by_frame.
1245
1246 2004-03-17  David Carlton  <carlton@kealia.com>
1247
1248         * NEWS: Mention C++ nested types and namespaces
1249
1250 2004-03-16  Michael Chastain  <mec.gnu@mindspring.com>
1251
1252         * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
1253         and "Regressions since gdb 5.3.".  Add known regressions since
1254         gdb 6.0.
1255
1256 2004-03-16  David Carlton  <carlton@kealia.com>
1257
1258         * dwarf2read.c (process_structure_scope): Process children even
1259         when we're a declaration.
1260
1261 2004-03-16  Andrew Cagney  <cagney@redhat.com>
1262
1263         * symtab.h (find_pc_sect_partial_function): Delete declaration.
1264         * blockframe.c (find_pc_partial_function)
1265         (find_pc_sect_partial_function): Merge into a single
1266         find_pc_partial_function.
1267
1268 2004-03-16  Mark Kettenis  <kettenis@gnu.org>
1269
1270         * i386bsd-nat.c: s/regno/regnum/g.
1271         (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
1272         FP0_REGNUM.
1273         (store_inferior_registers): Likewise.
1274
1275 2004-03-16  Mark Kettenis  <kettenis@gnu.org>
1276
1277         * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
1278         of i387_fill_fsave.
1279         (store_inferior_registers): Call i387_collect_fsave and
1280         i387_collect_fxsave instead of i387_fill_fsave and
1281         i387_fill_fxsave.
1282
1283 2004-03-15  Andrew Cagney  <cagney@redhat.com>
1284
1285         * Makefile.in (frame-unwind.o): Update dependencies.
1286         * frame-unwind.c: Include "gdb_obstack.h".
1287         (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
1288         parameter.
1289         (append_predicate): Delete function.
1290         (struct frame_unwind_table_entry): New structure.
1291         (struct frame_unwind_table): Replace "sniffer" with "head" and
1292         "tail".
1293         (frame_unwind_append_sniffer): Update.
1294         (frame_unwind_find_by_frame): Update.
1295         (_initialize_frame_unwind): Registe frame_unwind_init using
1296         gdbarch_data_register_pre_init.
1297
1298 2004-03-15  Mark Kettenis  <kettenis@gnu.org>
1299
1300         * i386bsd-nat.c: Update copyright year.
1301         (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
1302         define unconditionally.
1303
1304 2004-03-15  Mark Kettenis  <kettenis@gnu.org>
1305
1306         * i387-tdep.h (i387_collect_fsave): New prototype.
1307         * i387-tdep.c (i387_collect_fsave): New function containing most
1308         of the code from i387_fill_fsave.
1309         (i387_fill_fsave): Call i387_collect_fsave.
1310
1311 2004-03-15  Mark Kettenis  <kettenis@gnu.org>
1312
1313         * i386-linux-tdep.c: Update copyright year.
1314         (i386_linux_svr4_fetch_link_map_offsets): Remove function.
1315         (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
1316         svr4_ilp32_link_map_offsets instead of
1317         i386_linux_svr4_fetch_link_map_offsets.
1318
1319 2004-03-15  David Carlton  <carlton@kealia.com>
1320
1321         Fix for PR c++/1553:
1322         * dwarf2read.c (read_structure_type): Determine type name by
1323         calling determine_class_name.
1324         (determine_class_name): New.
1325         (determine_prefix): Look at TYPE_TAG_NAME and call
1326         determine_class_name when appropriate.
1327         (determine_prefix_aux, class_name): Delete.
1328         (read_namespace): Set die->type.
1329
1330 2004-03-15  Kevin Buettner  <kevinb@redhat.com>
1331
1332         * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
1333         unused macro definition.  The definition in target.h (or perhaps
1334         elsewhere) takes precedence.
1335
1336 2004-03-15  Andrew Cagney  <cagney@redhat.com>
1337
1338         * ppc-tdep.h: Update copyright.
1339         (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
1340         function signatures to match "regsets.h".
1341         * ppc-linux-tdep.c: Include "regset.h".
1342         (ELF_GREGSET_SIZE): Delete.
1343         (right_supply_register): New function.
1344         (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
1345         using right_supply_register.
1346         (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
1347         functions.
1348         (ppc64_linux_gregset, ppc32_linux_gregset): Define.
1349         (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
1350         (_initialize_ppc_linux_tdep): Do not register
1351         ppc_linux_regset_core_fns.
1352         (ppc_linux_regset_from_core_section): Replace
1353         fetch_core_registers.
1354         (ppc_linux_regset_core_fns): Delete.
1355         * ppc-linux-nat.c: (right_fill_reg): New function.
1356         (supply_gregset): Update call to ppc_linux_supply_gregset.
1357         (fill_gregset): Clear the register set, use right_fill_reg.
1358         (supply_fpregset): Update call to ppc_linux_supply_fpregset.
1359         (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
1360
1361         * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
1362         unsigned.
1363
1364 2004-03-15  Andrew Cagney  <cagney@redhat.com>
1365
1366         * gdbarch.sh (gdbarch_data_pre_init_fytpe)
1367         (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
1368         (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
1369         and register_gdbarch_data.
1370         (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
1371         (struct gdbarch_data): Replace "init" by "pre_init" and
1372         "post_init".
1373         * gdbarch.h, gdbarch.c: Re-generate.
1374         * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
1375         with"obstack", use OBSTACK_ZALLOC.
1376         (dwarf2_frame_ops): Delete.
1377         (dwarf2_frame_set_init_reg): Use gdbarch_data.
1378         (dwarf2_frame_init_reg): Use gdbarch_data.
1379         (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
1380         * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
1381         (_initialize_svr4_solib): Update.
1382         * user-regs.c (_initialize_user_regs): Update.
1383         * reggroups.c (_initialize_reggroup): Update.
1384         * regcache.c (_initialize_regcache): Update.
1385         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
1386         * libunwind-frame.c (_initialize_libunwind_frame): Update.
1387         * gnu-v3-abi.c (init_gnuv3_ops): Update.
1388         * frame-unwind.c (_initialize_frame_unwind): Update.
1389         * frame-base.c (_initialize_frame_base): Update.
1390         * user-regs.c (user_reg_add): Update.
1391         * reggroups.c (reggroup_add): Update.
1392         * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
1393         * libunwind-frame.c (libunwind_frame_set_descr): Update.
1394         * frame-unwind.c (frame_unwind_append_sniffer): Update.
1395         * frame-base.c (frame_base_table): Update.
1396         * remote.c (_initialize_remote): Update.
1397         * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
1398
1399 2004-03-15  Andrew Cagney  <cagney@redhat.com>
1400
1401         * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
1402
1403 2004-03-15  Kevin Buettner  <kevinb@redhat.com>
1404
1405         * Makefile.in (frv-linux-tdep.o): Add dependencies.
1406         * frv-linux-tdep.c: New file.
1407         * frv-tdep.c (struct gdbarch_tdep): Add new field
1408         ``sigcontext_reg_addr''.
1409         (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
1410         (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
1411         (frv_sigramp_frame_sniffer): New functions.
1412         (frv_sigtramp_frame_unwind): New static global.
1413         (frv_gdbarch_init): Hook in ABI-specific overrides.  Hook up frame
1414         sniffers.
1415         * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
1416         * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
1417
1418 2004-03-15  Kevin Buettner  <kevinb@redhat.com>
1419
1420         * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
1421         but not via a call to error(), when unable to read memory.
1422
1423 2004-03-15  Kevin Buettner  <kevinb@redhat.com>
1424
1425         * frv-tdep.c (frv_call_dummy_words): Delete.
1426         (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
1427
1428 2004-03-15  Andrew Cagney  <cagney@redhat.com>
1429
1430         * infrun.c (handle_step_into_function, step_over_function): Only
1431         update and use STEP_FRAME_ID when the system is using legacy
1432         frames.  Update comments.
1433
1434 2004-03-14  Mark Kettenis  <kettenis@gnu.org>
1435
1436         * amd64-linux-tdep.h: Remove file.
1437         * amd64-linux-tdep.c: Don't include "inferior.h" and
1438         "amd64-linux-tdep.h".  Include "frame.h" and "solib-svr4.h".
1439         (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
1440         (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
1441         (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
1442         (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
1443         macros.
1444         (user_to_gdb_regmap): Remove variable.
1445         (amd64_linux_gregset_reg_offset): New variable.
1446         (amd64_core_fns): Remove variable.
1447         (fetch_core_registers): Remove function.
1448         (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
1449         functions.
1450         (_initialize_amd64_linux_tdep): Don't set add_core_fns.
1451         * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
1452         * Makefile.in (amd64_linux_tdep_h): Remove.
1453         (amd64-linux-nat.o): Update dependencies.
1454         (amd64-linux-tdep.o): Update dependencies.
1455
1456         * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
1457         (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
1458         functions.
1459         (fetch_inferior_registers, store_inferior_registers): Rewrite.
1460
1461         * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
1462         * amd64-tdep.c (amd64_fill_fxsave): Remove function.
1463
1464 2004-03-14  Daniel Jacobowitz  <drow@mvista.com>
1465
1466         * dwarf2read.c (read_structure_type): Rename from
1467         read_structure_scope.  Don't create a symbol or call process_die.
1468         Return immediately if die->type is set.  Call read_type_die before
1469         dwarf2_add_member_fn.
1470         (process_structure_scope): New function.
1471         (read_enumeration_type, process_enumeration_scope): New functions,
1472         broken out from read_enumeration.  Don't create the enumeration
1473         type if it has already been created.
1474         (read_enumeration): Removed.
1475         (process_die): Call read_structure_type, process_structure_scope,
1476         read_enumeration_type, and process_enumeration_scope.  Just call
1477         new_symbol for base and subrange types.  Add a comment about other
1478         type dies.
1479         (read_type_die): Call read_enumeration_type.
1480         (add_partial_structure, new_symbol): Update comments.
1481
1482 2004-03-13  Stephane Carrez  <stcarrez@nerim.fr>
1483
1484         * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
1485
1486 2004-03-13  Stephane Carrez  <stcarrez@nerim.fr>
1487
1488         * tui/tui-win.h (tui_get_cmd_list): Declare.
1489         * tui/tui-win.c (tui_command): New function.
1490         (tui_get_cmd_list): New function.
1491         (_initialize_tui_win): Moved initialization of tui command in
1492         tui_get_cmd_list.
1493
1494         * tui/tui-data.c (init_content_element): Setup new data members.
1495         (init_win_info): Likewise.
1496         (free_content_elements): Free it.
1497         * tui/tui-data.h (struct tui_data_element): Store the register
1498         content to print.
1499         (struct tui_data_info): Keep the current register group.
1500
1501         * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
1502
1503         * tui/tui-regs.h (tui_show_registers): Update prototype.
1504         (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
1505         (tui_resize_all): No need to calculate anything for register window.
1506         * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
1507         (tui_set_register_element, tui_set_general_regs_content): Remove.
1508         (tui_set_special_regs_content): Remove.
1509         (tui_set_general_and_special_regs_content): Remove.
1510         (tui_set_float_regs_content): Remove.
1511         (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
1512         (tui_set_regs_content): Remove.
1513         (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
1514         (tui_v_show_registers_command_support): Remove.
1515         (tui_show_registers): Use a reggroup to specify the registers to show.
1516         (tui_show_register_group): New function.
1517         (tui_display_registers_from): Compute the layout of register window
1518         and refresh with new API; be sure to delete old register windows.
1519         (tui_check_register_values): Update to use tui_get_register and
1520         tui_display_data.
1521         (tui_display_register): Just refresh the register window part.
1522         (tui_register_format): Format registers and save in tui_data_element.
1523         (tui_get_register): New to combine tui_reg_value_has_changed and
1524         tui_get_register_raw_value; fix to use the new gdb API.
1525         (tui_show_float_command): Renamed tui_reg_float_command.
1526         (tui_show_general_command): Renamed tui_reg_general_command.
1527         (tui_show_special_command): Renamed tui_reg_system_command.
1528         (_initialize_tui_regs): Remove unused commands.
1529
1530 2004-03-13  Mark Kettenis  <kettenis@gnu.org>
1531
1532         * NEWS (New native configurations): Mention OpenBSD/amd64.
1533
1534         * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
1535         (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
1536         Remove defines.
1537         * config/i386/nm-fbsd64.h: Likewise.
1538         * config/i386/nm-obsd.h: Likewise.
1539         * config/sparc/nm-fbsd.h: Likewise.  Update copyright year.
1540         * config/alpha/nm-fbsd.h: Likewise.  Update copyright year.
1541
1542 2004-03-12  Kevin Buettner  <kevinb@redhat.com>
1543
1544         * frv-tdep.c (set_variant_scratch_registers): New function.
1545         * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
1546         New constants.
1547
1548         From Richard Sandiford  <rsandifo@redhat.com>:
1549         * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
1550
1551 2004-03-12  Kevin Buettner  <kevinb@redhat.com>
1552
1553         * frv-tdep.c, frv-tdep.h  (first_gpr_regnum, sp_regnum, fp_regnum)
1554         (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
1555         (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
1556         (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
1557         (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
1558         (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
1559         (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
1560         (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
1561         definitions from frv-tdep.c to frv-tdep.h.
1562
1563 2004-03-12  Kevin Buettner  <kevinb@redhat.com>
1564
1565         Add shared library support for FR-V FDPIC ABI:
1566         * Makefile.in (solib-frv.o): Add dependencies.
1567         * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
1568         New functions.
1569         (frv_push_dummy_call): Add support for FDPIC ABI.
1570         (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
1571         for FDPIC ABI.
1572         * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
1573         (frv_fdpic_find_canonical_descriptor): Declare.
1574         * solib-frv.c: New file.
1575         * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
1576         * config/frv/tm-frv.h (solib.h): Include.
1577
1578 2004-03-12  Kevin Buettner  <kevinb@redhat.com>
1579
1580         * Makefile.in (elf_frv_h, frv_tdep_h): Define.
1581         (frv-tdep.o): Update dependencies.
1582         * frv-tdep.h: New file.
1583         * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
1584         (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
1585         constants.
1586         (struct gdbarch_tdep): Add new member ``frv_abi''.
1587         (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
1588         functions.
1589         (new_variant): Set ``frv_abi'' field.
1590         (gdb_arch_init): Detect FDPIC executables.
1591
1592 2004-03-12  Mark Kettenis  <kettenis@gnu.org>
1593
1594         * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
1595         wrapper.
1596
1597 2004-03-11  Andrew Cagney  <cagney@redhat.com>
1598
1599         * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
1600
1601 2004-03-11  Kevin Buettner  <kevinb@redhat.com>
1602
1603         * solist.h (master_so_list): New function.
1604         * solib.c (master_so_list): Likewise.
1605         * solib-svr4.c (enable_break): Iterate over so_list entries
1606         obtained from master list instead of entries obtained directly
1607         via svr4_current_sos().
1608
1609 2004-03-10  Ben Elliston  <bje@gnu.org>
1610
1611         * MAINTAINERS: Update my mail address.
1612
1613 2004-03-10  Kei Sakamoto  <sakamoto.kei@renesas.com>
1614
1615         * remote-m32r-sdi.c: Support hardware watchpoint.
1616
1617 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
1618
1619         * user-regs.c: Update copyright years.
1620         (struct user_regs): Rename to gdb_user_regs.
1621         (append_user_reg, builtin_user_regs, user_regs_init)
1622         (user_reg_add, user_reg_map_name_to_regnum)
1623         (usernum_to_user_reg): Update.
1624
1625 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
1626
1627         * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
1628         (skip_children): New functions.
1629         (locate_pdi_sibling): Call skip_children.
1630
1631 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
1632
1633         * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
1634         * gdbtypes.c (check_typedef): Update comments.
1635
1636 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
1637
1638         * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
1639         (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
1640         pointer.  Update comment about comp_unit_head.
1641         (struct abbrev_info): Shorten two int flags.
1642         (dwarf_alloc_abbrev): Take a CU argument.
1643         (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
1644         each time through the loop.  Update cleanup argument.
1645         (psymtab_to_symtab_1): Update cleanup call.
1646         (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
1647         abbrev_obstack.
1648         (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
1649         Just call obstack_free and clear the pointer.
1650
1651 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
1652
1653         * infrun.c (handle_inferior_event): Remove short-circuit code for
1654         events in a different thread.
1655
1656 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
1657
1658         * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
1659         print the whole transfer.
1660         (initialize_targets): Update description of "set debug target".
1661
1662 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
1663
1664         * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
1665
1666 2004-03-08  Nathan J. Williams  <nathanw@wasabisystems.com>
1667
1668         * MAINTAINERS (write after approval): Add myself.
1669
1670 2004-03-08  Corinna Vinschen  <vinschen@redhat.com>
1671
1672         * sh-tdep.c (sh_print_registers_info): Use for loop.
1673         Don't skip multiple registers when a float register is encountered.
1674
1675 2004-03-08  Corinna Vinschen  <vinschen@redhat.com>
1676
1677         Fix PR tdep/1291.
1678         * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
1679         to official SH documentation.
1680
1681 2004-03-07  Andrew Cagney  <cagney@redhat.com>
1682
1683         * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
1684         unused function.
1685
1686 2004-03-07  Daniel Jacobowitz  <drow@mvista.com>
1687
1688         * arm-tdep.c (thumb_get_next_pc): Handle BX.
1689         (arm_get_next_pc): Handle BX and BLX.
1690
1691 2004-03-07  Andrew Cagney  <cagney@redhat.com>
1692
1693         * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
1694         FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
1695         HPPA_SP_REGNUM.
1696         (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
1697         (hppa_target_read_fp): Delete.
1698         (hppa_gdbarch_init): Do not set deprecated register_raw_size,
1699         register_virtual_size, max_register_raw_size,
1700         max_register_virtual_size, register_byte, register_size,
1701         target_read_fp, fp_regnum, and register_bytes.  Set register_type
1702         instead of register_virtual_type.
1703         (hppa32_register_type, hppa64_register_type): Replace
1704         hppa32_register_virtual_type and hppa64_register_virtual_type.
1705         * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
1706         (HPPA_FP_REGNUM): Define.
1707
1708         * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
1709
1710         * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
1711         (pa_do_registers_info): Delete.
1712         * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
1713         (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
1714         (pa_strcat_fp_reg, pa_register_look_aside): Delete.
1715
1716         * infcall.c (legacy_push_dummy_code): Delete #ifdef
1717         GDB_TARGET_IS_HPPA code.
1718         * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
1719         (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
1720         (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
1721         * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
1722         * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
1723         (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
1724         (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
1725         (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
1726         (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
1727         (hppa_frameless_function_invocation, hppa64_store_return_value)
1728         (hppa_store_struct_return, hppa64_extract_return_value)
1729         (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
1730         (hppa32_call_dummy_length, hppa64_call_dummy_length)
1731         (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
1732         (find_proc_framesize, deposit_21, restore_pc_queue)
1733         (find_return_regnum, pc_in_interrupt_handler, deposit_14)
1734         (rp_saved, pc_in_linker_stub): Delete.
1735
1736         Unconditionally enable 64-bit frame and ABI code.
1737         * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
1738         call_dummy_breakpoint_offset, call_dummy_length, stack_align,
1739         push_dummy_frame, fix_call_dummy, push_arguments,
1740         call_dummy_location, extract_return_value, use_struct_convention,
1741         store_return_value, store_struct_return, saved_pc_after_call,
1742         init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
1743         frame_chain, frame_chain_valid, frameless_function_invocation,
1744         frame_saved_pc, and pop_frame.
1745
1746         * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
1747         (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
1748         (hppa_gdbarch_init): Do not set PC_REGNUM.
1749
1750 2004-03-06  Mark Kettenis  <kettenis@gnu.org>
1751
1752         * config/alpha/tm-fbsd.h: Remove file.
1753         * config/alpha/fbsd.mt: Tweak comment.
1754         (TM_FILE): Set to tm-alpha.h.
1755
1756 2004-03-05  Andrew Cagney  <cagney@redhat.com>
1757
1758         * infrun.c (step_over_function): When non-legacy code, and no
1759         step_frame_id, use the unwinder to get the caller's frame ID.
1760
1761 2004-03-05  Mark Kettenis  <kettenis@gnu.org>
1762
1763         * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
1764         i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
1765         bfd_arch_unknown.  Adjust comment.
1766
1767         * i386-nat.c: Fix typo in comment.  Re-introduce paranoiac.
1768         * i386obsd-tdep.c: Correct spelling in comment.
1769         * i386nbsd-tdep.c: Correct spelling in comment.
1770         * sparc-tdep.c: Correct spelling in comments.
1771
1772 2004-03-05  David Carlton  <carlton@kealia.com>
1773
1774         * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
1775         bug.
1776
1777 2004-03-05  Mark Kettenis  <kettenis@gnu.org>
1778
1779         * sparc-tdep.c: Fix typo in comment.
1780
1781 2004-03-04  J. Brobecker  <brobecker@gnat.com>
1782
1783         * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
1784
1785 2004-03-04  Daniel Jacobowitz  <drow@mvista.com>
1786
1787         * dwarf2read.c: Add comment describing memory lifetimes.
1788         (struct dwarf2_pinfo): Update comment.
1789         (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
1790         (read_enumeration, new_symbol): Don't use obsavestring.
1791
1792 2004-03-04  Mark Kettenis  <kettenis@gnu.org>
1793
1794         * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
1795         instead of amd64_fill_fxsave.
1796         * amd64bsd-nat.c (store_inferior_registers): Likewise.
1797         * amd64fbsd-nat.c (fill_fpregset): Likewise.
1798
1799         * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
1800         Reorganize code a bit.
1801
1802 2004-03-04  Orjan Friberg  <orjanf@axis.com>
1803
1804         * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
1805         when the frame pointer is pushed.  Don't set the frame pointer's
1806         address on the stack unless it's actually located there.
1807         Set the SRP's address on the stack correctly when the PC is still in
1808         the prologue.
1809         (cris_return_value): New function.
1810         (cris_gdbarch_init): Clear deprecated store_return_value,
1811         extract_return_value.
1812
1813 2004-03-02  Jim Blandy  <jimb@redhat.com>
1814
1815         * stabsread.c (reg_value_complaint): The maximum register number
1816         is one less than the number of registers.
1817
1818 2004-03-02  Andrew Cagney  <cagney@redhat.com>
1819
1820         * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
1821         I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM.  Remove
1822         trailing comma and redundant assignment of I386_ST0_REGNUM.
1823         * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
1824         32-bit segment registers.
1825
1826 2004-03-01  Andrew Cagney  <cagney@redhat.com>
1827
1828         * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
1829         use frame_relative_level and get_next_frame.
1830
1831 2004-02-29  Andrew Cagney  <cagney@redhat.com>
1832
1833         * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
1834         (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
1835         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
1836         Delete macro.
1837
1838 2004-02-29  Daniel Jacobowitz  <drow@mvista.com>
1839
1840         * inflow.c (terminal_inferior): Don't give up the terminal if we
1841         previously couldn't get the inferior's terminal state.
1842
1843 2004-02-29  Daniel Jacobowitz  <drow@mvista.com>
1844
1845         * regcache.c (read_pc_pid): Restore inferior_ptid after reading
1846         PC_REGNUM.
1847
1848 2004-02-28  Andrew Cagney  <cagney@redhat.com>
1849
1850         * NEWS: Refer to GDB 6.1.
1851         * README: Refer to GDB 6.1.
1852         * PROBLEMS: Refer to GDB 6.1.
1853
1854 2004-02-28  Daniel Jacobowitz  <drow@mvista.com>
1855
1856         * thread-db.c (disable_thread_signals): Remove unused function.
1857
1858 2004-02-28  Mark Kettenis  <kettenis@gnu.org>
1859
1860         * amd64-nat.c: Include "gdb_string.h".
1861         (amd64_collect_native_gregset): Zero-extend the 32-bit
1862         general-purpose registers and %eip.
1863
1864         * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
1865         * amd64-tdep.c (amd64_collect_fxsave): New function.
1866         (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
1867
1868         * i387-tdep.h: Update copyright year.
1869         (i387_collect_fxsave): New prototype.
1870         * i387-tdep.c: Update copyright year.
1871         (i387_collect_fxsave): New function containing most of the code
1872         from i387_fill_fxsave.
1873         (i387_fill_fxsave): Call i387_collect_fxsave.
1874
1875 2004-02-28  Andrew Cagney  <cagney@redhat.com>
1876
1877         * amd64-linux-nat.c (ps_get_thread_area): When architecture is
1878         i386 use PTRACE_GET_THREAD_AREA.  Suggested by Roland McGrath.
1879
1880 2004-02-28  Mark Kettenis  <kettenis@gnu.org>
1881
1882         * amd64-tdep.c (amd64_frame_cache): Fix comment.
1883
1884 2004-02-28  Andrew Cagney  <cagney@redhat.com>
1885
1886         * utils.c: Use "", instead of <>, to include readline.
1887         tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
1888         * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
1889         * source.c, solib.c, exec.c, event-top.c: Ditto.
1890         * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
1891         * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
1892         * Makefile.in: Update all dependencies.
1893         (readline_tilde_h, readline_history_h): Define.
1894         (readline_headers): Delete.
1895
1896 2004-02-28  Mark Kettenis  <kettenis@gnu.org>
1897
1898         * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
1899         "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
1900         "config/i386/tm-lx64.h".
1901
1902         * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
1903         "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c".  Remove
1904         rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
1905
1906 2004-02-28  Andrew Cagney  <cagney@redhat.com>
1907
1908         * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
1909
1910         * breakpoint.c (_initialize_breakpoint): Use
1911         "add_setshow_auto_boolean_cmd.  Better word-wrap help messages.
1912         Add help to show command.
1913
1914 2004-02-28  Mark Kettenis  <kettenis@gnu.org>
1915
1916         * i386-nat.c: Reformat to be closer to coding standards.
1917         (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
1918         `retval'.  Make variables `align' and `size' local to while-loop.
1919         (i386_stopped_data_address): Rename local variable `ret' to `addr'.
1920         (_initialize_i386_nat): New prototype.
1921
1922         * tui/tui.c: Include <readline/readline.h> instead of
1923         "readline/readline.h".  Include it after <term.h> and
1924         "gdb_curses.h".
1925
1926 2004-02-27  Andrew Cagney  <cagney@redhat.com>
1927
1928         * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
1929         the new frame unwind code.
1930         (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
1931         (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
1932         PCOQ_HEAD_REGNUM.
1933
1934         * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
1935         "return_value" and "push_dummy_call".
1936         (hppa32_use_struct_convention): Delete unused function.
1937         (hppa32_store_return_value): Delete unused function.
1938         (hppa32_extract_return_value): Delete unused function.
1939         (hppa32_stack_align): Delete function.
1940
1941 2004-02-27  Eli Zaretskii  <eliz@elta.co.il>
1942
1943         * coffread.c (enter_linenos): Don't let rawptr reference memory
1944         outside linetab[]'s limits.
1945
1946 2004-02-27  Andrew Cagney  <cagney@redhat.com>
1947
1948         * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
1949         inferior stack space - the stack needs to grow upwards.
1950         (hppa32_frame_align): New function.
1951         (hppa64_frame_align): Replace hppa_frame_align.
1952         (hppa_gdbarch_init): Update.
1953
1954 2004-02-26  Orjan Friberg  <orjanf@axis.com>
1955
1956         * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
1957         (dwarf2-frame.h): Include.
1958         (enum cris_regnums): New enum CRIS_FP_REGNUM.
1959         Remove static variables related to ABI setting.
1960         (struct gdbarch_tdep): Remove cris_abi member.
1961         (struct frame_extra_info): Remove.
1962         (cris_unwind_cache, stack_item): New structs.
1963         (cris_frame_unwind, cris_frame_base): New variables.
1964         (push_stack_item, pop_stack_item)
1965         (cris_frame_unwind_cache, cris_frame_this_id)
1966         (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
1967         (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
1968         (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
1969         (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
1970         (cris_reg_struct_has_addr): New functions.
1971         (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
1972         (cris_frame_saved_pc, cris_saved_pc_after_call,
1973         (cris_store_struct_return, cris_frameless_function_invocation)
1974         (cris_pop_frame, cris_skip_prologue_main)
1975         (cris_abi_original_store_return_value)
1976         (cris_abi_v2_store_return_value)
1977         (cris_abi_original_extract_return_value)
1978         (cris_abi_v2_extract_return_value)
1979         (cris_abi_original_reg_struct_has_addr)
1980         (cris_abi_v2_reg_struct_has_addr)
1981         (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
1982         (cris_push_return_address, cris_abi_update): Remove.
1983         (_initialize_cris_tdep): Remove ABI command.
1984         (cris_dump_tdep): Ditto.
1985         (cris_gdbarch_init): Remove ABI command.
1986         Set store_return_value, extract_return_value, push_dummy_code,
1987         push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
1988         frame_unwind_append_sniffer, frame_base_set_default.
1989         Clear deprecated init_frame_pc, push_arguments, store_return_value,
1990         extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
1991         sizeof_call_dummy_words, get_saved_register, push_return_address,
1992         pop_frame, store_struct_return, frame_init_saved_regs,
1993         init_extra_frame_info, frameless_function_invocation, frame_chain,
1994         frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
1995         dummy_write_sp.
1996
1997 2004-02-26  Jeff Johnston  <jjohnstn@redhat.com>
1998
1999         * valprint.h (print_hex_chars, print_char_chars): New prototypes.
2000         * valprint.c (print_hex_chars): Change from static to external.
2001         (print_char_chars): New function.
2002         * printcmd.c (print_scalar_formatted): For integer and enum types
2003         that are longer than LONGEST, perform processing via appropriate
2004         print_*_chars routines.
2005
2006 2004-02-26  Andrew Cagney  <cagney@redhat.com>
2007
2008         * Makefile.in: Update dependencies.
2009         Changes from Ulrich Weigand,
2010         * s390-tdep.c: Include "dwarf2-frame.h".
2011         (s390_dwarf2_frame_init_reg): New function.
2012         (s390_gdbarch_init): Install dwarf2_frame_sniffer and
2013         dwarf2_frame_base_sniffer.  Call dwarf2_frame_set_init_reg.
2014
2015 2004-02-26  Jeff Johnston  <jjohnstn@redhat.com>
2016
2017         * breakpoint.c (pending_break_support): New setting variable.
2018         (break_command_1): Account for pending_break_support setting
2019         when creating pending breakpoints.
2020         (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
2021         (_initialize_breakpoint): Add "set breakpoint pending" and
2022         "show breakpoint pending" commands.
2023
2024 2004-02-26  Andrew Cagney  <cagney@redhat.com>
2025
2026         Fix PR i18n/1570.
2027         * charset.c (backslashable, backslashed, represented): Remove 'e'
2028         from list of escaped characters, not part of ISO-C.
2029
2030 2004-02-25  J. Brobecker  <brobecker@gnat.com>
2031
2032         From Peter Schauer <schauer@pdf.de>:
2033         * tui/tui.c: Move system header includes after local includes.
2034         Fixes a build failure on solaris systems.
2035
2036 2004-02-25  J. Brobecker  <brobecker@gnat.com>
2037
2038         * configure.in: Refine the previous change.
2039         * configure: Regenerate.
2040
2041 2004-02-25  Mark Kettenis  <kettenis@gnu.org>
2042
2043         * amd64-tdep.h: Renamed from x86-64-tdep.h.
2044         * amd64-tdep.c: Renamed from x86-64-tdep.c.  Include
2045         "amd64-tdep.h" instead of "x86-64-tdep.h".
2046         * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
2047         * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
2048         * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c.  Include
2049         "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
2050         and "x86-64-tdep.c".
2051         * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c.  Include
2052         "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
2053         and "x86-64-tdep.c".
2054         * amd64bsd-nat.c: Update copyright year.
2055         Include "amd64-tdep.h" instead of "x86-64-tdep.h".
2056         * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
2057         "x86-64-tdep.h".
2058         * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
2059         "x86-64-tdep.h".
2060         * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
2061         "x86-64-tdep.h".
2062         * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
2063         "x86-64-tdep.h".
2064         * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
2065         "x86-64-tdep.h".
2066         * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
2067         "x86-64-tdep.h".
2068         * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
2069         * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
2070         * Makefile.in (amd64_linux_tdep_h): Renamed from
2071         x86_64_linux_tdep_h.
2072         (amd64_tdep_h): Renamed from x86_64_tdep_h.
2073         (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
2074         (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
2075         (amd64obsd-tdep.o): Update dependencies.
2076         (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
2077         dependencies.
2078         (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
2079         dependencies.
2080         (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
2081         amd64-linux-nat.c amd64-linux-tdep.c.
2082         * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
2083         * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
2084         * config/i386/linux64.mt: Renamed from x86-64linux.mt.
2085         (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
2086         amd64-tdep.o and amd64-linux-tdep.o.
2087         (TM_FILE): Set to tm-linux64.h.
2088         * config/i386/linux64.mh: Renamed from x86-64linux.mh.
2089         (NAT_FILE): Set to nm-linux64.h.
2090         (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
2091         * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
2092         amd64-tdep.o.
2093         * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
2094         amd64-tdep.o.
2095         * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
2096         amd64-tdep.o.
2097
2098 2004-02-25  Roland McGrath  <roland@redhat.com>
2099
2100         * remote.c (remote_protocol_qPart_auxv): New variable.
2101         (init_all_packet_configs): Initialize it.
2102         (set_remote_protocol_qPart_auxv_packet_cmd): New function.
2103         (show_remote_protocol_qPart_auxv_packet_cmd): New function.
2104         (show_remote_cmd): Call it.
2105         (_initialize_remote): Initialize commands.
2106         (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
2107         service TARGET_OBJECT_AUXV requests.
2108
2109 2004-02-25  J. Brobecker  <brobecker@gnat.com>
2110
2111         * configure.in: Make sure that the wborder function is available.
2112         Otherwise, search for it in the cur_colr library.
2113         * configure: Regenerate.
2114
2115 2004-02-25  Andrew Cagney  <cagney@redhat.com>
2116
2117         * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
2118
2119 2004-02-25  Mark Kettenis  <kettenis@gnu.org>
2120
2121         * config/i386/tm-x86-64linux.h: Tweak comments.
2122
2123 2004-02-25  Richard Sandiford  <rsandifo@redhat.com>
2124
2125         * MAINTAINERS: Add self to write-after-approval list.
2126
2127 2004-02-25  Andrew Cagney  <cagney@redhat.com>
2128
2129         PR cli/1566.  Problem found, and fix suggested by David Allan.
2130         * cli/cli-script.c (execute_control_command): Unconditionally
2131         install a cleanup.  Default "ret" to "invalid_control".  Use
2132         "break" instead of "return" to escape from the switch.
2133
2134 2004-02-24  J. Brobecker  <brobecker@gnat.com>
2135
2136         * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
2137         with the lines macro defined in term.h on AiX.
2138         * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
2139         a collision with the label_width macro defined in term.h on AiX.
2140
2141 2004-02-23  David Mosberger  <davidm@hpl.hp.com>
2142
2143         Committed by Kevin Buettner <kevinb@redhat.com>.
2144
2145         * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
2146         * ia64-tdep.c (ia64_write_pc): Make it a global function.
2147         (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
2148         instead of ia64_write_pc().
2149         * ia64-linux-tdep.c (regcache.h): Include.
2150         (ia64_linux_write_pc): New function.
2151
2152 2004-02-23  Roland McGrath  <roland@redhat.com>
2153
2154         * auxv.c (info_auxv_command): Fix typos in error messages.
2155
2156 2004-02-23  Mark Kettenis  <kettenis@gnu.org>
2157
2158         * x86-64-tdep.h: Tweak comment.
2159         (enum amd64_regnum): New.
2160         (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
2161         (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
2162         (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
2163         (X86_64_XMM1_REGNUM): Removed.
2164         (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
2165         (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
2166         prototypes for renamed functions.
2167         * x86-64-tdep.c: Fix typo.
2168         (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
2169         register numbers.
2170         (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
2171         Use constants from `enum amd64_regnum' for register numbers.
2172         (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
2173         (amd64_analyze_prologue, amd64_frame_cache,
2174         amd64_sigtramp_frame_cache): Use constants from `enum
2175         amd64_regnum' for register numbers.
2176         (amd64_supply_fpregset): Adjust for renamed functions.
2177         (amd64_init_abi): Rename from x86_64_init_abi.  Use constants from
2178         `enum amd64_regnum' for register numbers.
2179         (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
2180         (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
2181         (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
2182         * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
2183         (amd64_linux_fill_gregset): Adjust for renamed macros.
2184         (fetch_core_registers): Adjust for renamed functions.
2185         (amd64_linux_init_abi): Adjust for renamed functions.
2186         * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
2187         renamed functions.
2188         * amd64-nat.c: Adjust for renamed macros.
2189         * amd64bsd-nat.c (fetch_inferior_registers)
2190         (store_inferior_registers): Use constants from `enum amd64_regnum'
2191         for register numbers.  Adjust for renamed variables.
2192         * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
2193         renamed variables.
2194         (_initialize_amd64fbsd_nat): Use constants from `enum
2195         amd64_regnum' for register numbers.
2196         * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
2197         `enum amd64_regnum' for register numbers.
2198         (amd64fbsd_init_abi): Adjust for renamed functions.
2199         * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
2200         `enum amd64_regnum' for register numbers.
2201         (amd64nbsd_init_abi): Adjust for renamed functions.
2202         (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
2203         * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
2204         `enum amd64_regnum' for register numbers.
2205         (amd64obsd_init_abi): Adjust for renamed functions.
2206         (_initialize_amd64obsd_ndep): Adjust for renamed macros.
2207
2208 2004-02-23  Jeff Johnston  <jjohnstn@redhat.com>
2209
2210         * breakpoint.c (print_one_breakpoint): Do not output spaces
2211         after printing <PENDING> for a pending breakpoint.
2212
2213 2004-02-23  Jeff Johnston  <jjohnstn@redhat.com>
2214
2215         * printcmd.c (print_scalar_formatted): Initialize val_long
2216         to remove compiler warning message.
2217
2218 2004-02-23  Jeff Johnston  <jjohnstn@redhat.com>
2219
2220         * defs.h (nquery, yquery): New prototypes.
2221         * breakpoint.c (break_command_1): Use new nquery interface.
2222         * utils.c (defaulted_query, nquery, yquery): New functions.
2223
2224 2004-02-23  Andrew Cagney  <cagney@redhat.com>
2225
2226         * hppa-tdep.c (hppa_frame_align): New function.
2227         (hppa32_push_dummy_call): New function.
2228         (hppa64_push_dummy_call): New function.
2229         (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
2230         disabled.
2231
2232         * infcall.c (legacy_push_dummy_code): Don't call deprecated
2233         FIX_CALL_DUMMY when push_dummy_call is available.
2234         (call_function_by_hand, push_dummy_code): Ditto.
2235
2236 2004-02-22  Andrew Cagney  <cagney@redhat.com>
2237
2238         * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
2239         (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
2240         (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
2241         * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
2242         use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
2243         call_dummy_location to ON_STACK.
2244
2245 2004-02-22  Mark Kettenis  <kettenis@gnu.org>
2246
2247         * x86-64-linux-tdep.c: Tweak comment.
2248         (amd64_linux_supply_gregset): Renamed from
2249         x86_64_linux_supply_gresget.
2250         (amd64_linux_fill_gregset): Renamed from
2251         x86_64_linux_fill_gregset.
2252         (fetch_core_registers): Adjust for renamed functions.
2253         (amd64_core_fns): Renamed from x86_64_core_fns.
2254         (amd64_linux_sigtramp_start): Renamed from
2255         x86_64_linux_sigtramp_start.
2256         (amd64_linux_pc_in_sigtramp): Renamed from
2257         x86_64_linux_pc_in_sigtramp.  Adjust for renamed functions.
2258         (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
2259         X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
2260         (amd64_linux_sigcontext_addr): Renamed from
2261         x86_64_linux_sigcontext_addr.
2262         (amd64_linux_sc_reg_offset): Renamed from
2263         x86_64_linux_sc_reg_offset.
2264         (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
2265         Adjust for renamed functions and variables.
2266         (_initialize_amd64_linux_tdep): Renamed from
2267         _initialize_x86_64_linux_tdep.  Adjust for renamed functions and
2268         variables.
2269         * x86-64-linux-tdep.h: Update copyright year.  Tweak comment.
2270         Adjust for renamed functions.
2271
2272         * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
2273         from x86_64_linux_gregset64_reg_offset.
2274         (amd64_linux_gregset32_reg_offset): Rename from
2275         x86_64_linux_gregset64_reg_offset.
2276         (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
2277         (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
2278         (amd64_linux_dr_set_control): Renamed from
2279         x86_64_linux_dr_set_control.  Adjust for renamed functions.
2280         (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
2281         Adjust for renamed functions.
2282         (amd64_linux_dr_reset_addr): Renamed from
2283         x86_64_linux_dr_reset_addr. Adjust for renamed functions.
2284         (amd64_linux_dr_get_status): Renamed from
2285         x86_64_linux_dr_get_status.  Adjust for renamed functions.
2286         (_initialize_amd64_linux_nat): Renamed from
2287         _initialize_x86_64_linux_nat.  Adjust for renamed variables and
2288         functions.
2289         * config/i386/nm-x86-64linux.h: Update copyright year.
2290         Adjust for renamed functions.
2291
2292         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
2293         amd64fbsd_sigtramp_start.
2294         (amd64fbsd_sigtramp_end_addr): Renamed from
2295         amd64fbsd_sigtramp_end.
2296         (amd64fbsd_init_abi): Adjust for renamed variables.
2297         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
2298         variables.
2299         * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
2300         amd64fbsd_sigtramp_start.
2301         (amd64fbsd_sigtramp_end_addr): Renamed from
2302         amd64fbsd_sigtramp_end.
2303
2304 2004-02-22  Andrew Cagney  <cagney@redhat.com>
2305
2306         * hppa-tdep.c (hppa32_return_value): New function.
2307         (hppa64_return_value): New function.
2308         (hppa_gdbarch_init): Set return_value; keep disabled.
2309
2310         * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
2311         struct-return and inferior function call methods.
2312
2313         * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
2314         "frame-base.h".
2315         (struct hppa_frame_cache): Define.
2316         (hppa_frame_cache, hppa_frame_this_id): New functions.
2317         (hppa_frame_prev_register): New function.
2318         (hppa_frame_unwind, hppa_frame_base): New variables.
2319         (hppa_frame_unwind_sniffer): New function.
2320         (hppa_frame_base_address, hppa_unwind_pc): New function.
2321         (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
2322         sniffer, and frame base sniffer; keep disabled.
2323         (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
2324         * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
2325
2326         * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
2327         to predicates for "seriously old code".
2328
2329         * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
2330         runtime if(0).
2331
2332         * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
2333         unsigned.
2334         (hppa_frame_find_saved_regs): Fix "std" instruction pattern
2335
2336         * config/pa/tm-hppa.h: Update copyright.
2337         (DEPRECATED_INIT_FRAME_PC): Delete macro.
2338         (deprecated_init_frame_pc_default): Delete declaration.
2339         (hppa_frame_init_saved_regs): Delete declaration.
2340         (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
2341         * hppa-tdep.c: Include "arch-utils.h".
2342         (hppa_gdbarch_init): Set deprecated init_frame_pc
2343         and deprecated frame_init_saved_regs.
2344         (hppa_frame_init_saved_regs): Make static.
2345
2346 2004-02-22  Mark Kettenis  <kettenis@gnu.org>
2347
2348         Remove old 386BSD support.
2349         * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
2350         * configure.host: Remove i[34567]86-*-bsd*.
2351         * configure.tgt: Remove i[34567]86-*-bsd*.
2352         * i386b-nat.c: Removed.
2353         * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
2354         (i386b-nat.o): Remove dependencies.
2355
2356         * config/i386/i386bsd.mh: Removed.
2357         * config/i386/i386bsd.mt: Removed.
2358         * config/i386/nm-i386bsd.h: Removed.
2359         * config/i386/tm-i386bsd.h: Removed.
2360         * config/i386/xm-i386bsd.h: Removed.
2361
2362         * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
2363
2364         * amd64fbsd-tdep.c: Include "solib-svr4.h".
2365         (amd64fbsd_init_abi): Set link map offsets.
2366         * amd64nbsd-tdep.c: Include "slib-svr4.h".
2367         (amd64nbsd_init_abi): Set link map offsets.
2368         * amd64obsd-tdep.c: Include "solib-svr4.h".
2369         (amd64obsd_init_abi): Set link map offsets.
2370         * i386fbsd-tdep.c: Include "solib-svr4.h".
2371         (i386fbsd_init_abi): Set link map offsets.
2372         * i386nbsd-tdep.c: Include "solib-svr4.h".
2373         (i386nbsdelf_init_abi): Set link map offsets.
2374         * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
2375         (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
2376         * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
2377         solib-legacy.o and core-aout.o. Reformat.
2378         * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
2379         solib-svr4.o, solib-legacy.o.  Reformat.
2380         * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o.  Reformat.
2381         * config/i386/nbsdelf.mh: Reformat.
2382         * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
2383         solib-svr4.o, solib-legacy.o and corelow.o.
2384         * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
2385         * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
2386         solib-svr4.o, solib-legacy.o and corelow.o.  Reformat.
2387         * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
2388         * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
2389         (TM_FILE): Set to tm-fbsd.h.
2390         * config/i386/nbsd.mt (TDEPFILES): Reformat.
2391         * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
2392         solib-svr4.o.
2393         * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
2394         solib-svr4.o.
2395         (TM_FILE): Set to nm-nbsd.h.
2396         * config/i386/nm-fbsd.h: Update copyright year.  Tweak comments.
2397         Simplify shared library support.  Don't include "elf/common.h".
2398         (SVR4_SHARED_LIBS): Don't define.
2399         * config/i386/nm-fbsd64.h: Update copyright year.  Don't include
2400         "solib.h".
2401         * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
2402         config/i386/nm-obsd.h: Update copyright year.  Tweak comments.
2403         * config/i386/tm-fbsd.h: Update copyright tear.  Tweak comments.
2404         Don't include "i386/tm-i386.h".  Include "solib.h".
2405         * config/i386/tm-nbsd.h: Update copyright year.  Tweak comments.
2406         Don't include "i386/tm-i386.h".
2407         * config/i386/xm-i386.h: Update copyright year.  Tweak comments.
2408         * config/i386/xm-nbsd.h: Update copyright year.  Tweak comments.
2409         Include "i386/xm-i386.h".
2410         (HOST_LONG_DOUBLE_FORMAT): Remove.
2411
2412         Fix OpenBSD/i386 sigtramp recognition.
2413         * i386-tdep.h: Update copyright year.
2414         (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
2415         (i386bsd_sigtramp_end): New prototypes.
2416         (i386fbsd_sigtramp_start_addr): Renamed from
2417         i386fbsd_sigtramp_start.
2418         (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
2419         (i386obsd_sigtramp_start_addr): Renamed from
2420         i386obsd_sigtramp_start.
2421         (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
2422         * i386bsd-tdep.c: Update copyright year.
2423         (i386bsd_pc_in_sigtramp): Make public.
2424         * i386fbsd-nat.c: Update copyright year.
2425         (_initialize_i386fbsd_nat): Adjust for renamed variables.
2426         * i386fbsd-tdep.c: Update copyright year.
2427         (i386fbsd_sigtramp_start_addr): Renamed from
2428         i386fbsd_sigtramp_start.
2429         (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
2430         (i386fbsdaout_init_abi): Adjust for renamed variables.
2431         * i386obsd-nat.c: Update copyright year.
2432         (_initialize_i386obsd_nat): Adjust for renamed variables.
2433         * i386obsd-tdep.c: Include "target.h".
2434         (i386obsd_page_size): New variable.
2435         (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
2436         (i386obsd_sigtramp_end): New functions.
2437         (i386obsd_sigtramp_start_addr): Renamed from
2438         i386obsd_sigtramp_start.
2439         (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
2440         (i386obsd_init_abi): Adjust for renamed variables.  Set
2441         pc_in_sigtramp, sigtramp_start and sigtramp_end.
2442         * Makefile.in (i386obsd-tdep.o): Update dependencies.
2443
2444         * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
2445         trampoline change in OpenBSD kernel.
2446
2447         * amd64-nat.c: Update copyright year.
2448         (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
2449         architecture from REGCACHE.
2450
2451         * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
2452         symbolic constants from <sys/reg.h> instead of hard-coded numbers.
2453
2454 2004-02-21  Mark Kettenis  <kettenis@gnu.org>
2455
2456         * configure.host: Add i[34567]86-*-openbsd[0-2].* and
2457         i[34567]86-*-openbsd3.[0-3].
2458         * config/i386/obsdaout.mh: New file.
2459
2460         * config/i386/obsd.mh (MH_FLAGS): Remove.
2461
2462         Fix PR build/1549.
2463         * i386obsd-tdep.c: Update copyright years.  Include
2464         "solib-svr4.h".
2465         (i386obsd_init_abi): Don't set regset_from_core_section here.
2466         (i386obsd_aout_init_abi): New function.  Set
2467         regset_from_core_section here.
2468         (i386obsd_elf_init_abi): New function.
2469         (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
2470         * Makefile.in (i386obsd-tdep.o): Update dependecies.
2471         * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
2472         (TM_FILE): Set to tm-nbsd.h.
2473
2474         * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
2475         solib-sunos.o.
2476
2477         * solib-svr4.h: Update copyright year.
2478         (svr4_ilp32_fetch_link_map_offsets)
2479         (svr4_lp64_fetch_link_map_offsets): New prototype.
2480         * solib-svr4.c: Update copyright year.
2481         (svr4_ilp32_fetch_link_map_offsets)
2482         (svr4_lp64_fetch_link_map_offsets): New function.
2483
2484 2004-02-20  Daniel Jacobowitz  <drow@mvista.com>
2485
2486         * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
2487         to the partial symbol table.
2488
2489 2004-02-20  J. brobecker  <brobecker@gnat.com>
2490
2491         * PROBLEMS: Add description of problem documented under gdb/1560.
2492
2493 2004-02-20  Mark Kettenis  <kettenis@gnu.org>
2494
2495         * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h".  Fix
2496         comments.
2497         (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
2498         functions.
2499         (amd64obsd_init_abi): Reorder initializations.  Use
2500         amd64obsd_r_reg_offset to initialize the general-purpose register
2501         set details.  Set regset_from_core_section.
2502         (_initialize_amd64obsd_tdep): Rename from
2503         _initialize_amd64obsd_ndep.  Add OS ABI handler for core dumps.
2504         * Makefile.in (amd64obsd-tdep.o): Update dependencies.
2505         * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
2506
2507         * NEWS (New native configurations): Mention OpenBSD/alpha.
2508         * configure.tgt: Add alpha*-*-openbsd*.
2509         * configure.host: Add alpha*-*-openbsd*.
2510         * alphanbsd-tdep.c: Update copyright year.
2511         (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
2512
2513 2004-02-20  Andrew Cagney  <cagney@redhat.com>
2514
2515         Fix PR tdep/1372.
2516         * configure.tgt: Delete target "none-*-*".
2517         * configure.host: Delete host "none-*-*".
2518         * config/none/none.mh: Delete file.
2519         * config/none/none.mt: Delete file.
2520         * config/none/xm-none.h: Delete file.
2521         * config/none/tm-none.h: Delete file.
2522         * config/none/nm-none.h: Delete file.
2523
2524 2004-02-19  Fred Fish  <fnf@redhat.com>
2525
2526         * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
2527         cache->uses_fp prior to setting it.
2528
2529 2004-02-19  Fred Fish  <fnf@redhat.com>
2530
2531         Fix for PR breakpoint/1558.
2532         * sh-tdep.c (IS_JSR): New macro.
2533         (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
2534
2535 2004-02-19  Jim Blandy  <jimb@redhat.com>
2536
2537         * findvar.c (value_from_register): Doc fix.
2538
2539 2004-02-19  Jeff Johnston  <jjohnstn@redhat.com>
2540
2541         * printcmd.c (print_scalar_formatted): Do not check for sizeof
2542         type being greater than sizeof of host's LONGEST.  Always use
2543         unpack_long() unless format 'f' chosen.
2544
2545 2004-02-19  Joel Brobecker  <brobecker@gnat.com>
2546
2547         Committed by Elena Zannoni  <ezannoni@redhat.com>
2548
2549         * symtab.c (find_pc_sect_psymtab): Return the psymtab that
2550         contains a symbol wich is the best, non-exact match for the given
2551         pc.  Update comments.
2552
2553 2004-02-19  Elena Zannoni  <ezannoni@redhat.com>
2554
2555         * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
2556         macro, which was part of the now removed Mach 3 port.
2557         * utils.c (request_quit): Ditto.
2558
2559 2004-02-18  Mark Kettenis  <kettenis@gnu.org>
2560
2561         * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
2562         "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
2563
2564 2004-02-18  Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2565
2566         Committed by Mark Kettenis  <kettenis@gnu.org>.
2567
2568         * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
2569         Define.
2570
2571 2004-02-18  Andrew Cagney  <cagney@redhat.com>
2572
2573         * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
2574         CONFIG_INSTALL and CONFIG_UNINSTALL.
2575         * configure: Re-generate.
2576         * interps.h (INTERP_TUI): Define.
2577         * Makefile.in: Update dependencies.
2578         (TUI): New macro.
2579         (tui-main.o): Specify dependencies.
2580         (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
2581         * tui/tui-main.c: New file.
2582
2583 2004-02-18  Mark Kettenis  <kettenis@gnu.org>
2584
2585         * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
2586         * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
2587         dependencies.
2588         * configure.host: Add x86_64-*-openbsd*.
2589         * configure.tgt: Add x86_64-*-openbsd*.
2590         * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
2591
2592         * tui/tui.c: Don't include <malloc.h>.
2593
2594         * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
2595         amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
2596         amd64nbsd-tdep.c.
2597
2598         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
2599         static.  Remove extraneous whitespace.
2600         * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
2601         static.
2602
2603 2004-02-17  Jim Blandy  <jimb@redhat.com>
2604
2605         * findvar.c (value_from_register): Doc fix.
2606
2607 2004-02-17  Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2608
2609         Committed by Jim Blandy  <jimb@redhat.com>.
2610
2611         * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
2612         CORE_ADDR as type for selectors.  Correct types for GNU run time
2613         message lookup function to use double indirection.
2614         * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
2615         * objc-lang.h (lookup_child_selector): Adapt prototype.
2616
2617         * s390-nat.c (SUBOFF): New macro.
2618         (supply_gregset, fill_gregset): Use it to handle debugging
2619         of 32-bit exectuables running under a 64-bit kernel.
2620         * s390-tdep.c: Include "solib-svr4.h".
2621         (s390_svr4_fetch_link_map_offset): New function.
2622         (s390x_svr_fetch_link_map_offset): Likewise.
2623         (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
2624         * Makefile.in (s390-tdep.o): Update dependencies.
2625
2626         * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
2627         "frame-unwind.h".
2628         (s390_readinstruction): Reformat.  Use read_memory_nobpt.
2629         (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
2630         (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
2631         (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
2632         S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
2633         S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
2634         S390_SIGNAL_FRAMESIZE,
2635         s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
2636         (struct frame_extra_info): Remove.
2637         (s390_memset_extra_info): Remove.
2638         (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
2639         (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
2640         (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
2641         (is_rse): Renamed to ...
2642         (is_rsy): ... this.  Support long displacements.
2643         (is_rxe): Renamed to ...
2644         (is_rxy): ... this.  Support long displacements.
2645         (compute_x_addr): Support long displacements.
2646         (struct s390_prologue_data): New data type.
2647         (s390_on_stack): Change API to use struct s390_prologue_data.
2648         (s390_store): Reimplement.
2649         (s390_load): New function.
2650         (s390_get_signal_frame_info): Remove.
2651         (s390_get_frame_info): Remove, replace by ...
2652         (s390_analyze_prolog): ... this new function.
2653         (s390_check_function_end): Remove.
2654         (s390_function_start): Remove.
2655         (s390_frameless_function_invokation): Remove.
2656         (s390_is_sigreturn): Remove.
2657         (s390_init_frame_pc_first): Remove.
2658         (s390_init_frame_extra_info): Remove.
2659         (s390_frame_init_saved_regs): Remove.
2660         (s390_frame_saved_pc_nofix): Remove.
2661         (s390_frame_saved_pc): Remove.
2662         (s390_frame_chain): Remove.
2663         (s390_fp_regnum, s390_read_fp): Remove.
2664         (s390_pop_frame_regular, s390_pop_frame): Remove.
2665         (s390_saved_pc_after_call): Remove.
2666         (s390_skip_prologue): Reimplement.
2667         (s390_in_function_epilogue_p): Support long displacements.
2668         (struct s390_unwind_cache): New data structure.
2669         (s390_frame_unwind_cache): New function.
2670         (s390_prologue_frame_unwind_cache): Likewise.
2671         (s390_backchain_frame_unwind_cache): Likewise.
2672         (s390_frame_this_id, s390_frame_prev_register): Likewise.
2673         (s390_frame_unwind): Define.
2674         (s390_frame_sniffer): New function.
2675         (struct s390_pltstub_unwind_cache): New data structure.
2676         (s390_pltstub_frame_unwind_cache): New function.
2677         (s390_pltstub_frame_this_id): Likewise.
2678         (s390_pltstub_frame_prev_register): Likewise.
2679         (s390_pltstub_frame_unwind): Define.
2680         (s390_pltstub_frame_sniffer): New function.
2681         (struct s390_sigtramp_unwind_cache): New data structure.
2682         (s390_sigtramp_frame_unwind_cache): New function.
2683         (s390_sigtramp_frame_this_id): Likewise.
2684         (s390_sigtramp_frame_prev_register): Likewise.
2685         (s390_sigtramp_frame_unwind): Define.
2686         (s390_sigtramp_frame_sniffer): New function.
2687         (s390_frame_base_address, s390_local_base_address): New functions.
2688         (s390_frame_base): Define.
2689         (s390_unwind_pc, s390_unwind_sp): New function.
2690         (s390_push_dummy_call): Use new frame base location.
2691         (s390_unwind_dummy_id): Likewise.
2692         (s390_gdbarch_init): Remove calls to:
2693         set_gdbarch_frameless_function_invocation,
2694         set_gdbarch_deprecated_init_frame_pc,
2695         set_gdbarch_deprecated_frame_chain,
2696         set_gdbarch_deprecated_frame_init_saved_regs,
2697         set_gdbarch_deprecated_pop_frame,
2698         set_gdbarch_deprecated_init_extra_frame_info,
2699         set_gdbarch_deprecated_init_frame_pc_first,
2700         set_gdbarch_deprecated_target_read_fp,
2701         set_gdbarch_deprecated_frame_saved_pc,
2702         set_gdbarch_deprecated_saved_pc_after_call,
2703         set_gdbarch_deprecated_fp_regnum.
2704         Add calls to:
2705         set_gdbarch_in_solib_call_trampoline,
2706         frame_unwind_append_sniffer,
2707         frame_base_set_default,
2708         set_gdbarch_unwind_pc,
2709         set_gdbarch_unwind_sp.
2710         * Makefile.in (s390-tdep.o): Update dependencies.
2711
2712         * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
2713         (S390_STACK_FRAME_OVERHEAD): Remove.
2714         (S390_STACK_PARAMETER_ALIGNMENT): Remove.
2715         (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
2716         (s390_promote_integer_argument): Remove.
2717         (s390_cannot_extract_struct_value_address): Remove.
2718         (s390_use_struct_convention, s390_store_struct_return): Remove.
2719         (s390_extract_return_value, s390_store_return_value): Remove.
2720         (s390_return_value_convention, s390_return_value): New functions.
2721         (is_float_singleton): Handle typedefs.
2722         (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
2723         Remove, replace by ...
2724         (s390_function_arg_pass_by_reference, s390_function_arg_float,
2725         s390_function_arg_integer): ... these new functions.
2726         (s390_push_arguments, s390_push_return_address): Remove, replace by ...
2727         (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
2728         (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
2729         Fill in tdep->abi.
2730         Remove calls to:
2731         set_gdbarch_deprecated_store_struct_return,
2732         set_gdbarch_deprecated_extract_return_value,
2733         set_gdbarch_deprecated_store_return_value,
2734         set_gdbarch_use_struct_convention,
2735         set_gdbarch_extract_struct_value_address,
2736         set_gdbarch_deprecated_pc_in_call_dummy,
2737         set_gdbarch_deprecated_push_arguments,
2738         set_gdbarch_deprecated_save_dummy_frame_tos,
2739         set_gdbarch_deprecated_push_return_address,
2740         set_gdbarch_deprecated_sizeof_call_dummy_words,
2741         set_gdbarch_deprecated_call_dummy_words,
2742         set_gdbarch_deprecated_dummy_write_sp.
2743         Add calls to:
2744         set_gdbarch_push_dummy_call,
2745         set_gdbarch_unwind_dummy_id,
2746         set_gdbarch_return_value.
2747
2748         * config/s390/nm-linux.h: Update comments.
2749         (target_insert_watchpoint, target_remove_watchpoint): Redefine.
2750         (STOPPED_BY_WATCHPOINT): Redefine.
2751         (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
2752         (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
2753         (s390_stopped_by_watchpoint): Likewise.
2754         (watch_area_cnt): Remove.
2755         * s390-nat.c: Update comments.
2756         (watch_area): Remove typedef.
2757         Global replace watch_area by struct watch_area.
2758         (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
2759         (s390_stopped_by_watchpoint): Remove pid argument,
2760         use s390_inferior_tid.  Add short-cut for the no watchpoint case.
2761         (s390_fix_watch_points): Remove pid argument,
2762         use s390_inferior_tid.  Recompute area spanned by watchpoints.
2763         (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
2764         argument.  Reimplement.
2765
2766         * config/s390/nm-linux.h: Update comments.  Do not include "solib.h".
2767         (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
2768         (FETCH_INFERIOR_REGISTERS): Define.
2769         * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
2770         core-regset.o.
2771         * config/s390/s390x.mt: Remove.
2772         * config/s390/tm-s390.h: Remove.
2773         * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
2774         (TARGET_ELF64): Remove.
2775         (SKIP_TRAMPOLINE_CODE): Do not undefine.
2776         * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
2777         s390*-*-* case; always set gdb_target to s390.
2778         * regformats/reg-s390.dat: Remove control registers.
2779         * regformats/reg-s390x.dat: Likewise.
2780         * s390-tdep.h: New file.
2781         * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
2782         Include "inferior.h" and "s390-tdep.h".
2783         Remove private definition of offsetof.
2784         (s390_register_u_addr): Remove.
2785         (regmap_gregset, regmap_fpregset): Define.
2786         (supply_gregset, fill_gregset): Reimplement.
2787         (supply_fpregset, fill_fpregset): Likewise.
2788         (s390_inferior_tid): New function.
2789         (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
2790         (fetch_inferior_registers, store_inferior_registers): Likewise.
2791         * s390-tdep.c: Do not define S390_TDEP.  Include "defs.h" instead
2792         of <defs.h>.  Include "reggroups.h", "regset.h", and "s390-tdep.h".
2793         Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
2794         Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
2795         (struct gdbarch_tdep): Define.
2796         (struct s390_register_info): Define.
2797         (s390_register_info): New variable.
2798         (s390_register_name): Reimplement.
2799         (s390_register_type): New function.
2800         (s390_register_raw_size, s390x_register_raw_size): Remove.
2801         (s390_cannot_fetch_register): Remove.
2802         (s390_register_byte): Remove.
2803         (s390_register_virtual_type, s390x_register_virtual_type): Remove.
2804         (s390_dwarf_regmap): New variable.
2805         (s390_dwarf_reg_to_regnum): New function.
2806         (s390_stab_reg_to_regnum): Remove.
2807         (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
2808         (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
2809         (s390_convert_register_p): Likewise.
2810         (s390_register_to_value, s390_value_to_register): Likewise.
2811         (s390_register_reggroup_p): Likewise.
2812         (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
2813         s390_gregset, s390x_gregset, s390_fpregset): New variables.
2814         (s390_supply_regset, s390_regset_from_core_section): New functions.
2815         (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
2816         (S390_FPR_SIZE): Likewise.
2817         (S390_GPR_SIZE): Likewise.  Redefine in terms of GDB_TARGET_IS_ESAME.
2818         Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
2819         (S390_NUM_GPRS): Move here from tm-s390.h.
2820         (S390_NUM_FPRS): Likewise.
2821         (s390_in_function_epilogue_p): New function.
2822         (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
2823         Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
2824         (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
2825         Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
2826         Replace S390_FP_REGNUM by S390_SP_REGNUM.
2827         Remove calls to:
2828         set_gdbarch_deprecated_max_register_raw_size,
2829         set_gdbarch_deprecated_max_register_virtual_size,
2830         set_gdbarch_deprecated_register_byte,
2831         set_gdbarch_cannot_fetch_register,
2832         set_gdbarch_cannot_store_register,
2833         set_gdbarch_deprecated_register_size,
2834         set_gdbarch_deprecated_register_raw_size,
2835         set_gdbarch_deprecated_register_virtual_size,
2836         set_gdbarch_deprecated_register_virtual_type,
2837         set_gdbarch_deprecated_register_bytes.
2838         Add calls to:
2839         set_gdbarch_num_pseudo_regs,
2840         set_gdbarch_register_type,
2841         set_gdbarch_convert_register_p,
2842         set_gdbarch_register_to_value,
2843         set_gdbarch_value_to_register,
2844         set_gdbarch_register_reggroup_p,
2845         set_gdbarch_regset_from_core_section,
2846         set_gdbarch_pseudo_register_read,
2847         set_gdbarch_pseudo_register_write,
2848         set_gdbarch_in_function_epilogue_p.
2849         * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
2850         (s390_tdep_h): New variable.
2851
2852 2004-02-17  Jim Blandy  <jimb@redhat.com>
2853
2854         * findvar.c (value_from_register): If the type has no length, just
2855         return an acceptable value --- don't report an internal error.
2856
2857         * stabsread.c (read_type): If we find any type numbers that are
2858         forward references, complain if the references aren't resolved by
2859         the time we're finished reading.
2860         (cleanup_undefined_types): Make error message more appropriate for
2861         a complaint.
2862
2863 2004-02-17  Elena Zannoni  <ezannoni@redhat.com>
2864
2865         * Makefile.in (defs_h): Remove dependency on progress_h.
2866         * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
2867         progress.h.
2868         * main.c (captured_main): Delete use of START_PROGRESS and
2869         END_PROGRESS.
2870
2871 2004-02-17  Elena Zannoni  <ezannoni@redhat.com>
2872
2873         * objfiles.c (terminate_minimal_symbol_table): Add back
2874         initialization of MSYMBOL_TYPE.
2875
2876 2004-02-17  David Mosberger  <davidm@hpl.hp.com>
2877
2878         Committed by Andrew Cagney.
2879         * Makefile.in (ia64_tdep_h): New macro.
2880         (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
2881         (ia64-tdep.o): Likewise.
2882         * ia64-tdep.h: New file.
2883         * ia64-tdep.c: Update copyright notice.  Include "ia64-tdep.h".
2884         (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
2885         (ia64_aix_sigcontext_register_address): Likewise.
2886         (ia64_linux_getunwind_table): Delete declaration.
2887         * ia64-linux-tdep.c: Likewise.
2888
2889 2004-02-17  Corinna Vinschen  <vinschen@redhat.com>
2890
2891         * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
2892         * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
2893         DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
2894
2895 2004-02-17  Andrew Cagney  <cagney@redhat.com>
2896
2897         * symtab.c (skip_prologue_using_sal): New function.
2898         * symtab.h (skip_prologue_using_sal): Declare.
2899         * frv-tdep.c: Include "symtab.h".
2900         (skip_prologue_using_sal): Delete function.
2901         * mips-tdep.c (skip_prologue_using_sal): Delete function.
2902         * rs6000-tdep.c (refine_prologue_limit): Mention
2903         skip_prologue_using_sal.
2904         * ia64-tdep.c (refine_prologue_limit): Ditto.
2905         * Makefile.in: Update dependencies.
2906
2907 2004-02-16  Andrew Cagney  <cagney@redhat.com>
2908
2909         * config/alpha/tm-nbsd.h: Update copyright, delete #undef
2910         START_INFERIOR_TRAPS_EXPECTED.
2911         * config/alpha/tm-fbsd.h: Update copyright, delete #undef
2912         START_INFERIOR_TRAPS_EXPECTED.
2913         * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
2914         Delete macro.
2915         * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
2916         macro, moved to "nm-osf.h".  Update copyright.
2917         * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
2918         update copyright.
2919
2920         * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
2921         and function replacing FRAMELESS_FUNCTION_INVOCATION.
2922         * blockframe.c (legacy_frameless_look_for_prologue): Rename
2923         frameless_look_for_prologue.
2924         * frame.h (legacy_frameless_look_for_prologue): Rename
2925         frameless_look_for_prologue.
2926         * gdbarch.h, gdbarch.c: Re-generate.
2927         * sh64-tdep.c (sh64_gdbarch_init): Update.
2928         * sh-tdep.c (sh_gdbarch_init): Update.
2929         * s390-tdep.c (s390_gdbarch_init): Update.
2930         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2931         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
2932         * m68k-tdep.c (m68k_gdbarch_init): Update.
2933         (delta68_frame_args_address): Update.
2934         * m32r-tdep.c (m32r_gdbarch_init): Update.
2935         * hppa-tdep.c (hppa_gdbarch_init): Update.
2936         * h8300-tdep.c (h8300_gdbarch_init): Update.
2937         * frv-tdep.c (frv_gdbarch_init): Update.
2938         (frv_frameless_function_invocation): Update.
2939         * cris-tdep.c (cris_gdbarch_init): Update.
2940         (cris_frameless_function_invocation): Update.
2941         * avr-tdep.c (avr_gdbarch_init): Update.
2942         * arm-tdep.c (arm_gdbarch_init): Update.
2943         * stack.c (frame_info): Update, call predicate.
2944         * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
2945         * frame.c (legacy_get_prev_frame): Update, call predicate..
2946         * arch-utils.c (generic_frameless_function_invocation_not): Delete.
2947         * arch-utils.h (generic_frameless_function_invocation_not): Delete.
2948         * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
2949         invocation.
2950         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2951         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
2952         * vax-tdep.c (vax_gdbarch_init): Ditto.
2953
2954         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
2955         function.
2956
2957 2004-02-16  Daniel Jacobowitz  <drow@mvista.com>
2958
2959         * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
2960         initializations.
2961
2962 2004-02-16  Andrew Cagney  <cagney@redhat.com>
2963
2964         * tui/tui-windata.c: Include "gdb_string.h".
2965         * tui/tui-source.c, tui/tui-winsource.c: Ditto.
2966         * tui/tui-layout.c, tui/tui-command.c: Ditto.
2967         * Makefile.in: Update dependencies.
2968
2969 2004-02-16  Daniel Jacobowitz  <drow@mvista.com>
2970
2971         * Makefile.in (infrun.o): Add $(gdb_assert_h).
2972         * infrun.c: Include "gdb_assert.h".
2973         (singlestep_ptid, saved_singlestep_ptid)
2974         (stepping_past_singlestep_breakpoint): New variables.
2975         (resume): Set singlestep_ptid.  Check for singlestep thread
2976         hop.
2977         (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
2978         (handle_inferior_event): Handle singlestep thread hop.
2979
2980 2004-02-16  Andrew Cagney  <cagney@redhat.com>
2981
2982         * dwarf2-frame.c (dwarf2_frame_ops): New function.
2983         (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
2984         (dwarf2_frame_init_reg): Ditto.
2985
2986         * printcmd.c (display_command): Check that EXP isn't NULL.  Fix
2987         suggested by Joshua Neuheisel
2988
2989         * configure.in: Always check for curses, including pdcurses.
2990         Warn, instead of error, when no curses are found.  Enable TUI when
2991         curses is available.
2992         * configure: Re-generate.
2993
2994 2004-02-16  Corinna Vinschen  <vinschen@redhat.com>
2995
2996         * sh-tdep.c (sh_register_convert_to_virtual): Rename from
2997         sh_sh4_register_convert_to_virtual.
2998         (sh_register_convert_to_raw): Rename from
2999         sh_sh4_register_convert_to_raw.
3000         (sh_pseudo_register_read): Accomodate above name change.
3001         (sh_pseudo_register_write): Ditto.
3002
3003 2004-02-16  Corinna Vinschen  <vinschen@redhat.com>
3004
3005         * sh-tdep.c (sh_generic_register_name): Remove.
3006         (sh_gdbarch_init): Use sh_sh_register_name in default case.
3007
3008 2004-02-15  Andrew Cagney  <cagney@redhat.com>
3009
3010         * configure.in (build_warnings): Add -Wunused-function.
3011         * configure: Re-generate.
3012
3013         * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
3014         * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
3015
3016         * procfs.c (procfs_init_inferior): Assume that
3017         START_INFERIOR_TRAPS_EXPECTED is defined.
3018         * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
3019         * config/ns32k/tm-nbsd.h: Delete file,
3020         START_INFERIOR_TRAPS_EXPECTED already defined as 2.
3021
3022         * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
3023         * config/vax/tm-vax.h: Delete file.
3024
3025         * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
3026         * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
3027         * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
3028         * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
3029         * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
3030         * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
3031         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
3032
3033 2004-02-15  Mark Kettenis  <kettenis@gnu.org>
3034
3035         * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
3036         * dwarf2-frame.c (dwarf2_frame_data): New variable.
3037         (struct dwarf2_frame_ops): New.
3038         (dwarf2_frame_default_init_reg): New function, based on
3039         dwarf2_frame_init_reg.
3040         (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
3041         (dwarf2_frame_init_reg): Call architecture-specific function.
3042         (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
3043         (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
3044         instead of dwarf2_frame_data.
3045         (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
3046         Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
3047
3048 2004-02-15  Andrew Cagney  <cagney@redhat.com>
3049
3050         * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
3051         register_gdbarch_swap.
3052         (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
3053         * f-lang.c (_initialize_f_language): Update, use
3054         DEPRECATED_REGISTER_GDBARCH_SWAP.
3055         * remote.c (_initialize_remote): Ditto.
3056         * regcache.c (_initialize_regcache): Ditto.
3057         * parse.c (_initialize_parse): Ditto.
3058         * infrun.c (_initialize_infrun): Ditto.
3059         * mi/mi-main.c (_initialize_mi_main): Ditto.
3060         * gdbtypes.c (_initialize_gdbtypes): Ditto.
3061
3062         * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
3063         poking .cacheable directly.
3064         * symfile.c (symfile_bfd_open): Ditto.
3065
3066         * Makefile.in: Update all dependencies.
3067
3068         * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
3069         (.y.c, .l.c): Specify implicit rule.  Instead of .tab.c, generate
3070         .c.  Update references.  Delete unnecessary .tab.c and -lex.c rules.
3071         (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
3072         (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
3073
3074 2004-02-14  Andrew Cagney  <cagney@redhat.com>
3075
3076         * arch-utils.c (legacy_convert_register_p): Check
3077         DEPRECATED_REGISTER_CONVERTIBLE_P.
3078         * findvar.c (value_of_register): Ditto.
3079
3080         * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
3081         * gdbarch.h, gdbarch.c: Re-generate.
3082         * arch-utils.c (deprecated_register_convertible_not): Delete.
3083         * arch-utils.h (deprecated_register_convertible_not): Delete.
3084         * mi/mi-main.c (get_register): Update.  Update copyright.
3085         * infcmd.c (default_print_registers_info): Update.
3086
3087         * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
3088         (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
3089         (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
3090         * gdbarch.h, gdbarch.c: Re-generate.
3091         * frame.c (deprecated_get_next_frame_hack): Delete function.
3092         * frame.h (deprecated_get_next_frame_hack): Delete declaration.
3093         * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
3094         Update.
3095         * infcall.c (call_function_by_hand): Update.
3096
3097 2004-02-14  Elena Zannoni  <ezannoni@redhat.com>
3098
3099         * symfile.c (init_entry_point_info, entry_point_address): Move
3100         from here...
3101         * objfiles.c (init_entry_point_info, entry_point_address):..to
3102         here.
3103         * symfile.h (init_entry_point_info, entry_point_address): Remove
3104         prototypes.
3105         * objfiles.h (init_entry_point_info, entry_point_address):Add
3106         prototypes.
3107         * cris-tdep.c: Remove include of symfile.h. Add include of
3108         objfiles.h.
3109         * infcall.c: Ditto.
3110         * mcore-tdep.c: Ditto.
3111         * mn10300-tdep.c: Ditto.
3112         * sh64-tdep.c: Ditto.
3113         * v850-tdep.c: Ditto.
3114         * arm-tdep.c: Remove include of symfile.h.
3115         * blockframe.c: Ditto.
3116         * coffread.c: Ditto.
3117         * dbxread.c: Ditto.
3118         * dwarf2read.c: Ditto.
3119         * dwarfread.c: Ditto.
3120         * frv-tdep.c: Ditto.
3121         * ia64-tdep.c: Ditto.
3122         * mdebugread.c: Ditto.
3123         * mipsread.c: Ditto.
3124         * rs6000-tdep.c: Ditto.
3125         * s390-tdep.c: Ditto.
3126         * sh-tdep.c: Ditto.
3127         * xstormy16-tdep.c: Ditto.
3128         * gdbarch.sh: Remove include of symfile.h.
3129         * gdbarch.c: Regenerate.
3130         * solib-irix.c (enable_break): Use entry_point_address().
3131         Add comment about include file.
3132         * xcoffread.c: Add comment about include file.
3133         * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
3134         (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
3135         (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
3136         (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
3137         (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
3138
3139 2004-02-13  Andrew Cagney  <cagney@redhat.com>
3140
3141         * corelow.c (core_xfer_partial): Use "struct bfd_section".
3142         * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
3143         copyright.
3144         * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
3145
3146 2004-02-12  Fred Fish  <fnf@redhat.com>
3147
3148         * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
3149          set_gdbarch_store_return_value.
3150
3151 2004-02-12  Andrew Cagney  <cagney@redhat.com>
3152
3153         * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
3154         (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
3155         (interrupt_query): Ditto.
3156         (ofunc): Delete unused variable.
3157         * cris-tdep.c (cris_abi): Delete unused function.
3158         (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
3159         (cris_get_wide_opcode, cris_get_short_size): Ditto.
3160         (cris_get_asr_quick_shift_steps): Ditto.
3161         (cris_skip_prologue_frameless_p): Ditto.
3162         * arm-tdep.c (arm_push_return_address): Delete unused function.
3163         (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
3164         * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
3165         * s390-tdep.c (s390_function_start): Delete unused function.
3166
3167 2004-02-12  Andrew Cagney  <cagney@redhat.com>
3168
3169         * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
3170         gdbarch.h, gdbarch.c: Re-generate.
3171         * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
3172         to generic_prologue_frameless_p.
3173         * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
3174         * arch-utils.c (generic_prologue_frameless_p): Delete function.
3175
3176 2004-02-11  Daniel Jacobowitz  <drow@mvista.com>
3177
3178         * mips-linux-tdep.c: Include "frame.h".
3179         (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
3180         (mips_linux_skip_resolver): New functions.
3181         (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
3182         and set_gdbarch_in_solib_call_trampoline.
3183         * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
3184         to after set_gdbarch_in_solib_return_trampoline.  Only set the
3185         solib hooks to mips16 functions if the OS ABI is unknown.
3186         * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
3187         including "config/tm-linux.h".
3188         (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
3189         * Makefile.in (mips-linux-tdep.o): Update.
3190
3191 2004-02-11  David Carlton  <carlton@kealia.com>
3192
3193         * linespec.c (decode_compound): Only look for a class symbol when
3194         considering all but the rightmost component.
3195
3196 2004-02-11  Andrew Cagney  <cagney@redhat.com>
3197
3198         * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
3199         abi code are are separatly grouped.
3200
3201 2004-02-11  Andrew Cagney  <cagney@redhat.com>
3202
3203         * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
3204         * gdbarch.h, gdbarch.c: Re-generate.
3205         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3206         * v850-tdep.c (v850_gdbarch_init): Update.
3207         * sh64-tdep.c (sh64_gdbarch_init): Update.
3208         * sh-tdep.c (sh_gdbarch_init): Update.
3209         * s390-tdep.c (s390_gdbarch_init): Update.
3210         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3211         * mips-tdep.c (mips_gdbarch_init): Update.
3212         * mcore-tdep.c (mcore_gdbarch_init): Update.
3213         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3214         * m32r-tdep.c (m32r_gdbarch_init): Update.
3215         * ia64-tdep.c (ia64_gdbarch_init): Update.
3216         * hppa-tdep.c (hppa_gdbarch_init): Update.
3217         * h8300-tdep.c (h8300_gdbarch_init): Update.
3218         * frv-tdep.c (frv_gdbarch_init): Update.
3219         * d10v-tdep.c (d10v_gdbarch_init): Update.
3220         * cris-tdep.c (cris_gdbarch_init): Update.
3221         * avr-tdep.c (avr_gdbarch_init): Update.
3222         * arm-tdep.c (arm_gdbarch_init): Update.
3223         * alpha-tdep.c (alpha_gdbarch_init): Update.
3224
3225 2004-02-11  Corinna Vinschen  <vinschen@redhat.com>
3226
3227         * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
3228         comma.
3229         (sh_sh4al_dsp_register_name): Ditto.
3230
3231 2004-02-10  Andrew Cagney  <cagney@redhat.com>
3232
3233         * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
3234         (mips_init_frame_pc_first): Delete function.
3235         (mips_frame_saved_pc): Delete function.
3236         (mips_frame_chain): Delete function.
3237         (mips_init_extra_frame_info): Delete function.
3238         (mips_xfer_register): Delete unused variable "reg".
3239         (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
3240         (mips_n32n64_return_value): Delete unused variable "reg".
3241         (mips_n32n64_return_value): Delete unused variable "pos".
3242         (mips_o32_push_dummy_call): Delete unused variable "valbuf".
3243         (mips_o32_return_value): Delete unused variable "pos".
3244         (mips_o64_push_dummy_call): Delete unused variable "valbuf".
3245         (mips_print_fp_register): Delete unused variable "namelen"
3246         (mips_print_fp_register): Delete unused variable "flt2"
3247         (get_frame_pointer): Delete function.
3248         (cached_proc_desc): Delete static variable.
3249         (mips_pop_frame): Delete function.
3250         (mips_find_saved_regs): Delete function.
3251         (mips_get_saved_register): Delete function.
3252         (mips_saved_pc_after_call): Delete function.
3253         (SIGFRAME_BASE): Delete macro.
3254         (SIGFRAME_FPREGSAVE_OFF): Delete macro.
3255         (SIGFRAME_PC_OFF): Delete macro.
3256         (SIGFRAME_REGSAVE_OFF): Delete macro.
3257         (mips_dump_tdep): Do not print deleted macro definitions.
3258
3259 2004-02-10  Andrew Cagney  <cagney@redhat.com>
3260
3261         * Makefile.in (SFILES): Remove explictly listed tui files.
3262         (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
3263
3264 2004-02-10  Jeff Johnston  <jjohnstn@redhat.com>
3265
3266         * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
3267         to use paddr functions to format ia64 addresses and long values.
3268         (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
3269         (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
3270         (get_kernel_table, ia64_find_proc_info_x): Ditto.
3271         (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
3272         (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
3273
3274 2004-02-10  Andrew Cagney  <cagney@redhat.com>
3275
3276         * defs.h: Do not include "tui.h".
3277         * gdb_curses.h: New file.
3278         * tui/tui-hooks.h: New file.
3279         * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
3280         (tui_install_hooks, tui_remove_hooks): Delete declarations.
3281         (tui_initialize_io): Delete declaration.
3282         (tui_initialize_readline: Delete redundant declaration.
3283         (struct tui_point): Delete definition.
3284         * tui/tui-data.h (struct tui_point): Define.
3285         * cli/cli-decode.c [TUI]: Include "tui/tui.h".
3286         * utils.c: Include "tui/tui.h".
3287         * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
3288         * printcmd.c [TUI]: Include "tui/tui.h".
3289         * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
3290         * tui/tui-command.c: Include "gdb_curses.h".
3291         * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
3292         * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
3293         * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
3294         * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
3295         * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
3296         * Makefile.in: Update all dependencies.
3297         (tui_hooks_h, gdb_curses_h): Define.
3298         (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
3299
3300 2004-02-10  Elena Zannoni  <ezannoni@redhat.com>
3301
3302         * objfiles.h (struct objfile): Remove unused fields auxf1 and
3303         auxf2. Add comments about some other rarely used fields.
3304
3305 2004-02-10  Andrew Cagney  <cagney@redhat.com>
3306
3307         * Makefile.in (init.c): Fix script removing duplicates. Problem
3308         reported by Peter Schauer.
3309
3310 2004-02-09  Elena Zannoni  <ezannoni@redhat.com>
3311
3312         * bcache.c (bcache_xmalloc): Use obstack_init instead of
3313         obstack_specify_allocation.
3314         * objfiles.c (allocate_objfile): Ditto.
3315         * solib-sunos.c (solib_add_common_symbols)
3316         (allocate_rt_common_objfile): Ditto.
3317         * symfile.c (reread_symbols): Ditto.
3318         * gdb_obstack.h: Add comment.
3319
3320 2004-02-09  Elena Zannoni  <ezannoni@redhat.com>
3321
3322         * linespec.c (decode_line_1, locate_first_half)
3323         (decode_compound, lookup_prefix_sym): Update comments. Delete old
3324         commented out code.
3325
3326 2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
3327
3328         * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
3329         obstack_free.
3330
3331 2004-02-09  Andrew Cagney  <cagney@redhat.com>
3332
3333         * blockframe.c (find_pc_partial_function): If find_pc_overlay
3334         fails, try find_pc_section.  Fix PR c++/1267.
3335         * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
3336         instead of find_pc_mapped_section.
3337         (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
3338         not default to the section containing PC.  Fix PR symtab/1519.
3339
3340 2004-02-09  Andrew Cagney  <cagney@redhat.com>
3341
3342         * Makefile.in (mips-tdep.o): Update dependencies.
3343         * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
3344         "trad-frame.h".
3345         (mips_unwind_pc): Return the pseudo PC register.
3346         (mips_unwind_dummy_id): New function.
3347         (mips16_fetch_instruction): New function.
3348         (mips32_fetch_instruction): New function.
3349         (struct mips_frame_cache): Define.
3350         (mips_mdebug_frame_cache): New function.
3351         (mips_mdebug_frame_this_id): New function.
3352         (mips_mdebug_frame_prev_register): New function.
3353         (mips_mdebug_frame_unwind): Define.
3354         (mips_mdebug_frame_sniffer): New function.
3355         (mips_mdebug_frame_base_address): New function.
3356         (mips_mdebug_frame_base): Define.
3357         (mips_mdebug_frame_base_sniffer): New function.
3358         (mips_gdbarch_init): Append unwind and base sniffers.  Set
3359         unwind_dummy_id.
3360
3361 2004-02-08  Andrew Cagney  <cagney@redhat.com>
3362
3363         * frame.c: Print both the register number and name.
3364
3365         * Makefile.in (init.c): Eliminate duplicates.  Combine two greps
3366         and a sed into a single sed.  Make .c and .o patterns more robust.
3367         (OBS): Delete.
3368         (INIT_FILES): Replace OBS with COMMON_OBS.
3369         (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
3370
3371 2004-02-08  Mark Kettenis  <kettenis@gnu.org>
3372
3373         * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
3374         the PT_WCOOKIE request.
3375
3376 2004-02-08  Andrew Cagney  <cagney@redhat.com>
3377
3378         * mips-tdep.c (mips_unwind_pc): New function.
3379         (mips_gdbarch_init): Set mips_unwind_pc.
3380
3381         * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
3382         (get_frame_id): Allow the UNKNOWN_FRAME.
3383         (frame_register_unwind, get_frame_type): Ditto.
3384
3385         * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
3386         and DEPRECATED_FP_REGNUM.  Don't assume that the lack of
3387         unwind_dummy_id indicates a legacy frame.
3388
3389         * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
3390         * configure: Re-generate.
3391
3392         * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
3393         methods.
3394
3395 2004-02-08  Andrew Cagney  <cagney@redhat.com>
3396
3397         * configure.in (CONFIG_ALL): Set to Makefile target, and not
3398         makefile macro.
3399         * configure: Re-generate.
3400         (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
3401         * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
3402         (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
3403         (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
3404         (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
3405         (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
3406         (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
3407         (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
3408         (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
3409         (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
3410
3411 2004-02-07  Andrew Cagney  <cagney@redhat.com>
3412
3413         * Makefile.in: Update all dependencies.
3414
3415         * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
3416         * configure: Re-generate.
3417         * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
3418         (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
3419         (COMMON_OBS): Add "main.o" and "annotate.o".
3420         (ANNOTATE_OBS): Delete.
3421         (OBS): Remove ANNOTATE_OBS.
3422         (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
3423         CONFIG_INITS.
3424         (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
3425         against CONFIG_OBS and "main.o".
3426         (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
3427         (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
3428
3429         * tui/tui-command.c: Include "gdb_string.h", delete register
3430         attribute, use ISO-C function signatures.
3431         * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
3432         * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
3433         * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
3434         * tui/tui.c: Ditto.
3435
3436         * tui/tui-command.c: Change variable and function names to lower
3437         case.
3438         * tui/tui-data.c, tui/tui-disasm.c: Ditto.
3439         * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
3440         * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
3441         * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
3442         * tui/tui-winsource.c, tui/tui.c: Ditto.
3443
3444 2004-02-07  Elena Zannoni  <ezannoni@redhat.com>
3445
3446         * buildsym.c (free_pending_blocks, finish_block)
3447         (record_pending_block, make_blockvector, end_symtab): Replace
3448         symbol_obstack with objfile_obstack.
3449         * coffread.c (process_coff_symbol, coff_read_struct_type)
3450         (coff_read_enum_type): Ditto.
3451         * cp-namespace.c (initialize_namespace_symtab)
3452         (check_one_possible_namespace_symbol): Ditto.
3453         * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
3454         (dwarf2_symbol_mark_computed): Ditto.
3455         * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
3456         * elfread.c (elf_symtab_read): Ditto.
3457         * hpread.c (hpread_symfile_init, hpread_symfile_init)
3458         (hpread_read_enum_type, hpread_read_function_type)
3459         (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
3460         Ditto.
3461         * jv-lang.c (get_java_class_symtab, add_class_symbol)
3462         (java_link_class_type): Ditto.
3463         * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
3464         (new_symbol): Ditto.
3465         * minsyms.c (install_minimal_symbols): Ditto.
3466         * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
3467         (terminate_minimal_symbol_table): Replace symbol_obstack with
3468         objfile_obstack.
3469         (free_objfile): Remove freeing of symbol_obstack.
3470         * objfiles.h: Remove symbol_obstack field.
3471         * pa64solib.c (add_to_solist): Replace symbol_obstack with
3472         objfile_obstack.
3473         * solib-sunos.c (allocate_rt_common_objfile): Remove init of
3474         symbol_obstack.
3475         (solib_add_common_symbols): Replace symbol_obstack with
3476         objfile_obstack.
3477         * somsolib.c (som_solib_add): Ditto.
3478         * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3479         (common_block_start, common_block_end): Ditto.
3480         * symfile.c (reread_symbols): Remove freeing and init of
3481         symbol_obstack.
3482         (allocate_symtab): Rename symbol_obstack to objfile_obstack.
3483         * symfile.h: Update comment.
3484         * symmisc.c (print_objfile_statistics): Remove symbol_obstack
3485         stats printing.
3486         * symtab.c (symbol_set_names): Replace symbol_obstack with
3487         objfile_obstack.
3488         * symtab.h (struct general_symbol_info, struct minimal_symbol):
3489         Update comments.
3490         * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
3491         (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
3492         objfile_obstack.
3493
3494 2004-02-07  Andrew Cagney  <cagney@redhat.com>
3495
3496         * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
3497         "ansidecl.h".  Do not undef "reg" and "chtype".  Fix case of
3498         fields and variables.
3499         * tui/tui-wingeneral.h (m_beVisible): Delete macro.
3500         (m_beInvisible): Delete macro.
3501         * tui/tui-data.h: Fix case case fields and variables.
3502         (m_genWinPtrIsNull): Delete macro.
3503         (tui_win_list): Rename winList.
3504         (TUI_SRC_WIN): Rename srcWin.
3505         (TUI_DISASM_WIN): Rename disassemWin.
3506         (TUI_DATA_WIN): Rename dataWin.
3507         (TUI_CMD_WIN): Rename cmdWin.
3508         (m_genWinPtrNotNull): Delete macro.
3509         (m_winPtrIsNull): Delete macro.
3510         (m_winPtrNotNull): Delete macro.
3511         (tui_win_is_source_type): Replace m_winIsSourceType
3512         (tui_win_is_auxillary): Replace m_winIsAuzillary.
3513         (tui_win_has_locator): Replace m_hasLocator.
3514         (tui_set_win_highlight): Replace m_setWinHighlightOn and
3515         m_setWinHighlightOff.
3516         * tui/tui-data.c: Update references.
3517         (tui_win_is_source_type, tui_set_win_highlight): New functions.
3518         (tui_win_has_locator, tui_win_is_auxillary): New functions.
3519         * tui/tui-command.c, tui/tui-disasm.c: Update references.
3520         * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
3521         * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
3522         * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
3523         * tui/tui-winsource.c, tui/tui.c: Ditto.
3524
3525 2004-02-07  Mark Kettenis  <kettenis@gnu.org>
3526
3527         * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
3528         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
3529         StackGhost.
3530
3531         * sparc-tdep.c (sparc32_frame_prev_register): Rename local
3532         variable `i6' to `i7'.
3533         (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
3534
3535 2004-02-07  Andrew Cagney  <cagney@redhat.com>
3536
3537         * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
3538         (TuiPoint, TuiPointPtr): Ditto.
3539         (TuiStatus, TuiStatusPtr): Ditto.
3540         (TuiWinType, TuiWinTypePtr): Ditto.
3541         (struct tui_point): Rename _TuiPoint.
3542         (tui_get_low_disassembly_address): Rename
3543         tuiGetLowDisassemblyAddress.
3544         (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
3545         (tuiFree): Delete declaration.
3546         (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
3547         (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
3548         * tui/tui.c (tuiFree): Delete function.
3549         * cli/cli-cmds.c (disassemble_command): Update references.
3550         * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
3551         * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
3552         * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
3553         * tui/tui-winsource.c: Ditto.
3554
3555 2004-02-07  Elena Zannoni  <ezannoni@redhat.com>
3556
3557         * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
3558         coffstab_build_psymtabs, elfstab_build_psymtabs)
3559         (stabsect_build_psymtabs): Replace psymbol_obstack with
3560         objfile_obstack.
3561         * dwarf2-frame.c (decode_frame_entry_1): Ditto.
3562         * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
3563         Ditto.
3564         * dwarfread.c (scan_compilation_units): Ditto.
3565         * elfread.c (elfstab_offset_sections): Ditto.
3566         * hppa-tdep.c (read_unwind_info): Ditto.
3567         * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
3568         (hpread_end_psymtab): Ditto.
3569         * mdebugread.c (mdebug_build_psymtabs, add_pending)
3570         (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
3571         Ditto.
3572         * mips-tdep.c (non_heuristic_proc_desc): Ditto.
3573         * objfiles.c (add_to_objfile_sections)
3574         (build_objfile_section_table): Ditto.
3575         (allocate_objfile): Remove init of psymbol_obstack.
3576         (free_objfile): Remove freeing of psymbol_obstack.
3577         * objfiles.h (struct objfile): Remove field
3578         psymbol_obstack. Update comments.
3579         * pa64solib.c (pa64_solib_add_solib_objfile): Replace
3580         psymbol_obstack with objfile_obstack.
3581         * solib-sunos.c (allocate_rt_common_objfile): Remove init of
3582         psymbol_obstack.
3583         * somread.c (som_symfile_offsets, init_import_symbols)
3584         (init_export_symbols): Replace psymbol_obstack with
3585         objfile_obstack.
3586         * somsolib.c (som_solib_add_solib_objfile): Ditto.
3587         * symfile.c (default_symfile_offsets, syms_from_objfile)
3588         (reread_symbols): Remove freeing and init of psymbol_obstack.
3589         (cashier_psymtab): Update comment.
3590         * symmisc.c (print_objfile_statistics): Don't report stats for
3591         psymbol obstack.
3592         * symtab.h (struct general_symbol_info, struct partial_symtab):
3593         Update comments.
3594         * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
3595         (xcoff_symfile_offsets): Replace psymbol_obstack with
3596         objfile_obstack.
3597
3598 2004-02-07  Elena Zannoni  <ezannoni@redhat.com>
3599
3600         * objfiles.h (struct objfile): Add objfile_obstack field.
3601         Remove type_obstack field.
3602
3603         * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
3604         read_structure_scope read_enumeration, new_symbol): Replace
3605         type_obstack with objfile_obstack.
3606         * dwarfread.c (struct_type, enum_type): Ditto.
3607         * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
3608         (lookup_fundamental_type): Ditto.
3609         * gdbtypes.h (TYPE_ALLOC): Ditto.
3610         * hpread.c (hpread_read_enum_type, hpread_read_function_type)
3611         (hpread_read_doc_function_type, hpread_read_struct_type)
3612         (fix_static_member_physnames, hpread_read_array_type)
3613         (hpread_read_subrange_type, hpread_type_lookup): Ditto.
3614         * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
3615         (java_link_class_type): Ditto.
3616         * mdebugread.c (parse_type): Ditto.
3617         * objfiles.c (allocate_objfile, free_objfile): Ditto.
3618         * solib-sunos.c (solib_add_common_symbols): Ditto.
3619         * stabsread.c (define_symbol, read_type, read_member_functions,
3620         read_cpp_abbrev, read_one_struct_field): Ditto.
3621         * symfile.c (reread_symbols): Ditto.
3622         * symmisc.c (print_objfile_statistics): Ditto.
3623
3624 2004-02-07  Andrew Cagney  <cagney@redhat.com>
3625
3626         * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
3627         (tui_exec_info_content): Rename TuiExecInfoContent.
3628         (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
3629         (TuiWinInfo, TuiWinInfoPtr): Ditto.
3630         (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
3631         (TuiList, TuiListPtr): Ditto.
3632         (TuiLayoutType, TuiLayoutTypePtr): Ditto.
3633         (TuiDataType, TuiDataTypePtr): Ditto.
3634         (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
3635         (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
3636         (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
3637         (TuiSourceElement, TuiSourceElementPtr): Ditto.
3638         (TuiDataElement, TuiDataElementPtr): Ditto.
3639         (TuiWinElement, TuiWinElementPtr): Ditto.
3640         (TuiDataInfo, TuiDataInfoPtr): Ditto.
3641         (TuiCommandElement, TuiCommandElementPtr): Ditto.
3642         (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
3643         (TuiWhichElement, TuiWhichElementPtr): Ditto.
3644         (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
3645         (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
3646         * tui/tui-command.c, tui/tui-data.c: Update references.
3647         * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
3648         * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
3649         * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
3650         * tui/tui-winsource.c, tui/tui.c: Ditto.
3651
3652 2004-02-07  Mark Kettenis  <kettenis@gnu.org>
3653
3654         * dwarf2-frame.h: Update copyright.
3655         (enum dwarf2_frame_reg_rule): New.
3656         (struct dwarf2_frame_state_reg): New.
3657         (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
3658         * dwarf2-frame.c: Update copyright.
3659         (enum dwarf2_reg_rule): Remove.
3660         (struct dwarf2_frame_state): Remove defenition of `struct
3661         dwarf2_frame_state_reg'.
3662         (read_reg): Call get_frame_arch to get the architecture instead of
3663         using CURRENT_GDBARCH.
3664         (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
3665         DWARF2_FRAME_.
3666         (dwarf2_frame_init_reg): New function.
3667         (dwarf2_frame_cache): Call get_frame_arch to get the architecture
3668         instead of using CURRENT_GDBARCH.  Call dwarf2_frame_init_reg to
3669         initialize the register state.  Prefix old `enum dwarf2_reg_rule'
3670         tags with DWARF2_FRAME_.
3671         (dwarf2_frame_prev_register): Call get_frame_arch to get the
3672         architecture instead of using CURRENT_GDBARCH.  Prefix old `enum
3673         dwarf2_reg_rule' tags with DWARF2_FRAME_.
3674
3675 2004-02-06  Andrew Cagney  <cagney@redhat.com>
3676
3677         * tui/tui-data.h (struct tui_list): Rename _TuiList.
3678         (enum tui_data_type): Rename _TuiDataType.
3679         (struct tui_layout_def): Rename _TuiLayoutDef.
3680         (struct tui_source_element): Rename _TuiSourceElement.
3681         (struct tui_data_element): Rename _TuiDataElement.
3682         (struct tui_command_element): Rename _TuiCommandElement.
3683         (struct tui_locator_element): Rename _TuiLocatorElement.
3684         (union tui_which_element): Define.
3685         (struct tui_win_element): Rename _TuiWinElement.
3686         (struct tui_data_info): Rename _TuiDataInfo.
3687         (struct tui_source_info): Rename _TuiSourceInfo.
3688         (struct tui_command_info): Rename _TuiCommandInfo.
3689         (tui_initialize_static_data): Rename initializeStaticData.
3690         (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
3691         (tui_alloc_win_info): Rename allocWinInfo.
3692         (tui_init_generic_part): Rename initGenericPart.
3693         (tui_init_win_info): Rename initWinInfo.
3694         (tui_alloc_content): Rename allocContent.
3695         (tui_add_content_elements): Rename addContentElements.
3696         (tui_init_content_element): Rename initContentElement.
3697         (tui_free_window): Rename freeWindow.
3698         (tui_free_win_content): Rename freeWinContent.
3699         (tui_free_data_content): Rename freeDataContent.
3700         (tui_free_all_source_wins_content): Rename
3701         freeAllSourceWinsContent.
3702         (tui_del_window): Rename tuiDelWindow.
3703         (tui_del_data_windows): Rename tuiDelDataWindows.
3704         (tui_partial_win_by_name): Rename partialWinByName.
3705         (tui_win_name): Rename winName.
3706         (tui_current_layout): Rename currentLayout.
3707         (tui_set_current_layout_to): Rename setCurrentLayoutTo.
3708         (tui_term_height): Rename termHeight.
3709         (tui_set_term_height_to): Rename setTermHeightTo.
3710         (tui_term_width): Rename termWidth.
3711         (tui_set_term_width_to): Rename setTermWidthTo.
3712         (tui_set_gen_win_origin): Rename setGenWinOrigin.
3713         (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
3714         (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
3715         (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
3716         (tui_source_windows): Rename sourceWindows.
3717         (tui_clear_source_windows): Rename clearSourceWindows.
3718         (tui_clear_source_windows_detail): Rename
3719         clearSourceWindowsDetail.
3720         (tui_clear_win_detail): Rename clearWinDetail.
3721         (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
3722         (tui_default_tab_len): Rename tuiDefaultTabLen.
3723         (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
3724         (tui_win_with_focus): Rename tuiWinWithFocus.
3725         (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
3726         (tui_layout_def): Rename tuiLayoutDef.
3727         (tui_win_resized): Rename tuiWinResized.
3728         (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
3729         (tui_next_win): Rename tuiNextWin.
3730         (tui_prev_win): Rename tuiPrevWin.
3731         (tui_add_to_source_windows): Rename addToSourceWindows.
3732         * tui/tui-winsource.c, tui/tui-win.c: Update references.
3733         * tui/tui-layout.c, tui/tui-source.c: Ditto.
3734         * tui/tui-stack.c, tui/tui-io.c: Ditto.
3735         * tui/tui.c, tui/tui-data.c: Ditto.
3736         * tui/tui-interp.c, tui/tui-data.c: Ditto.
3737         * tui/tui-disasm.c, tui/tui-command.c: Ditto.
3738
3739         * tui/tui-source.h: Update copyright.  Include "tui-data.h".
3740         (struct symtab): Declare.
3741         (tui_set_source_content): Rename tuiSetSourceContent.
3742         (tui_show_symtab_source): Rename tuiShowSource.
3743         (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
3744         (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
3745         * tui/tui-source.c: Update copyright.  Update references.
3746         * tui/tui-win.c, tui/tui-winsource.c: Update references.
3747         * tui/tui-stack.c: Update references.
3748
3749         * tui/tui-win.h: Update copyright.  Include "tui-data.h".
3750         (struct tui_win_info): Declare.
3751         (tui_scroll_forward): Rename tuiScrollForward.
3752         (tui_scroll_backward): Rename tuiScrollBackward.
3753         (tui_scroll_left): Rename tuiScrollLeft.
3754         (tui_scroll_right): Rename tuiScrollRight.
3755         (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
3756         (tui_resize_all): Rename tuiResizeAll.
3757         (tui_refresh_all_win): Rename tuiRefreshAll.
3758         (tui_sigwinch_handler): Rename tuiSigwinchHandler.
3759         * tui/tui-layout.c, * tui/tui-io.c: Update references.
3760         * tui/tui-wingeneral.h, * tui/tui.c: Update references.
3761         * tui/tui-disasm.c, * tui/tui-command.c: Update references.
3762
3763         * tui/tui-windata.h: Update copyright.  Include "tui-data.h".
3764         (tui_erase_data_content): Rename tuiEraseDataContent.
3765         (tui_display_all_data): Rename tuiDisplayAllData.
3766         (tui_check_data_values): Rename tuiCheckDataValues.
3767         (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
3768         (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
3769         (tui_first_data_element_no_in_line): Rename
3770         tuiFirstDataElementNoInLine.
3771         (tui_delete_data_content_windows): Rename
3772         tuiDeleteDataContentWindows.
3773         (tui_refresh_data_win): Rename tuiRefreshDataWin.
3774         (tui_display_data_from): Rename tuiDisplayDataFrom.
3775         (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
3776         * tui/tui-windata.c, tui/tui-hooks.c: Update references.
3777         * tui/tui-win.c, tui/tui-regs.c: Update references.
3778         * tui/tui-layout.c, tui/tui.c: Update references.
3779
3780         * tui/tui-wingeneral.h: Update copyright.
3781         (m_allBeVisible): Delete macro.
3782         (m_allBeInvisible): Delete macro.
3783         (struct tui_gen_win_info): Declare.
3784         (struct tui_win_info): Declare.
3785         (tui_unhighlight_win): Rename unhighlightWin.
3786         (tui_make_visible, tui_make_invisible): Replace makeVisible.
3787         (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
3788         (tui_make_window): Rename makeWindow.
3789         (tui_copy_win): Rename copyWin.
3790         (tui_box_win): Rename boxWin.
3791         (tui_highlight_win): Rename highlightWin.
3792         (tui_check_and_display_highlight_if_needed): Rename
3793         checkAndDisplayHighlightIfNeeded.
3794         (tui_refresh_all): Rename refreshAll.
3795         (tui_delete_win): Rename tuiDelwin.
3796         (tui_refresh_win): Rename tuiRefreshWin.
3797         * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
3798         (tui_make_visible, tui_make_invisible): New functions.
3799         (tui_make_all_visible, tui_make_all_invisible): New functions.
3800         (make_all_visible): Rename makeAllVisible.
3801         * tui/tui-winsource.c, tui/tui-windata.c: Update references.
3802         * tui/tui-data.c, tui/tui-winsource.c: Update references.
3803         * tui/tui-windata.c, tui/tui-win.c: Update references.
3804         * tui/tui-regs.c, tui/tui-layout.c: Update references.
3805         * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
3806
3807 2004-02-06  Mark Kettenis  <kettenis@gnu.org>
3808
3809         * proc-api.c (write_with_trace): Initialize local variable to
3810         silence compiler warning.
3811
3812 2004-02-06  Andrew Cagney  <cagney@redhat.com>
3813
3814         * tui/tui-source.h: Do not include "defs.h".
3815         (struct tui_win_info): Declare.
3816         (tui_set_source_content_nil): Declare.
3817         * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
3818         (union tui_line_or_address): Rename _TuiLineOrAddress.
3819         * tui/tui-winsource.h: Update copyright.  Include "tui-data.h".
3820         (tui_update_source_window): Rename tuiUpdateSourceWindow.
3821         (tui_update_source_window_as_is): Rename
3822         tuiUpdateSourceWindowAsIs.
3823         (tui_update_source_windows_with_addr): Rename
3824         tuiUpdateSourceWindowsWithAddr.
3825         (tui_update_source_windows_with_line): Rename
3826         tuiUpdateSourceWindowsWithLine.
3827         (tui_clear_source_content): Rename tuiClearSourceContent.
3828         (tui_erase_source_content): Rename tuiEraseSourceContent.
3829         (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
3830         (tui_show_source_content): Rename tuiShowSourceContent.
3831         (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
3832         (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
3833         (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
3834         (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
3835         (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
3836         (tui_update_exec_info): Rename tuiUpdateExecInfo.
3837         (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
3838         (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
3839         (tui_line_is_displayed): Rename tuiLineIsDisplayed.
3840         (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
3841         (struct tui_win_info): Declare.
3842         * tui/tui-stack.c: Update references.
3843         * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
3844         * tui/tui-win.c, tui/tui-source.c: Ditto.
3845         * tui/tui.c, tui/tui-disasm.c: Ditto.
3846
3847 2004-02-06  Mark Kettenis  <kettenis@gnu.org>
3848
3849         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
3850         of UCONTEXT_ADDR.  Fixes PR backtrace/1545.
3851
3852 2004-02-05  Mark Kettenis  <kettenis@gnu.org>
3853
3854         * infrun.c (handle_inferior_event): Allow for breakpoint
3855         instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
3856         and SIGEMT.  Update comments.
3857         * NEWS (Revised SPARC target): Mention support for non-executable
3858         stack.
3859
3860 2004-02-04  Mark Kettenis  <kettenis@gnu.org>
3861
3862         * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
3863         * inftarg.c: Update copyright year.
3864         (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
3865         * sparc-nat.c: Include "target.h" and "gdb_assert.h".
3866         (sparc_xfer_wcookie): New function.
3867         * sparc-tdep.c (sparc_fetch_wcookie): New function.
3868         * Makefile.in (sparc-nat.o): Update dependencies.
3869         * config/sparc/nm-nbsd.h: Include "target.h".
3870         (NATIVE_XFER_WCOOKIE): New define.
3871         (sparc_xfer_wcookie): New prototype.
3872
3873 2004-02-04  Andrew Cagney  <cagney@redhat.com>
3874
3875         * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
3876         SYSCALL_TRAP function.
3877         (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
3878
3879 2004-02-04  Andrew Cagney  <cagney@redhat.com>
3880             Daniel Jacobowitz  <drow@mvista.com>
3881
3882         * objfiles.h: Delete comments refering to inside_entry_func and
3883         DEPRECATED_FRAME_CHAIN_VALID.
3884         * defs.h (inside_entry_func): Update prototype..
3885         * blockframe.c (inside_entry_func): Rename to
3886         legacy_inside_entry_func.  Add new inside_entry_func taking a frame.
3887         * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
3888
3889 2004-02-03  Jeff Johnston  <jjohnstn@redhat.com>
3890
3891         * breakpoint.c (struct captured_parse_breakpoint_args):  Move
3892         outside of #ifdef SOLIB_ADD region.
3893         (do_restore_lang_radix_cleanup): Ditto.
3894         (resolve_pending_breakpoint): Ditto.
3895
3896 2004-02-03  Andrew Cagney  <cagney@redhat.com>
3897
3898         * ia64-tdep.c (read_sigcontext_register): Delete unused function.
3899         (process_note_abi_tag_sections): Delete unused function.
3900         (ia64_read_fp): Delete unused function.
3901         (gdbarch_extract_struct_value_address): Delete declaration.
3902
3903 2004-02-02  Andrew Cagney  <cagney@redhat.com>
3904
3905         * vax-tdep.c (vax_frame_chain): Delete call to
3906         deprecated_inside_entry_file.
3907         * ns32k-tdep.c (ns32k_frame_chain): Ditto.
3908
3909 2004-02-02  Mark Kettenis  <kettenis@gnu.org>
3910
3911         * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
3912         column that's "empty" or "same value" when eliminating REG_RA
3913         rules.
3914
3915 2004-02-02  Jeff Johnston  <jjohnstn@redhat.com>
3916
3917         * NEWS: Add information about new pending breakpoint support.
3918
3919 2004-02-02  Jeff Johnston  <jjohnstn@redhat.com>
3920
3921         * breakpoint.h (struct breakpoint): Add new flag, from_tty,
3922         and pending fields for pending breakpoint support.
3923         * breakpoint.c (breakpoint_enabled): Add check for not pending.
3924         (condition_command): Only parse condition if not a pending
3925         breakpoint.
3926         (print_one_breakpoint): Add support for pending breakpoints.
3927         (describe_other_breakpoints): Add checks to verify we are not
3928         dealing with pending breakpoints.
3929         (check_duplicates): Don't check pending breakpoints.
3930         (set_raw_breakpoint): Initialize pending flag.
3931         (do_restore_lang_radix_cleanup): New cleanup routine.
3932         (resolve_pending_breakpoint): New function.
3933         (re_enable_breakpoints_in_shlibs): Try and resolve any
3934         pending breakpoints via resolve_pending_breakpoint.
3935         (mention): Add pending breakpoint support.
3936         (parse_breakpoint_sals): Add new parameter to pass to
3937         decode_line_1 to indicate silent errors when files or functions
3938         are not found.  Change all callers.
3939         (do_captured_parse_breakpoint): New function.
3940         (break_command_1): Change prototype to return an rc value and to
3941         take an optional pending breakpoint pointer.  Support creating
3942         a pending breakpoint if a "not found" form of error occurs when
3943         parsing the breakpoint.  Also support resolving an existing pending
3944         breakpoint and be silent if the resolution fails.
3945         (create_breakpoints): Change prototype to take pending breakpoint
3946         pointer.  When resolving a pending breakpoint, use the new pointer
3947         to provide a conditional or commands added by the end-user.
3948         (delete_breakpoint): Add appropriate check for pending.
3949         (breakpoint_re_set_one): Ditto.
3950         (do_enable_breakpoint): Ditto.
3951
3952 2004-02-02  David Carlton  <carlton@kealia.com>
3953
3954         * valops.c (enum oload_classification): New.
3955         (find_overload_match): Break implementation into separate
3956         functions; delete #if 0'd code; look for symbols within
3957         namespaces.
3958         (find_oload_champ_namespace,find_oload_champ_namespace_loop)
3959         (find_oload_champ,oload_method_static,classify_oload_match): New.
3960         * cp-support.h: Add declaration for cp_func_name; update
3961         declaration for make_symbol_overload_list.
3962         * cp-support.c (cp_func_name): New.
3963         (overload_list_add_symbol): Fix comment, use
3964         SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
3965         (make_symbol_overload_list): Take a function name and a namespace
3966         instead of a symbol; change implementation.
3967         (make_symbol_overload_list_using): New.
3968         (make_symbol_overload_list_qualified, read_in_psymtabs): New.
3969
3970 2004-02-02  Fred Fish  <fnf@redhat.com>
3971
3972         * main.c (gdb_stdtarg): Move definition to group with other
3973         gdb_stdtarg definitions and update copyright years.
3974         * remote-sim.c (gdb_os_write_stderr): Write output to
3975         gdb_stdtargerr stream instead of gdb_stdtarg stream.
3976         (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
3977         gdb_stderr stream and update copyright years.
3978
3979 2004-02-01  Daniel Jacobowitz  <drow@mvista.com>
3980
3981         * Makefile.in (mips-linux-nat.o): Update dependencies.
3982         * mips-linux-nat.c: Include mips-tdep.h.
3983
3984 2004-02-01  Roland McGrath  <roland@redhat.com>
3985
3986         * sol-thread.c (sol_thread_xfer_partial): New function.
3987         (init_sol_thread_ops): Use that for to_xfer_partial hook.
3988         (init_sol_core_ops): Likewise.
3989
3990         * procfs.c (procfs_xfer_partial): New function.
3991         (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
3992         * Makefile.in (procfs.o): Add $(auxv_h) dep.
3993
3994         * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
3995         procfs_xfer_auxv function.
3996
3997         * procfs.c (procfs_make_note_section): If we can read
3998         TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
3999         * linux-proc.c (linux_make_note_section): Likewise.
4000
4001         * auxv.h: New file.
4002         * auxv.c: New file.
4003         * Makefile.in (auxv_h): New variable.
4004         (COMMON_OBS): Add auxv.o here.
4005         (auxv.o): New target.
4006
4007         * corelow.c (core_xfer_partial): New function.
4008         (init_core_ops): Use it for core_ops.to_xfer_partial.
4009
4010         * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
4011         * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
4012         macro if that is defined.
4013
4014 2004-02-01  Daniel Jacobowitz  <drow@mvista.com>
4015
4016         * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
4017         and check the specified thread for each breakpoint.
4018         * breakpoint.h (bpstat_stop_status): Update prototype.
4019         * infrun.c (handle_inferior_event): Update calls to
4020         bpstat_stop_status.
4021
4022 2004-02-01  Daniel Jacobowitz  <drow@mvista.com>
4023
4024         * Makefile.in (cli-cmds.o): Add $(readline_h).
4025
4026 2004-02-01  Daniel Jacobowitz  <drow@mvista.com>
4027
4028         * cli/cli-cmds.c: Include readline.h.
4029         (complete_command): Pass the start of the last word to
4030         complete_line.
4031
4032 2004-01-31  Daniel Jacobowitz  <drow@mvista.com>
4033
4034         * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
4035         argument, and change first argument to a CORE_ADDR.
4036         * breakpoint.h (bpstat_stop_status): Update prototype.
4037         * infrun.c (adjust_pc_after_break): Add a new comment.
4038         (handle_inferior_event): Update calls to bpstat_stop_status.
4039
4040 2004-01-31  Daniel Jacobowitz  <drow@mvista.com>
4041
4042         * breakpoint.h: Update copyright years.
4043
4044 2004-01-31  Daniel Jacobowitz  <drow@mvista.com>
4045
4046         * breakpoint.c (software_breakpoint_inserted_here_p): New function.
4047         (bpstat_stop_status): Don't decrement PC.
4048         * breakpoint.h (software_breakpoint_inserted_here_p): Add
4049         prototype.
4050         * infrun.c (adjust_pc_after_break): New function.
4051         (handle_inferior_event): Call it, early.  Remove later references
4052         to DECR_PC_AFTER_BREAK.
4053         (normal_stop): Add commentary.
4054
4055 2004-01-31  Daniel Jacobowitz  <drow@mvista.com>
4056
4057         * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
4058         2004-01-27 double-free fix.
4059
4060 2004-01-31  Mark Kettenis  <kettenis@gnu.org>
4061
4062         * sparc-tdep.c (sparc_fetch_wcookie): New function.
4063         (sparc32_frame_prev_register): Handle StackGhost.
4064         (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
4065
4066 2004-01-29  Roland McGrath  <roland@redhat.com>
4067
4068         * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
4069         * configure: Regenerated.
4070
4071         * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
4072         * Makefile.in (procfs.o): Add dep.
4073
4074 2004-01-28  Andrew Cagney  <cagney@redhat.com>
4075
4076         * tui/tui-stack.h: Update copyright.
4077         (struct frame_info): Add opaque declaration.
4078         (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
4079         (tui_show_locator_content): Rename tuiShowLocatorContent.
4080         (tui_show_frame_info): Rename tuiShowFrameInfo.
4081         * tui/tui-stack.c: Update copyright.  Update references.
4082         * tui/tui-winsource.c: Update references.
4083         * tui/tui-win.c: Update references.
4084         * tui/tui-layout.c: Update references.
4085         * tui/tui-hooks.c: Update copyright, update references.
4086         * tui/tui.c: Update copyright, update references.
4087         * tui/tui-disasm.c: Update references.
4088
4089 2004-01-28  David Carlton  <carlton@kealia.com>
4090
4091         * dwarf2read.c (add_partial_structure): Use demangled name if
4092         namespace equals "".
4093
4094 2004-01-27  Jim Blandy  <jimb@redhat.com>
4095
4096         Clean up misapplied patch:
4097         * dwarf2read.c (determine_prefix): Change one of the two forward
4098         declarations for 'determine_prefix_aux' to a declaration for this.
4099         (read_func_scope): Use cu->language, not cu_language.  Pass 'cu'
4100         argument to 'die_specification'.
4101
4102         * dwarf2read.c (read_func_scope): Re-indent comment.
4103
4104 2004-01-27  Paul N. Hilfinger  <hilfinger@gnat.com>
4105
4106         * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
4107         b->exp to NULL after freeing so that error during re-parsing or
4108         evaluation of expressions associated with breakpoint don't
4109         eventually lead to re-freeing of storage.
4110         Committed by Andrew Cagney.
4111
4112 2004-01-27  Andrew Cagney  <cagney@redhat.com>
4113
4114         * source.c (ambiguous_line_spec): Delete undefined declaration.
4115         * m32r-rom.c (m32r_set_board_address): Delete unused function.
4116         (m32r_set_server_address, m32r_set_download_path): Ditto.
4117         * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
4118
4119 2004-01-27  Daniel Jacobowitz  <drow@mvista.com>
4120
4121         * dwarf2read.c: Update calls to changed and renamed functions, and
4122         references to moved variables.
4123
4124         (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
4125         language, language_defn, list_in_scope, and ftypes members.
4126         (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
4127         (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
4128         (baseaddr): Remove globals.
4129
4130         (dwarf_attr): Renamed to dwarf2_attr.  Add CU argument.
4131         (set_cu_language, die_is_declaration, die_specification)
4132         (determine_prefix, determin_prefix_aux, class_name, namespace_name)
4133         (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
4134         (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
4135         (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
4136
4137         (dwarf2_build_psymtabs_hard): Add local baseaddr.  Initialize
4138         cu.list_in_scope.  Don't initialize cu_header_offset.
4139         (add_partial_symbol): Add local baseaddr.
4140         (psymtab_to_symtab_1): Add local baseaddr.  Use
4141         objfile->section_offsets for consistency.  Don't initialize
4142         cu_header_offset; do initialize cu.header.offset and
4143         cu.list_in_scope.
4144         (read_file_scope, read_func_scope, read_lexical_block_scope)
4145         (dwarf_decode_lines, new_symbol): Add local baseaddr.
4146
4147 2004-01-27  Michael Chastain  <mec.gnu@mindspring.com>
4148
4149         * PROBLEMS: Add gdb/1516.
4150
4151 2003-12-29  Robert Millan  <robertmh@gnu.org>
4152
4153         Patch committed by Andrw Cagney.
4154         * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
4155         * configure.tgt: Match knetbsd*-gnu.
4156
4157 2004-01-26  Andrew Cagney  <cagney@redhat.com>
4158
4159         * breakpoint.c (catch_command_1): Delete #ifdef code.
4160         (catch_fork_command_1): Delete #ifdef wrapper.
4161         (catch_exec_command_1): Ditto.
4162         (catch_load_command_1): Ditto.
4163         (catch_unload_command_1): Ditto.
4164
4165         * breakpoint.c (watchpoint_check): Delete #if0ed variable.
4166         (catch_breakpoint): Delete #if0ed function.
4167         (disable_catch_breakpoint): Ditto.
4168         (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
4169         (disable_catch, enable_catch, delete_catch): Ditto.
4170
4171 2004-01-26  Andrew Cagney  <cagney@redhat.com>
4172
4173         * remote.c (echo_check, quit_flag): Delete variables.
4174         (cisco_kernel_mode): Delete variable.
4175         (minitelnet_return, tty_input, escape_count): Delete variables.
4176         (remote_cisco_mode): Delete variable.
4177         (remote_cisco_open, remote_cisco_close): Delete function.
4178         (remote_cisco_mourn, remote_cisco_wait): Delete function.
4179         (init_remote_cisco_ops): Delete function.
4180         (_initialize_remote): Do not install "remote cisco" code.
4181         (read_frame): Delete cisco specific code.
4182         (remote_info_process): Delete function.
4183         (remote_wait): Delete cisco specific code.
4184         (remote_cisco_section_offsets): Delete function.
4185         (remote_cisco_objfile_relocate): Delete function.
4186         (remote_async_wait): Delete cisco specific code.
4187         (minitelnet, readtty, readsocket): Delete function.
4188
4189 2004-01-26  Andrew Cagney  <cagney@redhat.com>
4190
4191         * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate.  Add
4192         comments mentioning extract_returned_value_address.
4193         * infcmd.c (print_return_value): Update.  Add comments on
4194         extract_returned_value_address.
4195         * stack.c (return_command): Add comments on
4196         extract_returned_value_address.
4197         * values.c: Update comment.
4198         * m32r-tdep.c: Update comment.
4199         * sparc-tdep.c: Update comment.
4200         * ia64-tdep.c (ia64_use_struct_convention): Update comment.
4201         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4202         * sh64-tdep.c (sh64_gdbarch_init): Update.
4203         * sh-tdep.c (sh_gdbarch_init): Update.
4204         * s390-tdep.c (s390_gdbarch_init): Update.
4205         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4206         * m68klinux-tdep.c (m68k_linux_init_abi): Update.
4207         * m68k-tdep.c (m68k_gdbarch_init): Update.
4208         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4209         * m32r-tdep.c (m32r_gdbarch_init): Update.
4210         * ia64-tdep.c (ia64_gdbarch_init): Update.
4211         * h8300-tdep.c (h8300_gdbarch_init): Update.
4212         * frv-tdep.c (frv_gdbarch_init): Update.
4213         * arm-tdep.c (arm_gdbarch_init): Update.
4214         * alpha-tdep.c (alpha_gdbarch_init): Update.
4215
4216 2004-01-26  Andrew Cagney  <cagney@redhat.com>
4217
4218         * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
4219         SYMBOL_LOCATION_FUNCS
4220         (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
4221         "struct symbol_ops".
4222         * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
4223         type to "struct symbol_ops".
4224         * symtab.h (struct symbol_ops): Rename "struct location_funcs".
4225         (struct symbol): Replace ".aux_value.loc.funcs" and
4226         ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
4227         (SYMBOL_OBJFILE): Delete macro.
4228         (SYMBOL_LOCATION_FUNCS): Delete macro.
4229         (SYMBOL_LOCATION_BATON): Update.
4230         * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
4231         intead of SYMBOL_LOCATION_FUNCS.
4232         * ax-gdb.c (gen_var_ref): Ditto.
4233         * printcmd.c (address_info): Ditto.
4234         * findvar.c (read_var_value): Ditto.
4235         (symbol_read_needs_frame): Ditto.
4236
4237 2004-01-26  Andrew Cagney  <cagney@redhat.com>
4238
4239         * dwarf2read.c (read_func_scope): Document frame-base hack.
4240
4241 2004-01-25  Mark Kettenis  <kettenis@gnu.org>
4242
4243         * infcmd.c (print_return_value): Plug memory leak; delete
4244         ui_stream object.  Rename argument `structure_return' to
4245         `struct_return'.
4246
4247 2004-01-25  Mark Kettenis  <kettenis@gnu.org>
4248
4249         * infcmd.c (print_return_value): Wrap long lines.
4250         (finish_command_continuation, finish_command): Remove unused
4251         variable `funcaddr'.  Fix some coding-standards problems.
4252
4253         * sparc-tdep.c (sparc_regset_from_core_section): Check whether
4254         SECT_SIZE is large enough, not wheter it's exactly the right size.
4255         (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
4256         TDEP->fpregset to zero.
4257
4258         * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
4259         floating-point registers for traditional NetBSD core files.
4260         (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
4261         TDEP->sizeof_fpregset here.
4262
4263 2004-01-25  Mark Kettenis  <kettenis@gnu.org>
4264
4265         * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
4266         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
4267         function with code split out from
4268         sparc32nbsd_sigcontext_frame_cache.
4269         (sparc32nbsd_sigcontext_frame_cache): Use
4270         sparc32nbsd_sigcontext_saved_regs.
4271         (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
4272         OpenBSD.
4273         * sparcobsd-tdep.c: New file.
4274         * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
4275         (sparcobsd-tdep.o): New dependency.
4276         * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
4277         * config/sparc/obsd.mt: New file.
4278
4279         * sparc-tdep.c (sparc32_gdbarch_init): Don't require
4280         TDEP->fpregset to be initialized to enable core file register
4281         sets.
4282
4283 2004-01-24  Mark Kettenis  <kettenis@gnu.org>
4284
4285         * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
4286         Add opaque declarations.
4287         (sparc64nbsd_sigcontext_saved_regs): New prototype.
4288         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
4289         function with code split out from
4290         sparc64nbsd_sigcontext_frame_cache.
4291         (sparc64nbsd_sigcontext_frame_cache): Use
4292         sparc64nbsd_sigcontext_saved_regs.
4293         (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
4294         OpenBSD.
4295         * sparc64obsd-tdep.c: New file.
4296         * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
4297         (sparc64obsd-tdep.o): New dependency.
4298         * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
4299         gdb_osabi to GDB_OSABI_OPENBSD_ELF.
4300         * config/sparc/obsd64.mt: New file.
4301
4302         * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
4303         read the instruction at PC.
4304
4305         * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
4306         value of GDB_OSABI_DEFAULT.
4307         (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
4308         instead of GDB_OSABI_NETBSD_AOUT.
4309
4310 2004-01-24  Nick Roberts  <nick@nick.uklinux.net>
4311
4312         * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
4313         copyright.
4314
4315 2004-01-23  Andrew Cagney  <cagney@redhat.com>
4316
4317         * printcmd.c (display_command): Replace tui_set_display call with
4318         tui_set_layout_for_display_command.
4319         * tui/tui.h (enum tui_win_type): Define.
4320         (tui_set_layout): Delete declaration.
4321         (tui_set_layout_for_display_command): Rename set_tui_layout.
4322         * tui/tui-data.h (enum tui_layout_type): Define.
4323         * tui/tui-layout.h: Update copyright.  Include "tui-data.h" and
4324         "tui.h".
4325         (tui_add_win_to_layout): Rename tuiAddWinToLayout.
4326         (tui_default_win_height): Rename tuiDefaultWinHeight.
4327         (tui_default_win_viewport_height): Rename
4328         tuiDefaultWinViewportHeight.
4329         (tui_set_layout): RenametuiSetLayout.
4330         * tui/tui-layout.c: Update references.
4331         * tui/tui.c: Update references.
4332         * tui/tui-disasm.c: Update references.
4333
4334 2004-01-23  David Carlton  <carlton@kealia.com>
4335
4336         Partial workaround for PR c++/1511:
4337         * cp-namespace.c: Include frame.h.
4338         (cp_lookup_transparent_type): New
4339         (cp_lookup_transparent_type_loop): New.
4340         * cp-support.h: Declare cp_lookup_transparent_type.
4341         * symtab.c (basic_lookup_transparent_type): Renamed from
4342         lookup_transparent_type.
4343         (lookup_transparent_type): Replace old body by a call to
4344         current_language->la_lookup_transparent_type.
4345         * symtab.h: Update copyright.  Declare
4346         basic_lookup_transparent_type.
4347         * language.h: Update copyright.
4348         (struct language_defn): Add la_lookup_transparent_type.
4349         * language.c: Update copyright.
4350         (unknown_language_defn): Add basic_lookup_transparent_type.
4351         (auto_language_defn): Add basic_lookup_transparent_type.
4352         (local_language_defn): Add basic_lookup_transparent_type.
4353         * ada-lang.c: Update copyright.
4354         (ada_language_defn): Add basic_lookup_transparent_type.
4355         * c-lang.c: Update copyright.
4356         (c_language_defn): Add basic_lookup_transparent_type.
4357         (cplus_language_defn): Add basic_lookup_transparent_type.
4358         (asm_language_defn): Add basic_lookup_transparent_type.
4359         (minimal_language_defn): Add basic_lookup_transparent_type.
4360         * f-lang.c: Update copyright.
4361         (f_language_defn): Add basic_lookup_transparent_type.
4362         * jv-lang.c: Update copyright.
4363         (java_language_defn): Add basic_lookup_transparent_type.
4364         * m2-lang.c: Update copyright.
4365         (m2_language_defn): Add basic_lookup_transparent_type.
4366         * objc-lang.c: Update copyright.
4367         (objc_language_defn): Add basic_lookup_transparent_type.
4368         * p-lang.c: Update copyright.
4369         (p_language_defn): Add basic_lookup_transparent_type.
4370         * scm-lang.c: Update copyright.
4371         (scm_language_defn): Add basic_lookup_transparent_type.
4372         * Makefile.in (cp-namespace.o): Depend on frame.h.
4373
4374 2004-01-23  David Carlton  <carlton@kealia.com>
4375
4376         Patch for PR c++/1520:
4377         * dwarf2read.c (read_func_scope): Set processing_current_prefix
4378         properly if we have a specification die.
4379         (determine_prefix_aux): Rename from determine_prefix.
4380         (determine_prefix): Like the old determine_prefix, but never
4381         returns NULL.
4382
4383 2004-01-23  Theodore A. Roth  <troth@openavr.org>
4384
4385         * avr-tdep.c: Update copyright.
4386         (avr_iaddr_p): Delete unused function.
4387         (avr_saddr_p): Delete unused function.
4388
4389 2004-01-23  David Carlton  <carlton@kealia.com>
4390
4391         * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
4392         Fix for PR symtab/1534.
4393
4394 2004-01-23  Mark Kettenis  <kettenis@gnu.org>
4395
4396         * NEWS (New native configurations): Mention OpenBSD/sparc and
4397         OpenBSD/sparc64.
4398         * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
4399         * configure.host: Likewise.
4400         * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
4401         handler for OpenBSD.
4402         * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
4403
4404 2004-01-22  Mark Kettenis  <kettenis@gnu.org>
4405
4406         * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
4407         (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
4408
4409         * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
4410         * cli/cli-cmds.c (shell_escape): Likewise.
4411
4412         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
4413         OpenBSD .note.openbsd.ident sections.
4414
4415 2004-01-22  David Carlton  <carlton@kealia.com>
4416
4417         * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
4418         get_scope_pc_bounds.
4419         (read_file_scope): Ditto.
4420         (get_scope_pc_bounds): New function, produced by extracting code
4421         from the above two functions, consolidating it, and adding support
4422         for DW_TAG_namespace.
4423
4424 2004-01-22  Mark Kettenis  <kettenis@gnu.org>
4425
4426         * osabi.c (MAX_NOTESZ): New define.
4427         (check_note): New function.
4428         (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
4429         check_note.
4430
4431 2004-01-21  Roland McGrath  <roland@redhat.com>
4432
4433         * MAINTAINERS (write after approval): Add myself.
4434
4435 2004-01-21  Eli Zaretskii  <eliz@gnu.org>
4436
4437         * utils.c (init_page_info): Move declarations of `rows' and
4438         `cols' before the __GO32__-specific code.  Move the closing brace
4439         outside the #ifdef __GO32__..#endif block.
4440         [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
4441
4442 2004-01-21  Paul Brook  <paul@codesourcery.com>
4443
4444         * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
4445         BPSTAT_WHAT_CHECK_SHLIBS.
4446
4447 2004-01-21  Paul Brook  <paul@codesourcery.com>
4448
4449         * MAINTAINERS: Add myself to write-after-approval.
4450
4451 2004-01-20  Andrew Cagney  <cagney@redhat.com>
4452
4453         * ax-gdb.c (print_axs_value): Delete unused function.
4454         * jv-lang.c (java_lookup_type): Delete unused function.
4455         * cli/cli-dump.c (dump_filetype): Delete unused function.
4456         * remote-mips.c (remote_mips_insert_hw_breakpoint)
4457         (remote_mips_remove_hw_breakpoint): Delete unused functions.
4458         (mips_getstring): Delete unused function.
4459         (pmon_insert_breakpoint): Delete #if0ed function.
4460         (PMON_MAX_BP): Delete #if0ed MACRO.
4461         (mips_pmon_bp_info): Delete #if0ed variable.
4462         (pmon_remove_breakpoint): Delete #if0ed function.
4463         * monitor.c (monitor_write_even_block): Delete unused function.
4464         (monitor_write_memory_block): Delete #if0ed code.
4465         * dink32-rom.c (dink32_load): Delete unused function.
4466         (_initialize_dink32_rom): Delete #if0ed code.
4467         * d10v-tdep.c (d10v_daddr_p): Delete unused function.
4468
4469         * tui/tui-command.c: Update references.
4470         * tui/tui-io.c: Update references.
4471         * tui/tui-command.h: Update copyright.
4472         (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
4473
4474         * source.c (ambiguous_line_spec): Delete never-defined function.
4475         * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
4476         * gdbtypes.c (add_name, add_mangled_type): Ditto.
4477         * cli/cli-cmds.c (validate_comname): Ditto.
4478
4479         * tui/tui-disasm.h: Update copyright.  Include "tui.h" and
4480         "tui-data.h".
4481         (tui_set_disassem_content): Rename tuiSetDisassemContent.
4482         (tui_show_disassem): Rename tuiShowDisassem.
4483         (tui_show_disassem_and_update_source): Rename
4484         tuiVerticalDisassemScroll.
4485         (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
4486         (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
4487         * tui/tui.h: Update copyright.
4488         (enum tui_status): Define.
4489         * tui/tui-data.h (enum tui_scroll_direction): Define.
4490         * tui/tui-disasm.c: Update copyright.  Update references.
4491         * tui/tui-winsource.c:  Update copyright.  Update references.
4492         * tui/tui-win.c: Update references.
4493         * tui/tui-layout.c: Update references.
4494
4495 2004-01-20  Andrew Cagney  <cagney@redhat.com>
4496
4497         * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
4498         sym2 to start of block.
4499
4500 2004-01-19  Michael Chastain  <mec.gnu@mindspring.com>
4501
4502         * MAINTAINERS: Delete mmalloc.
4503         * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
4504         * NEWS: Mention removal of --with-malloc.
4505         * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
4506         * config.in: Regenerate.
4507         * configure: Regenerate.
4508         * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
4509         USE_MMALLOC, MMCHECK_FORCE.
4510         * gdbinit.in: Remove mmalloc.
4511         * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
4512         * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
4513         * config/i386/go32.mh: Likewise.
4514         * config/i386/interix.mh: Likewise.
4515         * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
4516
4517 2004-01-19  Jeff Johnston  <jjohnstn@redhat.com>
4518
4519         * linespec.c (decode_variable, symtab_from_filename):  Call
4520         error_silent with error message instead of throwing an exception
4521         directly.
4522         * defs.h (error_silent, error_output_message): Add prototypes.
4523         (catch_exceptions_with_msg): Ditto.
4524         * utils.c (error_silent, error_output_message): New functions.
4525         * top.c (catch_exceptions_with_msg): New function.
4526
4527 2004-01-20  Nick Roberts  <nick@nick.uklinux.net>
4528
4529         * mi/mi-cmds.h (enum print_values): Add definition.
4530
4531         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
4532         type and value for simple data types and just the name and type
4533         for complex ones, if required.
4534
4535         * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
4536         children, if required.
4537
4538 2004-01-19  Kevin Buettner  <kevinb@redhat.com>
4539
4540         * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
4541         unused declarations.
4542
4543 2004-01-19  Andrew Cagney  <cagney@redhat.com>
4544
4545         * top.h (mapped_symbol_files): Delete declaration.
4546         * main.c (captured_main): Delete option "m" and "mapped".
4547         * objfiles.c (mapped_symbol_files): Delete variable.
4548         * symfile.c (symbol_file_command): Delete mmap code.
4549         (symbol_file_add_with_addrs_or_offsets): Ditto.
4550         (add_symbol_file_command, reread_separate_symbols): Ditto.
4551         * objfiles.h (OBJF_MAPPED): Delete.
4552         * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
4553         (free_objfile) [USE_MMALLOC]: Ditto.
4554         (open_existing_mapped_file): Delete function.
4555         (open_mapped_file): Delete function.
4556         (map_to_file): Delete function.
4557
4558 2004-01-19  Kevin Buettner  <kevinb@redhat.com>
4559
4560         * infrun.c (step_into_function): Account for possible breakpoint
4561         adjustment when computing ``stop_func_start''.
4562
4563 2004-01-19  Kevin Buettner  <kevinb@redhat.com>
4564
4565         * target.c (default_region_size_ok_for_hw_watchpoint): Compare
4566         the region size against the size of a pointer, not the size of
4567         a register as given by DEPRECATED_REGISTER_SIZE.
4568
4569 2004-01-19  Andrew Cagney  <cagney@redhat.com>
4570
4571         * tui/tui-regs.h: Include "tui-data.h".
4572         (tuiFirstRegElementNoInLine): Delete declaration.
4573         (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
4574         (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
4575         (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
4576         (tui_calculate_regs_column_count): Rename
4577         tuiCalculateRegsColumnCount.
4578         (tui_check_register_values): Rename tuiCheckRegisterValues.
4579         (tui_show_registers): Rename tuiShowRegisters.
4580         (tui_display_registers_from_line): Rename
4581         tuiDisplayRegistersFromLine.
4582         (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
4583         (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
4584         (tui_first_reg_element_no_inline): Rename
4585         tuiFirstRegElementNoInLine.
4586         * tui/tui-data.h: Update copyright.
4587         (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
4588         * tui/tui-windata.c: Update copyright, update references.
4589         * tui/tui-regs.c: Update copyright, update references.
4590         * tui/tui-win.c: Update copyright, update references.
4591         * tui/tui-layout.c: Update copyright, update references.
4592
4593 2004-01-18  Andrew Cagney  <cagney@redhat.com>
4594
4595         * tui/tui-io.c: Update copyright.
4596         (key_is_end_sequence, key_is_backspace): New functions.
4597         (key_is_command_char, key_is_start_sequence): New function.
4598         (tui_getc): Update references.
4599         * tui/tui-io.h: Update copyright.
4600         (m_tuiStartNewLine): Delete macro.
4601         (m_isBackspace, m_isDeleteChar): Delete macros.
4602         (m_isDeleteLine, m_isDeleteToEol): Delete macros.
4603         (m_isNextPage, m_isPrevPage): Delete macros.
4604         (m_isLeftArrow, m_isRightArrow): Delete macros.
4605         (m_isXdbStyleCommandChar): Delete macro.
4606         (key_is_start_sequence): Declare, replace m_isStartSequence.
4607         (key_is_end_sequence): Declare, replace m_isEndSequence.
4608         (key_is_backspace): Declare ,replace m_isBackspace.
4609         (key_is_command_char): Declare, replace m_isCommandChar.
4610         * tui/tui-command.c: Update copyright.
4611         (tuiDispatchCtrlChar): Update references.
4612
4613         * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
4614         tuiSourceWin.h.
4615
4616         * tui/tui-command.c: Rename tui/tuiCommand.c.
4617         * tui/tui-command.h: Rename tui/tuiCommand.h.
4618         * tui/tui-data.c: Rename tui/tuiData.c.
4619         * tui/tui-data.h: Rename tui/tuiData.h.
4620         * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
4621         * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
4622         * tui/tui-io.c: Rename tui/tuiIO.c.
4623         * tui/tui-io.h: Rename tui/tuiIO.h.
4624         * tui/tui-layout.c: Rename tui/tuiLayout.c.
4625         * tui/tui-layout.h: Rename tui/tuiLayout.h.
4626         * tui/tui-regs.c: Rename tui/tuiRegs.c.
4627         * tui/tui-regs.h: Rename tui/tuiRegs.h.
4628         * tui/tui-source.c: Rename tui/tuiSource.c.
4629         * tui/tui-source.h: Rename tui/tuiSource.h.
4630         * tui/tui-stack.c: Rename tui/tuiStack.c.
4631         * tui/tui-stack.h: Rename tui/tuiStack.h.
4632         * tui/tui-win.c: Rename tui/tuiWin.c.
4633         * tui/tui-win.h: Rename tui/tuiWin.h.
4634         * tui/tui-windata.c: Rename tui/tuiDataWin.c.
4635         * tui/tui-windata.h: Rename tui/tuiDataWin.h.
4636         * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
4637         * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
4638         * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
4639         * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
4640         * tui/tui-file.c: Update includes.
4641         * tui/tui-hooks.c: Update includes.
4642         * tui/tui-interp.c: Update includes.
4643         * tui/tui.c: Update includes.
4644         * Makefile.in: Update all tui/ dependencies.
4645         (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
4646
4647         * Makefile.in: Update copyright.  Update dependencies.
4648
4649         * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
4650         problem.
4651
4652 2004-01-18  Andrew Cagney  <cagney@redhat.com>
4653
4654         * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
4655         instead of register_gdbarch_init.
4656
4657         * remote-sds.c (tohex): Delete unused function.  Update copyright.
4658         * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
4659         * v850-tdep.c (v850_register_virtual_size): Ditto.
4660         * target.c (normal_target_post_startup_inferior): Ditto.
4661         * source.c (ambiguous_line_spec): Ditto.
4662         * remote.c (adapt_remote_get_threadinfo): Ditto.
4663         * mi/mi-out.c (out_field_fmt): Ditto.
4664         * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
4665         (output_control_change_notification): Ditto.
4666         * m68k-tdep.c (m68k_register_byte): Ditto.
4667         (m68k_remote_breakpoint_from_pc): Ditto.
4668         * ui-out.c (init_ui_out_state): Delete unused declaration.
4669         * stabsread.c (search_value): Ditto.
4670         * mi/mi-cmd-env.c (env_cli_command): Ditto.
4671         * maint.c (print_section_table): Ditto.
4672         * infrun.c (set_follow_fork_mode_command): Ditto.
4673
4674 2004-01-18  Mark Kettenis  <kettenis@gnu.org>
4675
4676         * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
4677         DW_CFA_def_cfa_exporession.  Add support for
4678         DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
4679         DW_CFA_def_cfa_offset_sf.  This should fix PR backtrace/1391.
4680
4681 2004-01-18  Andrew Cagney  <cagney@redhat.com>
4682
4683         * ocd.c: Update copyright.
4684         (bdm_read_register_command): Delete unused function.
4685         (_initialize_remote_ocd): Delete commented out reference.
4686         (get_quoted_char, reset_packet): Delete #if0ed function.
4687         (output_packet, put_quoted_char): Delete #if0ed function.
4688         (stu_put_packet, stu_get_packet): Delete #if0ed function.
4689         (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
4690         (BDM_BREAKPOINT): Delete #if0ed macro.
4691         (remote_timeout): Delete #if0ed variable.
4692
4693 2004-01-18  Mark Kettenis  <kettenis@gnu.org>
4694
4695         * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
4696         (core-sol2.o): Remove dependency.
4697         * core-sol2.c: Remove file.
4698
4699 2004-01-17  Andrew Cagney  <cagney@redhat.com>
4700
4701         * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
4702         * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
4703         enums.
4704
4705 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
4706
4707         * remote.c: Update copyright years.
4708
4709 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
4710
4711         * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
4712
4713 2004-01-17  Andrew Cagney  <cagney@redhat.com>
4714
4715         * mdebugread.c: Update copyright.
4716         (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
4717         (parse_type, parse_procedure): Ditto.
4718         (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
4719
4720         * cris-tdep.c (cris_store_struct_return): Put back accidently
4721         deleted function.
4722
4723         * gdbarch.sh: Update copyright year.
4724         * gdbarch.h, gdbarch.c: Re-generate.
4725
4726 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
4727
4728         Suggested by George Anzinger.
4729         * dwarf2expr.c (execute_stack_op): Fetch the second item from the
4730         correct stack offset.  Include unknown opcode numbers in the error
4731         message.
4732
4733 2004-01-17  Andrew Cagney  <cagney@redhat.com>
4734
4735         * x86-64-tdep.c (x86_64_init_abi): No need to clear
4736         extract_struct_value_address, i386 does not set it.
4737         * sparc64-tdep.c (sparc64_init_abi): Do not set
4738         extract_struct_value_address, never called.
4739         (sparc64_extract_struct_value_address): Delete function.
4740         * m68hc11-tdep.c: Update copyright.
4741         (m68hc11_gdbarch_init): Delete redundant assignment of
4742         extract_struct_value_address.
4743         * i386-tdep.c: Update copyright.
4744         (i386_gdbarch_init): Do not set extract_struct_value_address,
4745         never called.
4746         (i386_extract_struct_value_address): Delete function.
4747         * sparc-tdep.c (sparc32_gdbarch_init): Do not set
4748         extract_struct_value_address, never called.
4749         (sparc32_extract_struct_value_address): #if 0 function.  Add
4750         comments explaining its future.
4751
4752 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
4753
4754         * arm-tdep.c (arm_write_pc): New function.
4755         (arm_gdbarch_init): Call set_gdbarch_write_pc.
4756
4757 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
4758
4759         * breakpoint.c (must_shift_inst_regs): Delete.
4760         (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
4761         and SHIFT_INST_REGS.
4762         * infcmd.c (step_1, step_1_continuation): Delete references to
4763         SHIFT_INST_REGS.
4764         * infrun.c (keep_going): Likewise.
4765         * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
4766         * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
4767
4768 2004-01-17  Andrew Cagney  <cagney@redhat.com>
4769
4770         * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4771         * gdbarch.h, gdbarch.c: Re-generate.
4772         * infcmd.c (print_return_value): Delete reference to
4773         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4774
4775         * cris-tdep.c (cris_gdbarch_init): Do not set
4776         deprecated_extract_struct_value_address.
4777
4778         * xstormy16-tdep.c: Update copyright.
4779         (xstormy16_extract_struct_value_address): Update to current
4780         extract struct value address interface.
4781         (xstormy16_gdbarch_init): Set extract_struct_value_address.
4782         * sh64-tdep.c (sh64_extract_struct_value_address): Update to
4783         current extract struct value address interface.
4784         (sh64_gdbarch_init): Set extract_struct_value_address.
4785
4786         * cris-tdep.c: Update copyright.
4787         (cris_extract_struct_value_address): Delete function.
4788         (struct_return_address): Delete variable.
4789         (cris_store_struct_return): Do not set struct_return_address.
4790
4791         * mcore-tdep.c: Update copyright.
4792         (mcore_extract_struct_value_address): Delete function.  Update
4793         comments.
4794         (mcore_gdbarch_init): Update.
4795         * mn10300-tdep.c: Update copyright.
4796         (mn10300_extract_struct_value_address): Delete function.
4797         (mn10300_gdbarch_init): Update.
4798         * v850-tdep.c: Update copyright.
4799         (v850_extract_struct_value_address): Delete.
4800         (v850_gdbarch_init): Update.
4801         * ns32k-tdep.c: Update copyright.
4802         (ns32k_extract_struct_value_address): Delete.
4803         (ns32k_gdbarch_init): Update.
4804         * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
4805         (hppa_gdbarch_init): Update.
4806         * vax-tdep.c: Update copyright.
4807         (vax_extract_struct_value_address): Delete.
4808         (vax_gdbarch_init): Update.
4809
4810         * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
4811         * gdbarch.h, gdbarch.c: Re-generate.
4812         * procfs.c (procfs_fetch_registers): Delete reference to
4813         DEPRECATED_NPC_REGNUM.
4814         (procfs_store_registers): Ditto.
4815         * regcache.c (generic_target_write_pc): Simplify.
4816         * lynx-nat.c: Delete #ifdef SPARC code.  Not used.
4817
4818         * core-sol2.c (fetch_core_registers): Replace
4819         DEPRECATED_NPC_REGNUM with equivalent tdep value.
4820
4821         * hppa-tdep.c: Update copyright year.
4822         (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
4823         NPC_REGNUM.
4824         (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
4825
4826         * mips-tdep.c (mips_write_pc): New function.
4827         (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
4828         (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
4829         (mips_find_saved_regs, mips_software_single_step: Ditto.
4830         (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
4831         mips_init_extra_frame_info, mips_pop_frame): Ditto.
4832
4833 2004-01-17  Andrew Cagney  <cagney@redhat.com>
4834
4835         * mips-tdep.c: Re-indent.  Group functions by ABI.
4836
4837 2004-01-17  Andrew Cagney  <cagney@redhat.com>
4838
4839         * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
4840         * gdbarch.c: Re-generate.
4841         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4842         DECR_PC_AFTER_BREAK to zero.
4843         * vax-tdep.c (vax_gdbarch_init): Ditto.
4844         * v850-tdep.c (v850_gdbarch_init): Ditto.
4845         * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
4846         * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4847         * sh-tdep.c (sh_gdbarch_init): Ditto.
4848         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4849         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
4850         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4851         * mips-tdep.c (mips_gdbarch_init): Ditto.
4852         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4853         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4854         * m32r-tdep.c (m32r_gdbarch_init): Ditto.
4855         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4856         * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
4857         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
4858         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4859         * frv-tdep.c (frv_gdbarch_init): Ditto.
4860         * cris-tdep.c (cris_gdbarch_init): Ditto.
4861         * avr-tdep.c (avr_gdbarch_init): Ditto.
4862         * arm-tdep.c (arm_gdbarch_init): Ditto.
4863         * i386-nto-tdep.c (i386nto_init_abi): Add comment.
4864
4865 2004-01-17  J. Brobecker  <brobecker@gnat.com>
4866
4867         * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
4868         Delete, no longer used.
4869         (read_subrange_type): New function, mostly extracted from
4870         read_array_type().
4871         (read_array_type): Replace extracted code by call to
4872         read_subrange_type().
4873         (dwarf2_get_attr_constant_value): New function.
4874         (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
4875         (add_partial_symbol): Likewise.
4876         (process_die): Likewise.
4877         (new_symbol): Likewise.
4878         (read_type_die): Likewise.
4879
4880 2004-01-16  Andrew Cagney  <cagney@redhat.com>
4881
4882         * symfile.c: Update copyright year.
4883         (compare_symbols): Delete unused function.
4884         * stabsread.c: Update copyright year.
4885         (lrs_general_complaint): Delete unused function.
4886         (ref_search_value): Ditto.
4887         (get_substring): Delete declaration.
4888         * sh64-tdep.c: Update copyright year.
4889         (sh64_get_gdb_regnum): Delete unused function.
4890         * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
4891         Delete unused function.
4892
4893 2004-01-17  Mark Kettenis  <kettenis@gnu.org>
4894
4895         * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
4896         * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
4897
4898 2004-01-16  Andrew Cagney  <cagney@redhat.com>
4899
4900         Changes from Peter Schauer.
4901         * rs6000-tdep.c: Update copyright year.
4902         (rs6000_push_dummy_call): Update the stack pointer before
4903         accessing the corresponding stack region.
4904         * rs6000-nat.c: Update copyright year.
4905         (set_host_arch): Set "info.abfd" to "exec_bfd".
4906
4907 2004-01-15  Mark Kettenis  <kettenis@gnu.org>
4908
4909         * blockframe.c: Update copyright year.
4910         (inside_entry_func): Don't treat a zero PC specially.
4911
4912 2004-01-14  Elena Zannoni  <ezannoni@redhat.com>
4913
4914         * gcore.c (gcore_copy_callback): Use paddr_d to print size
4915         variable.
4916         (gcore_create_callback): Ditto.  Skip any memory segment that has
4917         no permissions set.
4918
4919 2004-01-14  David Carlton  <carlton@kealia.com>
4920
4921         Change symbols for C++ nested types to contain the fully qualified
4922         name, if possible.  (At least in the DWARF-2 case.)  Partial fix
4923         for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
4924         c++/895.
4925         * c-exp.y (qualified_type): Handle types nested within classes.
4926         * cp-namespace.c: Update comments.
4927         (cp_set_block_scope): Delete #if 0.
4928         (cp_lookup_nested_type): Handle types nested within classes.
4929         * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
4930         when appropriate.
4931         (add_partial_symbol): Add the name of the enclosing namespace to
4932         types.
4933         (pdi_needs_namespace): New.
4934         (add_partial_namespace): Tweak comment.
4935         (add_partial_structure): New.
4936         (psymtab_to_symtab_1): Initialize processing_current_prefix
4937         here...
4938         (process_die): instead of here.
4939         (read_structure_scope): Try to figure out the name of the class or
4940         namespace that the structure might be defined within.
4941         (read_enumeration): Generate fully-qualified names, if possible.
4942         (read_namespace): Don't set name to NULL.
4943         (die_specification): New.
4944         (new_symbol): Generate fully-qualified names for types.
4945         (read_type_die): Determine appropriate prefix.
4946         (determine_prefix): New.
4947         (typename_concat): New.
4948         (class_name): New.
4949         * valops.c (value_aggregate_elt): Pass NOSIDE to
4950         value_struct_elt_for_reference.
4951         (value_struct_elt_for_reference): Make static, add NOSIDE
4952         parameter, call value_maybe_namespace_elt as a last resort.
4953         (value_namespace_elt): Break out code into
4954         value_maybe_namespace_elt.
4955         (value_maybe_namespace_elt): New.
4956
4957 2004-01-12  Andrew Cagney  <cagney@redhat.com>
4958
4959         * mips-tdep.c (mips_convert_register_p): Handle both raw and
4960         cooked floating-point registers.
4961         (mips_gdbarch_init): Set convert_register_p, register_to_value,
4962         and value_to_register.
4963
4964 2004-01-13  Andrew Cagney  <cagney@redhat.com>
4965
4966         * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
4967         * gdbarch.c: Re-generate.
4968         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4969         FUNCTION_START_OFFSET.
4970         * v850-tdep.c (v850_gdbarch_init): Ditto.
4971         * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
4972         * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4973         * sh-tdep.c (sh_gdbarch_init): Ditto.
4974         * s390-tdep.c (s390_gdbarch_init): Ditto.
4975         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4976         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
4977         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4978         * mips-tdep.c (mips_gdbarch_init): Ditto.
4979         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4980         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4981         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4982         * m32r-tdep.c (m32r_gdbarch_init): Ditto.
4983         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4984         * i386-tdep.c (i386_gdbarch_init): Ditto.
4985         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
4986         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4987         * frv-tdep.c (frv_gdbarch_init): Ditto.
4988         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4989         * cris-tdep.c (cris_gdbarch_init): Ditto.
4990         * avr-tdep.c (avr_gdbarch_init): Ditto.
4991         * arm-tdep.c (arm_gdbarch_init): Ditto.
4992         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4993
4994 2004-01-13  Daniel Jacobowitz  <drow@mvista.com>
4995
4996         * infrun.c (follow_fork_mode_ask): Remove.
4997         (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
4998         (follow_fork): Simplify and remove internal error for
4999         follow_fork_mode_ask.
5000         (_initialize_infrun): Update "set follow-fork-mode" help text.
5001
5002 2004-01-13  Andrew Cagney  <cagney@redhat.com>
5003
5004         * configure.in: Update copyright year.
5005         (build_warnings): Add -Wunused-label.
5006         * configure: Re-generate.
5007
5008 2004-01-12  Andrew Cagney  <cagney@redhat.com>
5009
5010         * exec.h (exec_ops): Make "extern".
5011
5012         * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
5013         the function is void.
5014         (mips_pseudo_register_write): Ditto.
5015
5016 2004-01-12  Andrew Cagney  <cagney@redhat.com>
5017
5018         * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
5019         call.  Never defined.
5020         * sparc-tdep.h (struct frame_info): Add opaque declaration.
5021         * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
5022         (struct sparc_gregset, struct regcache): Ditto.
5023         * sparc-nat.c: Update copyright.  Specify "GNU/Linux".
5024
5025 2004-01-12  Andrew Cagney  <cagney@redhat.com>
5026
5027         * mi/ChangeLog: Delete file.  Renamed to ...
5028         * mi/ChangeLog-1999-2003: New file.
5029         * tui/ChangeLog: Delete file.  Renamed to ...
5030         * tui/ChangeLog-1998-2003: New file.
5031
5032 2004-01-11  Mark Kettenis  <kettenis@gnu.org>
5033
5034         * sparc64nbsd-tdep.c: Include "regset.h".
5035         (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
5036         Remove variables.
5037         (fetch_core_registers): Remove function.
5038         (sparc64nbsd_core_fns): Remove variable.
5039         (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
5040         functions.
5041         (sparc64nbsd_init_abi): Initialize TDEP->gregset,
5042         TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
5043         (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
5044
5045         * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
5046         sparc_extract_struct_value_address.
5047         (sparc32_gdbarch_init): Set extract_struct_value_address.
5048         * sparc64-tdep.c (sparc64_extract_struct_value_address): New
5049         function.
5050         (sparc64_init_abi): Set extract_struct_value_address.  Don't set
5051         return_value_on_stack.
5052
5053         * NEWS: Mention that %cs and %ss have been added to the AMD64
5054         configurations
5055
5056         * frame.c: Update copyright year.
5057         (get_prev_frame): Improve comment.
5058
5059         * sparc64fbsd-tdep.c: Include "regset.h".
5060         (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
5061         Remove variables.
5062         (fetch_core_registers): Remove function.
5063         (sparc64fbsd_core_fns): Remove variable.
5064         (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
5065         functions.
5066         (sparc64fbsd_init_abi): Initialize TDEP->gregset,
5067         TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
5068         (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
5069
5070         * sparcnbsd-tdep.c: Include "regset.h".
5071         (fetch_core_registers): Remove function.
5072         (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
5073         (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
5074         functions.
5075         (sparc32nbsd_init_abi): Initialize TDEP->gregset and
5076         TDEP->fpregset.
5077         (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
5078
5079         * sparc-tdep.h (struct regset): Provide opaque declaration.
5080         (struct gdbarch_tdep): Add gregset, sizeof_gregset,
5081         fpregset and sizeof_fpregset members.
5082         * sparc-tdep.c (struct regset): Provide opaque declaration.
5083         (sparc_regset_from_core_section): New function.
5084         (sparc32_gdbarch_init): Initialize TDEP->gregset,
5085         TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
5086         Set regset_from_core_section when appropriate.
5087
5088 2004-01-10  Mark Kettenis  <kettenis@gnu.org>
5089
5090         * x86-64-tdep.c (amd64_non_pod_p): New function.
5091         (amd64_classify_aggregate): Return class memory for non-POD
5092         C++ structure types.
5093
5094         * x86-64-tdep.c (amd64_push_arguments): Add struct_return
5095         argument.  Use it to reserve a register if necessary.
5096         (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
5097         amd64_push_arguments.
5098
5099         * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
5100
5101         * x86-64-tdep.c (amd64_register_info): Add %cs and %ss.  Adjust
5102         register numbers in comments.
5103         * x86-64-tdep.h: Update copyright year.
5104         (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
5105         Adjust for addition of %cs and %ss.
5106         * amd64fbsd-nat.c: Update copyright year.
5107         (reg_offset): Add register offsets for %cs and %ss.
5108         * amd64fbsd-tdep.c: Update copyright year.
5109         (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
5110         (amd64fbsd_sc_reg_offset): Likewise.
5111         * x86-64-linux-nat.c: Update copyright year.
5112         (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
5113         and %ss.
5114         * amd64nbsd-nat.c: Update copyright year.
5115         (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
5116         * amd64nbsd-tdep.c: Update copyright year.
5117         (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
5118         * x86-64-linux-tdep.c: Update copyright year.
5119         (user_to_gdb_regmap): Add mapping for %cs and %ss.
5120         (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
5121         * regformats/reg-x86-64.dat: Add %cs and %ss.
5122
5123         * blockframe.c (inside_entry_func): Reformat.  Introduce new local
5124         variables to prevent long lines.  Update comments to reflect
5125         reality.
5126
5127 2004-01-09  David Carlton  <carlton@kealia.com>
5128
5129         Checked in by Elena Zannoni  <ezannoni@redhat.com>.
5130         * dwarf2read.c (read_namespace): Pull out name-generating code
5131         into namespace_name. Rename previous_namespace to previous_prefix
5132         and processing_current_namespace to processing_current_prefix..
5133         (namespace_name): New function.
5134         (add_partial_symbol): Substitute uses of pdi->name with
5135         actual_name.
5136         * cp-support.h: Rename processing_current_namespace to
5137         processing_current_prefix.
5138         Update copyright year.
5139         * cp-namespace.c: Rename processing_current_namespace to
5140         processing_current_prefix.
5141         Update copyright year.
5142
5143 2004-01-09  Andrew Cagney  <cagney@redhat.com>
5144
5145         * jv-valprint.c, ser-unix.c: Add missing copyright years.
5146
5147 2004-01-09  Mark Kettenis  <kettenis@gnu.org>
5148
5149         * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
5150         complaining.
5151         (process_one_symbol): Deal with N_PATCH stabs.
5152
5153 2004-01-09  Elena Zannoni  <ezannoni@redhat.com>
5154
5155         * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
5156         ifdeffed code.
5157         Update copyright year.
5158
5159 2004-01-08  Michael Chastain  <mec.gnu@mindspring.com>
5160
5161         * config/pa/tm-hppa.h: Update extern declarations for
5162         hppa32_hpux_frame_saved_pc_in_sigtramp,
5163         hppa32_hpux_frame_base_before_sigtramp, and
5164         hppa32_hpux_frame_find_saved_regs_in_sigtramp.
5165
5166 2004-01-08  Michael Chastain  <mec.gnu@mindspring.com>
5167
5168         * config/pa/tm-hppah.h: Update copyright years.
5169
5170 2004-01-08  Andrew Cagney  <cagney@redhat.com>
5171
5172         * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
5173         (mips_o32_reg_struct_has_addr): Delete function.
5174         (mips_gdbarch_init): Update.
5175         (mips_extract_struct_value_address): Delete function.
5176
5177 2004-01-08  David Mosberger  <davidm@hpl.hp.com>
5178
5179         * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
5180         reality.
5181
5182 2004-01-07  Andrew Cagney  <cagney@redhat.com>
5183
5184         * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
5185         architecture's elf flags (when available).
5186
5187         * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
5188         FPU to the start, check the MIPS FPU when looking for an old
5189         architecture.
5190         (set_mipsfpu_single_command): Update the architecture.
5191         (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
5192
5193         * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
5194         (mips_mask_address_p): Add "tdep" parameter.
5195         (show_mask_address, mips_addr_bits_remove): Update.
5196         (mips_dump_tdep): Update.
5197         (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
5198         (MIPS_STACK_ARGSIZE): Delete macro.
5199         (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
5200         (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
5201         (mips_o64_push_dummy_call, mips_o32_return_value): Update.
5202         (mips_dump_tdep): Update.
5203         (MIPS_SAVED_REGSIZE): Delete macro.
5204         (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
5205         (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
5206         (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
5207         (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
5208         (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
5209         (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
5210         (mips_pop_frame, return_value_location): Update.
5211         (mips_n32n64_return_value, mips_dump_tdep): Update.
5212
5213         * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
5214         MIPS ABI.
5215
5216         * mips-tdep.c: Update copyright.
5217         (mips_gdbarch_init): Merge two code blocks handling the register
5218         name and number layout.
5219
5220 2004-01-02  Pawel Ostrowski  <pasza@zodiac.mimuw.edu.pl>
5221
5222         * tracepoint.c (validate_actionline): Fix segv at EOF
5223
5224 2004-01-07  Michael Chastain  <mec.gnu@mindspring.com>
5225
5226         * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
5227         properly for static fields.
5228
5229 2004-01-06  Jeff Johnston  <jjohnstn@redhat.com>
5230             Jason Molenda  <jmolenda@apple.com>
5231
5232         * disasm.c: Update copyright to include 2004.
5233         (do_mixed_source_and_assembly): For uiout asm list
5234         and tuple cleanups, initialize to null_cleanup instead of
5235         NULL and do so prior to loop.  Only reset when we close off
5236         the tuple/list.  Move check for whether to close off the
5237         asm tuple/list to after dump_insns call where it will be run
5238         on each loop iteration.
5239
5240 2004-01-05  Andrew Cagney  <cagney@redhat.com>
5241
5242         * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
5243         should be a switch case and not a label.
5244         * mips-tdep.c (mips32_next_pc): Delete unused labels
5245         "greater_equal_branch" and "less_zero_branch".
5246         * jv-valprint.c (java_print_value_fields): Delete unused label
5247         "flush_it".
5248
5249         * target.c (unpush_target): Only close a target that is in the
5250         target stack.
5251
5252 2004-01-05  Mark Kettenis  <kettenis@gnu.org>
5253
5254         * sparc-tdep.c (sparc_extract_struct_value_address): Get the
5255         address from [sp + 64] instead of %o2.
5256
5257         * frame.c (get_prev_frame): Don't try to unwind the PC.  This
5258         fixes PR backtrace/1476.
5259
5260 2004-01-05  Andrew Cagney  <cagney@redhat.com>
5261
5262         * libunwind-frame.h (struct frame_id): Add opaque declaration,
5263         move to start of file.
5264         * i386-tdep.h (struct regcache): Add opaque declaration.
5265         * config/ia64/nm-linux.h (struct target_ops): Add opaque
5266         declaration.
5267         * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
5268         (ia64_gdbarch_init): Use "GNU/Linux" in comment.
5269         * win32-nat.c (fake_create_process): Use ISO C style definition.
5270         * stabsread.c (define_symbol): Delete #ifndef
5271         DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
5272         stabs_argument_has_addr call, macro never defined.
5273
5274 2004-01-04  Michael Chastain  <mec.gnu@mindspring.com>
5275
5276         * op50-rom.c: Delete.
5277         * w89k-rom.c: Delete.
5278         * Makefile.in: Remove references.
5279
5280 2004-01-04  Mark Kettenis  <kettenis@gnu.org>
5281
5282         * x86-64-tdep.c: Update copyright year.
5283         (struct amd64_register_info): Rename from x86_64_register_info.
5284         (amd64_register_info): Rename from x86_64_register_info.
5285         (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
5286         (amd64_register_name): Rename from x86_64_register_name.
5287         (amd64_register_type): Rename from x86_64_register_type.
5288         (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
5289         (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
5290         (amd64_dwarf_reg_to_regnum): Rename from
5291         x86_64_dwarf_reg_to_regnum.
5292         (amd64_convert_register_p): Rename from x86_64_convert_register_p.
5293         (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
5294         (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
5295         (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
5296         (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
5297         (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
5298         (amd64_skip_prologue): Rename from x86_64_skip_prologue.
5299         (amd64_frame_cache): Rename from x86_64_frame_cache.
5300         (amd64_frame_this_id): Rename from x86_64_frame_this_id.
5301         (amd64_frame_prev_register): Rename from
5302         x86_64_frame_prev_register.
5303         (amd64_frame_unwind): Rename from x86_64_frame_unwind.
5304         (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
5305         (amd64_sigtramp_frame_cache): Rename from
5306         x86_64_sigtramp_frame_cache.
5307         (amd64_sigtramp_frame_prev_register): Rename from
5308         x86_64_sigtramp_frame_prev_register.
5309         (amd64_sigtramp_frame_unwind): Rename from
5310         x86_64_sigtramp_frame_unwind.
5311         (amd64_sigtramp_frame_sniffer): Rename from
5312         x86_64_sigtramp_frame_sniffer.
5313         (amd64_frame_base_address): Rename from x86_64_frame_base_address.
5314         (amd64_frame_base): Rename from x86_64_frame_base.
5315         (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
5316         (amd64_frame_align): Rename from x86_64_frame_align.
5317         (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
5318         (amd64_regset_from_core_section): Rename from
5319         x86_64_regset_from_core_section.
5320         (x86_64_init_abi): Update comments.
5321
5322 2004-01-04  Nick Roberts  <nick@nick.uklinux.net>
5323
5324         * MAINTAINERS (write after approval): Add myself.
5325
5326 2004-01-04  Mark Kettenis  <kettenis@gnu.org>
5327
5328         * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
5329         `float' arguments.
5330
5331 2004-01-04  Mark Kettenis  <kettenis@gnu.org>
5332
5333         * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
5334         such that it mentions a specific version of GCC that exhibits this
5335         bug.
5336
5337 2004-01-03  Mark Kettenis  <kettenis@gnu.org>
5338
5339         * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
5340         structure that has a single `float' member, store it in %f1 in
5341         addition to %f0.
5342
5343         * sparc-sol2-nat.c: Add missing '\'.
5344
5345         * sparc-tdep.c (sparc32_return_value): New function.
5346          (sparc32_use_struct_convention, sparc32_return_value_on_stack):
5347         Remove functions.
5348         (sparc32_gdbarch_init): Set return_value, don't set
5349         extract_return_value, store_return_value, use_struct_convention
5350         and return_value_on_stack.
5351
5352         * sparc-sol2-nat.c: Add missing ')'.
5353
5354 2004-01-03  J. Brobecker  <brobecker@gnat.com>
5355
5356         * infrun.c (handle_step_into_function): New function.
5357         (handle_inferior_event): Extract out some code into the new
5358         function above.
5359
5360 2004-01-03  J. Brobecker  <brobecker@gnat.com>
5361
5362         * infrun.c (handle_inferior_event): Move the declaration of
5363         real_stop_pc inside the if blocks where it is used.
5364
5365 2004-01-03  Mark Kettenis  <kettenis@gnu.org>
5366
5367         * sparc64-tdep.c (sparc64_16_byte_align_p)
5368         (sparc64_store_floating_fields, sparc64_store_floating_fields):
5369         Use check_typedef to get subtypes of structures and unions.
5370         (sparc64_store_return_value): Fix calculation of the appropriate
5371         offset into VALBUF when storing a structure or union.
5372         (sparc64_return_value): New function.
5373         (sparc64_use_struct_convention): Remove function.
5374         (sparc64_init_abi): Set return_value, don't set
5375         extract_return_value, store_return_value and
5376         use_struct_convention.
5377
5378 2004-01-03  Eli Zaretskii  <eliz@elta.co.il>
5379
5380         * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
5381         bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
5382         gdb/config/alpha/xm-alphaosf.h,
5383         gdb/config/powerpc/tm-ppcle-eabi.h,
5384         gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
5385         gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
5386         gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
5387         gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
5388         gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
5389         gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
5390         gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
5391         gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
5392         gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
5393         gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
5394         gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
5395         nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
5396         include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
5397         opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
5398         opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
5399         sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
5400         sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
5401         sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
5402         sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
5403         sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
5404         sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
5405         Remove lines for .cvsignore files.
5406
5407 2004-01-03  J. Brobecker  <brobecker@gnat.com>
5408
5409         * infrun.c: Back out the previous change.
5410
5411 2004-01-03  Mark Kettenis  <kettenis@gnu.org>
5412
5413         * NEWS: Mention revised SPARC target.  Add sparc-*-lynxos* and
5414         sparc-*-sunos4* to the list of REMOVED configurations.
5415
5416         * configure.tgt: Add back sparc-*-vxworks*.
5417         * remote-vxsparc.c: Remove all includes except for "defs.h",
5418         "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
5419         Include "sparc-tdep.h".
5420         (SPARC_R_G1): New define.
5421         (vxsparc_gregset): New variable.
5422         (ext_format_sparc): Remove extern declaration.
5423         (vx_read_register): Rewrite to use sparc32_supply_gregset and
5424         sparc32_supply_fpregset.
5425         (vx_write_register): Rewrite to use sparc32_collect_gregset,
5426         sparc_collect_rwindow and sparc32_collect_fpregset.
5427         * config/sparc/tm-vxworks.h: New file, based on recently removed
5428         tm-vxsparc.h.
5429         * config/sparc/vxworks.mt: New file, based on recently removed
5430         vxworks.mt.
5431
5432 2004-01-03  J. Brobecker  <brobecker@gnat.com>
5433
5434         * infrun.c (handle_step_into_function): New function.
5435         (handle_inferior_event): Extract out some code into the new
5436         function above.
5437
5438 2004-01-02  Mark Kettenis  <kettenis@gnu.org>
5439
5440         * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
5441         sparcl-tdep.c.  Add sparc-linux-tdep.c, sparc-sol2-nat.c,
5442         sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
5443         sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
5444         sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
5445         sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
5446         (sparc_nat_h): New variable.
5447         (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
5448         (tm-sun4os4.h): Remove dependency.
5449         (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
5450         (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
5451         sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
5452         sparc-tdep.o): Update dependencies.
5453         (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
5454         sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
5455         sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
5456         dependencies.
5457         * configure.host: Remove existing sparc-*-lynxos*,
5458         sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
5459         ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
5460         sparcv9-*-* and sparc64-*-* triplets.  Add new sparc64-*-linux*,
5461         sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
5462         triplets.
5463         * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
5464         sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
5465         sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
5466         sparcv9-*-* and commented out sparc64-*-solars2* triplets.  Add
5467         new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
5468         sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
5469         sparc64-*-solaris2* and sparc64-*-* triplets.
5470         * sparc64-tdep.c: Update copyright year.  Include "inferior.h",
5471         "symtab.h" and "objfiles.h".
5472         (BIAS): Remove define.
5473         (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
5474         (X_DISP19): Remove macros.
5475         (sparc_fetch_instruction): Remove function.
5476         (struct gdbarch_tdep): Remove definition.
5477         (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
5478         (sparc_breakpoint_from_pc): Remove function.
5479         (struct sparc64_frame_cache): Remove definition.
5480         (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
5481         sparc64_unwind_pc): Remove functions.
5482         (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
5483         `struct sparc64_frame_cache.  Call sparc_analyze_prologue instead
5484         of sparc64_analyze_prologue.  Mark constant as ULL instead of UL.
5485         (sparc64_frame_cache): Change return type to `struct
5486         sparc_frame_cache *'.  Simply call sparc_frame_cache.
5487         (sparc64_frame_this_id, sparc64_frame_prev_register,
5488         sparc64_frame_base_address): Use `struct sparc_frame_cache'
5489         instead of `struct sparc64_frame_cache.
5490         (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
5491         sparc_analyze_control_transfer, sparc_software_single_step,
5492         sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
5493         _initialize_sparc64_tdep): Remove functions.
5494         (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
5495         (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
5496         macros.
5497         (sparc64_supply_gregset, sparc64_collect_gregset,
5498         sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
5499         (sparc64_init_abi): New function.
5500         * sparc64-tdep.h: Update copyright year.  Fix typo in multiple
5501         inclusion guard.  Include "sparc-tdep.h".
5502         (BIAS): Define.
5503         (r_tstate_offset, r_fprs_offset): New defines.
5504         (enum sparc_regnum): Remove defenition.
5505         (enum sparc64_regnum): Reformat.
5506         (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
5507         (sparc64_init_abi, sparc64_supply_gregset,
5508         sparc64_collect_gregset, sparc64_supply_fpregset,
5509         sparc64_collect_fpregset): New prototypes.
5510         (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
5511         Add extern declarations.
5512         (sparc64_sol2_init_abi): New prototype.
5513         (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
5514         (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
5515         prototypes.
5516         * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
5517         "sparnbsd-nat.h".
5518         (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
5519         functions.
5520         (_initialize_sparc64fbsd_nat): Remove initialization of
5521         sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
5522         sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
5523         sparcbsd_fpreg_supplies_p.  Initialize sparc_gregset.
5524         * sparc64fbsd-tdep.c: Update copyright year.  Include "frame.h",
5525         "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
5526         (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
5527         (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
5528         (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
5529         (sparc64fbsd_r_y_offset): Remove variables.
5530         (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
5531         Make static and const.
5532         (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
5533         (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
5534         functions.
5535         (sparc64fbsd_gregset): New variable.
5536         (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
5537         and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
5538         and sparc64_supply_fpregset.
5539         (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
5540         (sparc64fbsd_sigtramp_frame_this_id)
5541         (sparc64fbsd_sigtramp_frame_prev_register): New functions.
5542         (sparc64fbsd_sigtramp_frame_unwind): New variable.
5543         (sparc64fbsd_sigtramp_frame_sniffer): New function.
5544         (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
5545         sparc64fbsd_sigtramp_frame_sniffer.  Call sparc64_init_abi.
5546         * sparcnbsd-tdep.c: Update copyright year.  Include
5547         "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
5548         "trad-frame.h" and "gdb_assert.h", don't include "target.h",
5549         "value.h" and "sparcnbsd-tdep.h".
5550         (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
5551         (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
5552         (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
5553         (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
5554         defines.
5555         (sparcnbsd_gregset): New variable.
5556         (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
5557         (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
5558         (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
5559         (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
5560         (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
5561         variables.
5562         (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
5563         (sparc32nbsd_sigcontext_frame_this_id)
5564         (sparc32nbsd_sigcontext_frame_prev_register): New functions.
5565         (sparc32nbsd_sigcontext_frame_unwind): New variable.
5566         (sparc32nbsd_sigtramp_frame_sniffer): New function.
5567         (sparcnbsd_get_longjmp_target_32,
5568         sparcnbsd_get_longjmp_target_64): Remove functions.
5569         (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
5570         (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
5571         sparcnbsd_init_elf): Remove.
5572         (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
5573         (sparcnbsd_elf_init_abi): New functions.
5574         (_initialize_sparcnbsd_tdep): New prototype.
5575         (_initialize_sparnbsd_tdep): Update.
5576         * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
5577         corelow.o.  Add sparc64-nat.o and sparc-nat.o.
5578         * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
5579         * config/sparc/linux.mh: Update comment.
5580         (XM_FILE, HOST_IPC): Remove variables.
5581         (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o.  Remove
5582         sparc-linux-nat.o.
5583         * config/sparc/linux.mt: Update comment.
5584         (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
5585         * config/sparc/nbsd.mt: Reformat.
5586         * config/sparc/nbsd64.mh: Update comment.
5587         (NATDEPFILES): Add sparc-nat.o.
5588         * config/sparc/nbsd64.mt: Update comment.
5589         (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
5590         (TM_FILE): Set to tm-nbsd.h.
5591         * config/sparc/nbsdelf.mh: Update comment.
5592         (NATDEPFILES): Add sparc-nat.o.
5593         (XM_FILE): Delete.
5594         * config/sparc/nbsdaout.mh: Update comment.
5595         (NATDEPFILES): Add sparc-nat.o
5596         (XM_FILE): Delete.
5597         * config/sparc/nm-linux.h: Update copyright year.  Don't include
5598         "config/nm-svr4.h" and "solib.h".  Add protection against multiple
5599         inclusion.
5600         (KERNEL_U_SIZE): Remove define.
5601         (kernel_u_size): Remove prototype.
5602         (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
5603         * config/sparc/nm-nbsd.h: Update copyright.  Don't include
5604         "regcache.h".
5605         (CHILD_PREPARE_TO_STORE): Remove define.
5606         * config/sparc/nm-nbsdaout.h: Tweak some comments.
5607         * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
5608         sparcnbsd-nat.c: Rewrite files.
5609         * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
5610         * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
5611         sparcnbsd-tdep.h: Remove files.
5612         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
5613         config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
5614         config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
5615         config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
5616         config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
5617         config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
5618         config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
5619         config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
5620         config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
5621         config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
5622         config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
5623         config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
5624         * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
5625         sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
5626         sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
5627         * config/sparc/linux64.mh, config/sparc/linux64.mt,
5628         config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
5629         config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
5630         config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
5631
5632 2004-01-02  Andrew Cagney  <cagney@redhat.com>
5633
5634         From 2003-12-18 Kazuhiro Inaoka:
5635         * configure.host: Add m32r-linux target.
5636
5637 2004-01-02  Michael Chastain  <mec.gnu@mindspring.com>
5638
5639         * top.c (print_gdb_version): Update year to 2004.
5640
5641 2004-01-02  Mark Mitchell  <mark@codesourcery.com>
5642
5643         * MAINTAINERS: Add myself to the write-after-approval category.
5644
5645 2004-01-02  Daniel Jacobowitz  <drow@mvista.com>
5646
5647         From Bernardo Innocenti <bernie@develer.com>:
5648         * configure.tgt: Add uClinux target.
5649
5650 2004-01-02  Andrew Cagney  <cagney@redhat.com>
5651
5652         * utils.c (do_my_cleanups): Make static, add forward declaration.
5653         * defs.h (do_my_cleanups): Delete declaration.
5654
5655 2004-01-02  Eli Zaretskii  <eliz@elta.co.il>
5656
5657         * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
5658         bfd/ChangeLog-0203.
5659
5660 2004-01-02  Mark Kettenis  <kettenis@gnu.org>
5661
5662         * configure.in: Check for <machine/reg.h>.  Check for `struct reg'
5663         in <machine/reg.h>.
5664         * configure, config.in: Regenerate.
5665
5666 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
5667 tui/ChangeLog-1998-2003.
5668 \f
5669 Local Variables:
5670 mode: change-log
5671 left-margin: 8
5672 fill-column: 74
5673 version-control: never
5674 End: