edcbec977995bcc3646f8bbec67d1119f5ae0897
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2003-07-22  Elena Zannoni  <ezannoni@redhat.com>
2         
3         dwarf2loc.c (locexpr_describe_location): Fix typo.
4
5 2003-07-22  Elena Zannoni  <ezannoni@redhat.com>
6
7         * findvar.c (read_var_value): Remove case for thread local storage
8         variables.  It is now entirely handled by the dwarf2 location
9         expression code.
10         * printcmd.c (address_info): Ditto.
11         * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
12         enumeration value.
13         (struct symbol): Remove objfile field, which was used by
14         LOC_THREAD_LOCAL_STATIC only.
15         * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
16         * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
17         usage of objfile pointer.
18         * dwarf2loc.c (locexpr_describe_location): Add case to handle
19         thread local variables.
20         Add include of objfiles.h.
21         * dwarf2expr.c (execute_stack_op): Add comments about thread local
22         storage variables.
23         * Makefile.in (dwarf2loc.o): Update dependencies.
24
25 2003-07-22  Andrew Cagney  <cagney@redhat.com>
26
27         * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
28         get_frame_base.
29         (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
30         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
31         (struct value): Add opaque declaration.
32         (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
33
34 2003-07-21  Andrew Cagney  <cagney@redhat.com>
35
36         From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
37         * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
38
39 2003-07-20  Stephane Carrez  <stcarrez@nerim.fr>
40
41         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use 
42         regcache_cooked_read_unsigned instead of read_register.
43         (m68hc11_saved_pc_after_call): Likewise.
44         (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
45         instead of write_register.
46         (m68hc11_register_type): New function.
47         (m68hc11_register_virtual_type): Remove.
48         (m68hc11_store_return_value): Convert to use the regcache.
49         (m68hc11_extract_struct_value_address): Likewise.
50         (m68hc11_gdbarch_init): Remove deprecated ops for register to use
51         m68hc11_register_type; undeprecate store_return_value and
52         extract_struct_value_address.
53
54 2003-07-20  Stephane Carrez  <stcarrez@nerim.fr>
55
56         * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
57         and translate to use regcache.
58         (m68hc11_gdbarch_init): Undeprecate extract_return_value.
59
60 2003-07-18  Andrew Cagney  <cagney@redhat.com>
61
62         * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
63         * gdbarch.h, gdbarch.c: Re-generate.
64         * i386-tdep.c (i386_gdbarch_init): Do not set
65         DWARF2_BUILD_FRAME_INFO.
66         * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
67         unconditionally.
68         * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
69         DWARF2_BUILD_FRAME_INFO.
70
71 2003-07-18  Andrew Cagney  <cagney@redhat.com>
72
73         From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
74         * disasm.c (gdb_disassemble_info): Initilize di.arch.
75
76 2003-07-18  Andrew Cagney  <cagney@redhat.com>
77
78         * dwarf2-frame.c (dwarf2_frame_sniffer): Use
79         frame_unwind_address_in_block, instead of frame_pc_unwind.
80         (dwarf2_frame_cache): Ditto.
81
82 2003-07-18  Andrew Cagney  <cagney@redhat.com>
83
84         * user-regs.h (struct gdbarch): Declare opaque.
85         * ui-out.h (struct ui_file): Declare opaque.
86         * dwarf2-frame.h (struct frame_info): Declare opaque.
87
88 2003-07-18  Kris Warkentin  <kewarken@qnx.com>
89
90         * nto-procfs.c: Clean ARI hits.  Change #include <..> to
91         #include "...".
92         (procfs_meminfo): Change strerror to safe_strerror.
93         (procfs_can_run): Remove K&R badness.
94
95 2003-07-17  Michael Snyder  <msnyder@redhat.com>
96
97         * remote-sim.c: Comment typo fix.
98
99 2003-07-17  Andrew Cagney  <cagney@redhat.com>
100
101         * defs.h (GDB_MULTI_ARCH): Delete conditional define.  Handled by
102         configure.
103         * sparc-tdep.c (sparc_intreg_size): Make non-static.
104         * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
105         GDB_MULTI_ARCH_PARTIAL.
106
107 2003-07-17  Elena Zannoni  <ezannoni@redhat.com>
108
109         * Makefile.in (x86-64-linux-nat.o): Update dependencies.
110         * x86-64-linux-nat.c (ps_get_thread_area): New function.  Add
111         include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
112
113 2003-07-16  Theodore A. Roth  <troth@openavr.org>
114
115         * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
116         found.
117         (avr_frame_unwind_cache): Don't unwind FP for main.
118         Update a comment.
119         Save the computed prev_sp.
120         (avr_saved_regs_unwinder): Remove function.
121         (avr_frame_prev_register): Use PC unwind logic from 
122         avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
123
124 2003-07-16  Andrew Cagney  <cagney@redhat.com>
125
126         * frame-base.h (frame_base_p_ftype): Delete definition.
127         (frame_base_append_predicate): Delete declaration.
128         * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
129         (frame_unwind_append_predicate): Delete declaration.
130         * frame-unwind.c (struct frame_unwind_table): Delete field "p".
131         (append_predicate): Delete parameter "p".
132         (frame_unwind_append_predicate): Delete function.
133         (frame_unwind_append_sniffer): Update call to append_predicate.
134         (frame_unwind_free): Delete function.
135         (_initialize_frame_unwind): Pass NULL as "free" to
136         register_gdbarch_data.
137         (frame_unwind_init): Append the dummy_frame_sniffer.
138         (frame_unwind_find_by_frame): Simplify.
139         * frame-base.c (struct frame_base_table): Delete field "p".
140         (append_predicate): Delete parameter "p".
141         (frame_base_append_predicate): Delete function.
142         (frame_base_append_sniffer): Update call to append_predicate.
143         (frame_base_free): Delete function.
144         (frame_base_find_by_frame): Simplify.
145         (_initialize_frame_base): Pass NULL as "free" to
146         register_gdbarch_data.
147         * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
148         (x86_64_sigtramp_frame_sniffer): Replace
149         "x86_64_sigtramp_frame_p".
150         (x86_64_init_abi): Set the frame unwind sniffers.
151         * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
152         (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
153         (m68k_gdbarch_init): Set the frame unwind sniffers.
154         * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
155         "i386_sigtramp_frame_p".
156         (i386_frame_sniffer): Replace "i386_frame_p".
157         (i386_gdbarch_init): Set the frame unwind sniffers.
158         * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
159         (avr_gdbarch_init): Set the frame unwind sniffers.
160         * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
161         "alpha_sigtramp_frame_p"
162         (alpha_heuristic_frame_sniffer): Replace
163         "alpha_heuristic_frame_p".
164         (alpha_gdbarch_init): Set the frame unwind sniffers.
165         (alpha_dwarf2_init_abi): Ditto.
166         * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
167         "alpha_debug_frame_p".
168         (alpha_mdebug_frame_base_sniffer): Replace
169         "alpha_mdebug_frame_base_p".
170         (alpha_mdebug_init_abi): Set the frame unwind sniffers.
171         * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
172         (d10v_gdbarch_init): Set the frame unwind sniffer.
173         * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
174         (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
175         * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
176         (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
177         * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
178         * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
179
180 2003-07-16  Michael Snyder  <msnyder@redhat.com>
181
182         * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
183         should go thru sh_dsp_register_sim_regno, else the dsp regs
184         will not get the right values.
185
186 2003-07-16  Corinna Vinschen  <vinschen@redhat.com>
187
188         * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
189         deprecated_store_floating by call to store_typed_floating.
190         (sh_sh4_register_convert_to_raw): Substitute call to
191         deprecated_extract_floating by call to extract_typed_floating.
192
193 2003-07-16  Corinna Vinschen  <vinschen@redhat.com>
194
195         * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
196
197 2003-07-16  Corinna Vinschen  <vinschen@redhat.com>
198
199         * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
200         register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
201         gdbarch_register_type in 32 bit code throughout.  Avoid current_gdbarch
202         as possible.
203         (do_pseudo_register): Remove.
204         (sh_push_dummy_code): New function.
205         (sh64_store_struct_return): Rename from sh_store_struct_return.
206         Only called for sh64 now.
207         (sh_extract_struct_value_address): Regcache'ify.
208         (sh_push_dummy_call): Rename from sh_push_arguments.  Regcache'ify
209         and accomodate new tasks.
210         (sh64_push_return_address): Rename from sh_push_return_address.
211         Only called for sh64 now.
212         (sh_default_extract_return_value): Rename from sh_extract_return_value.
213         Regcache'ify.
214         (sh3e_sh4_extract_return_value): Regcache'ify.
215         (sh_default_store_return_value): Ditto.
216         (sh3e_sh4_store_return_value): Ditto.
217         (sh_default_register_byte): Remove.
218         (sh_sh4_register_byte): Remove.
219         (sh_default_register_raw_size): Remove.
220         (sh_sh4_register_raw_size): Remove.
221         (sh_register_virtual_size): Remove.
222         (sh_sh3e_register_virtual_type): Remove.
223         (sh_sh3e_register_type): New function.
224         (sh_sh4_register_virtual_type): Remove.
225         (sh_sh4_register_type): New function.
226         (sh_default_register_virtual_type): Remove.
227         (sh_default_register_type): New function.
228         (do_fv_register_info): Add parameters to accomodate call from
229         sh_print_registers_info.
230         (do_dr_register_info): Ditto.
231         (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
232         Add parameters to accomodate call from sh_print_registers_info.
233         (sh_do_fp_register): Ditto.
234         (sh64_do_pseudo_register): Call do_dr_register_info,
235         do_fv_register_info and sh_do_fp_register with default parameters.
236         (sh_do_register): Add parameters to accomodate call from
237         sh_print_registers_info.
238         (sh_print_register): Ditto.
239         (sh_print_registers_info): Rename from sh_do_registers_info.
240         Add parameters to be used as gdbarch_print_registers_info
241         implementation.  Accomodate removed do_pseudo_register function
242         pointer.
243         (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
244         function pointer. Call sh_print_register with default parameters.
245         (sh64_do_registers_info): Call sh_print_registers_info instead of
246         sh_do_registers_info.
247         (sh_gdbarch_init): Rearrange to cleanup and to allow easier
248         detection of deprecated vs. non-deprecated functionality.
249         Rename sh_call_dummy_words to sh64_call_dummy_words.  Remove
250         function pointer assignments by direct function calls.
251
252 2003-07-15  Andrew Cagney  <cagney@redhat.com>
253
254         * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
255         (frame_register_unwind, create_new_frame): Ditto.
256         (legacy_get_prev_frame, get_frame_type): Ditto.
257         (get_frame_base_address): Use frame_base_find_by_frame.
258         (get_frame_locals_address): Use frame_base_find_by_frame.
259         (get_frame_args_address): Use frame_base_find_by_frame.
260         * frame-base.h (frame_base_sniffer_ftype): Declare.
261         (frame_base_append_sniffer): Declare.
262         (frame_base_find_by_frame): Replace frame_base_find_by_pc.
263         * frame-base.c (append_predicate): Add a "sniffer" parameter.
264         (frame_base_append_sniffer): New function.
265         (frame_base_append_predicate): Add a NULL sniffer.
266         (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
267         (struct frame_base_table): Add "sniffer".
268         (frame_base_free): Free the "sniffer" table.
269         * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
270         (frame_unwind_append_sniffer): Declare.
271         (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
272         * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
273         (struct frame_unwind_table): Add "sniffer", delete "middle".
274         (append_predicate): Add "sniffer" parameter, append the sniffer.
275         (frame_unwind_init): Update append_predicate call.
276         (frame_unwind_append_sniffer): New function.
277         (frame_unwind_append_predicate): Update append_predicate call.
278         (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
279
280 2003-07-15  Andrew Cagney  <cagney@redhat.com>
281
282         * frame.c (get_prev_frame): Move disabled inside_entry_func to
283         before code inhibiting repeated unwind attempts.  Add to
284         commentary on that test's problems.
285         * blockframe.c (inside_main_func): Look for "main" in the minimal
286         symbol table.
287         * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
288         identical.
289
290 2003-07-15  Andrew Cagney  <cagney@redhat.com>
291
292         * complaints.c (struct explanation): Define.
293         (struct complaints): Change type of "explanation" to "struct
294         explanation".
295         (symfile_explanations): Convert to a "struct explanation" table.
296         (vcomplaint): Update.
297
298 2003-07-15  Michal Ludvig  <mludvig@suse.cz>
299
300         * x86-64-linux-nat.c (regmap): Removed.
301         (supply_gregset, fill_gregset): Call 
302         x86_64_linux_(fill,supply)_gregset functions.
303         * x86-64-linux-tdep.c (USER_*): New defines.
304         (user_to_gdb_regmap, x86_64_core_fns): New structure.
305         (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
306         New functions.
307         (fetch_core_registers): Ditto.
308         (_initialize_x86_64_linux_tdep): Call add_core_fns().
309         * x86-64-linux-tdep.h: New file.
310         * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
311         and core-regset.o.
312         * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
313
314 2003-07-13  Mark Kettenis  <kettenis@gnu.org>
315
316         * x86-64-tdep.c (x86_64_store_return_value): Use
317         regcache_cooked_write_part instead of regcache_cooked_write.
318
319         * configure.host: Add x86_64-*-freebsd*.
320         * configure.tgt: Add x86_64-*-freebsd*.
321         * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
322         * amd64fbsd-nat.c: New file.
323         * amd64fbsd-tdep.c: New file.
324         * config/i386/nm-fbsd64.h: New file.
325         * config/i386/fbsd64.mh: New file.
326         * config/i386/fbsd64.mt: New file.
327
328 2003-07-11  Mark Kettenis  <kettenis@gnu.org>
329
330         * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
331         `sc_regs_offset' and `sc_fpregs_offset'.
332         * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
333         SIGFRAME_FPREGSAVE_OFF): Remove defines.
334         (alpha_sigtramp_register_address): Rewrite to use new members of
335         `struct gdbarch_tdep'.
336         (alpha_gdbarch_init): Initialize new members of struct
337         gdbarch_tdep'.
338         * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
339         ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
340         (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
341         (alphafbsd_pc_in_sigtramp): Implement.
342         (alphafbsd_sigtramp_offset): New function.
343         (alphafbsd_sigcontext_addr): New function.
344         (alphafbsd_init_abi): Initialize signal trampoline related members
345         of `struct gdbarch_tdep'.
346         (_initialize_alphafbsd_tdep): Add prototype.
347
348 2003-07-11  Theodore A. Roth  <troth@openavr.org>
349
350         * Makefile.in (install-only): Quote sed expression when generating
351         transformed_name.
352
353 2003-07-11  Richard Henderson  <rth@redhat.com>
354
355         * Makefile.in (dwarf2-frame.o): Add complaints_h.
356         * dwarf2-frame.c: Include complaints.h.
357         (decode_frame_entry_1): Rename from decode_frame_entry; tidy
358         variable initialization; return NULL on error.
359         (decode_frame_entry): New.
360
361 2003-07-11  Andrew Cagney  <cagney@redhat.com>
362
363         * frame.h (frame_address_in_block): Delete declaration.
364         * blockframe.c (frame_address_in_block): Delete function.
365         (get_frame_block): Use get_frame_address_in_block.
366         (block_innermost_frame): Ditto.
367         * stack.c (print_frame, backtrace_command_1): Ditto.
368
369         * frame.h (get_frame_address_in_block): Declare.
370         (frame_unwind_address_in_block): Declare.
371         * frame.c (frame_unwind_address_in_block): New function.
372         (get_frame_address_in_block): New function.
373
374 2003-07-10  Andrew Cagney  <cagney@redhat.com>
375
376         * gdbarch.sh: Simplify predicate methods.  Remove need to provide
377         pre-default.   Note: re-generate has no effect.
378         
379 2003-07-10  Andrew Cagney  <cagney@redhat.com>
380
381         * gdbarch.sh: When a variable, but not a function, compare against
382         0.  Fix problem in previous patch.
383         * gdbarch.c: Re-generate.
384         
385 2003-07-10  Andrew Cagney  <cagney@redhat.com>
386
387         * gdbarch.sh: Use gdb_assert instead of internal_error.  Compare
388         functions against NULL, not 0.
389         * gdbarch.c: Re-generate.
390         
391 2003-07-10  Fred Fish  <fnf@ninemoons.com>
392
393         * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
394         null string instead of a null pointer.
395         * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
396
397 2003-07-09  Michael Snyder  <msnyder@redhat.com>
398
399         * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
400
401 2003-07-09  Mark Kettenis  <kettenis@gnu.org>
402
403         * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
404         X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
405         X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
406         X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
407         * x86-64-tdep.c: ... from here.
408
409 2003-07-09  Andreas Schwab  <schwab@suse.de>
410
411         * m68k-tdep.h (enum struct_return): Define.
412         (struct gdbarch_tdep): Add struct_return.
413         * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
414         bytes are padded to the right, not to the left.  Pass struct value
415         address in register %a1, not on stack.
416         (m68k_use_struct_convention): New function.
417         (m68k_gdbarch_init): Set use_struct_convention.  Initialize
418         struct_return in tdep to pcc_struct_return.
419         * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
420         reg_struct_return.
421
422 2003-07-09  Joel Brobecker  <brobecker@gnat.com>      
423
424         * somread.c (som_symfile_offsets): Fix compilation error.   
425
426 2003-07-09  Andrew Cagney  <cagney@redhat.com>
427
428         * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
429         Add comments about the checks.
430
431 2003-07-08  Andrew Cagney  <cagney@redhat.com>
432
433         * Makefile.in: Make dependency section headers consistent.
434         (config_h): Move to $BUILD headers section.
435         (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
436         (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
437         (ada-exp.tab.c): Move to YACC/LEX section.
438         (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
439         (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
440
441 2003-07-08  Kris Warkentin  <kewarken@qnx.com>
442
443         * nto-procfs.c: Cleaned up a bunch of ARI hits.
444         Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
445         of strerror with safe_strerror, use ISO C function definitions,
446         and replace instances of sprintf with snprintf.
447
448 2003-07-07  Andrew Cagney  <cagney@redhat.com>
449
450         * frame.c (get_prev_frame): Enable check for identical frames.
451         Update comments.  Update error messages.
452
453 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
454
455         * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
456
457 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
458
459         * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
460         sort_symtab_syms, no longer necessary.
461
462 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
463
464         * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
465
466 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
467
468         * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
469         (mips_register_byte): Likewise.
470
471 2003-07-07  Daniel Jacobowitz  <drow@mvista.com>
472
473         * Makefile.in (sparc_tdep_h): New.
474         (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
475         (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
476         * sparc-linux-nat.c: Include "sparc-tdep.h".
477         * sparc-nat.c: Likewise.
478         * sparc-tdep.c: Likewise.
479         * sparc64nbsd-nat.c: Likewise.
480         * sparcnbsd-nat.c: Likewise.
481         * sparcnbsd-tdep.c: Likewise.
482         * sparc-tdep.h: New file.
483         * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
484         and sparc_npc_regnum.
485
486 2003-07-07  Daniel Jacobowitz  <drow@mvista.com>
487
488         * mips-linux-nat.c (mips_linux_cannot_fetch_register)
489         (mips_linux_cannot_store_register): List supported instead of
490         unsupported registers.
491
492 2003-07-07  Daniel Jacobowitz  <drow@mvista.com>
493
494         * disasm.c (dump_insns): Separate instructions from addresses.
495
496 2003-07-07  Andreas Schwab  <schwab@suse.de>
497
498         * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
499         dependencies.
500         * m68k-tdep.c (NUM_FREGS): Delete.
501         (SIG_PC_FP_OFFSET): Delete.
502         (TARGET_M68K): Delete.
503         (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
504         P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
505         P_MOVEL_SP, P_MOVEML_SP): Define.
506         (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
507         P_TRAP): Delete.
508         (m68k_register_raw_size): Delete.
509         (m68k_register_virtual_size): Delete.
510         (m68k_register_type): Renamed from m68k_register_virtual_type and
511         add gdbarch argument.
512         (m68k_store_struct_return): Delete.
513         (m68k_deprecated_extract_return_value): Delete.
514         (m68k_deprecated_extract_struct_value_address): Delete.
515         (m68k_frame_chain): Delete.
516         (m68k_frame_saved_pc): Delete.
517         (m68k_fix_call_dummy): Delete.
518         (m68k_push_dummy_frame): Delete.
519         (m68k_pop_frame): Delete.
520         (m68k_extract_return_value): New function.
521         (m68k_store_return_value): Rewrite using regcache.
522         (m68k_extract_struct_value_address): Rewrite using regcache.
523         (m68k_push_dummy_call): New function.
524         (struct m68k_frame_cache): Define.
525         (m68k_alloc_frame_cache): New function.
526         (m68k_analyze_frame_setup): New function.
527         (m68k_analyze_register_saves): New function.
528         (m68k_analyze_prologue): New function.
529         (m68k_skip_prologue): Rewrite using above functions.
530         (m68k_unwind_pc): New function.
531         (m68k_frame_cache): New function.
532         (m68k_frame_this_id): New function.
533         (m68k_frame_prev_register): New function.
534         (m68k_frame_unwind): New variable.
535         (m68k_frame_p): New function.
536         (m68k_sigtramp_frame_cache): New function.
537         (m68k_sigtramp_frame_this_id): New function.
538         (m68k_sigtramp_frame_prev_register): New function.
539         (m68k_sigtramp_frame_unwind): New variable.
540         (m68k_sigtramp_frame_p): New function.
541         (m68k_frame_base_address): New function.
542         (m68k_frame_base): New function.
543         (m68k_unwind_dummy_id): New function.
544         (fill_gregset): Use regcache_collect.
545         (fill_fpregset): Likewise.
546         (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
547         defined.
548         (m68k_gdbarch_init): Don't define call_dummy_words.  Don't set
549         deprecated_init_frame_pc, deprecated_store_struct_return,
550         deprecated_extract_return_value, deprecated_store_return_value,
551         deprecated_frame_chain, deprecated_frame_saved_pc,
552         deprecated_frame_init_saved_regs, deprecated_register_raw_size,
553         deprecated_register_virtual_size,
554         deprecated_max_register_raw_size,
555         deprecated_max_register_virtual_size,
556         deprecated_register_virtual_type, deprecated_register_size,
557         deprecated_register_byte, deprecated_register_bytes,
558         deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
559         call_dummy_location, deprecated_call_dummy_breakpoint_offset,
560         deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
561         deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
562         deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
563         deprecated_push_dummy_frame, deprecated_pop_frame,
564         deprecated_dummy_write_sp.  Set deprecated_saved_pc_after_call
565         only if SYSCALL_TRAP is defined.  Set extract_return_value,
566         store_return_value, extract_struct_value_address, register_type,
567         push_dummy_call, unwind_dummy_id, unwind_pc.  Add two frame unwind
568         predicates.
569         * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
570         M68K_MAX_REGISTER_SIZE): Define.
571         (struct m68k_sigtramp_info): Define.
572         (struct gdbarch_tdep): Add get_sigtramp_info.
573         * m68klinux-nat.c (fetch_register): Use register_size instead of
574         REGISTER_RAW_SIZE.  Don't put assignment in if.
575         (store_register): Likewise.
576         (fetch_inferior_registers): Likewise.
577         (store_inferior_registers): Likewise.
578         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
579         (m68k_linux_frame_saved_pc): Delete.
580         (m68k_linux_sigcontext_reg_offset,
581         m68k_linux_ucontext_reg_offset): Define.
582         (m68k_linux_get_sigtramp_info): New function.
583         (m68k_linux_extract_return_value): Rewrite using regcache.
584         (m68k_linux_store_return_value): Likewise.
585         (m68k_linux_extract_struct_value_address): Likewise.
586         (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
587         Don't set deprecated_frame_saved_pc,
588         deprecated_extract_return_value, deprecated_store_return_value,
589         deprecated_extract_struct_value_address.  Set
590         extract_return_value, store_return_value,
591         extract_struct_value_address.
592
593 2003-07-07  Andrew Cagney  <cagney@redhat.com>
594
595         * expprint.c: Include "user-regs.h" instead of "frame.h".
596         (print_subexp): Use user_reg_map_regnum_to_name, instead of
597         frame_map_regnum_to_name.
598         * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
599         (frame_map_name_to_regnum): Simplify, call
600         user_reg_map_name_to_regnum.
601         (frame_map_regnum_to_name): Simplify, call
602         user_reg_map_regnum_to_name.
603         (frame_register_unwind): Update.
604         * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
605         (_initialize_frame_reg): Call user_reg_add_builtin.
606         * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
607         (value_of_register): Use value_of_user_reg.
608         * eval.c (evaluate_subexp_standard): Update.
609         * parse.c (write_dollar_variable): Update.
610         * d10v-tdep.c (d10v_print_registers_info): Update.
611         * infcmd.c (registers_info): Update.
612         * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
613         (builtin_regs_h): Delete macro.
614         (user_regs_h): Define.
615         (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
616         (builtin-regs.o): Delete target.
617         (user-regs.o): Specify dependencies.
618         (expprint.o): Update dependencies.
619         (findvar.o): Update dependencies.
620         (frame.o): Update dependencies.
621         (std-regs.o): Update dependencies.
622
623 2003-07-06  Christopher Faylor  <cgf@redhat.com>
624
625         * win32-nat.c (solib_symbols_add): Use one variable for all section
626         address stuff.  Pass variable rather than address of variable to
627         safe_symbol_file_add.
628
629 2003-07-06  Andreas Schwab  <schwab@suse.de>
630
631         * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
632
633 2003-07-04  Joel Brobecker  <brobecker@gnat.com>
634
635         * rs6000-nat.c (vmap_symtab): Fix compilation error.
636
637 2003-07-04  Kris Warkentin  <kewarken@qnx.com>
638
639         * config/i386/nto.mh: Set XM_FILE to xm-i386.h
640
641 2003-07-04  Kris Warkentin  <kewarken@qnx.com>
642
643         * nto-procfs.c: New file.  Native procfs support for QNX Neutrino.
644         * config/i386/nto.mh: New file.
645         * config/i386/nm-nto.h: New file.
646         * configure.host: Add i[3456]86-*-nto*.
647
648 2003-07-03  Joel Brobecker  <brobecker@gnat.com>
649
650         * remote-vx.c (vx_add_symbols): Fix compilation error.
651
652 2003-07-03  Andrew Cagney  <cagney@redhat.com>
653
654         * gdbarch.sh (REGISTER_NAME): Do not supply a default.
655         * gdbarch.h, gdbarch.c: Re-generate.
656         * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
657         (legacy_register_name): Declare.
658         * config/sparc/tm-sp64.h (legacy_register_name): Declare.
659         (REGISTER_NAME): Define.
660         * sparc-tdep.c (legacy_register_name): New function.
661         * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
662         (REGISTER_NAME): Define.
663         (hppa64_register_name): Declare.
664         * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
665         * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
666         (hppa64_register_name): New function.
667         (hppa_register_name): New function.
668         * arch-utils.c (legacy_register_name): Delete.
669         * arch-utils.h (legacy_register_name): Delete.
670
671 2003-07-03  Daniel Jacobowitz  <drow@mvista.com>
672
673         * cli/cli-interp.c (cli_interpreter_resume): Update the
674         cli_uiout's stream to gdb_stdout.
675
676 2003-07-03  Andrew Cagney  <cagney@redhat.com>
677
678         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
679         predicate.
680         * gdbarch.h, gdbarch.c: Re-generate.
681         * regcache.c (init_regcache_descr): Use legacy code when either
682         REGISTER_BYTE or REGISTER_RAW_SIZE is set.
683
684 2003-07-02  Daniel Jacobowitz  <drow@mvista.com>
685
686         * NEWS: Move "set logging" entry into GDB 6.0 section.
687
688 2003-07-02  Jim Blandy  <jimb@redhat.com>
689
690         * s390-tdep.c (struct frame_extra_info): new member:
691         'stack_bought_valid'.
692         (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
693         initialize fextra_info->stack_bought.
694         (s390_frameless_function_invocation): Don't trust the value of
695         fextra_info_ptr->stack_bought unless
696         fextra_info->stack_bought_valid is set.
697
698         New S390 prologue analyzer.
699         * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
700         (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
701         pv_constant_last, pv_add, pv_add_constant, pv_subtract,
702         pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
703         compute_x_addr, s390_on_stack, s390_store,
704         s390_get_signal_frame_info): New functions.
705         (S390_NUM_SPILL_SLOTS): New macro.
706         (s390_get_frame_info): Rewritten.
707         (is_arg_reg): Deleted.
708
709         Break out the decoding of S/390 instructions into separate
710         functions, to make it more legible, and easier to check
711         against the spec.
712         * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
713         is_rx, is_rxe): New functions.
714         (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
715         op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
716         op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
717         op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
718         enums for opcode values.  (Is this an improvement?)
719
720 2003-07-02  Andrew Cagney  <cagney@redhat.com>
721
722         * i386-tdep.c: Revert change committed as part of trad-frame code
723         below.
724
725 2003-07-02  Daniel Jacobowitz  <drow@mvista.com>
726
727         * breakpoint.c (insert_catchpoint): Make static.
728
729 2003-07-02  Andreas Schwab  <schwab@suse.de>
730
731         * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
732         former ia64_push_arguments and ia64_push_return_address, and use
733         regcache functions instead of read/write_register.
734         (ia64_gdbarch_init): Set push_dummy_call instead of
735         deprecated_push_arguments and deprecated_push_return_address.
736
737 2003-07-01  Andreas Jaeger  <aj@suse.de>
738
739         * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
740         before the call.
741         Set %rax only to number of SSE registers used.
742
743 2003-07-01  Andrew Cagney  <cagney@redhat.com>
744
745         * trad-frame.h: Update comments, a -1 .addr is reserved.
746         (trad_frame_value_p, trad_frame_addr_p): Declare.
747         (trad_frame_reg_p): Declare.
748         (trad_frame_set_value): Rename trad_frame_register_value.
749         (trad_frame_set_unknown): Declare.
750         * trad-frame.c (trad_frame_realreg_p): New function.
751         (trad_frame_addr_p, trad_frame_value_p): New function.
752         (trad_frame_set_unknown): New function.
753         (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
754         (trad_frame_prev_register): Use trad_frame_realreg_p,
755         trad_frame_addr_p and trad_frame_value_p.
756         (trad_frame_set_value): Rename trad_frame_register_value.
757         * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
758         and trad_frame_set_value.
759
760 2003-06-30  Jim Blandy  <jimb@redhat.com>
761
762         Patch from IBM (authors unspecified, probably Ulrich Weigand and
763         Gerhard Tonn) for argument passing on the S/390 and S/390x:
764         * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
765         for 16 registers, and then 32 more bytes.
766         (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
767         New macros.
768         (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
769         Move up in the file, since it's now used by is_simple_arg.
770         (is_simple_arg): Don't assume registers are four bytes long.
771         Exclude all double arguments.  Extended floats are not simple
772         args.
773         (is_power_of_two): New function.
774         (pass_by_copy_ref): Call is_power_of_two, and check that the
775         length fits in a register, rather than listing all the acceptable
776         sizes.  Extended floats are not passed by reference.
777         (s390_push_arguments): Don't assume registers are four bytes long.
778         Reserve an argument register to point to the buffer for structures
779         returned by value.  Use S390_NUM_FP_PARAMETER_REGISTERS and
780         S390_STACK_FRAME_OVERHEAD.
781
782 2003-06-30  Andreas Schwab  <schwab@suse.de>
783
784         * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
785         format error message.
786
787 2003-06-30  Joel Brobecker  <brobecker@gnat.com>
788
789         * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
790
791 2003-06-30  David Carlton  <carlton@kealia.com>
792
793         Band-aid for PR c++/1245.
794         * Makefile.in (cp-support.o): Depend on complaints_h.
795         * cp-support.c: Include complaints.h.  Add declaration for
796         find_last_component.
797         (cp_find_first_component): Separate code into
798         cp_find_first_component_aux.
799         (cp_find_first_component_aux): Call demangled_name_complaint.
800         (demangled_name_complaint): New.
801
802 2003-06-30  Andrew Cagney  <cagney@redhat.com>
803
804         * remote.c (remote_write_bytes): Explicitly compute and then use
805         the payload size.  Update comments to reflect.  Fixes problem of
806         GDB not sending small packets as found by Fred Fish.
807
808 2003-06-30  Andrew Cagney  <cagney@redhat.com>
809
810         * remote.c (remote_async_wait): Fix -Wformat problem.
811
812 2003-06-29  Andrew Cagney  <cagney@redhat.com>
813
814         * remote.c (remote_wait): Call error, and not warning, when the
815         packet is corrupt.
816         (remote_async_wait): Ditto.
817
818 2003-06-29  Daniel Jacobowitz  <drow@mvista.com>
819
820         * sparc-tdep.c (sparc_y_regnum): Make external again.
821
822 2003-06-29  Daniel Jacobowitz  <drow@mvista.com>
823
824         * cli/cli-logging.c (pop_output_files): Add void to function
825         definition.
826
827 2003-06-29  Andrew Cagney  <cagney@redhat.com>
828
829         * frame.c (frame_register_unwind): Use unsigned char when dumping
830         the buffer contents.
831
832 2003-06-28  Daniel Jacobowitz  <drow@mvista.com>
833
834         * cli/cli-logging.c: New file.
835         * cli-out.c (struct ui_out_data): Add original_stream.
836         (cli_redirect): New function.
837         (cli_ui_out_impl): Add cli_redirect.
838         (cli_out_new): Initialize original_stream.
839         * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
840         (uo_redirect, ui_out_redirect): New.
841         * ui-out.h (struct ui_out_impl): Add redirect member.
842         (redirect_ftype): New.
843         (ui_out_redirect): Add prototype.
844         * Makefile.in: Add rules for cli-logging.c.
845         * NEWS: Mention "set logging".
846
847 2003-06-27  Elena Zannoni  <ezannoni@redhat.com>
848
849         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
850
851 2003-06-27  Andrew Cagney  <cagney@redhat.com>
852
853         * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
854         (m68hc11_gdbarch_init): Do not set call_dummy_address.
855         * avr-tdep.c (avr_call_dummy_address): Delete function.
856         (avr_gdbarch_init): Do not set call_dummy_address.
857
858 2003-06-27  Elena Zannoni  <ezannoni@redhat.com>
859
860         * symfile.c (syms_from_objfile): Move variables to inner block.
861         Move the checks for the non-mainline case a bit earlier to avoid
862         doing some useless computations.
863
864 2003-06-27  Elena Zannoni  <ezannoni@redhat.com>
865
866         * dwarfread.c (decode_modified_type): Gag new compiler warning.
867
868 2003-06-26  Elena Zannoni  <ezannoni@redhat.com>
869
870         * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
871         sections.
872
873 2003-06-26  Michael Chastain  <mec@shout.net>
874
875         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
876         gdb/testsuite/gdb.c++/pr-1210.exp.
877
878 2003-06-26  Andrew Cagney  <cagney@redhat.com>
879
880         * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
881         altivec_expression.h and altivec_registers.h.
882
883 2003-06-26  Andrew Cagney  <cagney@redhat.com>
884
885         * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
886         info->mach when MIPS16.  Patch suggested by Fred Fish.
887
888 2003-06-26  Andrew Cagney  <cagney@redhat.com>
889
890         * utils.c (internal_vproblem): Print the problem to a reason
891         buffer and then pass to query.  Make the msg variable more local.
892
893 2003-06-26  Andrew Cagney  <cagney@redhat.com>
894
895         * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate.  Deprecate.
896         (FRAME_LOCALS_ADDRESS): Add predicate.  Deprecate.
897         * gdbarch.h, gdbarch.c: Re-generate.
898         * frame-base.c (default_frame_args_address): Update.  Use
899         default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
900         not available.
901         (default_frame_locals_address): Ditto for
902         DEPRECATED_FRAME_LOCALS_ADDRESS.
903         * vax-tdep.c (vax_sigtramp_saved_pc): Update.
904         (vax_frame_num_args): Update.
905         (vax_gdbarch_init): Update.
906         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
907         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
908         * mcore-tdep.c (mcore_gdbarch_init): Update.
909         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
910         * ia64-tdep.c (ia64_gdbarch_init): Update.
911         * symtab.h (address_class): Update comments.
912         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
913         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
914         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
915         * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
916         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
917         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
918         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
919         * alpha-mdebug-tdep.c: Update.
920         * ada-lang.c (add_symbols_from_enclosing_procs): Update.
921
922 2003-06-26  Andreas Jaeger  <aj@suse.de>
923
924         * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
925         of SSE registers so that varargs functions work.  Rework handling
926         of passing arguments on the stack.
927         (x86_64_store_return_value): Return double and float values in SSE
928         register.
929
930 2003-06-24  Michael Chastain  <mec@shout.net>
931
932         * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
933         the "constructor breakpoints ignored" bug.
934
935 2003-06-25  David Carlton  <carlton@kealia.com>
936
937         * MAINTAINERS: Update e-mail address.
938
939 2003-06-24  Jim Blandy  <jimb@redhat.com>
940
941         * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
942
943         * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
944         function.
945         (ppc_linux_init_abi): Register it as the
946         CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
947
948         * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
949         (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
950         method.
951
952         * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
953         (ppc64_standard_linkage_target): Use it.
954
955 2003-06-23  Andrew Cagney  <cagney@redhat.com>
956
957         * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
958         for 0 "int0" and 4 "int32" sized registers.
959         * gdbtypes.c (builtin_type_int0): Define.
960         (build_gdbtypes): Initialize builtin_type_int0.
961         * gdbtypes.h (builtin_type_int0): Declare.
962
963 2003-06-23  Stephane Carrez  <stcarrez@nerim.fr>
964
965         * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
966         as characters are unsigned.
967
968 2003-06-22  Daniel Jacobowitz  <drow@mvista.com>
969
970         PR gdb/1179
971         * dwarfread.c (struct_type): Skip static fields without crashing.
972
973 2003-06-22  Andrew Cagney  <cagney@redhat.com>
974
975         GDB 6.0 branch created.
976         * README: Update.
977         * PROBLEMS: Update.  Empty.
978         * NEWS: Update.
979
980 2003-06-22  Daniel Jacobowitz  <drow@mvista.com>
981
982         * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
983         Suggested by Nick Hibma <n_hibma@webweaving.org>.
984
985 2003-06-22  Andrew Cagney  <cagney@redhat.com>
986
987         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
988         GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD.  Suggested by Momchil
989         Velikov.
990
991 2003-06-22  Daniel Jacobowitz  <drow@mvista.com>
992
993         * cli/cli-cmds.c (shell_escape): Silence warnings from old
994         compilers.
995
996 2003-06-21  Daniel Jacobowitz  <drow@mvista.com>
997
998         * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
999         argument of val_print.
1000         * cp-valprint.c (cp_print_value): Don't add the offset parameter
1001         to the address argument of baseclass_offset or target_read_memory.
1002         Do add it to the argument of cp_print_value_fields.
1003
1004 2003-06-21  Andrew Cagney  <cagney@redhat.com>
1005
1006         * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
1007         (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
1008         instead of 0..NUM_REGS.
1009         (mips_register_reggroup_p): New function.
1010         (mips_pseudo_register_write): New function.
1011         (mips_pseudo_register_read): New function.
1012         (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
1013         based on the register's type.
1014         (read_next_frame_reg): Simplify.  Assert that REGNO is a pseudo /
1015         cooked.
1016         (mips_get_saved_register): Simplify.  Assert that REGNO is a
1017         pseudo / cooked.
1018         (mips_register_byte): New function.  Use MIPS_REGISTER_BYTE.
1019         (mips_register_type): Replace mips_register_virtual_type.  Map
1020         NUM_REGS..2*NUM_REGS onto 0..NUM_REGS.  Use MIPS_REGISTER_TYPE
1021         when available.
1022         (read_next_frame_reg): Simplify, but handle SP_REGNUM.  Assert
1023         that the register is cooked / virtual.
1024         (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
1025         Only get the extra info when needed.
1026         (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
1027         (mips32_heuristic_proc_desc): Fetch the cooked register.
1028         (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
1029         (mips_init_extra_frame_info, get_frame_pointer): Ditto.
1030         (mips_print_register): Use gdbarch_register_type, instead of
1031         REGISTER_VIRTUAL_TYPE.
1032         (print_gp_register_row): Use gdbarch_register_type, instead of
1033         REGISTER_VIRTUAL_TYPE.  Allow for a pseudo / cooked REGNUM.
1034         (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1035         Print the pseudo / cooked registers.
1036         (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1037         Print the pseudo / cooked registers.
1038         (mips_xfer_register): Use regcache_cooked_read_part.  Assert that
1039         REG_NUM is pseudo / cooked.
1040         (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
1041         (mips_n32n64_xfer_return_value): Ditto.
1042         (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
1043         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
1044         (mips_register_sim_regno): New function.
1045         (mips_gdbarch_init): Set deprecated_register_byte,
1046         register_group_p, pseudo_register_write, pseudo_register_read,
1047         register_sim_regno, and num_pseudo_regs.  Set register_type,
1048         instead of register_virtual_type.
1049         * Makefile.in (mips-tdep.o): Update dependencies.
1050         * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
1051         REGISTER_VIRTUAL_TYPE.
1052         * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
1053         * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
1054         * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
1055         * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
1056         * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
1057
1058 2003-06-21  Daniel Jacobowitz  <drow@mvista.com>
1059
1060         * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
1061         * cli/cli-cmds.c: Include "gdb_vfork.h".
1062         (shell_escape): Use vfork.
1063
1064 2003-06-21  Andrew Cagney  <cagney@redhat.com>
1065
1066         * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
1067         32 bit floating-point register saves.
1068
1069         * frame.h (deprecated_unwind_get_saved_register): Delete.
1070         * frame.c (deprecated_unwind_get_saved_register): Delete function.
1071         * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
1072         and deprecated_get_next_frame_hack instead of
1073         deprecated_unwind_get_saved_register.
1074
1075         * mips-tdep.c (mips_dump_tdep): Do not print
1076         REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
1077
1078         * frame.c (get_frame_register): New function.
1079         (frame_unwind_register_signed): New function.
1080         (get_frame_register_signed): New function.
1081         (frame_unwind_register_unsigned): New function.
1082         (get_frame_register_unsigned): New function.
1083         * frame.h: Add comments on naming schema.
1084         (get_frame_register, frame_unwind_register_signed): Declare.
1085         (get_frame_register_signed, get_frame_register_signed): Declare.
1086         (frame_unwind_register_unsigned): Declare.
1087         (get_frame_register_unsigned): Declare.
1088
1089 2003-06-20  Theodore A. Roth  <troth@openavr.org>
1090
1091         * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
1092
1093 2003-06-20  Theodore A. Roth  <troth@openavr.org>
1094
1095         * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
1096         (avr_read_sp): Ditto.
1097
1098 2003-06-20  Daniel Jacobowitz  <drow@mvista.com>
1099
1100         * config/arm/linux.mt: Remove code protected by GDBSERVER define.
1101         * config/arm/nm-linux.h: Likewise.
1102         * config/arm/tm-linux.h: Likewise.
1103         * config/ia64/nm-linux.h: Likewise.
1104         * config/ia64/tm-ia64.h: Likewise.
1105         * config/s390/tm-linux.h: Likewise.
1106         * config/s390/tm-s390.h: Likewise.
1107         * s390-nat.c: Likewise.
1108         * s390-tdep.c: Likewise.
1109
1110         * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
1111         * config/ia64/linux.mt: Likewise.
1112         * config/m68k/linux.mh: Likewise.
1113         * config/mips/linux.mt: Likewise.
1114         * config/powerpc/linux.mh: Likewise.
1115         * config/sh/linux.mt: Likewise.
1116
1117 2003-06-19  Kris Warkentin  <kewarken@qnx.com>
1118
1119         * solib.c (solib_open): Change tests for whether to search
1120         LD_LIBRARY_PATH and PATH to better deal with remotes.  Update
1121         comments.
1122
1123 2003-06-19  Theodore A. Roth  <troth@openavr.org>
1124
1125         * avr-tdep.c (avr_frame_address): Delete function.
1126         (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
1127         set_gdbarch_frame_args_address.
1128
1129 2003-06-19  Andrew Cagney  <cagney@redhat.com>
1130
1131         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
1132         (REGISTER_CONVERT_FROM_TYPE): Delete.
1133         (mips_register_convert_to_type): Delete declaration.
1134         (mips_register_convert_from_type): Delete declaration.
1135         * linux-nat.h (struct target_ops): Declare opaque.  s/Linux/Linux
1136         kernel/.
1137
1138 2003-06-19  Michael Snyder  <msnyder@redhat.com>
1139
1140         * linux-nat.h: New file.
1141         * linux-nat.c: Include linux-nat.h.
1142         * lin-lwp.c: Include linux-nat.h.
1143         Move struct lwp_info def to linux-nat.h.
1144         * linux-proc.c: Include linux-nat.h.
1145         (linux_make_note_section): Iterate over lwps instead of threads.
1146         (linux_do_thread_registers): Use lwp instead of merged pid.
1147         * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
1148         * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
1149         Add dependency on linux_nat_h.
1150
1151 2003-06-19  Theodore A. Roth  <troth@openavr.org>
1152
1153         * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
1154
1155 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
1156
1157         * varobj.c (get_type, get_target_type): Use check_typedef.
1158
1159 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
1160
1161         * breakpoint.c (insert_catchpoint): Call internal_error.
1162
1163 2003-06-19  Theodore A. Roth  <troth@openavr.org>
1164
1165         * avr-tdep.c (avr_push_dummy_code): Delete function.
1166         (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
1167
1168 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
1169
1170         * arch-utils.c (default_prepare_to_proceed): Remove.
1171         (generic_prepare_to_proceed): Remove.
1172         * arch-utils.h (default_prepare_to_proceed): Remove prototype.
1173         (generic_prepare_to_proceed): Remove prototype.
1174         * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
1175         * gdbarch.c: Regenerate.
1176         * gdbarch.h: Regenerate.
1177         * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
1178         * hppah-nat.c (hppa_switched_threads): Remove.
1179         * infrun.c (prepare_to_proceed): New static function, copied from
1180         generic_prepare_to_proceed.  Remove select_it argument.
1181         (proceed): Call prepare_to_proceed.
1182         * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
1183         variables.
1184         (ptrace_wait): Don't set the removed variables.
1185         (hppa_switched_threads): Remove.
1186         * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
1187         * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
1188         (lin_lwp_prepare_to_proceed): Remove prototype.
1189         * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
1190         * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
1191
1192 2003-06-18  Theodore A. Roth  <troth@openavr.org>
1193
1194         * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
1195         trad-frame.h.
1196         (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
1197         (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
1198         (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
1199         (AVR_PROLOGUE_*): Enumerate prologue types.
1200         (struct frame_extra_info): Remove.
1201         (struct avr_unwind_cache): Define.
1202         (avr_write_sp): Delete function.
1203         (avr_read_fp): Ditto.
1204         (avr_init_extra_frame_info): Ditto.
1205         (avr_pop_frame): Ditto.
1206         (avr_frame_saved_pc): Ditto.
1207         (avr_saved_pc_after_call): Ditto.
1208         (avr_push_return_address): Ditto.
1209         (avr_frame_chain): Ditto.
1210         (avr_store_struct_return): Ditto.
1211         (avr_push_arguments): Ditto.
1212         (avr_scan_prologue): Update comments. Changed to set up the info for
1213         cache unwinding. Now returns end of prologue PC.
1214         (avr_skip_prologue): Better handling of functions lacking a prologue
1215         by using avr_scan_prologue.
1216         (avr_scan_arg_moves): New function.
1217         (avr_saved_regs_unwinder): Ditto.
1218         (avr_frame_unwind_cache): Ditto.
1219         (avr_unwind_pc): Ditto.
1220         (avr_frame_this_id): Ditto.
1221         (avr_frame_prev_register): Ditto.
1222         (avr_frame_p): Ditto.
1223         (avr_frame_base_address ): Ditto.
1224         (avr_unwind_dummy_id): Ditto.
1225         (avr_push_dummy_code): Ditto.
1226         (push_stack_item): Ditto.
1227         (pop_stack_item): Ditto.
1228         (avr_push_dummy_call): Ditto.
1229         (struct stack_item): Define.
1230         (avr_frame_unwind): Declare structure.
1231         (avr_frame_base): Ditto.
1232         (avr_gdbarch_init): Remove calls to
1233         set_gdbarch_deprecated_init_frame_pc,
1234         set_gdbarch_deprecated_target_read_fp,
1235         set_gdbarch_deprecated_dummy_write_sp,
1236         set_gdbarch_deprecated_fp_regnum,
1237         set_gdbarch_deprecated_push_arguments,
1238         set_gdbarch_deprecated_push_return_address,
1239         set_gdbarch_deprecated_pop_frame,
1240         set_gdbarch_deprecated_store_struct_return,
1241         set_gdbarch_deprecated_frame_init_saved_regs,
1242         set_gdbarch_deprecated_init_extra_frame_info,
1243         set_gdbarch_deprecated_frame_chain,
1244         set_gdbarch_deprecated_frame_saved_pc,
1245         set_gdbarch_deprecated_saved_pc_after_call.
1246         Add calls to set_gdbarch_push_dummy_call,
1247         set_gdbarch_push_dummy_code,
1248         frame_unwind_append_predicate,
1249         frame_base_set_default,
1250         set_gdbarch_unwind_dummy_id,
1251         set_gdbarch_unwind_pc.
1252         Wrap a long line.
1253
1254 2003-06-18  Corinna Vinschen  <vinschen@redhat.com>
1255
1256         * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
1257         registers for H8/300S.
1258         (h8300_print_registers_info): Ditto.
1259         (h8300_gdbarch_init): Accommodate register count for H8/300S.
1260
1261 2003-06-18  Daniel Jacobowitz  <drow@mvista.com>
1262
1263         * config/nm-linux.h (linux_record_stopped_pid): New prototype.
1264         * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1265         (lin_lwp_wait): Likewise.  Update comments.
1266         * linux-nat.c (struct simple_pid_list, add_to_pid_list)
1267         (pull_pid_from_list, linux_record_stopped_pid): New.
1268
1269 2003-06-17  Stephane Carrez  <stcarrez@nerim.fr>
1270
1271         * ada-lang.c (scan_discrim_bound): Name first argument.
1272         (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
1273         declared by ALL_BLOCK_SYMBOLS.
1274
1275 2003-06-17  Stephane Carrez  <stcarrez@nerim.fr>
1276
1277         * ada-tasks.c (find_function_in_inferior): Don't declare it.
1278         ("regcache.h"): Include it.
1279         * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
1280
1281 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
1282
1283         * NEWS: Mention gdbserver detach change and "disconnect" command.
1284         * infcmd.c (disconnect_command): New function.
1285         (_initialize_infcmd): Add ``disconnect'' command.
1286         * remote.c (remote_async_detach): Delete.
1287         (remote_detach): Merge remote_async_detach.
1288         (remote_disconnect): New.
1289         (init_remote_ops): Set to_disconnect.
1290         (init_remote_cisco_ops): Likewise.
1291         (init_remote_async_ops): Likewise.  Use remote_detach.
1292         * target.c (cleanup_target): Default to_disconnect.
1293         (update_current_target): Inherit to_disconnect.
1294         (target_disconnect, debug_to_disconnect): New functions.
1295         (setup_target_debug): Set to_disconnect.
1296         * target.h (struct target_ops): Add to_disconnect.
1297         (target_disconnect): Add prototype.
1298
1299 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
1300
1301         * breakpoint.c (insert_catchpoint): New function.
1302         (insert_breakpoints): Use catch_exceptions to call
1303         insert_catchpoint.  Disable catchpoints if they fail to insert.
1304
1305 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
1306
1307         * symfile.c (reread_symbols): Clear sym_private.
1308
1309 2003-06-17  Andrew Cagney  <cagney@redhat.com>
1310
1311         * trad-frame.h (struct frame_info): Add opaque declaration.
1312         * remote-fileio.h (struct cmd_list_element): Add opaque
1313         declaration.
1314         * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
1315         comments.
1316
1317 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
1318
1319         * remote.c (remote_prepare_to_store): Replace call to
1320         deprecated_read_register_bytes with multiple regcache_raw_read
1321         calls.
1322
1323 2003-06-17  Kris Warkentin  <kewarken@qnx.com>
1324
1325         * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
1326         (nto_find_and_open_solib): Likewise.
1327         (nto_init_solib_absolute_prefix): Likewise.
1328         (_initialize_nto_tdep): Fix indentation.
1329
1330 2003-06-17  Kris Warkentin  <kewarken@qnx.com>
1331
1332         * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
1333
1334 2003-06-17  Kris Warkentin  <kewarken@qnx.com>
1335
1336         * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
1337
1338 2003-06-17  Jim Blandy  <jimb@redhat.com>
1339
1340         * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
1341
1342 2003-06-16  Theodore A. Roth  <troth@openavr.org>
1343
1344         * avr-tdep.c (avr_extract_return_value): New function.
1345         (avr_gdbarch_init): Set extract_return_value method.
1346
1347 2003-06-16  Andrew Cagney  <cagney@redhat.com>
1348
1349         * frame.h (deprecated_get_next_frame_hack): Declare.
1350         * frame.c (legacy_saved_regs_prev_register): Only require
1351         DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed.  Assert that
1352         there are always saved regs.
1353         (deprecated_generic_get_saved_register): Do not require
1354         DEPRECATED_FRAME_INIT_SAVED_REGS.
1355         (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
1356         use frame ID unwind instead.
1357         (deprecated_get_next_frame_hack): New function.
1358
1359 2003-06-16  Corinna Vinschen  <vinschen@redhat.com>
1360
1361         * h8300-tdep.c (h8300_push_arguments): Remove.  Substitute by...
1362         (h8300_push_dummy_call): ...this function.  Some minor optimization.
1363         (h8300_push_return_address): Remove.
1364         (h8300_gdbarch_init): Remove calls to
1365         set_gdbarch_deprecated_dummy_write_sp,
1366         set_gdbarch_deprecated_push_arguments and
1367         set_gdbarch_deprecated_push_return_address.
1368         Add call to set_gdbarch_push_dummy_call.
1369
1370 2003-06-16  Corinna Vinschen  <vinschen@redhat.com>
1371
1372         * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
1373         (E_PSEUDO_EXR_REGNUM): Ditto.
1374         (h8300_is_argument_spill): Check for instructions moving argument
1375         registers into safe registers.
1376         (h8300_skip_prologue): Check for stm instruction to push registers
1377         used for register variables onto stack.
1378         (gdb_print_insn_h8300): Remove.
1379         (h8300_examine_prologue): Add a comment.
1380         (h8300_register_name): Take pseudo registers into account.
1381         (h8300s_register_name): Ditto.
1382         (h8300sx_register_name): Ditto.
1383         (h8300_print_register): Ditto.
1384         (h8300_print_registers_info): Define "nice" printing order.
1385         (h8300_saved_pc_after_call): Take pseudo registers into account.
1386         (h8300_register_type): Ditto.  Return type used for remote connection
1387         when requesting real CCR or EXR register, return actual type when
1388         requesting pseudo CCR or EXR.
1389         (h8300_pseudo_register_read): New function.
1390         (h8300_pseudo_register_write): Ditto.
1391         (h8300_dbg_reg_to_regnum): Ditto.
1392         (h8300s_dbg_reg_to_regnum): Ditto.
1393         (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
1394         set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
1395         set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
1396         set_gdbarch_print_insn architecture dependent.
1397         Call set_gdbarch_pseudo_register_read and
1398         set_gdbarch_pseudo_register_write.
1399         (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
1400
1401 2003-06-16  Andrew Cagney  <cagney@redhat.com>
1402
1403         * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
1404         * gdbarch.h, gdbarch.c: Re-generate.
1405         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1406         * s390-tdep.c (s390_gdbarch_init): Update.
1407         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1408         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1409         * mips-tdep.c (mips_gdbarch_init): Update.
1410         * mcore-tdep.c (mcore_gdbarch_init): Update.
1411         * cris-tdep.c (cris_gdbarch_init): Update.
1412         * infcall.c (call_function_by_hand): Update.
1413         * ia64-tdep.c (ia64_push_arguments): Update comment.
1414         * frame.c (legacy_get_prev_frame): Do not assume
1415         SAVE_DUMMY_FRAME_TOS_P.
1416         * dummy-frame.c (find_dummy_frame): Update comment.
1417
1418 2003-06-16  Andrew Cagney  <cagney@redhat.com>
1419
1420         * regcache.c (do_cooked_read): Do not use register_valid_p.
1421
1422 2003-06-15  Theodore A. Roth  <troth@openavr.org>
1423
1424         * avr-tdep.c (avr_register_type): Remove a blank line.
1425         (avr_scan_prologue): Correct some comments.
1426
1427 2003-06-15  Theodore A. Roth  <troth@openavr.org>
1428
1429         * avr-tdep.c (avr_scan_prologue): Update comment describing the various
1430         prologue types.
1431         Properly scan prologues generated by gcc with the -mcall-prologues
1432         option.
1433         Add code to scan -mcall-prologues for mega devices.
1434
1435 2003-06-15  Theodore A. Roth  <troth@openavr.org>
1436
1437         * avr-tdep.c (avr_register_byte): Delete function.
1438         (avr_register_raw_size): Delete function.
1439         (avr_register_virtual_size): Delete function.
1440         (avr_register_virtual_type): Delete function.
1441         (avr_register_type): New function.
1442         (avr_address_to_pointer): Remove unused code.
1443         (avr_read_fp): Need to read FP as two separate bytes due to change to
1444         avr_register_type() usage.
1445         (avr_gdbarch_init): Don't set deprecated_register_size.
1446         Don't set deprecated_register_bytes.
1447         Don't set deprecated_register_byte.
1448         Don't set deprecated_register_raw_size.
1449         Don't set deprecated_max_register_raw_size.
1450         Don't set deprecated_register_virtual_size.
1451         Don't set deprecated_max_register_virtual_size.
1452         Don't set deprecated_register_virtual_type.
1453         Set register_type method.
1454
1455 2003-06-15  Daniel Jacobowitz  <drow@mvista.com>
1456
1457         * Makefile.in (linux-nat.o): Add rule.
1458         * linux-nat.c: New file.
1459         * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
1460         (CHILD_INSERT_VFORK_CATCHPOINT): Define.
1461         (CHILD_INSERT_EXEC_CATCHPOINT): Define.
1462         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
1463         * config/arm/linux.mh (NATDEPFILES): Likewise.
1464         * config/i386/linux.mh (NATDEPFILES): Likewise.
1465         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
1466         * config/ia64/linux.mh (NATDEPFILES): Likewise.
1467         * config/m68k/linux.mh (NATDEPFILES): Likewise.
1468         * config/mips/linux.mh (NATDEPFILES): Likewise.
1469         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
1470         * config/s390/s390.mh (NATDEPFILES): Likewise.
1471         * config/sparc/linux.mh (NATDEPFILES): Likewise.
1472
1473 2003-06-15  Mark Kettenis  <kettenis@gnu.org>
1474
1475         * i387-tdep.c: Reorder includes, fix some whitespace issues and
1476         replace out-of-date comment.
1477
1478 2003-06-15  Andrew Cagney  <cagney@redhat.com>
1479
1480         * rdi-share/host.h (Fail): Change to a varargs function.
1481         * remote-rdi.c (Fail): Update.
1482
1483 2003-06-15  Mark Kettenis  <kettenis@gnu.org>
1484
1485         * i386-tdep.c (i386_next_regnum): Fix bounds checking.
1486         (i386_convert_register_p, i386_register_to_value,
1487         i386_register_from_value): Handle types longer than 8 bytes.
1488
1489 2003-06-15  Mark Kettenis  <kettenis@gnu.org>
1490
1491         * i386-tdep.c (i386_register_to_value, i386_value_to_register):
1492         Move floating-point code to new function in i387-tdep.c.
1493         * i387-tdep.c (i387_register_to_value, i387_value_to_register):
1494         New functions containing code moved here from i386-tdep.c.
1495         * i387-tdep.h: Add opaque declaration for `struct type'.
1496         (i387_register_to_value, i387_value_to_register): New prototypes.
1497         * x86-64-tdep.c (x86_64_convert_register_p): New function.
1498         (x86_64_init_abi): Set convert_register_p, register_to_value and
1499         value_to_register here.
1500
1501 2003-06-14  Andrew Cagney  <cagney@redhat.com>
1502
1503         * mips-tdep.c (mips_register_to_value): Make static.
1504         (mips_value_to_register): Make static.
1505         * i386-tdep.c (i386_fetch_pointer_argument): Make static.
1506         * ia64-tdep.c (ia64_register_raw_size): Make static.
1507         (ia64_register_virtual_size): Make static.
1508         (ia64_register_byte): Make static.
1509         * i387-tdep.c: Include "i387-tdep.h".
1510         (print_387_control_word): Delete function.
1511         (print_387_status_word): Delete function.
1512         (print_387_status_bits): Delete function.
1513         (print_387_control_bits): Delete function.
1514         * Makefile.in (i387-tdep.o): Update dependencies.
1515         * rdi-share/host.h (Fail): Declare.
1516         * remote-rdi.c (Fail): Update to match declaration.
1517
1518 2003-06-14  Andrew Cagney  <cagney@redhat.com>
1519
1520         * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
1521         * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
1522         * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
1523         * config/djgpp/fnchange.lst: Delete "remote-array.c".
1524         * README: Delete reference to remote-array.
1525         * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
1526         (remote-array.o): Delete target.
1527         * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
1528         * remote-array.c: Delete file.
1529
1530 2003-06-14  Andrew Cagney  <cagney@redhat.com>
1531             Mark Kettenis  <kettenis@gnu.org>
1532
1533         * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
1534         (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
1535         parameter with "frame".
1536         * gdbarch.h, gdbarch.c: Re-generate.
1537         * frame.h (put_frame_register): Declare.
1538         * frame.c (put_frame_register): New function.
1539         * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
1540         (legacy_register_to_value): Rewrite, use "frame" to get the
1541         register value.
1542         (legacy_value_to_register): Rewrite, use "frame" to find the
1543         register's location before storing.
1544         * arch-utils.h (legacy_convert_register_p): Update.
1545         (legacy_register_to_value, legacy_value_to_register): Update.
1546         * findvar.c (value_from_register): Rewrite, eliminate use of
1547         REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
1548         "frame" to REGISTER_TO_VALUE.
1549         * valops.c (value_assign): Move the CONVERT_REGISTER code to the
1550         lval_reg_frame_relative + lval_register branch of the switch.  Do
1551         not use REGISTER_CONVERT_FROM_TYPE.  Use put_frame_register.
1552         * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
1553         I386_EDI_REGNUM): New defines.
1554         (i386_next_regnum, i386_convert_register_p,
1555         i386_register_to_value, i386_value_to_register): New functions.
1556         (i386_register_convertible, i386_register_convert_to_virtual,
1557         i386_convert_to_raw): Remove functions.
1558         (i386_gdbarch_init): Set convert_register_p, register_to_value and
1559         value_to_register instead of register_convertible,
1560         register_convert_to_virtual and register_convert_to_raw.
1561         * mips-tdep.c (mips_convert_register_p): New function.
1562         (mips_value_to_register): Replace mips_register_convert_from_type.
1563         (mips_register_to_value): Replace mips_register_convert_to_type.
1564         (mips_gdbarch_init): Set conver_register_p, value_to_register and
1565         register_to_value.
1566         * alpha-tdep.c (alpha_convert_register_p): Update.
1567         (alpha_value_to_register): Update, store the register.
1568         (alpha_register_to_value): Update, fetch the register.
1569
1570 2003-06-14  Theodore A. Roth  <troth@openavr.org>
1571
1572         * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
1573         (avr_gdbarch_init): Remove avr_call_dummy_words variable.
1574         Don't set deprecated_call_dummy_words.
1575         Remove commented out set_gdbarch_believe_pcc_promotion() call.
1576         Don't set remote_translate_xfer_address.
1577         (avr_io_reg_read_command): Remove commented out debug printf.
1578         Wrap a long line.
1579
1580 2003-06-14  Theodore A. Roth  <troth@openavr.org>
1581
1582         * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
1583         causes gdb to seg fault.
1584
1585 2003-06-14  Daniel Jacobowitz  <drow@mvista.com>
1586
1587         * sparc-nat.c (fetch_inferior_registers): Correct
1588         a reference to "registers".
1589
1590 2003-06-14  Jeroen Dekkers  <jeroen@dekkers.cx>
1591
1592         * Makefile.in (exc_request_U_h): Define
1593         (exc_request_S_h): Likewise.
1594         (msg_reply_S_h): Likewise.
1595         (msg_U_h): Likewise.
1596         (notify_S_h): Likewise.
1597         (process_reply_S_h): Likewise.
1598         (gnu-nat.o): Depend on gdb_obstack_h
1599         * gnu-nat.c: Include "gdb_obstack.h".
1600
1601 2003-06-13  Andrew Cagney  <cagney@redhat.com>
1602
1603         * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
1604         * gdbarch.h, gdbarch.c: Re-generate.
1605
1606 2003-06-13  Andrew Cagney  <cagney@redhat.com>
1607
1608         * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces.  Clarify
1609         when deprecated REGISTER macros can be deleted.
1610         * gdbarch.h, gdbarch.c: Re-generate.
1611
1612 2003-06-13  Jim Blandy  <jimb@redhat.com>
1613
1614         * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
1615         Linux entry point symbols for _dl_debug_state, too.
1616
1617 2003-06-13  Andrew Cagney  <cagney@redhat.com>
1618
1619         * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
1620         available, do not use the FP register, and always save the TOS.
1621         * dummy-frame.c (dummy_frame_this_id): Do not assert
1622         SAVE_DUMMY_FRAME_TOS.
1623         * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
1624         (i386_gdbarch_init): Do not set save_dummy_frame_tos.
1625         (i386_push_dummy_call): Add 8 to the returned SP.
1626         * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
1627         * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
1628         (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
1629         * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
1630         (x86_64_push_dummy_call): Return "sp + 16".
1631         (x86_64_init_abi): Do not set save_dummy_frame_tos.
1632         * alpha-tdep.c (alpha_gdbarch_init): Do not set
1633         save_dummy_frame_tos.
1634
1635 2003-06-13  Jim Blandy  <jimb@redhat.com>
1636
1637         * frv-tdep.c (frv_use_struct_convention): Delete static
1638         declaration for function deleted in my change of 2003-06-12.
1639
1640 2003-06-13  Theodore A. Roth  <troth@openavr.org>
1641
1642         * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
1643         (avr_pointer_to_address): Shift code addrs left 1 bit.
1644         (avr_convert_from_func_ptr_addr): Delete function since operation is
1645         better handled by avr_address_to_pointer and avr_pointer_to_address.
1646         (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
1647
1648 2003-06-13  Mark Kettenis  <kettenis@gnu.org>
1649
1650         From Kelley Cook  <kelleycook@wideopenwest.com>:
1651         * configure.host: Accept i[34567]86 variants.
1652         * configure.tgt: Likewise.
1653         * nlm/configure.in: Likewise.
1654         * nlm/configure: Regenerated.
1655
1656 2003-06-13  Richard Earnshaw  <rearnsha@arm.com>
1657
1658         * arm-tdep.c (solib-svr4.h): Dont' include it.
1659         (arm_linux_svr4_fetch_link_map_offsets): Move to ...
1660         * arm-linux-tdep.c: ... here.  Make static.
1661         (arm_linux_init_abi): Register it.
1662         (solib-svr4.h): Include it.
1663         * Makefile.in: Update dependencies.
1664         * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
1665         (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
1666
1667 2003-06-13  Corinna Vinschen  <vinschen@redhat.com>
1668
1669         * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
1670         indicate registers used for return values.
1671         (struct frame_extra_info): Drop args_pointer and locals_pointer.
1672         (h8300_examine_prologue): Remove initializing dropped frame_extra_info
1673         members.
1674         (h8300_init_extra_frame_info): Ditto.
1675         (h8300_frame_locals_address): Removed.
1676         (h8300_frame_args_address): Removed.
1677         (h8300_extract_return_value): Use new regcache structure. Only care
1678         for 16 bit CPUs.
1679         (h8300h_extract_return_value): Same function for 32 bit CPUs.
1680         (h8300_store_return_value): Use new regcache structure. Only care
1681         for 16 bit CPUs.
1682         (h8300h_store_return_value): Same function for 32 bit CPUs.
1683         (h8300_store_struct_return): Removed.
1684         (h8300_extract_struct_value_address): Use new regcache structure.
1685         (h8300h_extract_struct_value_address): Removed.
1686         (h8300_push_dummy_code): New function.
1687         (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
1688         Remove call_dummy_words.  Call set_gdbarch_extract_return_value and
1689         set_gdbarch_store_return_value architecture dependent.
1690         Call set_gdbarch_push_dummy_code and
1691         set_gdbarch_extract_struct_value_address.
1692         Remove calls to set_gdbarch_frame_args_address,
1693         set_gdbarch_frame_locals_address,
1694         set_gdbarch_deprecated_store_struct_return,
1695         set_gdbarch_deprecated_extract_return_value,
1696         set_gdbarch_deprecated_extract_struct_value_address,
1697         set_gdbarch_deprecated_call_dummy_words and
1698         set_gdbarch_deprecated_sizeof_call_dummy_words.
1699
1700 2003-06-13  Corinna Vinschen  <vinschen@redhat.com>
1701
1702         * h8300-tdep.c (h8300_register_byte): Remove.
1703         (h8300h_register_byte): Remove.
1704         (h8300_register_virtual_type): Remove.  Substitute by...
1705         (h8300_register_type): New function.
1706         (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
1707         (h8300h_extract_struct_value_address): Ditto.
1708         (h8300_gdbarch_init): Drop calls to
1709         set_gdbarch_deprecated_register_byte and
1710         set_gdbarch_deprecated_register_virtual_type.
1711         Add call to set_gdbarch_register_type.
1712
1713 2003-06-13  Andrew Cagney  <cagney@redhat.com>
1714
1715         * gdbarch.sh: Update comments on registers.
1716         (deprecated_register_byte): Rename register_byte.
1717         (deprecated_register_raw_size): Rename register_raw_size.
1718         (deprecated_register_virtual_size): Rename register_virtual_size.
1719         (deprecated_register_virtual_type): Rename register_virtual_type.
1720         * gdbarch.h, gdbarch.c: Re-generate.
1721         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1722         * vax-tdep.c (vax_gdbarch_init): Update.
1723         * v850-tdep.c (v850_gdbarch_init): Update.
1724         * sparc-tdep.c (sparc_gdbarch_init): Update.
1725         * sh-tdep.c (sh_gdbarch_init): Update.
1726         * s390-tdep.c (s390_gdbarch_init): Update.
1727         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1728         * ns32k-tdep.c: Update.
1729         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1730         * mips-tdep.c (mips_gdbarch_init): Update.
1731         * mcore-tdep.c (mcore_gdbarch_init): Update.
1732         * m68k-tdep.c (m68k_gdbarch_init): Update.
1733         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1734         * ia64-tdep.c (ia64_gdbarch_init): Update.
1735         * hppa-tdep.c (hppa_gdbarch_init): Update.
1736         * h8300-tdep.c (h8300_gdbarch_init): Update.
1737         * frv-tdep.c (frv_gdbarch_init): Update.
1738         * cris-tdep.c (cris_gdbarch_init): Update.
1739         * avr-tdep.c (avr_gdbarch_init): Update.
1740         * alpha-tdep.c (alpha_gdbarch_init): Update.
1741         * arm-tdep.c (arm_gdbarch_init): Update.
1742
1743 2003-06-13  Andrew Cagney  <cagney@redhat.com>
1744
1745         * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
1746         mips_o32_use_struct_convention with always_use_struct_convention.
1747
1748 2003-06-12  David Carlton  <carlton@kealia.com>
1749
1750         * cp-namespace.c (cp_set_block_scope): Comment out
1751         processing_has_namespace_info branch.
1752
1753 2003-06-12  Jim Blandy  <jimb@redhat.com>
1754
1755         Recognize and skip 64-bit PowerPC Linux linkage functions.
1756         * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
1757         insn_pattern, insns_match_pattern, d_field, ds_field): New
1758         functions, macros, and types for working with PPC instructions.
1759         (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
1760         ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
1761         ppc64_skip_trampoline_code): New functions, variables, and macros
1762         for recognizing and skipping linkage functions.
1763         (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
1764         ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
1765
1766         * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
1767         register offsets for both the 32- and 64-bit interfaces.
1768
1769         Actually finish the job started by my change of 2003-05-29.
1770         * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
1771         other #definition of this.
1772         (ppc_linux_skip_trampoline_code): Remove declaration.
1773         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
1774         static.
1775         (ppc_linux_init_abi): Register it as the skip_trampoline_code
1776         method for GDBARCH.
1777
1778         * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
1779         'long' on ppc64-*-linux*.
1780
1781         * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
1782         isn't #defined, assume the register doesn't exist: act as if
1783         tdep->ppc_mq_regnum were -1.
1784
1785         * configure.host, configure.tgt: Add entries for
1786         powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
1787         powerpc/linux.mt.
1788         * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
1789         New files.
1790
1791         * arch-utils.c (always_use_struct_convention): New function.
1792         * arch-utils.h (always_use_struct_convention): New prototype.
1793         * alpha-tdep.c (alpha_use_struct_convention): Delete.
1794         (alpha_gdbarch_init): Register always_use_struct_convention,
1795         instead of alpha_use_struct_convention.
1796         * cris-tdep.c (cris_use_struct_convention): Delete.
1797         (cris_gdbarch_init): Register always_use_struct_convention,
1798         instead of cris_use_struct_convention.
1799         * frv-tdep.c (frv_use_struct_convention): Delete.
1800         (frv_gdbarch_init): Register always_use_struct_convention,
1801         instead of frv_use_struct_convention.
1802         * h8300-tdep.c (h8300_use_struct_convention): Delete.
1803         (h8300_gdbarch_init): Register always_use_struct_convention,
1804         instead of h8300_use_struct_convention.
1805         * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1806         (mips_o32_gdbarch_init): Register always_use_struct_convention,
1807         instead of mips_o32_use_struct_convention.
1808
1809 2003-06-12  Andrew Cagney  <cagney@redhat.com>
1810
1811         * wince.c: Include "mips-tdep.h".
1812         * mips-tdep.h (mips_next_pc): Declare.
1813         * mcore-tdep.c: Make more local functions static.
1814         * Makefile.in (wince.o): Update dependencies.
1815
1816 2003-06-12  David Carlton  <carlton@kealia.com>
1817
1818         * symtab.c (lookup_symbol_aux_minsyms): Replace
1819         DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
1820         (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
1821         (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
1822         SYMBOL_NATURAL_NAME.
1823
1824 2003-06-12  Andreas Schwab  <schwab@suse.de>
1825
1826         * Makefile.in (tuiDisassem.o): Update dependencies.
1827
1828 2003-06-12  David Carlton  <carlton@bactrian.org>
1829
1830         * symtab.h: Delete declaration of make_symbol_overload_list.
1831         Add declaration of lookup_partial_symbol.
1832         * symtab.c (remove_params): Move to cp-support.c.
1833         (overload_list_add_symbol, make_symbol_overload_list)
1834         (sym_return_val_size, sym_return_val_index): Ditto.
1835         (lookup_partial_symbol): Make extern.
1836         * cp-support.h: Add declaration of make_symbol_overload_list.
1837         * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
1838         symtab.h, and block.h.
1839         (remove_params): Move here from symtab.c.
1840         (overload_list_add_symbol, make_symbol_overload_list)
1841         (sym_return_val_size, sym_return_val_index): Ditto.
1842         * valops.c: Include cp-support.h.
1843         * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
1844         frame_h, and block_h.
1845         (valops.o): Depend on cp_support_h.
1846
1847 2003-06-12  Corinna Vinschen  <vinschen@redhat.com>
1848
1849         * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
1850         substitute by NUM_REGS throughout.
1851         (h8300_register_name): Only care for H8/300 and H8/300H registers.
1852         (h8300s_register_name): New function for H8S registers.
1853         (h8300sx_register_name): Ditto for H8SX registers.
1854         (h8300_print_register): Revise register printing, avoid depending
1855         on 32 bit long.
1856         (h8300_register_byte): Only care for H8/300 registers.
1857         (h8300h_register_byte): New function for any other architecture.
1858         (h8300_register_raw_size): Remove.
1859         (h8300_register_virtual_type): Revise to return actually useful
1860         type.
1861         (h8300_extract_struct_value_address): Only care for H8/300 registers.
1862         (h8300h_extract_struct_value_address): New function for any other
1863         architecture.
1864         (h8300_gdbarch_init): Add h8300sxn.  Call set_gdbarch_num_regs,
1865         set_gdbarch_register_name, set_gdbarch_register_byte,
1866         set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
1867         Remove calls to set_gdbarch_deprecated_register_size,
1868         set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
1869         set_gdbarch_deprecated_max_register_raw_size,
1870         set_gdbarch_register_virtual_size and
1871         set_gdbarch_deprecated_max_register_virtual_size entirely.
1872         Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
1873         set_gdbarch_long_double_bit.
1874
1875 2003-06-11  Jeff Johnston  <jjohnstn@redhat.com>
1876
1877         * doublest.c (convert_doublest_to_floatformat): When dealing
1878         with the implied integer bit, only alter mant_bits if we are
1879         processing a full 32 bits of mantissa.
1880
1881 2003-06-11  David Carlton  <carlton@bactrian.org>
1882
1883         * dictionary.h: New.
1884         * dictionary.c: New.
1885         * block.h: Add opaque declaration for struct dictionary.
1886         (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
1887         'sym' members.
1888         (BLOCK_DICT): New macro.
1889         Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
1890         BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
1891         BLOCK_SHOULD_SORT.
1892         (ALL_BLOCK_SYMBOLS): Update definition.
1893         * Makefile.in (SFILES): Add dictionary.c.
1894         (dictionary_h): New.
1895         (COMMON_OBS): Add dictionary.o.
1896         (dictionary.o): New.
1897         (ada-lang.o): Depend on dictionary_h.
1898         (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
1899         (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
1900         (mi-cmd-stack.o): Ditto.
1901         (gdbtk-cmds.o): Update dependencies.
1902         (gdbtk-stack.o): Ditto.
1903         * ada-lang.c: Include dictionary.h.
1904         (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
1905         (fill_in_ada_prototype, debug_print_block): Ditto.
1906         (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
1907         explicit iteration by use of ALL_BLOCK_SYMBOLS.  Delete variable
1908         'is_sorted'.
1909         * mdebugread.c: Include dictionary.h.
1910         (struct parse_stack): Delete 'maxsyms' member.
1911         (parse_symbol): Update calls to new_block.  Delete calls to
1912         shrink_block.  Use dictionary methods.
1913         (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
1914         Update calls to new_symtab.  Don't maintain maxsyms data.
1915         (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
1916         (add_symbol): Just call dict_add_symbol.
1917         (new_symtab): Delete 'maxsyms' argument.
1918         (new_symtab): Update calls to new_block.
1919         (new_block): Delete 'maxsyms' argument; add 'function' argument.
1920         (shrink_block): Delete function.
1921         (fixup_sigtramp): Update call to new_block.  Add symbol via
1922         dict_add_symbol.
1923         * jv-lang.c: Include dictionary.h.
1924         (get_java_class_symtab): Set the BLOCK_DICT of the blocks
1925         appropriately.  Set class_symtab->free_func.  Make sure the
1926         blockvector is big enough to hold two blocks.
1927         (add_class_symtab_symbol): Use dictionary methods.
1928         (free_class_block): New function.
1929         (type_from_class): Replace explicit iteration by
1930         ALL_BLOCK_SYMBOLS.
1931         * symtab.h (struct symtab): Replace 'free_ptr' method by
1932         'free_func'.
1933         * dwarf2read.c (psymtab_to_symtab_1): Delete call to
1934         sort_symtab_syms.
1935         * dwarfread.c (psymtab_to_symtab_1): Delete call to
1936         sort_symtab_syms.
1937         * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
1938         Include dictionary.h.
1939         (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
1940         * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
1941         sort_symtab_syms.
1942         * objfiles.c: Include dictionary.h.
1943         (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
1944         * buildsym.c: Include dictionary.h.
1945         (finish_block): Use dictionary methods.
1946         (end_symtab): Set free_func to NULL, not free_ptr.
1947         * tracepoint.c: Include dictionary.h.
1948         (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
1949         (scope_info): Ditto.
1950         * stack.c: Include dictionary.h.
1951         (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
1952         (print_block_frame_labels, print_frame_arg_vars)
1953         (print_frame_args): Ditto.
1954         * symmisc.c (free_symtab_block): Use dictionary methods.
1955         (dump_symtab): Ditto.
1956         (free_symtab): Replace use of 'free_ptr' by 'free_func'.
1957         Include dictionary.h.
1958         * symfile.h: Delete declarations of sort_block_syms,
1959         sort_symtab_syms.
1960         * symfile.c (sort_block_syms): Delete.
1961         (sort_symtab_syms): Delete.
1962         * symtab.c: Include dictionary.h.
1963         (lookup_block_symbol): Use dictionary iterators.
1964         (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
1965         (search_symbols, make_symbol_completion_list): Ditto.
1966         (make_symbol_overload_list): Ditto.
1967         * valops.c (value_of_local): Use dict_empty.
1968         Include dictionary.h.
1969
1970 2003-06-11  J. Brobecker  <brobecker@gnat.com>
1971
1972         * win32-nat.c (solib_symbols_add): Fix a small compilation error.
1973
1974 2003-06-11  David Carlton  <carlton@bactrian.org>
1975
1976         * block.h (BLOCK_SHOULD_SORT): Delete.
1977         * symtab.c (lookup_block_symbol): Don't worry about sorted linear
1978         blocks.
1979         * ada-lang.c (ada_add_block_symbols): Ditto.
1980         * symfile.c (sort_block_syms): Delete.
1981         (sort_symtab_syms): Ditto.
1982         * symfile.h: Delete sort_symtabs_syms and sort_block_syms
1983         declarations.
1984         * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
1985         * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
1986         * dwarf2read.c (psymtab_to_symtab_1): Ditto.
1987         * dwarfread.c (psymtab_to_symtab_1): Ditto.
1988         * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
1989         * mdebugread.c (psymtab_to_symtab_1): Ditto.
1990         * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
1991
1992 2003-06-11  Jeff Johnston  <jjohnstn@redhat.com>
1993
1994         * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
1995         bits to 128.
1996
1997 2003-06-11  Andrew Cagney  <cagney@redhat.com>
1998
1999         * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
2000         REGISTER_CONVERTIBLE.
2001         (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
2002         (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
2003         * gdbarch.h, gdbarch.c: Re-generate.
2004         * arch-utils.h (deprecated_register_convertible_not): Rename
2005         generic_register_convertible_not.
2006         * arch-utils.c (deprecated_register_convertible_not): Rename
2007         generic_register_convertible.
2008         (legacy_convert_register_p, legacy_register_to_value): Update.
2009         * sh-tdep.c (sh64_push_arguments): Update.
2010         * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
2011         * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
2012         * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
2013         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
2014         * arch-utils.c (legacy_value_to_register): Update.
2015         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2016         (rs6000_register_convert_to_raw): Make parameter "from" const.
2017         * mips-tdep.c (mips_gdbarch_init): Update.
2018         (mips_register_convert_to_raw): Make  parameter"virt_buf" const.
2019         * infcmd.c (default_print_registers_info): Update.
2020         * ia64-tdep.c (ia64_gdbarch_init): Update.
2021         (ia64_register_convert_to_raw): Make parameter "from" const.
2022         * i386-tdep.c (i386_gdbarch_init): Update.
2023         (i386_register_convert_to_raw): Update.
2024
2025 2003-06-11  Andrew Cagney  <cagney@redhat.com>
2026
2027         * remote-fileio.c: Include "remote-fileio.h".
2028         * Makefile.in (remote-fileio.o): Update dependencies.
2029         (remote_fileio_h): Fix typo.
2030
2031 2003-06-11  Andrew Cagney  <cagney@redhat.com>
2032
2033         * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
2034         (xstormy16_save_dummy_frame_tos): Make static.
2035         (_initialize_xstormy16_tdep): Add declaration.
2036         * vax-tdep.c (_initialize_vax_tdep): Add declaration.
2037         * v850-tdep.c: Make local functions static.
2038         (_initialize_v850_tdep): Add declaration.
2039         * sparc-tdep.c: Make local functions static.
2040         (_initialize_sparc_tdep): Add declaration.
2041         * sh-tdep.c: Make local functions static.
2042         (_initialize_sh_tdep): Add declaration.
2043         * sh3-rom.c (_initialize_sh3_rom): Add declaration.
2044         * s390-tdep.c: Make local functions static.
2045         (_initialize_s390_tdep): Add declaration.
2046         * dbxread.c (find_stab_function_addr): Make static.
2047         * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
2048         * ocd.c (_initialize_remote_ocd): Add declaration.
2049         * dink32-rom.c (_initialize_dink32_rom): Add declaration.
2050         * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
2051         * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
2052         * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
2053         * mips-tdep.c (_initialize_mips_tdep): Add declaration.
2054         * remote-array.c (_initialize_array): Add declaration.
2055         (_initialize_remote_monitors): Add declaration.
2056         * remote-mips.c: Make local functions static.
2057         (_initialize_remote_mips): Add declaration.
2058         * mcore-tdep.c: Make all local functions static.
2059         (_initialize_mcore_tdep): Add declaration.
2060         * dbug-rom.c (_initialize_dbug_rom): Add declaration.
2061         * abug-rom.c (_initialize_abug_rom): Add declaration.
2062         * rom68k-rom.c (_initialize_rom68k): Add declaration.
2063         * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
2064         * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
2065         * remote-est.c (_initialize_est): Add declaration.
2066         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
2067         (m68hc11_call_dummy_address): Make static.
2068         * ia64-tdep.c: Make local functions static.
2069         (_initialize_ia64_tdep): Add declaration.
2070         * solib-legacy.c (_initialize_svr4_lm): Add declaration.
2071         * monitor.c (monitor_wait_filter): Make static.
2072         (_initialize_remote_monitors): Add declaration.
2073         * remote-hms.c (_initialize_remote_hms): Add declaration.
2074         * remote-e7000.c (fetch_regs_from_dump): Make static.
2075         (expect_n): Make static.
2076         (_initialize_remote_e7000): Add declaration.
2077         * ser-e7kpc.c: Always include "defs.h".
2078         (_initialize_ser_e7000pc): Add declaration.
2079         * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
2080         * cris-tdep.c: Make all but one function static.
2081         (_initialize_cris_tdep): Add declaration.
2082         * solib-svr4.c (_initialize_svr4_solib): Add declaration.
2083         * solib.c (update_solib_list): Make static.
2084         (_initialize_solib): Add declaration.
2085         * avr-tdep.c (avr_breakpoint_from_pc): Make static.
2086         (_initialize_avr_tdep): Add declaration.
2087         * remote-rdi.c (voiddummy): Make static.
2088         (_initialize_remote_rdi): Add declaration.
2089         * arm-tdep.c (_initialize_arm_tdep): Add declaration.
2090         * remote-rdp.c (send_rdp): Make static.
2091         (_initialize_remote_rdp): Add declaration.
2092         * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
2093
2094 2003-06-11  Corinna Vinschen  <vinschen@redhat.com>
2095
2096         * remote-fileio.c: Make ari happy.
2097
2098 2003-06-10  J. Brobecker  <brobecker@gnat.com>
2099
2100         * rs6000-nat.c (child_xfer_memory): Compute the right address when
2101         fetching the trailing bytes of the buffer we are about to write.
2102
2103 2003-06-10  Andrew Cagney  <cagney@redhat.com>
2104
2105         * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
2106         * Makefile.in (remote-fileio.o): Update dependencies.
2107         * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h".  Do not
2108         include <setjmp.h>, or <sys/types.h> conditional on USG.
2109         (remote_fio_jmp_buf): Delete global variable.
2110
2111 2003-06-10  Corinna Vinschen  <vinschen@redhat.com>
2112             Martin M. Hunt  <hunt@redhat.com>
2113
2114         * Makefile.in (REMOTE_OBS): Add remote-fileio.o
2115         (SFILES): Add remote-fileio.c.
2116         Add dependencies for building remote-fileio.o.  Add remote-fileio.h to
2117         dependencies for building remote.o.
2118         * remote-fileio.c: New file implementing the remote File-I/O protocol.
2119         * remote-fileio.h: New header file defining remote File-I/O interface.
2120         * remote.c (remote_write_bytes, remote_read_bytes): Remove
2121         static storage class.
2122         (remote_wait, remote_async_wait): Call remote_fileio_request() on
2123         'F' packet.
2124         (_initialize_remote): Call initialize_remote_fileio().
2125         * remote.h: Declare remote_write_bytes() and remote_read_bytes().
2126         * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
2127         * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
2128         (captured_main): Initialize new ui_files.
2129         * ui-file.c: Add read and fgets input functions.
2130         (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
2131         (null_file_read): New function.
2132         (ui_file_read): New function.
2133         (set_ui_file_read): New function.
2134         (stdio_file_read): New function.
2135         * ui-file.h: New type ui_file_read_ftype.
2136         (set_ui_file_read): Declare.
2137         (ui_file_read): Declare.
2138
2139 2003-06-09  Andrew Cagney  <cagney@redhat.com>
2140
2141         * frame.h (deprecated_unwind_get_saved_register): Rename
2142         generic_unwind_get_saved_register, update comments.
2143         * mips-tdep.c (mips_get_saved_register): Update.
2144         * frame.c (deprecated_unwind_get_saved_register): Update.
2145
2146 2003-06-09  Andrew Cagney  <cagney@redhat.com>
2147
2148         * vax-tdep.c (vax_frame_locals_address): Delete function.
2149         (vax_gdbarch_init): Do not set frame_locals_address.
2150         * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
2151         (m68hc11_gdbarch_init): Do not set frame_locals_address.
2152         * s390-tdep.c (s390_frame_args_address): Delete function.
2153         (s390_gdbarch_init): Do not set frame_args_address or
2154         frame_locals_address.
2155         * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
2156         (ns32k_gdbarch_init): Do not set frame_locals_address.
2157         * hppa-tdep.c (hppa_frame_args_address): Delete function.
2158         (hppa_frame_locals_address): Delete function.
2159         (hppa_gdbarch_init): Do not set frame_args_address, or
2160         frame_locals_address.
2161         * arm-tdep.c (arm_frame_args_address): Delete.
2162         (arm_frame_locals_address): Delete.
2163         (arm_gdbarch_init): Do not set frame_args_address, or
2164         frame_locals_address.
2165
2166 2003-06-09  Andrew Cagney  <cagney@redhat.com>
2167
2168         * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
2169         * gdbarch.h, gdbarch.c: Re-generate.
2170         * arch-utils.h (frame_num_args_unknown): Delete both declarations.
2171         * arch-utils.c (frame_num_args_unknown): Delete function.
2172         * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
2173         (frame_info): Use FRAME_NUM_ARGS_P.
2174         * arm-tdep.c (arm_frame_num_args): Delete function.
2175         (arm_gdbarch_init): Do not set frame_num_args.
2176         * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
2177         * hppa-tdep.c (hppa_frame_num_args): Delete function.
2178         (hppa_gdbarch_init): Do not set frame_num_args.
2179         * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
2180         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2181         frame_num_args to default frame_num_args_unknown.
2182         * v850-tdep.c (v850_gdbarch_init): Ditto.
2183         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2184         * sh-tdep.c (sh_gdbarch_init): Ditto.
2185         * s390-tdep.c (s390_gdbarch_init): Ditto.
2186         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2187         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2188         * mips-tdep.c (mips_gdbarch_init): Ditto.
2189         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2190         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
2191         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2192         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2193         * i386-tdep.c (i386_gdbarch_init): Ditto.
2194         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2195         * frv-tdep.c (frv_gdbarch_init): Ditto.
2196         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2197         * cris-tdep.c (cris_gdbarch_init): Ditto.
2198         * avr-tdep.c (avr_gdbarch_init): Ditto.
2199         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2200
2201 2003-06-09  Andrew Cagney  <cagney@redhat.com>
2202
2203         * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
2204         (print_frame_args): Moved to "stack.c".
2205         * stack.c: Include "gdb_assert.h".
2206         (print_frame_nameless_args): Moved from "printcmd.c", made static.
2207         (print_frame_args): Moved from "printcmd.c".
2208         * frame.h (print_frame_args): Delete declaration.
2209         * Makefile.in (stack.o): Update dependencies.
2210
2211 2003-06-08  Andrew Cagney  <cagney@redhat.com>
2212
2213         * frame.c (get_prev_frame): Remove reference to
2214         frame_args_address_correct in comments.
2215         * frame-base.c (default_frame_args_address): Delete code
2216         conditional on FRAME_ARGS_ADDRESS_CORRECT.
2217         * vax-tdep.c (vax_frame_args_address_correct): Delete.
2218         (vax_frame_args_address): Merge in vax_frame_args_address_correct.
2219         * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
2220         (vax_frame_args_address_correct): Delete declaration.
2221
2222 2003-06-08  Andrew Cagney  <cagney@redhat.com>
2223
2224         * gdbarch.sh (UNWIND_SP): Add.
2225         * gdbarch.h, gdbarch.c: Re-generate.
2226         * frame.c (frame_sp_unwind): New function.
2227         (get_frame_sp): New function.
2228         * frame.h (get_frame_sp, frame_sp_unwind): Declare.
2229         * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
2230         gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
2231         value.
2232         * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
2233         (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
2234
2235 2003-06-08  Andrew Cagney  <cagney@redhat.com>
2236
2237         Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
2238         REMOTE_BREAKPOINT.
2239         * remote.c: Update.
2240         * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
2241         (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
2242         * config/m68k/tm-sun3.h: Update.
2243         * config/m68k/tm-m68klynx.h: Update.
2244         * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
2245
2246         * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
2247         trad_frame".  Update comments.
2248         * d10v-tdep.c (struct d10v_unwind_cache): Update.
2249         * trad-frame.c (trad_frame_alloc_saved_regs): Update.
2250         (trad_frame_register_value, trad_frame_prev_register): Update.
2251
2252 2003-06-08  Andrew Cagney  <cagney@redhat.com>
2253
2254         * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
2255         from GCC's acinclude.m4.
2256         * configure.in: Check for getopt's delcaration.
2257         * aclocal.m4, config.in, configure: Re-generate.
2258         * main.c (error_init): Delete declaration.
2259         * defs.h (error_init): Declare.
2260         * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
2261         (rs6000_convert_from_func_ptr_addr): Make static.
2262         (_initialize_rs6000_tdep): Add declaration.
2263         * cli/cli-cmds.c (dont_repeat): Delete declaration.
2264         (show_commands, set_verbose, show_history): Delete declaration.
2265         * top.h (set_verbose): Add declaration.
2266         (show_history, set_history, show_commands): Add declaration.
2267         (do_restore_instream_cleanup): Add declaration.
2268         * objc-lang.c (specialcmp): Make static.
2269         (print_object_command): Make static.
2270         (find_objc_msgsend): Make static.
2271         (find_objc_msgcall_submethod_helper): Make static.
2272         (find_objc_msgcall_submethod): Make static.
2273         (_initialize_objc_language): Add declaration.
2274         (find_implementation_from_class): Make static.
2275         (find_implementation): Make static.
2276         * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
2277         * objc-lang.h (lookup_struct_typedef): Add declaration.
2278         * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
2279         * cli/cli-script.c (clear_hook_in_cleanup): Make static.
2280         (do_restore_user_call_depth): Make static.
2281         (do_restore_instream_cleanup): Delete declaration.
2282         (dont_repeat): Delete declaration.
2283         * cli/cli-decode.c (add_abbrev_cmd): Delete function.
2284         * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
2285         * reggroups.c (_initialize_reggroup): Add declaration.
2286         * cp-support.c (_initialize_cp_support): Add declaration.
2287         * cp-abi.c (_initialize_cp_abi): Add declaration.
2288         * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
2289         * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
2290         (_initialize_gnu_v3_abi): Add declaration.
2291         * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
2292         (_initialize_gnu_v2_abi): Add declaration.
2293         * frame-base.c (_initialize_frame_base): Add declaration.
2294         * doublest.c (floatformat_from_length): Make static.
2295         * frame-unwind.c (_initialize_frame_unwind): Add declaration.
2296         * frame.c (create_sentinel_frame): Make static.
2297         (_initialize_frame): Add declaration.
2298         * top.c (do_catch_errors): Make static.
2299         (gdb_rl_operate_and_get_next_completion): Make static.
2300         * typeprint.c: Include "typeprint.h".
2301         * sentinel-frame.c (sentinel_frame_prev_register): Make static.
2302         (sentinel_frame_this_id): Make static.
2303         * p-valprint.c (_initialize_pascal_valprint): Add declaration.
2304         * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
2305         * dwarf2-frame.c (dwarf2_frame_cache): Make static.
2306         * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
2307         * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
2308         * maint.c (maintenance_print_architecture): Make static.
2309         * signals/signals.c (_initialize_signals): Add declaration.
2310         * std-regs.c (_initialize_frame_reg): Add declaration.
2311         * jv-exp.y (push_variable): ISO C definition.
2312         (push_qualified_expression_name): Ditto.
2313         * memattr.c (_initialize_mem): Add declaration.
2314         * remote.c (remote_check_watch_resources): Make static.
2315         (remote_stopped_by_watchpoint): Make static.
2316         (remote_stopped_data_address): Make static.
2317         * d10v-tdep.c (nr_dmap_regs): Make static.
2318         (a0_regnum): Make static.
2319         (d10v_frame_unwind_cache): Make static.
2320         (d10v_frame_p): Make static.
2321         * osabi.c (show_osabi): Make static.
2322         (_initialize_gdb_osabi): Add extern declaration.
2323         * gdbtypes.c (make_qualified_type): Make static.
2324         (safe_parse_type): Make static.
2325         * macrocmd.c (_initialize_macrocmd): Add extern declaration.
2326         * macrotab.c (macro_bcache_free): Make static.
2327         * interps.c (interp_set_quiet): Make static.
2328         (interpreter_exec_cmd): Make static.
2329         * stack.h (select_frame_command): New file.
2330         * stack.c: Include "stack.h".
2331         (select_frame_command_wrapper): Delete function.
2332         (select_frame_command): Make global.
2333         * infcall.c: Include "infcall.h".
2334         * linespec.c: Include "linespec.h".
2335         * symfile.c (sections_overlap): Make static.
2336         * cp-support.h (cp_initialize_namespace): ISO C declaration.
2337         * charset.c (_initialize_charset): Add missing prototype.
2338         * regcache.c (init_legacy_regcache_descr): Make static.
2339         (do_regcache_xfree): Make static.
2340         (regcache_xfer_part): Make static.
2341         (_initialize_regcache): Add missing prototype.
2342         * breakpoint.c (parse_breakpoint_sals): Make static.
2343         (breakpoint_sals_to_pc): Make static.
2344         * interps.h (clear_interpreter_hooks): ISO C declaration.
2345         * Makefile.in (stack_h): Define.
2346         (stack.o, typeprint.o, mi-main.o): Update dependencies.
2347         (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
2348
2349 2003-06-08  Andrew Cagney  <cagney@redhat.com>
2350
2351         * Makefile.in (d10v-tdep.o): Update dependencies.
2352         (SFILES): Add trad-frame.c.
2353         (trad_frame_h): Define.
2354         (COMMON_OBS): Add trad-frame.o.
2355         (trad-frame.o): Specify dependencies.
2356         * d10v-tdep.c: Include "trad-frame.h".
2357         (saved_regs_unwinder): Delete function.
2358         (d10v_frame_prev_register): Use trad_frame_prev_register.
2359         (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
2360         trad_frame", delete "regs" and "prev_sp".
2361         (prologue_find_regs): Use trad-frame.
2362         * trad-frame.h, trad-frame.c: New files.
2363
2364 2003-06-08  Mark Kettenis  <kettenis@gnu.org>
2365
2366         * dwarf2cfi.c, dwarf2cfi.h: Remove.
2367
2368 2003-06-07  Adam Fedor  <fedor@gnu.org>
2369
2370         * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
2371         (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
2372         using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
2373         (find_implementation, resolve_msgsend, resolve_msgsend_stret,
2374         resolve_msgsend_super, resolve_msgsend_super_stret):
2375         Use it.
2376
2377 2003-06-07  Andrew Cagney  <cagney@redhat.com>
2378
2379         * symfile.h: Re-indent, clean up comments.
2380
2381 2003-06-07  Andrew Cagney  <cagney@redhat.com>
2382
2383         * inferior.h (deprecated_write_sp): Replace
2384         generic_target_write_sp.
2385         * regcache.c (deprecated_write_sp): Replace
2386         generic_target_write_sp.
2387         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2388         * vax-tdep.c (vax_gdbarch_init): Update.
2389         * v850-tdep.c (v850_gdbarch_init): Update.
2390         * sparc-tdep.c (sparc_gdbarch_init): Update.
2391         * sh-tdep.c (sh_gdbarch_init): Update.
2392         * s390-tdep.c (s390_gdbarch_init): Update.
2393         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2394         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2395         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2396         * mcore-tdep.c (mcore_gdbarch_init): Update.
2397         * m68k-tdep.c (m68k_gdbarch_init): Update.
2398         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2399         * ia64-tdep.c (ia64_gdbarch_init): Update.
2400         * h8300-tdep.c (h8300_gdbarch_init): Update.
2401         * frv-tdep.c (frv_gdbarch_init): Update.
2402         * cris-tdep.c (cris_gdbarch_init): Update.
2403         * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
2404
2405 2003-06-07  Andrew Cagney  <cagney@redhat.com>
2406
2407         * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
2408         Assert that PC_REGNUM is valid.
2409         (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
2410
2411 2003-06-07  Andrew Cagney  <cagney@redhat.com>
2412
2413         * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
2414         * gdbarch.h, gdbarch.c: Regenerate.
2415         * mn10300-tdep.c: Include "gdb_assert.h".
2416         (mn10300_read_fp): New function.
2417         (mn10300_gdbarch_init): Set deprecated_target_read_fp to
2418         mn10300_read_fp.  Do not set read_sp to generic_target_read_sp.
2419         * ia64-tdep.c: Include "gdb_assert.h".
2420         (ia64_read_fp): New function.
2421         (ia64_gdbarch_init): Set deprecated_target_read_fp to
2422         ia64_read_sp.  Do not set read_sp to generic_target_read_sp.
2423         * regcache.c (generic_target_read_sp): Delete function.
2424         (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
2425         * inferior.h (generic_target_read_sp): Delete declaration.
2426         * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
2427         generic_target_read_sp.
2428         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2429         * sparc-tdep.c (sparc_gdbarch_init): Ditto
2430         * sh-tdep.c (sh_gdbarch_init): Ditto.
2431         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2432         * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
2433
2434 2003-06-07  Andrew Cagney  <cagney@redhat.com>
2435
2436         * gdbarch.sh: Comment each field of startup_gdbarch.
2437         * gdbarch.h, gdbarch.c: Re-generate.
2438
2439 2003-06-07  Andrew Cagney  <cagney@redhat.com>
2440
2441         * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
2442         * gdbarch.h, gdbarch.c: Re-generate.
2443         * regcache.c: Update comments on read_pc et.al.
2444         (generic_target_read_pc): Delete function.
2445         (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
2446         * inferior.h (generic_target_read_pc): Delete declaration.
2447         * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
2448         generic_target_read_pc.
2449         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2450         * sh-tdep.c (sh_gdbarch_init): Ditto.
2451         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2452         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2453
2454 2003-06-07  Andrew Cagney  <cagney@redhat.com>
2455
2456         * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
2457         "index" with "special_local_sect".  Use strcmp instead of STREQ.
2458         Append period to coments.
2459
2460 2003-06-06  Mark Mitchell  <mark@codesourcery.com>
2461
2462         * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
2463         (elfstab_offset_sections): Likewise.
2464         * gdb-stabs.h (stab_section_info): Likewise.
2465         * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
2466         * objfiles.c (objfile_relocate): Likewise.
2467         * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
2468         * remote.c (get_offsets): Likewise.
2469         (remote_cisco_objfile_relocate): Likewise.
2470         * somread.c (som_symfile_offsets): Likewise.
2471         * symfile.c (alloc_section_addr_info): New function.
2472         (build_section_addr_info_from_section_tab): Use it.
2473         (free_section_addr_info): Adjust.
2474         (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
2475         (syms_from_objfile): Allocate local_addr dynamically.
2476         (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
2477         dynamically.
2478         (add_symbol_file_command): Allocate sect_opts dynamically.
2479         (reread_symbols): Avoid use of SECT_OFF_MAX.
2480         * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
2481         (alloc_section_addr_info): Declare it.
2482         * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
2483         * win32-nat.c (solib_symbols_add): Allocate section_addrs
2484         dynamically.
2485         * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
2486
2487 2003-06-06  Andrew Cagney  <cagney@redhat.com>
2488
2489         * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
2490         (d10v_frame_unwind_cache): Do not set "return_pc".
2491
2492 2003-06-06  Michael Snyder  <msnyder@redhat.com>
2493
2494         * h8300-tdep.c: Make tidy (long lines).
2495
2496 2003-06-06  Michal Ludvig  <mludvig@suse.cz>
2497
2498         * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
2499         to regcache_collect().
2500
2501 2003-06-05  J. Brobecker  <brobecker@gnat.com>
2502
2503         * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
2504         pc_in_sigtramp multiarch method.
2505         (hppa_hpux_som_init_abi): Use it.
2506         (hppa_hpux_elf_init_abi): Likewise.
2507         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
2508         macro has been multiarched.
2509         * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
2510         macro here, as hppa64 isn't multiarched yet.
2511
2512 2003-06-05  Andrew Cagney  <cagney@redhat.com>
2513
2514         * Makefile.in (value_h): Add $(frame_h).
2515         * value.h: Include "frame.h".
2516         (struct value): Replace "frame_addr" with "frame_id".
2517         (VALUE_FRAME_ID): Replace VALUE_FRAME.
2518         * values.c (allocate_value): Use VALUE_FRAME_ID.
2519         (value_copy): Use VALUE_FRAME_ID.
2520         * findvar.c (value_from_register): Use VALUE_FRAME_ID.
2521         * valops.c (value_assign): Update.  Use frame_find_by_id.
2522
2523 2003-06-05  Michal Ludvig  <mludvig@suse.cz>
2524
2525         * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
2526         in each pass.
2527
2528 2003-06-05  Jeff Johnston  <jjohnstn@redhat.com>
2529
2530         * thread-db.c (check_event): For create/death event breakpoints,
2531         loop through all messages to ensure that we read the message
2532         corresponding to the breakpoint we are at.
2533
2534 2003-06-04  Michael Snyder  <msnyder@redhat.com>
2535
2536         * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
2537
2538 2003-06-04  Mark Kettenis  <kettenis@gnu.org>
2539
2540         * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
2541         (read_encoded_value): Handle DW_EH_PE_datarel encoding.
2542         (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
2543         when handling .eh_frame sections.
2544
2545 2003-06-04  J. Brobecker  <brobecker@gnat.com>
2546
2547         * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
2548         prepare_to_proceed procedure instead of the hppa-specific one.
2549         * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
2550
2551 2003-06-04  Jeff Johnston  <jjohnstn@redhat.com>
2552
2553         * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
2554         * config.in: Regenerated.
2555         * configure.in: Add test for syscall function and check for
2556         __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
2557         * configure: Regenerated.
2558         * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
2559         <sys/syscall.h>.
2560         (kill_lwp): New function that uses tkill syscall or
2561         uses kill, depending on whether threading model is nptl or not.
2562         All callers of kill() changed to use kill_lwp().
2563         (lin_lwp_wait): Make special check when WIFEXITED occurs to
2564         see if all threads have already exited in the nptl model.
2565         (stop_and_resume_callback): New callback function used by the
2566         lin_lwp_wait thread exit handling code.
2567         (stop_wait_callback): Check for threads already having exited and
2568         delete such threads fromt the lwp list when discovered.
2569         (stop_callback): Don't assert retcode of kill call.
2570
2571         Roland McGrath  <roland@redhat.com>
2572         * i386-linux-nat.c (ps_get_thread_area): New function needed by
2573         nptl libthread_db.
2574
2575 2003-06-03  Richard Henderson  <rth@redhat.com>
2576
2577         * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
2578         (alpha_sigtramp_frame_this_id): Use get_frame_memory.
2579         (alpha_sigtramp_frame_prev_register): Likewise.
2580         (alpha_heuristic_frame_prev_register): Likewise.
2581         * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
2582
2583         * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
2584         alpha-specific register id names.
2585         (alpha_mdebug_frame_unwind_cache): Likewise.
2586         (alpha_mdebug_frame_prev_register): Likewise.
2587
2588 2003-06-03  Richard Henderson  <rth@redhat.com>
2589
2590         * alpha-tdep.c (alpha_dwarf2_init_abi): New.
2591         * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
2592         * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
2593         * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
2594         unwind routines.
2595         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
2596         * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
2597         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
2598
2599         * alpha-linux-tdep.c: Remove unnecessary includes.
2600         * Makefile.in (alpha-linux-tdep.o): Update.
2601
2602 2003-06-03  Richard Henderson  <rth@redhat.com>
2603
2604         * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
2605         (alphabsd_fill_fpreg): Likewise.
2606
2607 2003-06-03  J. Brobecker  <brobecker@gnat.com>
2608
2609         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr):  Replace
2610         references to struct frame_info fields by calls to the equivalent
2611         accessors. Necessary now that frame_info is opaque.
2612
2613 2003-06-03  J. Brobecker  <brobecker@gnat.com>
2614
2615         * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
2616         (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
2617         structure, field no longer exists.
2618
2619 2003-06-03  J. Brobecker  <brobecker@gnat.com>
2620
2621         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
2622         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
2623
2624 2003-06-03  J. Brobecker  <brobecker@gnat.com>
2625
2626         * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
2627         references to struct frame_info fields by calls to the equivalent
2628         accessors. Necessary now that frame_info is opaque.
2629
2630 2003-06-03  J. Brobecker  <brobecker@gnat.com>
2631
2632         * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
2633         (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
2634         structure, field no longer exists.
2635
2636 2003-06-03  Theodore A. Roth  <troth@openavr.org>
2637
2638         * remote.c (init_remote_state): Compute sizeof_g_packet by
2639         accumulation of the size of all registers instead of blindly using
2640         DEPRECATED_REGISTER_BYTES.
2641
2642 2003-06-03  Michael Snyder  <msnyder@redhat.com>
2643
2644         * config/h8300/tm-h8300.h (h8300sxmode): Declare.
2645         * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
2646         for h8300sx.
2647
2648 2003-06-03  J. Brobecker  <brobecker@gnat.com>
2649
2650         * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
2651         * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
2652
2653 2003-06-03  Andrew Cagney  <cagney@redhat.com>
2654
2655         * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
2656         (sparc_convert_to_raw): Delete function.
2657         (sparc_gdbarch_init): Do not set register_convert_to_raw or
2658         register_convert_to_virtual.
2659
2660 2003-06-03  Jeff Johnston  <jjohnstn@redhat.com>
2661
2662         * thread-db.c (thread_db_mourn_inferior): Unpush thread target
2663         layer if not dealing with a statically-linked threaded program.
2664
2665 2003-06-03  Kris Warkentin  <kewarken@qnx.com>
2666
2667         * solib.c (solib_open): Update comment to reflect actual search order.
2668
2669 2003-06-03  Andrew Cagney  <cagney@redhat.com>
2670
2671         * frame.c (get_frame_memory_signed): New function.
2672         (get_frame_memory, get_frame_memory_unsigned): New function.
2673         (get_frame_arch): New function.
2674         * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
2675         (get_frame_memory, get_frame_unsigned_memory): Declare.
2676         * d10v-tdep.c (d10v_frame_unwind_cache): Use
2677         get_frame_memory_unsigned and get_frame_arch.
2678         (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
2679
2680 2003-06-03  Raoul Gough  <RaoulGough@yahoo.co.uk>
2681
2682         * MAINTAINERS (write after approval): Add myself.
2683
2684 2003-06-03  Jim Blandy  <jimb@redhat.com>
2685
2686         * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
2687         elements of gregset_t are 64 bits each, but access registers
2688         are still 32 bits, so they're packed two per gregset_t
2689         element.  Unpack/pack them properly.
2690
2691 2003-06-02  David Carlton  <carlton@bactrian.org>
2692
2693         * linespec.c (find_methods): Break out code into
2694         add_matching_methods and add_constructors.
2695         (add_matching_methods): New.
2696         (add_constructors): Ditto.
2697
2698 2003-06-02  Andrew Cagney  <cagney@redhat.com>
2699
2700         * sparc-tdep.c (sparc_print_registers): Delete call to
2701         REGISTER_CONVERTIBLE.
2702         (sparc_gdbarch_init): Do not set register_convertible.
2703         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2704         * frv-tdep.c (frv_gdbarch_init): Ditto.
2705         * cris-tdep.c (cris_gdbarch_init): Ditto.
2706
2707 2003-06-02  Elena Zannoni  <ezannoni@redhat.com>
2708
2709         * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
2710         * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
2711         (syms_from_objfile): Ditto.
2712
2713 2003-06-03  Andreas Schwab  <schwab@suse.de>
2714
2715         * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
2716         (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
2717
2718 2003-06-02  Richard Henderson  <rth@redhat.com>
2719
2720         * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
2721         a member of all_reggroup.
2722
2723 2003-06-02  Richard Henderson  <rth@redhat.com>
2724
2725         * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
2726         (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
2727         (alpha_lds, alpha_sts): New.
2728         (alpha_convert_register_p): Change from _register_convertible.
2729         (alpha_register_to_value): Change from _convert_to_virtual;
2730         restructure and fail for type sizes other than 4 or 8.
2731         (alpha_value_to_register): Similarly.
2732         (alpha_extract_return_value): Use alpha_sts.
2733         (alpha_store_return_value): Use alpha_lds.
2734         (alpha_gdbarch_init): Update hooks.
2735
2736 2003-06-02  Richard Henderson  <rth@redhat.com>
2737
2738         * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
2739         regnum identifiers.
2740         (alpha_sigtramp_register_address): Likewise.
2741
2742 2003-06-02  Richard Henderson  <rth@redhat.com>
2743
2744         * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
2745         (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
2746         * alpha-tdep.h: Declare them.
2747
2748         * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
2749         Remove zerobuf.  Don't error on UNIQUE.
2750         (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
2751         (ALPHA_REGSET_UNIQUE): Provide default.
2752         (supply_gregset): Use alpha_supply_int_regs.
2753         (fill_gregset): Use alpha_fill_int_regs.
2754         (supply_fpregset): Use alpha_supply_fp_regs.
2755         (fill_fpregset): Use alpha_fill_fp_regs.
2756         * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
2757         (alphabsd_supply_reg): Use alpha_supply_int_regs.
2758         (alphabsd_fill_reg): Use alpha_fill_int_regs.
2759         (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
2760         (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
2761         * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
2762
2763 2003-06-02  Richard Henderson  <rth@redhat.com>
2764
2765         * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
2766
2767         * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
2768         (alpha_store_return_value): Likewise.
2769
2770 2003-06-02  David Carlton  <carlton@math.stanford.edu>
2771
2772         * block.c (contained_in): Add 'const' to arguments.
2773         (block_function): Ditto.
2774         * block.h: Update declarations for block_function and
2775         contained_in.
2776
2777 2003-06-02  David Carlton  <carlton@math.stanford.edu>
2778
2779         * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
2780         * c-valprint.c (c_val_print): Delete unneeded variable 's'.
2781         * p-valprint.c (pascal_val_print): Ditto.
2782         * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
2783
2784 2003-06-02  Richard Henderson  <rth@redhat.com>
2785
2786         * alpha-tdep.c (alpha_push_dummy_call): Use
2787         builtin_type_ieee_double_little instead of builtin_type_double.
2788
2789         * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
2790         sign-extension of 32-bit values.
2791         (alpha_store_return_value): Similarly.
2792
2793         * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
2794         (alpha_extract_return_value): Likewise.
2795         (alpha_store_return_value): Likewise.
2796
2797         * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
2798         (alpha_store_return_value): Error on IEEE Quad floats.
2799
2800         * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
2801         (alpha_extract_struct_value_address): Likewise.
2802         (alpha_store_return_value): Likewise.
2803         (alpha_store_struct_return): Remove.
2804         (alpha_gdbarch_init): Update hook registration to match.
2805
2806         * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
2807         deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
2808         macros where appropriate.
2809         (alpha_register_convert_to_raw): Similarly.  Use unpack_long.
2810         (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
2811
2812         * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
2813         for SP, GP; void_func_ptr for PC; non-language-specific types
2814         for all others.
2815         * alpha-tdep.h (ALPHA_GP_REGNUM): New.
2816
2817 2003-06-02  Richard Henderson  <rth@redhat.com>
2818
2819         * top.h (lim_at_start): Declare.
2820         * main.c (captured_main): Set it.
2821         * top.c (lim_at_start): Define.
2822         (command_loop): Use it instead of &environ.
2823         * event-top.c (command_handler): Likewise.
2824
2825 2003-06-01  Jason Thorpe  <thorpej@wasabisystems.com>
2826
2827         * mipsnbsd-tdep.c: Update copyright years.
2828         (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
2829
2830 2003-06-01  Richard Henderson  <rth@redhat.com>
2831
2832         * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
2833         (alpha-linux-tdep.o): Update dependencies.
2834         (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
2835         * alpha-mdebug-tdep.c: Remove unneeded includes.
2836
2837 2003-06-01  Richard Henderson  <rth@redhat.com>
2838
2839         * alpha-tdep.c (alpha_register_reggroup_p): New.
2840         (alpha_gdbarch_init): Register it.
2841
2842 2003-06-02  Andrew Cagney  <cagney@redhat.com>
2843
2844         * dwarfread.c: Eliminate "register"
2845         (decode_die_type): Eliminate assignment within "if".
2846         (struct_type, decode_array_element_type): Ditto.
2847         (dwarf_read_array_type, read_tag_pointer_type): Ditto.
2848         (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
2849         (decode_modified_type, completedieinfo): Ditto.
2850         * block.c: Eliminate "register".
2851         (blockvector_for_pc_sect): Eliminate assignment within "if".
2852         * cp-support.h (struct symbol): Opaque declaration.
2853         * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
2854
2855 2003-06-01  Richard Henderson  <rth@redhat.com>
2856
2857         * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
2858         (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
2859
2860 2003-06-01  Adam Fedor  <fedor@gnu.org>
2861
2862         * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
2863         * gdbarch.[ch]: Regenerate.
2864         * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
2865         (hppa_gdbarch_init): Set it in the gdbarch vector.
2866         * i386-tdep.c (i386_fetch_pointer_argument): New
2867         (i386_gdbarch_init): Set it into gdbarch.
2868         * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
2869         (rs6000_gdbarch_init): Set it in gdbarch.
2870         * sparc-tdep.c (sparc_fetch_pointer_argument): New
2871         (sparc_gdbarch_init): Set it in gdbarch.
2872
2873 2003-06-01  Andrew Cagney  <cagney@redhat.com>
2874
2875         * defs.h (extract_address): Delete declaration.
2876         * findvar.c (extract_address): Delete function.
2877         * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
2878         extract_address with the inline equivalent,
2879         extract_unsigned_integer.
2880         (xstormy16_extract_struct_value_address): Ditto.
2881         (xstormy16_pointer_to_address): Ditto.
2882         * vax-tdep.c (vax_extract_struct_value_address): Ditto.
2883         * v850-tdep.c (v850_push_arguments): Ditto.
2884         (v850_extract_return_value): Ditto.
2885         (v850_extract_struct_value_address): Ditto.
2886         * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
2887         (sparcnbsd_get_longjmp_target_64): Ditto.
2888         * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
2889         (get_longjmp_target): Ditto.
2890         * sh-tdep.c (sh_extract_struct_value_address): Ditto.
2891         (sh64_extract_struct_value_address): Ditto.
2892         (sh_push_arguments): Ditto.
2893         (sh64_push_arguments): Ditto.
2894         * remote-vxsparc.c (vx_read_register): Ditto.
2895         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
2896         * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
2897         * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
2898         * mipsv4-nat.c (get_longjmp_target): Ditto.
2899         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
2900         * mips-nat.c (get_longjmp_target): Ditto.
2901         * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
2902         * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
2903         * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
2904         * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
2905         * irix5-nat.c (get_longjmp_target): Ditto.
2906         * irix4-nat.c (get_longjmp_target): Ditto.
2907         * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
2908         (ia64_push_arguments): Ditto.
2909         * hpux-thread.c (hpux_thread_store_registers): Ditto.
2910         * h8300-tdep.c (h8300_push_arguments): Ditto.
2911         (h8300_store_return_value): Ditto.
2912         (h8300_extract_struct_value_address): Ditto.
2913         * frv-tdep.c (frv_extract_struct_value_address): Ditto.
2914         (frv_push_arguments): Ditto.
2915         * avr-tdep.c (avr_pointer_to_address): Ditto.
2916         (avr_push_arguments): Ditto.
2917         * arm-tdep.c (arm_push_dummy_call): Ditto.
2918         (arm_get_longjmp_target): Ditto.
2919         * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
2920         * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
2921         (alpha_get_longjmp_target): Ditto.
2922
2923         * solib-irix.c (extract_mips_address): Inline extract_address,
2924         replacing it with extract_signed_integer.
2925         * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
2926         (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
2927         (first_link_map_member, open_symbol_file_object): Ditto.
2928         (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
2929         * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
2930         (LM_NEXT, LM_NAME): Ditto.
2931
2932 2003-06-01  Richard Henderson  <rth@redhat.com>
2933
2934         * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
2935         * alpha-tdep.c (alpha_register_name): Remove vfp entry.
2936         (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
2937         (alpha_cannot_store_register): Likewise.
2938         * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
2939         * alpha-nat.c (supply_gregset): Likewise.
2940         * alphanbsd-tdep.c (fetch_core_registers): Likewise.
2941
2942 2003-06-01  Andrew Cagney  <cagney@redhat.com>
2943
2944         * infcall.c (call_function_by_hand): Update comment on
2945         DEPRECATED_DUMMY_WRITE_SP.
2946
2947         * mips-tdep.c (mips_gdbarch_init): Do not set
2948         deprecated_dummy_write_sp.
2949         (mips_eabi_push_dummy_call): Set the SP register.
2950         (mips_o64_push_dummy_call): Set the SP register.
2951         (mips_o32_push_dummy_call): Set the SP register.
2952         (mips_n32n64_push_dummy_call): Set the SP register.
2953
2954 2003-06-01  Richard Henderson  <rth@redhat.com>
2955
2956         * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
2957         instead of ALPHA_MAX_REGISTER_RAW_SIZE.
2958         (supply_gregset): Likewise.
2959         * alpha-tdep.c (alpha_store_return_value): Likewise.
2960         (alpha_get_longjmp_target): Likewise.
2961         (alpha_register_name): Constify array.
2962         (alpha_gdbarch_init): Remove deprecated_fp_regnum,
2963         deprecated_register_size, deprecated_register_bytes,
2964         deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
2965         * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
2966         (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
2967
2968 2003-06-01  Richard Henderson  <rth@redhat.com>
2969
2970         * alpha-tdep.c (alpha_push_dummy_call): Store sp.  Tidy copies
2971         from arg_reg_buffer to regcache to avoid double conversion.
2972
2973 2003-06-01  Mark Kettenis  <kettenis@gnu.org>
2974
2975         * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
2976         SP_REGNUM.
2977         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
2978         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
2979
2980 2003-06-01  Richard Henderson  <rth@redhat.com>
2981
2982         * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
2983         (decode_frame_entry): Set it.  Skip FDE augmentation.
2984
2985 2003-06-01  Richard Henderson  <rth@redhat.com>
2986
2987         * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
2988         not overlapping PC_REGNUM.
2989
2990 2003-06-01  Richard Henderson  <rth@redhat.com>
2991
2992         * alpha-tdep.c (alpha_push_dummy_call): Transmography from
2993         alpha_push_arguments.  Don't dump argument register data to
2994         the target stack.  Fix float and 128-bit long double semantics.
2995         Store $t12 and $ra as specified by the ABI.  Use regcache everywhere.
2996         (alpha_fix_call_dummy): Remove.
2997         (alpha_call_dummy_words): Remove.
2998         (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
2999
3000 2003-06-01  Richard Henderson  <rth@redhat.com>
3001
3002         * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
3003
3004 2003-06-01  Andrew Cagney  <cagney@redhat.com>
3005
3006         * mips-tdep.c (is_mips16_addr): New function.
3007         (make_mips16_addr, unmake_mips16_addr): New functions.
3008         (pc_is_mips16, mips_fetch_instruction): Use.
3009         (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
3010         (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
3011         (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
3012         UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
3013         TARGET_MIPS.
3014         * config/mips/tm-mips.h: Update copyright.
3015         (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
3016         (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
3017         (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
3018         * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
3019         (TM_PRINT_INSN_MACH): Delete.
3020         * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
3021
3022         * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
3023         mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
3024         mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
3025         mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
3026         mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*.  Delete
3027         mips*tx39*el*-elf*.  Map mips*-sony-* and mips64*-big-* onto
3028         mips64.  Map mips*-dec-*, mips*-big-*, mips*-little-*,
3029         mips*-*-riscos* and mips*-*-sysv* onto mips.
3030         * config/mips/mips64.mt: New file.
3031         * config/mips/mips.mt: New file.
3032         * config/mips/littlemips.mt: Delete file.
3033         * config/mips/decstation.mt: Delete file.
3034         * config/mips/vr4300el.mt: Delete file.
3035         * config/mips/vr5000el.mt: Delete file.
3036         * config/mips/vr5000.mt: Delete file.
3037         * config/mips/vr4100.mt: Delete file.
3038         * config/mips/vr4xxxel.mt: Delete file.
3039         * config/mips/vr4300.mt: Delete file.
3040         * config/mips/vr4xxx.mt: Delete file.
3041         * config/mips/bigmips.mt: Delete file.
3042         * config/mips/bigmips64.mt: Delete file.
3043         * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
3044         * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
3045         * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
3046         * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
3047         * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
3048         "tm-bigmips.h".
3049         * config/mips/tm-irix3.h: Ditto.
3050         * config/mips/tm-mipsv4.h: Ditto.
3051         * config/mips/tm-embed.h: Ditto.
3052         * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
3053         "tm-bigmips64.h".
3054         * config/mips/tm-vr5000el.h: Delete file.
3055         * config/mips/tm-tx39l.h: Delete file.
3056         * config/mips/tm-vr4300el.h: Delete file.
3057         * config/mips/tm-vr4xxxel.h: Delete file.
3058         * config/mips/tm-vr4300.h: Delete file.
3059         * config/mips/tm-vr4100.h: Delete file.
3060         * config/mips/tm-vr4xxx.h: Delete file.
3061         * config/mips/tm-vr5000.h: Delete file.
3062         * config/mips/tm-embedl64.h: Delete file.
3063         * config/mips/tm-embedl.h: Delete file.
3064         * config/mips/tm-embed64.h: Delete file.
3065         * config/mips/tm-bigmips64.h: Delete file.
3066         * config/mips/tm-bigmips.h: Delete file.
3067
3068 2003-06-01  Mark Kettenis  <kettenis@gnu.org>
3069
3070         Fix gdb/1216.
3071         * shnbsd-nat.c: Include "sh-tdep.h".
3072
3073         From Richard Henderson  <rth@redhat.com>:
3074         * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
3075
3076 2003-05-31  Andrew Cagney  <cagney@redhat.com>
3077
3078         * mips-tdep.c (set_reg_offset): Add saved_regs parameter.  Add
3079         forward declaration.
3080         (mips16_heuristic_proc_desc): Pass temp_saved_regs.
3081         (mips16_heuristic_proc_desc): Pass temp_saved_regs.
3082         (mips_find_saved_regs): Use set_reg_offset.
3083         (mips_frame_init_saved_regs): Delete function.
3084         (mips_pop_frame): Call mips_find_saved_regs instead of
3085         DEPRECATED_FRAME_INIT_SAVED_REGS.
3086
3087 2003-05-31  Andrew Cagney  <cagney@redhat.com>
3088
3089         * mips-tdep.c (mips_gdbarch_init): Do not set
3090         deprecated_max_register_raw_size, register_virtual_size, and
3091         deprecated_max_register_virtual_size.
3092
3093 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
3094
3095         * i386-tdep.c: Include "dwarf2-frame.h".
3096         (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
3097         * Makefile.in (i386-tdep.o): Update dependencies.
3098
3099         * dwarf2-frame.c, dwarf2-frame.h: New files.
3100         * Makefile.in (SFILES): Add dwarf2-frame.c.
3101         (dwarf2_frame_h): Define.
3102         (COMMON_OBS): Add dwarf2-frame.o.
3103         (dwarf2-frame.o): Add dependencies.
3104
3105 2003-05-31  Andreas Jaeger  <aj@suse.de>
3106
3107         * x86-64-linux-nat.c: Fix comment.
3108
3109 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
3110
3111         * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
3112         function signature.
3113
3114         * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
3115         have a sigcontext_addr handler.
3116         * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
3117         sigcontext_addr handler.
3118
3119 2003-05-31  Andrew Cagney  <cagney@redhat.com>
3120
3121         * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
3122         (print_fp_register_row): Replace do_fp_register_row.
3123         (mips_print_fp_register): Add "file" and "frame" parameters.
3124         (mips_print_register): Add "file" and "frame" parameters.
3125         (mips_print_registers_info): Replace mips_do_registers_info.
3126         (mips_gdbarch_init): Set print_registers_info instead of
3127         deprecated_do_registers_info.
3128         (mips_read_fp_register_single): Add "frame" parameter.
3129         (mips_read_fp_register_double): Add "frame" parameter.
3130
3131 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
3132
3133         * i386-tdep.c (i386_register_name): Check for MMX registers first.
3134         Fixes a bug where GDB would print the wrong register names for
3135         targets without SSE.
3136
3137         * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
3138         (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
3139         registers.
3140
3141         * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
3142         (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
3143         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3144         TDEP->sc_sp_offset.
3145
3146         From Michal Ludvig  <mludvig@suse.cz>:
3147         * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
3148         and `sc_num_regs'.
3149         (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
3150         I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
3151         I386_ST0_REGNUM): Move here from...
3152         * i386-tdep.c: ... here.
3153         (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
3154         (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
3155         registers if possible.
3156         (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
3157         * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
3158         Remove variables.
3159         (i386bsd_sc_reg_offset): New variable.
3160         (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
3161         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3162         TDEP->sc_sp_offset.
3163         (i386fbsd_sc_reg_offset): New variable.
3164         (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
3165         TDEP->sc_num_regs.
3166         (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
3167         variables.
3168         (i386fbsd4_sc_reg_offset): New variable.
3169         (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
3170         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3171         TDEP->sc_sp_offset.
3172         * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
3173         (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
3174         * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
3175         Remove variables.
3176         (i386nbsd_sc_reg_offset): New variable.
3177         (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
3178         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3179         TDEP->sc_sp_offset.
3180         * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
3181         Remove variables.
3182         (i386obsd_sc_reg_offset): New variable.
3183         (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
3184         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3185         TDEP->sc_sp_offset.
3186         * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
3187         i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c.  Add check
3188         for frame pointer offset in `struct sigcontext'.
3189
3190 2003-05-31  Andrew Cagney  <cagney@redhat.com>
3191
3192         * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
3193         architecture methods call_dummy_words, sizeof_call_dummy_words,
3194         push_return_address, store_struct_return, and fix_call_dummy.  Set
3195         push_dummy_call instead of deprecated_push_arguments.
3196         (mips_store_struct_return): Delete function.
3197         (mips_fix_call_dummy): Delete function.
3198         (mips_push_return_address): Delete function.
3199         (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
3200         RA_REGNUM and T9_REGNUM.
3201         (mips_n32n64_push_dummy_call): Ditto for
3202         mips_n32n64_push_arguments.
3203         (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
3204         (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
3205
3206 2003-05-31  Andrew Cagney  <cagney@redhat.com>
3207
3208         * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter.  Rename
3209         "dummy_addr" to "bp_addr".
3210         * infcall.c (call_function_by_hand): Pass "funaddr" to
3211         gdbarch_push_dummy_call.
3212         * gdbarch.h, gdbarch.c: Re-generate.
3213         * i386-tdep.c (i386_push_dummy_call): Update.
3214         * arm-tdep.c (arm_push_dummy_call): Update.
3215         * d10v-tdep.c (d10v_push_dummy_call): Update.
3216
3217 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
3218
3219         * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
3220         variable declarations.
3221         (x86_64_register_number, x86_64_register_name): Remove prototypes.
3222         (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
3223         x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
3224         x86_64_init_frame_pc, x86_64_init_frame_pc,
3225         x86_64_function_has_prologue): Remove prototypes.
3226         (X86_64_NUM_GREGS): New define.
3227         (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
3228         * x86-64-tdep.c: Don't include "dwarf2cfi.h".  Include
3229         "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
3230         (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
3231         XMM1_REGNUM): Remove defines.
3232         (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
3233         X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
3234         X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
3235         X86_64_XMM1_REGNUM): New defines.
3236         (struct x86_64_register_info): Renamed from `struct
3237         register_info'.  Remove `size' member.
3238         (x86_64_register_info_table): Remove variable.
3239         (x86_64_register_info): New variable.
3240         (X86_64_NUM_REGS): New define.
3241         (X86_64_NUM_GREGS): Remove define.
3242         (x86_64_num_regs, x86_64_num_gregs): Remove variables.
3243         (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
3244         Remove variables.
3245         (x86_54_dwarf2_reg_to_regnum): Remove function.
3246         (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
3247         (x86_64_dwarf_reg_to_regnum): New function.
3248         (x86_64_register_name): Rewrite.
3249         (x86_64_register_raw_size): Remove function.
3250         (x86_64_register_byte_table): Remove variable.
3251         (x86_64_register_byte): Remove function.
3252         (x86_64_register_virtual_type): Remove function.
3253         (x86_64_register_type): New function.
3254         (x86_64_register_convertible, x86_64_register_convert_to_virtual,
3255         x86_64_register_convert_to_raw): Remove functions.
3256         (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
3257         (x86_64_use_struct_convention): Make static.  Adjust for renamed
3258         defines.
3259         (x86_64_frame_init_saved_regs): Remove function.
3260         (x86_64_push_arguments): Make static.  Change to accept a regcache
3261         as argument.
3262         (x86_64_store_return_value, x86_64_extract_return_value): Make
3263         static.  Rewrite based on i386 counterparts.
3264         (x86_64_push_dummy_call): New function.
3265         (X86_64_NUM_SAVED_REGS): New define.
3266         (x86_64_register_number): Remove function.
3267         (x86_64_store_struct_return): Remove function.
3268         (x86_64_frameless_function_invocation,
3269         x86_64_function_has_prologue): Remove functions.
3270         (PROLOG_BUFSIZE): Remove define.
3271         (struct x86_64_frame_cache): New structure.
3272         (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
3273         x86_64_frame_cache, x86_64_frame_this_id,
3274         x86_64_frame_prev_register, x86_64_frame_p,
3275         x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
3276         x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
3277         functions.
3278         (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
3279         variables.
3280         (x86_64_skip_prologue): Rewrite in terms of
3281         x86_64_analyze_prologue.
3282         (x86_64_frame_base_address): New function.
3283         (x86_64_frame_base): New variable.
3284         (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
3285         (x86_64_init_abi): Set register_type and push_dummy_call.  Don't
3286         set deprecated_fp_regnum, deprecated_register_size,
3287         deprecated_register_bytes, register_raw_size, register_byte,
3288         register_virtual_type, register_convertiable,
3289         register_convert_to_virtual, convert_to_raw,
3290         deprecated_get_saved_register, deprecated_target_read_fp,
3291         deprecated_push_arguments, deprecated_push_return_address,
3292         deprecated_pop_frame, deprecated_store_struct_return,
3293         deprecated_frame_init_saved_regs, deprecated_frame_chain,
3294         frameless_function_invocation, deprecated_frame_saved_pc,
3295         deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
3296         dwarf2_build_frame_info, deprecated_init_extra_frame_info,
3297         deprecated_init_frame_pc and virtual_frame_pointer.  Call
3298         frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
3299         and x86_64_frame_p.  Call frame_base_set_default to register
3300         x86_64_frame_base.
3301         (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
3302         (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
3303         (_initialize_x86_64_tdep): Remove function.
3304         * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
3305         (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
3306         LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
3307         define.
3308         (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
3309         (x86_64_linux_sigcontext_addr): Rewrite.
3310         (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
3311         x86_64_linux_frame_saved_pc): Remove functions.
3312         (x86_64_linux_pc_in_sigtramp): Renamed from
3313         x86_64_linux_in_sigtramp.  Try harder to recognize a signal
3314         trampoline.
3315         (x86_64_linux_frame_chain, x86_64_init_frame_pc):
3316         Remove_functions.
3317         (x86_64_linux_init_abi): Set pc_in_sigtramp.  Initialize
3318         TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
3319         * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
3320         (x86_64_regmap): Rename to regmap.
3321         (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
3322         x86_64_num_gregs.
3323         (supply_gregset, fill_gregset): Likewise.  Use regmap instead of
3324         x86_64_regmap.
3325         (x86_64_fxsave_offset): Remove function.
3326         (supply_fpregset): Simply call x86_64_supply_fxsave.
3327         (fill_fpregset): Simply call x86_64_fill_fxsave.
3328         (fetch_inferior_registers, store_inferior_registers): Avoid
3329         asignment in if-statement.
3330         (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
3331         SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
3332         LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
3333         (fetch_core_registers): Remove function.
3334         (linux_elf_core_fns): Remove.
3335         (offsetoff): Don't define.
3336         (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
3337         * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
3338         * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
3339         add core-regset.o.
3340         * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
3341         protection against multiple includes instead of NM_X86_64_h.  Add
3342         various comments.  Include "config/nm-linux.h".  Don't include
3343         <signal.h>.
3344         (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
3345         GET_THREAD_SIGNALS): Remove defines.
3346         (x86_64_register_u_addr, kernel_u_size,
3347         lin_thread_get_thread_signals): Remove prototypes.
3348         (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
3349         [HAVE_LINK_H]: Don't include "solib.h".
3350         [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
3351         * config/i386/tm-x86-64linux.h: Fix comments.
3352         * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
3353         x86-64-tdep.o): Update dependencies.
3354
3355 2003-05-30  Andrew Cagney  <cagney@redhat.com>
3356
3357         * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
3358         Change parameter type to a "struct regcache *".
3359
3360         * gdbarch.sh: Regardless of the multi-arch level, always define
3361         the macro when not already defined.
3362         * gdbarch.h, gdbarch.c: Re-generate.
3363
3364 2003-05-30  Richard Henderson  <rth@redhat.com>
3365
3366         * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
3367         (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
3368         (alpha_mdebug_frame_this_id): Likewise.
3369         (alpha_mdebug_frame_prev_register): Likewise.
3370         (alpha_mdebug_frame_base_address): Likewise.
3371         (alpha_mdebug_frame_locals_address): Likewise.
3372         (alpha_mdebug_frame_args_address): Likewise.
3373         (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
3374         * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
3375         (alpha_heuristic_frame_unwind_cache): Make static; add missing
3376         loop increment.
3377         (alpha_heuristic_frame_this_id): Make static.
3378         (alpha_heuristic_frame_prev_register): Likewise.
3379         (alpha_heuristic_frame_base_address): Likewise.
3380         * alpha-tdep.h: Update.
3381
3382 2003-05-30  Mark Kettenis  <kettenis@gnu.org>
3383
3384         * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
3385         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
3386         defenitions.
3387         (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
3388         * i386-tdep.c: Mark functions that are 64-bit safe as such.
3389         (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
3390         I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
3391         I386_ST0_REGNUM): New defines.
3392         (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
3393         codestream_get): Remove define.
3394         (codestream_next_addr, condestream_addr, condestream_buf,
3395         codestream_off, codestream_cnt): Remove variables.
3396         (codestream_fill, codestream_seek, codestream_read): Remove
3397         functions.
3398         (i386_follow_jump): Rewrite to avoid usage of removed codestream
3399         functionality.
3400         (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
3401         i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
3402         i386_frame_saved_pc, i386_saved_pc_after_call,
3403         i386_frame_num_args, i386_frame_init_saved_regs,
3404         i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
3405         i386_push_arguments): Remove functions.
3406         (i386_skip_prologue): Rewrite to avoid usage of removed codestream
3407         functionality.  Use i386_analyze_prologue instead of
3408         i386_get_frame_setup.
3409         (I386_NUM_SAVED_REGS): New define.
3410         (struct i386_frame_cache): New structure.
3411         (i386_alloc_frame_cache, i386_analyze_struct_return,
3412         i386_skip_probe, i386_analyze_frame_setup,
3413         i386_analyze_register_saves, i386_analyze_prologue,
3414         i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
3415         i386_frame_prev_register, i386_sigtramp_frame_cache,
3416         i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
3417         i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
3418         i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
3419         New functions.
3420         (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
3421         New variables.
3422         (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
3423         I386_EAX_REGNUM and I386_EDX_REGNUM.
3424         (i386_extract_return_value, i386_store_return_value): Use
3425         I386_ST0_REGNUM where appropriate.
3426         (i386_extract_struct_value_address): Rewrite to use extract_address.
3427         (i386_svr4_pc_in_sigtramp): Add comment.
3428         (i386_svr4_sigcontext_addr): Rewrite.
3429         (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
3430         TDEP->sc_sp_offset.
3431         (i386_gdbarch_init): Don't set deprecated_init_frame_pc.  Set
3432         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
3433         of new defines.  Set push_dummy_call, don't set
3434         deprecated_push_arguments, deprecated_push_return_address,
3435         deprecated_pop_frame.  Don't set parm_boundary.  Don't set
3436         deprecated_frame_chain, deprecated_frame_saved_pc,
3437         deprecated_saved_pc_after_call.  Set unwind_dummy_id,
3438         save_dummy_frame_tos, unwind_pc.  Call
3439         frame_unwind_append_predicate and frame_base_set_default.  Don't
3440         set deprecated_dummy_write_pc.  Don't set deprecated_fp_regnum.
3441         Don't set frameless_function_invocation.  Don't set
3442         deprecated_register_bytes, deprecated_register_size,
3443         deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
3444         * i386-linux-tdep.c: Fix formatting in some comments.
3445         (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
3446         LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
3447         LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
3448         LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
3449         LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
3450         redundant parentheses.
3451         (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
3452         (i386_linux_sigcontext_addr): Use it.  Rewrite.
3453         (find_minsym_and_objfile): Change name of second argument.
3454         (skip_gnu_resolver): Renamed from skip_hurd_resolver.  All callers
3455         changed.  Use frame_pc_unwind instead of
3456         DEPRECATED_SAVED_PC_AFTER_CALL.
3457         (i386_linux_init_abi): Don't set deprecated_register_bytes.
3458         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
3459         * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
3460         unwinder.
3461         * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
3462         "dummy-frame.h".
3463         (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
3464         (_initialize_i386_cygwin_tdep): New prototype.
3465         (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
3466         deprecated_frame_chain_valid.
3467         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
3468         TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
3469         Rely on the SVR4 defaults.
3470         * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
3471         * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
3472
3473 2003-05-30  Andrew Cagney  <cagney@redhat.com>
3474
3475         * infcall.c (call_function_by_hand): Always call
3476         DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
3477
3478 2003-05-30  Richard Henderson  <rth@redhat.com>
3479
3480         * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
3481         increment.
3482
3483 2003-05-29  Jim Blandy  <jimb@redhat.com>
3484
3485         Use gdbarch methods for solib stuff on PowerPC Linux.
3486         * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
3487         SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
3488         show through.
3489         * ppc-linux-tdep.c (ppc_linux_init_abi): Register
3490         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
3491         giving the same effect as the #definitions above.
3492
3493 2003-05-29  Adam Fedor  <fedor@gnu.org>
3494
3495         * objc-lang.c (CONVERT_FUNCPTR): Remove macro
3496         (find_implementation_from_class): Replace it with the standard
3497         case i.e. do nothing.
3498
3499 2003-05-29  Richard Henderson  <rth@redhat.com>
3500
3501         * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
3502         (alpha_linux_sigtramp_offset): Use it.  Make static.
3503         (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
3504         update for new frame model.
3505         * alpha-mdebug-tdep.c: New file.
3506         * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
3507         (alpha_osf1_init_abi): Install it.
3508         * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
3509         (linked_proc_desc_table): Remove.
3510         (alpha_frame_past_sigtramp_frame): Remove.
3511         (alpha_dynamic_sigtramp_offset): Remove.
3512         (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
3513         (alpha_proc_desc_is_dyn_sigtramp): Remove.
3514         (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
3515         (push_sigtramp_desc): Remove.
3516         (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
3517         (alpha_cannot_store_register): Likewise.
3518         (alpha_sigcontext_addr): Remove.
3519         (alpha_find_saved_regs): Remove.
3520         (alpha_frame_init_saved_regs): Remove.
3521         (alpha_init_frame_pc_first): Remove.
3522         (read_next_frame_reg): Remove.
3523         (alpha_frame_saved_pc): Remove.
3524         (alpha_saved_pc_after_call): Remove.
3525         (temp_proc_desc, temp_saved_regs): Remove.
3526         (alpha_about_to_return): Remove.
3527         (cached_proc_desc): Remove.
3528         (alpha_frame_chain): Remove.
3529         (alpha_print_extra_frame_info): Remove.
3530         (alpha_init_extra_frame_info): Remove.
3531         (alpha_frame_locals_address): Remove.
3532         (alpha_frame_args_address): Remove.
3533         (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
3534         (alpha_push_dummy_frame): Remove.
3535         (alpha_pop_frame): Remove.
3536         (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
3537         (alpha_read_insn): New.
3538         (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
3539         for different insn encodings.
3540         (alpha_in_lenient_prologue): Remove.
3541         (struct alpha_sigtramp_unwind_cache): New.
3542         (alpha_sigtramp_frame_unwind_cache): New.
3543         (alpha_sigtramp_register_address): New.
3544         (alpha_sigtramp_frame_this_id): New.
3545         (alpha_sigtramp_frame_prev_register): New.
3546         (alpha_sigtramp_frame_unwind): New.
3547         (alpha_sigtramp_frame_p): New.
3548         (struct alpha_heuristic_unwind_cache): New.
3549         (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
3550         don't count nop insns that occur between functions.
3551         (alpha_heuristic_frame_unwind_cache): New; incorporate much of
3552         heuristic_proc_desc, but without the mdebug wrapping.
3553         (alpha_heuristic_frame_this_id): New.
3554         (alpha_heuristic_frame_prev_register): New.
3555         (alpha_heuristic_frame_unwind): New.
3556         (alpha_heuristic_frame_p): New.
3557         (alpha_heuristic_frame_base_address): New.
3558         (alpha_heuristic_frame_base): New.
3559         (alpha_unwind_dummy_id): New.
3560         (alpha_unwind_pc): New.
3561         (alpha_gdbarch_init): Don't set skip_sigtramp_frame.  Kill use of
3562         frame related deprecated initializations; install replacements.
3563         (alpha_dump_tdep): Remove.
3564         * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
3565         (alpha_read_insn, alpha_after_prologue,
3566         alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
3567         alpha_heuristic_frame_prev_register,
3568         alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
3569         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3570         * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
3571         * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
3572
3573 2003-05-29  Andrew Cagney  <cagney@redhat.com>
3574
3575         * gdb_assert.h (gdb_assert_fail): Provide different definitions
3576         dependant on the availability of ASSERT_FUNCTION.
3577         (ASSERT_FUNCTION): Do not define when there is no function name.
3578
3579 2003-05-29  Kevin Buettner  <kevinb@redhat.com>
3580
3581         From Jimi X <jimix@watson.ibm.com>:
3582         * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
3583
3584 2003-05-28  Jim Blandy  <jimb@redhat.com>
3585
3586         * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
3587         argument to ptrace to int; the system headers should give it the
3588         right type, and pointers don't fit in ints on powerpc64-*-*.
3589
3590 2003-05-28  H.J. Lu <hongjiu.lu@intel.com>
3591
3592         * dwarf2read.c (process_die): Handle DW_TAG_try_block and
3593         DW_TAG_catch_block.
3594
3595 2003-05-26  Elena Zannoni  <ezannoni@redhat.com>
3596
3597         * stabsread.c (dbx_lookup_type): Make static.
3598         (read_type): Ditto.
3599         (add_undefined_type): Ditto.
3600         * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
3601         not export.
3602
3603 2003-05-26  Elena Zannoni  <ezannoni@redhat.com>
3604
3605         * hpread.c (hpread_has_name): Make static.
3606         (hpread_psymtab_to_symtab): Ditto.
3607         (file_exists): Ditto.
3608         (hpread_call_pxdb): Ditto.
3609         (hpread_pxdb_needed): Ditto.
3610         (hpread_quick_traverse): Ditto.
3611         (hpread_get_header): Ditto.
3612         (hpread_get_lntt): Ditto.
3613         (hpread_get_slt): Ditto.
3614         (class_of): Ditto.
3615
3616 2003-05-25  Andreas Schwab  <schwab@suse.de>
3617
3618         * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
3619         stack_align and deprecated_extra_stack_alignment_needed.
3620         (m68k_stack_align): Delete.
3621
3622         * m68k-tdep.c (m68k_register_raw_size): Remove cast.
3623         (m68k_register_virtual_size): Likewise.
3624         (altos_skip_prologue): Remove obsolete function.
3625         (isi_frame_num_args): Likewise.
3626         (news_frame_num_args): Likewise.
3627         (m68k_fix_call_dummy): Make static.
3628         (m68k_push_dummy_frame): Likewise.
3629         (m68k_pop_frame): Likewise.
3630         (m68k_skip_prologue): Likewise.
3631         (m68k_frame_init_saved_regs): Likewise.
3632         (m68k_saved_pc_after_call): Likewise.
3633         (m68k_get_longjmp_target): Make multi-arch.
3634         (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
3635         structure.  Register m68k_get_longjmp_target if enabled.
3636         * m68k-tdep.h (struct gdbarch_tdep): Define.
3637         * config/m68k/tm-m68k.h: Don't include "regcache.h".
3638
3639         * Makefile.in (config.status): Also depend on configure.tgt
3640         and configure.host.
3641         (m68klinux-tdep.o): Update dependencies.
3642         * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
3643         * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
3644         (M68K_LINUX_JB_PC): Define.
3645         (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
3646         and take additional parameter.
3647         (m68k_linux_sigtramp_saved_pc): Update.
3648         (m68k_linux_init_abi): Set jb_pc and jb_elt_size.  Register
3649         m68k_linux_pc_in_sigtramp, in_plt_section,
3650         find_solib_trampoline_target.
3651         * config/m68k/tm-linux.h: Don't include any tm headers.
3652         (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
3653         (JB_ELEMENT_SIZE): Likewise.
3654         (JB_PC): Likewise.
3655         (GET_LONGJMP_TARGET): Likewise.
3656         (IN_SIGTRAMP): Likewise.
3657         (SVR4_SHARED_LIBS): Define this and include "solib.h".
3658
3659 2003-05-25  Mark Kettenis  <kettenis@gnu.org>
3660
3661         * sparc-tdep.c (sparc32_do_push_arguments): New function.
3662         (sparc32_push_arguments): Re-implement by calling
3663         sparc32_do_push_arguments.
3664
3665 2003-05-25  Mark Kettenis  <kettenis@gnu.org>
3666
3667         * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
3668         SPARC_O1_REGNUM): New defines.
3669         (sparc32_extract_return_value): Rewrite to operate on a regcache.
3670         (sparc32_store_return_value): New function.
3671         (sparc_extract_struct_value_address): Rewrite to operate on a
3672         regcache.
3673         (sparc_gdbarch_init): Don't set
3674         deprecated_extract_struct_value_address.  Set
3675         extract_struct_value_address instead. Don't set
3676         deprecated_extract_return_value and deprecated_store_return_value
3677         for 32-bit targets.  Set extract_return_value and
3678         store_return_value instead.
3679         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
3680         DEPRECTAED_EXTRACT_RETURN_VALUE,
3681         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
3682         (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
3683         EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
3684         (sparc_store_return_value): Remove prototype.
3685         (sparc32_store_return_value): New prototype.
3686         (sparc32_extract_return_value, sparc_extract_struct_value_address):
3687         Adjust prototypes.
3688
3689 2003-05-24  Mark Kettenis  <kettenis@gnu.org>
3690
3691         * sparcnbsd-tdep.c: Include "gdb_string.h".
3692
3693 2003-05-23  Andrew Cagney  <cagney@redhat.com>
3694
3695         * p-valprint.c (pascal_val_print): Replace extract_address with
3696         the inline equivalent extract_unsigned_integer.
3697         * jv-valprint.c (java_value_print): Ditto.
3698         * ada-valprint.c (ada_val_print_1): Ditto.
3699         * ada-lang.h (EXTRACT_ADDRESS): Ditto.
3700
3701 2003-05-23  Theodore A. Roth  <troth@openavr.org>
3702
3703         * blockframe.c (frameless_look_for_prologue): Remove unused
3704         after_prologue variable.
3705
3706 2003-05-23  Mark Kettenis  <kettenis@gnu.org>
3707
3708         * blockframe.c (get_pc_function_start): Rewrite to avoid
3709         asignments in if-statements.
3710
3711 2003-05-23  Raoul Gough  <RaoulGough@yahoo.co.uk>
3712
3713         Committed by Elena Zannoni  <ezannoni@redhat.com>.
3714         * coffread.c(coff_symtab_read): Do relocate static symbols from PE
3715         files, don't relocate absolute symbols (and do use mst_abs).
3716
3717 2003-05-23  Andrew Cagney  <cagney@redhat.com>
3718
3719         * objc-lang.c: Include "gdb_assert.h".
3720         (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
3721         (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
3722         (gdb_check, gdb_check_fatal): Delete functions.
3723         (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
3724         gdb_assert.
3725         (parse_selector, parse_method, find_methods, find_imps): Ditto.
3726         * Makefile.in (objc-lang.o): Update dependencies.
3727
3728 2003-05-22  Ian Lance Taylor  <ian@airs.com>
3729
3730         * disasm.c (gdb_disassemble_info): Initialize disassemble_info
3731         with fprintf_filtered, not fprintf_unfiltered.
3732
3733 2003-05-22  Andrew Cagney  <cagney@redhat.com>
3734
3735         * stack.c (frame_info): Inline extract_address, replacing it with
3736         extract_unsigned_integer.
3737         * findvar.c (unsigned_pointer_to_address): Ditto.
3738         * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
3739         * dwarf2expr.c (dwarf2_read_address): Ditto.
3740         * frame.c (frame_pc_unwind): Update comment.
3741         * dummy-frame.c (deprecated_read_register_dummy): Update comment.
3742
3743 2003-05-22  Jeff Johnston  <jjohnstn@redhat.com>
3744
3745         * infptrace.c (detach): Call print_sys_errmsg rather than
3746         perror_with_name to issue warning message when errno is non-zero
3747         after calling ptrace detach.
3748
3749 2003-05-21  J. Brobecker  <brobecker@gnat.com>
3750
3751         * config/pa/tm-hppa.h: Delete some unused macros. Move some
3752         macro definitions from here...
3753         * hppa-tdep.c: ...to there.
3754
3755 2003-05-20  Kevin Buettner  <kevinb@redhat.com>
3756
3757         * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
3758         register_ptrace_addr().  Fix all callers.
3759
3760 2003-05-21  Andreas Schwab  <schwab@suse.de>
3761
3762         * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3763         dependencies.
3764         * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
3765         end.
3766         * m68klinux-tdep.c (m68k_linux_init_abi): New function.
3767         (_initialize_m68k_linux_tdep): New function.
3768         (m68k_linux_frame_saved_pc): Make static.
3769         (m68k_linux_extract_return_value): Likewise.
3770         (m68k_linux_store_return_value): Likewise.
3771         (m68k_linux_extract_struct_value_address): Likewise.
3772         * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
3773         Remove.
3774         (DEPRECATED_STORE_RETURN_VALUE): Remove.
3775         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
3776         (DEPRECATED_FRAME_SAVED_PC): Remove.
3777
3778 2003-05-20  Kris Warkentin  <kewarken@qnx.com>
3779
3780         * nto-tdep.c (fetch_core_registers): Match gdb's idea of
3781         regset numbering rather than our own.
3782
3783 2003-05-19  David Carlton  <carlton@bactrian.org>
3784
3785         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
3786
3787 2003-05-19  David Carlton  <carlton@bactrian.org>
3788
3789         Partial fix for PR c++/827.
3790         * cp-support.h: Include symtab.h.
3791         Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
3792         * cp-namespace.c: Update contributors.
3793         (cp_lookup_symbol_nonlocal): New.
3794         (lookup_namespace_scope, cp_lookup_symbol_namespace)
3795         (lookup_symbol_file): Ditto.
3796         * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
3797         * block.h: Declare block_scope, block_using, block_global_block.
3798         * block.c (block_scope): New.
3799         (block_using, block_global_block): Ditto.
3800         * Makefile.in (cp_support_h): Depend on symtab_h.
3801         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
3802
3803 2003-05-19  David Carlton  <carlton@bactrian.org>
3804
3805         * language.h (struct language_defn): Add 'la_value_of_this'
3806         and 'la_lookup_symbol_nonlocal' members.
3807         * symtab.h: Declare basic_lookup_symbol_nonlocal,
3808         lookup_symbol_static, lookup_symbol_global,
3809         lookup_symbol_aux_block.
3810         * symtab.c (lookup_symbol_aux): Call language hooks to determine
3811         if we should search fields of this and how to do static/global
3812         lookup.
3813         (lookup_symbol_aux_block): Make extern.
3814         (basic_lookup_symbol_nonlocal): New.
3815         (lookup_symbol_static, lookup_symbol_global): Ditto.
3816         * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
3817         'la_lookup_symbol_nonlocal' members.
3818         * c-lang.c (c_language_defn, cplus_language_defn)
3819         (asm_language_defn, minimal_language_defn): Ditto.
3820         * jv-lang.c (java_language_defn): Ditto.
3821         * language.c (unknown_language_defn, auto_language_defn)
3822         (local_language_defn): Ditto.
3823         * m2-lang.c (m2_language_defn): Ditto.
3824         * objc-lang.c (objc_language_defn): Ditto.
3825         * scm-lang.c (scm_language_defn): Ditto.
3826         * f-lang.c (f_language_defn): Ditto, and include value.h as well.
3827         * p-lang.c (pascal_language_defn): Ditto for both.
3828         * Makefile.in (f-lang.o): Depend on value_h.
3829         (p-lang.o): Ditto.
3830
3831 2003-05-19  David Carlton  <carlton@bactrian.org>
3832
3833         * block.h: Declare block_static_block.
3834         * block.c (block_static_block): New.
3835         * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
3836         lookup_symbol_aux_local, calling block_static_block instead.
3837         (lookup_symbol_aux_local): Delete 'static_block' argument.
3838
3839 2003-05-19  David Carlton  <carlton@bactrian.org>
3840
3841         * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
3842
3843 2003-05-19  Michal Ludvig  <mludvig@suse.cz>
3844
3845         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
3846         register numbers mapping.
3847
3848 2003-05-18  Adam Fedor  <fedor@gnu.org>
3849
3850         * symtab.c (completion_list_objc_symbol): New function.
3851         (make_symbol_completion_list): Use it to add ObjC symbols
3852         when looking though the list.
3853         (language_search_unquoted_string): New function.
3854         (make_file_symbol_completion_list): Use it.
3855
3856 2003-05-18  Andreas Schwab  <schwab@suse.de>
3857
3858         * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
3859         dependencies.
3860         * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
3861         as m68k_linux_extract_return_value.
3862         (DEPRECATED_STORE_RETURN_VALUE): Define as
3863         m68k_linux_store_return_value.
3864         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
3865         m68k_linux_extract_struct_value_address.
3866         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
3867         get_next_frame, get_frame_base, get_frame_pc.
3868         (m68k_linux_frame_saved_pc): Use get_frame_base.
3869         (m68k_linux_extract_return_value): New function.
3870         (m68k_linux_store_return_value): New function.
3871         (m68k_linux_extract_struct_value_address): New function.
3872         * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
3873
3874         * c-exp.y (typebase): Remove duplicate occurence of
3875         `SIGNED_KEYWORD LONG LONG'.  Use builtin_type_long_long instead
3876         of lookup_signed_typename.
3877
3878 2003-05-18  Mark Kettenis  <kettenis@gnu.org>
3879
3880         * dwarf2loc.c (find_location_expression): Change type of second
3881         argument to `size_t *'.
3882         (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
3883         for size variable.
3884
3885 2003-05-18  David Carlton  <carlton@bactrian.org>
3886
3887         * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
3888         'linkage_name'.  Add comment.
3889         (lookup_symbol_aux_local): Rename 'mangled_name' argument to
3890         'linkage_name'.
3891         (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
3892         (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
3893         (lookup_block_symbol): Ditto.
3894
3895 2003-05-16  Andrew Cagney  <cagney@redhat.com>
3896
3897         * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
3898         * gdbarch.h, gdbarch.c: Re-generate.
3899         * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
3900         * TODO (REGISTER_BYTES): Delete reference.
3901         * alpha-tdep.c (alpha_gdbarch_init): Update.
3902         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3903         * x86-64-tdep.c (x86_64_init_abi): Update.
3904         * vax-tdep.c (vax_gdbarch_init): Update.
3905         * v850-tdep.c (v850_gdbarch_init): Update.
3906         * sparc-tdep.c (sparc_gdbarch_init): Update.
3907         * sh-tdep.c (sh_gdbarch_init): Update.
3908         * s390-tdep.c (s390_gdbarch_init): Update.
3909         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3910         * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
3911         (ns32k_gdbarch_init_32382): Update.
3912         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3913         * mcore-tdep.c (mcore_gdbarch_init): Update.
3914         * m68k-tdep.c (m68k_gdbarch_init): Update.
3915         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3916         * ia64-tdep.c (ia64_gdbarch_init): Update.
3917         * i386-tdep.c (i386_gdbarch_init): Update.
3918         * i386-linux-tdep.c (i386_linux_init_abi): Update.
3919         * hppa-tdep.c (hppa_gdbarch_init): Update.
3920         * h8300-tdep.c (h8300_gdbarch_init): Update.
3921         * frv-tdep.c (frv_gdbarch_init): Update.
3922         * cris-tdep.c (cris_gdbarch_init): Update.
3923         * avr-tdep.c (avr_gdbarch_init): Update.
3924         * arm-tdep.c (arm_gdbarch_init): Update.
3925         * sparc-tdep.c (sparc_pop_frame): Update.
3926         * rs6000-tdep.c (rs6000_pop_frame): Update.
3927         * remote.c (init_remote_state): Update.
3928         (remote_prepare_to_store): Update.
3929         * remote-vx.c (vx_prepare_to_store): Update.
3930         * remote-sds.c (sds_fetch_registers): Update.
3931         (sds_prepare_to_store): Update.
3932         * remote-array.c: Update.
3933         * regcache.c (init_legacy_regcache_descr): Update.
3934         (init_regcache_descr): Update.
3935         * mips-tdep.c (mips_eabi_extract_return_value): Update.
3936         (mips_o64_extract_return_value): Update.
3937         * irix5-nat.c (fetch_core_registers): Update.
3938         * irix4-nat.c (fetch_core_registers): Update.
3939         * i386-tdep.h: Update.
3940         * hppa-tdep.c (pa_do_registers_info): Update.
3941         (pa_do_strcat_registers_info): Update.
3942         * cris-tdep.c (cris_register_bytes_ok): Update.
3943         * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
3944         * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
3945         * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
3946         * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
3947         * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
3948         * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
3949         * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
3950         * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
3951         * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
3952         * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
3953         * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
3954         * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
3955         (REGISTER_BYTES_OK): Update.
3956         * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
3957         * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
3958
3959 2003-05-16  Ian Lance Taylor  <ian@airs.com>
3960
3961         * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
3962         (vax_print_insn, print_insn_arg): Remove static functions.
3963         (vax_gdbarch_init): Call set_gdbarch_print_insn with
3964         print_insn_vax from opcodes library.
3965         (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
3966
3967 2003-05-15  Andrew Cagney  <cagney@redhat.com>
3968
3969         * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
3970         * target.h (memory_breakpoint_from_pc): Delete declaration.
3971         * mem-break.c (memory_breakpoint_from_pc): Delete function.
3972         * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
3973         * monitor.c (monitor_insert_breakpoint): Use
3974         gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
3975         * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
3976         * gdbarch.h, gdbarch.c: Re-generate.
3977         * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
3978         (sparc_gdbarch_init): Set breakpoint_from_pc to
3979         sparc_breakpoint_from_pc.
3980         * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
3981         (BREAKPOINT_FROM_PC): Define.
3982         (sparc_breakpoint_from_pc): Declare.
3983         * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
3984         * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
3985         (BREAKPOINT_FROM_PC): Define.
3986         (BREAKPOINT): Delete macro.
3987         * target.h: Update comment.
3988         * s390-tdep.c (s390_gdbarch_init): Update comments.
3989         * remote.c: Update comments.
3990         * remote-mips.c: Update comments.
3991         * proc-api.c (write_with_trace): Do not check for a breakpoint.
3992         * mem-break.c: Update comment.
3993         * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
3994         (ia64_memory_insert_breakpoint): Update.
3995         * config/sparc/tm-sparc.h: Update comment.
3996         * config/pa/tm-hppa64.h: Update comment.
3997         * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
3998         (rs6000_breakpoint_from_pc): Update.
3999         * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4000         (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
4001         (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
4002         (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
4003         (mips_breakpoint_from_pc): Update.
4004         (mips_dump_tdep): Update.
4005
4006         * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
4007         * minsyms.c (lookup_minimal_symbol): Inline
4008         DEPRECATED_SYMBOL_MATCHES_NAME.  Replace STREQ with strcmp.
4009
4010         * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
4011         * p-valprint.c (pascal_object_print_value_fields): Ditto.
4012         * p-lang.c (pascal_printstr): Ditto.
4013         * objc-lang.c (objc_printstr): Ditto.
4014         * m2-lang.c (m2_printstr): Ditto.
4015         * jv-valprint.c (java_print_value_fields): Ditto.
4016         * f-lang.c (f_printstr): Ditto.
4017         * cp-valprint.c (cp_print_value_fields): Ditto.  Include "valprint.h".
4018         * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
4019         for repeat_count_threshold.
4020         * Makefile.in (cp-valprint.o): Update dependencies.
4021
4022 2003-05-15  Jeff Johnston  <jjohnstn@redhat.com>
4023
4024         * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
4025         (examine_prologue): Support looking through leaf functions, knowing
4026         they start with mov r2,r12.  Support skipping over indirect stores
4027         of the input registers.  Upon hitting a non-nop branch instruction
4028         or predicated instruction, bail out by setting lim_pc to the current
4029         pc value in the loop.  At the end, if the lim_pc value is still
4030         beyond our calculated value and we have trust_limit set,
4031         use the lim_pc value.
4032
4033 2003-05-15  Andrew Cagney  <cagney@redhat.com>
4034
4035         * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
4036         generic_find_dummy_frame.
4037         * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
4038         (deprecated_generic_find_dummy_frame): Update.
4039         (deprecated_read_register_dummy): Update.
4040         * frame.c (deprecated_generic_get_saved_register): Update.
4041
4042 2003-05-15  Theodore A. Roth  <troth@openavr.org>
4043
4044         * avr-tdep.c (avr_breakpoint_from_pc): New function.
4045         (avr_gdbarch_init): Set breakpoint_from_pc method.
4046
4047 2003-05-15  Andrew Cagney  <cagney@redhat.com>
4048
4049         * regcache.c (build_regcache): Set deprecated_register_valid
4050         directly.
4051         (deprecated_grub_regcache_for_register_valid): Delete function.
4052         * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
4053         declaration.
4054
4055 2003-05-15  David Carlton  <carlton@bactrian.org>
4056
4057         Committed by Elena Zannoni <ezannoni@redhat.com>
4058         * symtab.c (lookup_symbol_aux): Delete calls to
4059         lookup_symbol_aux_minsyms.
4060         (lookup_symbol_aux_minsyms): Comment out function and
4061         prototype. Delete lookup by mangled name.
4062
4063 2003-05-14  Kevin Buettner  <kevinb@redhat.com>
4064
4065         * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
4066         correctly indicate an empty stack and ``stack_allocated'' to the
4067         indicate the number of elements initially allocated.
4068         (dwarf_expr_grow_stack): Simplify method for computing new
4069         stack size.  Don't loop infinitely if ``stack_len'' is zero.
4070         (execute_stack_op): Move ``ctx->in_reg'' initialization
4071         out of loop.  Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
4072         be used in conjuction with DW_OP_piece.  Revise error message
4073         accordingly.
4074
4075 2003-05-14  Theodore A. Roth  <troth@openavr.org>
4076
4077         * MAINTAINERS: Update my email address.
4078         * avr-tdep.c: Ditto.
4079
4080 2003-05-14  Elena Zannoni  <ezannoni@redhat.com>
4081
4082         * symtab.h (enum domain_enum): Rename from namespace_enum.
4083         (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
4084         VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
4085         Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
4086         LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
4087         TYPES_NAMESPACE, METHODS_NAMESPACE.
4088         (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
4089         (struct symbol, struct partial_symbol): Rename field
4090         'namespace_enum namespace' to 'domain_enum domain'.
4091         (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
4092         Delete old define kludge for namespace.
4093
4094         * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
4095         blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
4096         dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
4097         gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
4098         language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
4099         mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
4100         p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
4101         stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
4102         valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
4103         occurrences of the above.
4104
4105 2003-05-14  Ian Lance Taylor  <ian@airs.com>
4106
4107         * Makefile.in (install-only): Use $(SHELL) when running
4108         mkinstalldirs.
4109
4110 2003-05-13  Ian Lance Taylor  <ian@airs.com>
4111
4112         * MAINTAINERS (write after approval): Add myself.
4113
4114         * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
4115         second and third arguments.
4116         * ser-tcp.c (_initialize_ser_tcp): Likewise.
4117         * ser-unix.c (_initialize_ser_hardwire): Likewise.
4118
4119 2003-05-13  Andrew Cagney  <cagney@redhat.com>
4120
4121         * defs.h (store_address): Delete declaration.
4122         findvar.c (store_address): Delete function.
4123         * arm-tdep.c (arm_push_dummy_call): Replace store_address with
4124         store_unsigned_integer.
4125         * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
4126         * v850-tdep.c (v850_push_arguments): Ditto.
4127         * sparc-tdep.c (sparc_get_saved_register): Ditto.
4128         * sh-tdep.c (sh64_get_saved_register): Ditto.
4129         * rs6000-tdep.c (rs6000_push_arguments): Ditto.
4130         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
4131         * mips-tdep.c (mips_eabi_push_arguments): Ditto.
4132         (mips_get_saved_register): Ditto.
4133         * ia64-tdep.c (ia64_get_saved_register): Ditto.
4134         (find_func_descr, ia64_push_arguments): Ditto.
4135         * i386-tdep.c (i386_push_arguments): Ditto.
4136         * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
4137         * frv-tdep.c (frv_push_arguments): Ditto.
4138         * frame.c (legacy_saved_regs_prev_register): Ditto.
4139         (deprecated_generic_get_saved_register): Ditto.
4140         * findvar.c (unsigned_address_to_pointer): Ditto.
4141         * dwarf2read.c (dwarf2_const_value): Ditto.
4142         * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4143         * alpha-tdep.c (alpha_push_arguments): Ditto.
4144
4145 2003-05-12  J. Brobecker  <brobecker@gnat.com>
4146
4147         * NEWS: Mention that the hppa-hpux port has been partially
4148         multiarched (32bit ABIT only, so far).
4149
4150 2003-05-11  Andrew Cagney  <cagney@redhat.com>
4151
4152         * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
4153         * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
4154         include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
4155         sim/testsuite/sim/arm/misaligned2.ms, and
4156         sim/testsuite/sim/arm/misaligned3.ms.
4157         * disasm.h (struct ui_file): Add opaque struct declaration.
4158         * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
4159         * frame.h (struct ui_file): Ditto.
4160
4161 2003-05-11  Mark Kettenis  <kettenis@gnu.org>
4162
4163         * value.h: Pretty print.
4164
4165 2003-05-10  Mark Kettenis  <kettenis@gnu.org>
4166
4167         * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
4168
4169 2003-05-08  Andrew Cagney  <cagney@redhat.com>
4170
4171         * regcache.h (max_register_size): Delete declaration.
4172         * regcache.c (max_register_size): Delete function.
4173         (struct regcache_descr): Delete field "max_register_size".
4174         (init_regcache_descr, init_legacy_regcache_descr): Assert that all
4175         registers fit in MAX_REGISTER_SIZE.
4176         (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
4177         (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
4178         * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
4179         * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
4180         * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
4181         * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
4182         * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
4183         * dve3900-rom.c, hppa-tdep.c: Ditto.
4184
4185 2003-05-08  David Carlton  <carlton@math.stanford.edu>
4186
4187         * valops.c (push_word): Fix typo.
4188
4189 2003-05-08  Andrew Cagney  <cagney@redhat.com>
4190
4191         * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
4192         * gdbarch.h: Re-generate.
4193         * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
4194         (legacy_max_register_raw_size): Delete declaration.
4195         * regcache.c (legacy_max_register_raw_size): Delete function.
4196         * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
4197         * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
4198         * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
4199         * remote-rdp.c, remote-array.c, regcache.c: Ditto.
4200         * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
4201         * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
4202         * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
4203         * findvar.c, dwarf2cfi.c: Ditto.
4204
4205 2003-05-08  Andrew Cagney  <cagney@redhat.com>
4206
4207         * mips-tdep.c (read_signed_register): New function, moved to here
4208         from "regcache.c".
4209         (read_signed_register_pid): Ditto.
4210         * regcache.c (read_signed_register_pid): Delete function, moved to
4211         "mips-tdep.c".
4212         (read_signed_register): Ditto.
4213         * regcache.h (read_signed_register): Delete declaration.
4214         (read_signed_register_pid): Delete declaration.
4215
4216 2003-05-08  Andrew Cagney  <cagney@redhat.com>
4217
4218         * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
4219         * gdbarch.h: Re-generate.
4220         * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
4221         (legacy_max_register_virtual_size): Delete declaration.
4222         * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
4223         * d10v-tdep.c (d10v_print_registers_info): Ditto.
4224         * tracepoint.c (memrange_sortmerge): Ditto.
4225         * sparc-tdep.c (sparc_print_registers): Ditto.
4226         * regcache.c (legacy_max_register_virtual_size): Delete function.
4227
4228 2002-05-08  J. Brobecker  <brobecker@gnat.com>
4229
4230         * fork-child.c (escape_bang_in_quoted_argument): New function.
4231         (fork_inferior): Escape '!' characters in quoted arguments
4232         only when needed.
4233
4234 2003-05-08  J. Brobecker  <brobecker@gnat.com>
4235
4236         * dwarf2read.c (set_cu_language): Set the language to "minimal" if
4237         the language of the CU is not currently supported by GDB.
4238
4239 2003-05-08  J. Brobecker  <brobecker@gnat.com>
4240
4241         * defs.h (language): Add language_minimal enum value.
4242         * c-lang.c (minimal_language_defn): New language definition.
4243         (_initialize_c_language): Add the new minimal language to the list
4244         of languages known to GDB.
4245
4246 2003-05-08  Kevin Buettner  <kevinb@redhat.com>
4247
4248         * frame.c (get_frame_type): Don't attempt to lazily initialize
4249         frame's unwinder for legacy frames.
4250
4251 2003-05-07  Andrew Cagney  <cagney@redhat.com>
4252
4253         * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
4254         and "regcache" parameters.
4255         * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
4256
4257 2003-05-07  Jeff Johnston  <jjohnstn@redhat.com>
4258
4259         * dwarf2read.c (dwarf_decode_lines): Only use output of
4260         check_cu_functions() when calling record_line().  Do not update
4261         the current address.
4262
4263 2003-05-07  Andrew Cagney  <cagney@redhat.com>
4264
4265         * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
4266         code.
4267
4268 2003-05-07  Jim Blandy  <jimb@redhat.com>
4269
4270         Rename commands 'maint list symtabs' and 'maint list psymtabs' to
4271         'maint info symtabs' and 'maint info psymtabs'.
4272         * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
4273         Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
4274         * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
4275         Declarations updated.
4276         * maint.c (maintenance_list_command): Delete.
4277         (_initialize_maint_cmds): Update calls to add_cmd.
4278         * gdbcmd.h (maintenancelistlist): Delete declaration.
4279         * cli/cli-cmds.c (maintenancelistlist): Delete.
4280         (init_cmd_lists): Don't initialize it.
4281         * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
4282
4283 2003-05-07  Andrew Cagney  <cagney@redhat.com>
4284
4285         * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
4286         "regcache".
4287         (d10v_print_registers_info): Update.
4288         (d10v_dmap_register, d10v_imap_register): Delete functions.
4289         (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
4290         and "imap_register".
4291         (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
4292         (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
4293         * arch-utils.c (generic_remote_translate_xfer_address): Add
4294         "regcache" and "gdbarch" parameters.
4295         * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
4296         parameter.  Change class to multi-arch.
4297         * gdbarch.h, gdbarch.c: Re-generate.
4298         * remote.c (remote_xfer_memory): Use
4299         gdbarch_remote_translate_xfer_address.
4300
4301 2003-05-07  Jeff Johnston  <jjohnstn@redhat.com>
4302
4303         * infrun.c (prev_pc): Move declaration ahead of proceed().
4304         (proceed): Refresh prev_pc value before resuming.
4305         (stop_stepping): Remove code to refresh prev_pc.
4306
4307 2003-05-06  Kris Warkentin <kewarken@qnx.com>
4308
4309         * nto-tdep.c: Removed stray comment.
4310
4311 2003-05-06  Kris Warkentin <kewarken@qnx.com>
4312
4313         * i386-nto-tdep.c: Fix old K&R function definitions.
4314         * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
4315         Also change add_show_from_set() call to add_setshow_cmd().
4316         * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
4317
4318 2003-05-05  Andrew Cagney  <cagney@redhat.com>
4319
4320         * dummy-frame.c: Include "command.h" and "gdbcmd.h".
4321         (fprint_dummy_frames): New function.
4322         (maintenance_print_dummy_frames): New function.
4323         (_initialize_dummy_frame): Add command "maint print dummy-frames".
4324         * frame.c (fprint_frame_id): Make global.
4325         * frame.h (fprint_frame_id): Declare.
4326         * Makefile.in (dummy-frame.o): Update dependencies.
4327
4328 2003-05-05  Andrew Cagney  <cagney@redhat.com>
4329
4330         * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
4331         (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
4332         SIZEOF_CALL_DUMMY_WORDS.
4333         (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
4334         (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
4335         (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
4336         CALL_DUMMY_BREAKPOINT_OFFSET.
4337         (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
4338         CALL_DUMMY_START_OFFSET.
4339         (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
4340         * gdbarch.h, gdbarch.c: Re-generate.
4341         * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
4342         * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
4343         * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
4344         * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
4345         * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
4346         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
4347         * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
4348         * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
4349         * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
4350         * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
4351         * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
4352         * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
4353         * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
4354         * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
4355         * config/sparc/tm-sparc.h: Update.
4356
4357 2003-05-05  Kris Warkentin <kewarken@qnx.com>
4358
4359         * configure.tgt: Add i[3456]86-*-nto*.
4360         * i386-nto-tdep.c: New file.  i386 specific support for QNX Neutrino.
4361         * nto-tdep.c: New file. Neutrino target support routines.
4362         * nto-tdep.h: New file. Neutrino target header.
4363         * config/tm-qnxnto.h: New file.
4364         * config/i386/i386nto.mt: New file.
4365         * config/i386/tm-i386nto.h: New file.
4366
4367 2003-05-04  Andrew Cagney  <cagney@redhat.com>
4368
4369         * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
4370         (load_infrun_state): Ditto.
4371         (struct thread_info): Drop "prev_func_name" field.
4372         * thread.c (load_infrun_state): Update.
4373         (save_infrun_state): Update.
4374         * infrun.c (prev_func_name): Delete variable.
4375         (init_wait_for_inferior): Do not clear prev_func_name.
4376         (stop_stepping, keep_going, context_switch): Do not swap
4377         prev_func_name.
4378         (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
4379         instead of PC_IN_SIGTRAMP.
4380
4381 2003-05-04  Andrew Cagney  <cagney@redhat.com>
4382
4383         * sentinel-frame.c (sentinel_frame_prev_register): Replace
4384         REGISTER_BYTE with register_offset_hack.
4385         * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
4386         that REGISTER_BYTE is consistent with the regcache.
4387         * gdbarch.sh (REGISTER_BYTE): Add a predicate.
4388         * gdbarch.h, gdbarch.c: Regenerate.
4389
4390 2003-05-04  Mark Kettenis  <kettenis@gnu.org>
4391
4392         * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
4393         (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
4394
4395         * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
4396
4397 2003-05-03  J. Brobecker  <brobecker@gnat.com>
4398
4399         From Thierry Schneider <tpschneider1@yahoo.com>
4400         * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
4401         (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
4402         (mi-cmd-symbol.o): Add rule.
4403
4404 2003-05-03  Andrew Cagney  <cagney@redhat.com>
4405
4406         * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
4407         comments noteing that it replaces the old FIX_CALL_DUMMY code.
4408         * gdbarch.h, gdbarch.c: Re-generate.
4409         * d10v-tdep.c (d10v_push_dummy_code): New function.
4410         (d10v_gdbarch_init): Set push_dummy_code.
4411         * infcall.c (legacy_push_dummy_code): New function.
4412         (generic_push_dummy_code): New function.
4413         (push_dummy_code): New function.
4414         (call_function_by_hand): Call push_dummy_code.  Pass bp_addr,
4415         instead of dummy_addr, to push_dummy_call.  Move call to
4416         generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
4417         switch.
4418         * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
4419
4420 2003-05-03  Andrew Cagney  <cagney@redhat.com>
4421
4422         * disasm.h (print_insn): Declare.
4423         * disasm.c (init_gdb_disassemble_info): New function.
4424         (gdb_disassembly): Call init_gdb_disassemble_info.
4425         (gdb_print_insn): New function.
4426         * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
4427         of TARGET_PRINT_INSN.  Send debug info to "gdb_stdlog".
4428         * mcore-tdep.c: Include "disasm.h"
4429         (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
4430         * d10v-tdep.c: Include "disasm.h".
4431         (display_trace): Call gdb_print_insn, instead of print_insn.
4432         (print_insn): Delete function.
4433         * printcmd.c: Include "disasm.h".
4434         (print_insn): Delete function.
4435         (print_formatted): Call gdb_print_insn, instead of print_insn.
4436         * Makefile.in (printcmd.o): Update dependencies.
4437         (mcore-tdep.o, d10v-tdep.o): Ditto.
4438
4439 2003-05-02  Andrew Cagney  <cagney@redhat.com>
4440
4441         * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
4442         PC_REGNUM, re-indent.
4443         * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
4444         PC_REGNUM isn't set.
4445
4446         * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
4447         * gdbarch.h, gdbarch.c: Re-generate.
4448         * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
4449         register_virtual_size, pc_regnum, or register_bytes.
4450         (D10V_PC_REGNUM): Rename _PC_REGNUM.
4451         (d10v_register_type): Use D10V_PC_REGNUM.
4452         (d10v_print_registers_info, d10v_read_pc): Ditto.
4453         (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
4454         (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
4455
4456 2003-05-02  David Carlton  <carlton@bactrian.org>
4457
4458         * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
4459         the name with mstrsave.
4460
4461 2003-05-02  Elena Zannoni  <ezannoni@redhat.com>
4462
4463         * charset.c (GDB_DEFAULT_TARGET_CHARSET,
4464         GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
4465         (host_charset_name, target_charset_name): New vars for use by
4466         set/show commands.
4467         (host_charset_enum, target_charset_enum): New enums for set/show
4468         commands.
4469         (set_charset_sfunc, set_host_charset_sfunc,
4470         set_target_charset_sfunc): New functions.
4471         (set_host_charset, set_target_charset): Make static.
4472         (list_charsets, set_host_charset_command,
4473         set_target_charset_command): Delete functions.
4474         (show_charset_command): Rewrite as....
4475         (show_charset): Hook this up with the set/show command mechanism.
4476         (_initialize_charset): Change names of charsets to match the
4477         set/show enums. Use host_charset_name and target_charset_name.
4478         Use set/show mechanism for charset, host-charset, target-charset
4479         commands. Do not make 'show host-charset' and 'show
4480         target-charset' be aliases of 'show charset'.
4481
4482         * charset.h (set_host_charset, set_target_charset): Don't export,
4483         they are not used outside the file.
4484
4485 2003-05-01  Andrew Cagney  <cagney@redhat.com>
4486
4487         * disasm.c (gdb_disassemble_from_exec): Delete global variable.
4488         (gdb_disassembly): Make "di" non static, always initialize and
4489         cleanup.  Always use dis_asm_read_memory.
4490         (gdb_dis_asm_read_memory): Delete function.
4491
4492 2003-05-01  Andrew Cagney  <cagney@redhat.com>
4493
4494         * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
4495         (d10v_gdbarch_init): Set frame_align instead of stack_align.
4496
4497 2003-04-30  Andrew Cagney  <cagney@redhat.com>
4498
4499         * gdbarch.sh (deprecated_tm_print_insn_info): Rename
4500         "tm_print_insn_info".
4501         (TARGET_PRINT_INSN_INFO): Delete macro.
4502         (dis_asm_read_memory): Delete function declaration.
4503         (dis_asm_memory_error, dis_asm_print_address): Ditto.
4504         (tm_print_insn_info): Delete variable definition.
4505         (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
4506         * gdbarch.h, gdbarch.c: Re-generate.
4507         * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
4508         "deprecated_tm_print_insn_info".
4509         * mcore-tdep.c (mcore_dump_insn): Ditto.
4510         * mips-tdep.c (mips_gdbarch_init): Ditto.
4511         * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
4512         * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
4513         * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
4514         * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
4515         instead of TARGET_PRINT_INSN_INFO, add comment.
4516         * s390-tdep.c (s390_get_frame_info): Instead of
4517         "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
4518         (s390_check_function_end, s390_is_sigreturn): Ditto.
4519         * corefile.c (dis_asm_read_memory): Move to "disasm.c".
4520         (dis_asm_memory_error, dis_asm_print_address): Ditto.
4521         * disasm.c: Include "gdbcore.h".
4522         (_initialize_disasm): New function, initialize
4523         "deprecated_tm_print_insn_info".
4524         (deprecated_tm_print_insn_info): New variable.
4525         (dis_asm_read_memory): Moved from "corefile.c", made static.
4526         (dis_asm_print_address, dis_asm_memory_error): Ditto.
4527         * Makefile.in (disasm.o): Update dependencies.
4528
4529 2003-04-30  Andrew Cagney  <cagney@redhat.com>
4530
4531         * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
4532
4533 2003-04-29  Adam Fedor  <fedor@gnu.org>
4534
4535         * eval.c (evaluate_subexp_standard): Handle ObjC ops.
4536         * infcall.c (find_function_addr): Make non-static.
4537         * infcall.h (find_function_addr): Declare.
4538         * Makefile.in (eval.o): Update dependencies.
4539
4540 2003-04-28  Adam Fedor  <fedor@gnu.org>
4541
4542         * symtab.c (symbol_find_demangled_name): Check for and demangle
4543         ObjC symbols.
4544         (symbol_init_demangled_name): Init for language_objc as well.
4545
4546 2003-04-28  Andrew Cagney  <cagney@redhat.com>
4547
4548         * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
4549         (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
4550         * gdbarch.h, gdbarch.c: Re-generate.
4551         * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
4552         DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
4553         * inferior.h (deprecated_read_fp): Rename read_fp.
4554         (generic_target_read_fp): Delete declaration.
4555         * regcache.c (generic_target_read_fp): Delete function.
4556         (deprecated_read_fp): Replace read_fp, use
4557         DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
4558         * d10v-tdep.c (d10v_read_fp): Delete function.
4559         (d10v_gdbarch_init): Do not set deprecated_read_fp.
4560
4561         * sparc-tdep.c (sparc_gdbarch_init): Do not set
4562         deprecated_target_read_fp to generic_target_read_fp.
4563         * sh-tdep.c (sh_gdbarch_init): Ditto.
4564         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4565         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4566         * frv-tdep.c (frv_gdbarch_init): Ditto.
4567
4568         * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
4569         deprecated_fp_regnum.
4570         * x86-64-tdep.c (x86_64_init_abi): Ditto.
4571         * vax-tdep.c (vax_gdbarch_init): Ditto.
4572         * v850-tdep.c (v850_gdbarch_init): Ditto.
4573         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4574         * sh-tdep.c (sh_gdbarch_init): Ditto.
4575         * s390-tdep.c (s390_gdbarch_init): Ditto.
4576         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4577         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4578         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4579         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4580         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4581         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4582         * i386-tdep.c (i386_gdbarch_init): Ditto.
4583         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
4584         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4585         * frv-tdep.c (frv_gdbarch_init): Ditto.
4586         * cris-tdep.c (cris_gdbarch_init): Ditto.
4587         * avr-tdep.c (avr_gdbarch_init): Ditto.
4588         * arm-tdep.c (arm_gdbarch_init): Ditto.
4589         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4590
4591         * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
4592         * v850-tdep.c (v850_gdbarch_init): Ditto.
4593         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4594         * sh-tdep.c (sh_gdbarch_init): Ditto.
4595         * s390-tdep.c (s390_gdbarch_init): Ditto.
4596         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4597         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4598         * mips-tdep.c (mips_gdbarch_init): Ditto.
4599         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4600         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4601         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
4602         * frv-tdep.c (frv_gdbarch_init): Ditto.
4603         * avr-tdep.c (avr_gdbarch_init): Ditto.
4604         * arm-tdep.c (arm_gdbarch_init): Ditto.
4605
4606         * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
4607         DEPRECATED_FP_REGNUM.
4608         (vax_push_dummy_frame, vax_pop_frame): Ditto.
4609         * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
4610         * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
4611         (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
4612         (sparc32_register_virtual_type): Ditto.
4613         * sh-tdep.c (sh64_frame_chain): Ditto.
4614         (sh64_get_saved_register, sh64_pop_frame): Ditto.
4615         (sh_nofp_frame_init_saved_regs): Ditto.
4616         (sh64_nofp_frame_init_saved_regs): Ditto.
4617         (sh_fp_frame_init_saved_regs): Ditto.
4618         * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4619         * remote-e7000.c (fetch_regs_from_dump): Ditto.
4620         * procfs.c (procfs_fetch_registers): Ditto.
4621         (procfs_store_registers): Ditto.
4622         * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
4623         (store_inferior_registers, fetch_core_registers): Ditto.
4624         (fetch_kcore_registers, clear_regs): Ditto.
4625         * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
4626         (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
4627         * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
4628         * nlm/i386.c (do_status): Ditto.
4629         * mipsv4-nat.c (supply_gregset): Ditto.
4630         * mips-tdep.c: Ditto for comments.
4631         * mips-nat.c (fetch_inferior_registers): Ditto.
4632         (store_inferior_registers, fetch_core_registers): Ditto.
4633         * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
4634         (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
4635         * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
4636         (i386_do_pop_frame, i386_register_type): Ditto.
4637         * hppa-tdep.c (hppa_frame_chain): Ditto.
4638         (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
4639         (hppa_pop_frame, hppa_read_fp): Ditto.
4640         (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
4641         * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
4642         * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
4643         * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
4644         * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
4645         * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
4646         * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
4647         * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
4648         * blockframe.c: Ditto for comments.
4649         * arch-utils.h: Ditto for comments.
4650         * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
4651         * alphanbsd-tdep.c (fetch_core_registers): Ditto.
4652         * alphabsd-nat.c (fetch_inferior_registers): Ditto.
4653         * alpha-tdep.h: Ditto for comments.
4654         * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
4655         (alpha_cannot_store_register): Ditto.
4656         (alpha_push_dummy_frame): Ditto.
4657         * alpha-nat.c (supply_gregset): Ditto.
4658
4659         * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
4660         * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
4661         * config/sparc/tm-sparc.h: Update comment.
4662
4663         * hppa-tdep.c (hppa_init_extra_frame_info): Use
4664         deprecated_read_fp instead of TARGET_READ_FP.
4665         (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
4666         (hppa_push_dummy_frame, hppa_read_fp): Ditto.
4667         * sparc-tdep.c (sparc_init_extra_frame_info): Use
4668         deprecated_read_fp instead of read_fp.
4669         * s390-tdep.c (s390_push_arguments): Ditto.
4670         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4671         * frame.h: Ditto in comments.
4672         * frame.c (legacy_get_prev_frame): Ditto.
4673         * dummy-frame.c (dummy_frame_this_id): Ditto.
4674         * arm-tdep.c (arm_init_extra_frame_info): Ditto.
4675
4676 2003-04-28  Andrew Cagney  <cagney@redhat.com>
4677
4678         * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
4679         * gdbarch.h, gdbarch.c: Re-generate.
4680         * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
4681         * vax-tdep.c (_initialize_vax_tdep): Update.
4682         * v850-tdep.c (_initialize_v850_tdep): Update.
4683         * sparc-tdep.c (_initialize_sparc_tdep): Update.
4684         * s390-tdep.c (_initialize_s390_tdep): Update.
4685         * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
4686         * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
4687         * mips-tdep.c (_initialize_mips_tdep): Update.
4688         * mcore-tdep.c (_initialize_mcore_tdep): Update.
4689         * m68k-tdep.c (_initialize_m68k_tdep): Update.
4690         * ia64-tdep.c (_initialize_ia64_tdep): Update.
4691         * hppa-tdep.c (_initialize_hppa_tdep): Update.
4692         * h8300-tdep.c (_initialize_h8300_tdep): Update.
4693         * frv-tdep.c (_initialize_frv_tdep): Update.
4694         * cris-tdep.c (cris_delayed_get_disassembler): Update.
4695         (_initialize_cris_tdep): Update.
4696         * arch-utils.c (legacy_print_insn): Update.
4697         * alpha-tdep.c (_initialize_alpha_tdep): Update.
4698
4699 2003-04-26  Adam Fedor  <fedor@gnu.org>
4700
4701         * linespec.c (decode_objc): New function to decode ObjC calls
4702         (decode_line_1): Check for ObjC calls (using decode_objc)
4703         * Makefile (linespec.o): Update dependencies.
4704
4705 2003-04-26  Daniel Jacobowitz  <drow@mvista.com>
4706
4707         * breakpoint.h (struct breakpoint_ops): New.
4708         (struct breakpoint): Add ops member.
4709
4710         * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
4711         (mention): Use new breakpoint ops member.
4712         (set_raw_breakpoint): Initialize ops field to NULL.
4713         (print_exception_catchpoint, print_one_exception_catchpoint)
4714         (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
4715         (gnu_v3_exception_catchpoint_ops): New.
4716         (catch_exception_command_1): Call handle_gnu_v3_exceptions.
4717
4718 2003-04-25  Adam Fedor  <fedor@gnu.org>
4719
4720         * Makefile.in (COMMON_OBS): Add objc-lang.o
4721
4722 2003-04-25  Andrew Cagney  <cagney@redhat.com>
4723
4724         * d10v-tdep.c (print_insn): Delete function.
4725         (display_trace): Use TARGET_PRINT_INSN.
4726         (_initialize_d10v_tdep): Do not set tm_print_insn.
4727         (d10v_gdbarch_init): Set print_insn.
4728
4729 2003-04-25  Andrew Cagney  <cagney@redhat.com>
4730
4731         * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
4732         (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
4733         (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
4734         (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
4735         (nr_dmap_regs, a0_regnum): ... new functions.
4736         (d10v_print_registers_info): Use a0_regnum, use register_size.
4737         (d10v_register_byte): Delete function.
4738         (d10v_register_raw_size): Delete function.
4739         (d10v_register_type): Use a0_regnum.
4740         (d10v_print_registers_info): Use a0_regnum.
4741         (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
4742         (d10v_gdbarch_init): Do not set register_byte or
4743         register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
4744         (d10v_pointer_to_address): Use extract_unsigned_integer instead of
4745         extract_address.
4746         (trace_command): Use XCALLOC.
4747         (print_insn): Delete reference to tm_print_insn.
4748         (saved_regs_unwinder): Use store_unsigned_integer instead of
4749         store_address.
4750         * frame.h (FRAME_OBSTACK_CALLOC): Define
4751
4752 2003-04-25  David Carlton  <carlton@bactrian.org>
4753
4754         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
4755
4756 2003-04-24  Adam Fedor  <fedor@gnu.org>
4757
4758         * objc-lang.c: Include "valprint.h"
4759         * Makefile.in (objc-lang.o): Update dependencies.
4760
4761 2003-04-24  Adam Fedor  <fedor@gnu.org>
4762
4763         * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
4764         architecture dependant compilation and mark as unimplemented
4765         (until they get put in the gdbarch vector).
4766
4767 2003-04-23  David Carlton  <carlton@bactrian.org>
4768
4769         * cp-support.c (cp_find_first_component): Accept 'operator' in
4770         more locations.
4771
4772 2003-04-23  Andrew Cagney  <cagney@redhat.com>
4773
4774         * infcall.c (call_function_by_hand): Eliminate redundant
4775         indentation.  Move "saved_async" and "old_cleanups" to where they
4776         are needed.
4777
4778 2003-04-23  Andrew Cagney  <cagney@redhat.com>
4779
4780         * infcall.c (call_function_by_hand): Eliminate the variables "rc"
4781         and "buffer".  Move the "name" code to where it is needed.
4782
4783 2003-04-23  Andrew Cagney  <cagney@redhat.com>
4784
4785         * infcall.c (call_function_by_hand): Move variables "start_sp",
4786         "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
4787         code to ON_STACK switch branch.
4788
4789 2003-04-23  Andrew Cagney  <cagney@redhat.com>
4790
4791         * infcall.c (call_function_by_hand): Make declaration of "i",
4792         "sal", "bpt" and "old_sp" more local to their use.  Delete #if
4793         lint.
4794
4795 2003-04-23  Andrew Cagney  <cagney@redhat.com>
4796
4797         * infcall.c (call_function_by_hand): Delete variable
4798         "n_method_args".  Localize "param_type"'s declaration to the loop
4799         that it is used.  Reinstate code assigning to said variable -
4800         deleted on 2002-06-14.  Rationalize calls to value_args_coerce.
4801         Rationalize code using "param_type".
4802
4803 2003-04-22  Andrew Cagney  <cagney@redhat.com>
4804
4805         * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
4806         compute the breakpoint address.  Only call FIX_CALL_DUMMY when
4807         ON_STACK.  Eliminate the variable "addr".  Do not pass "real_pc"
4808         to DEPRECATED_PUSH_RETURN_ADDRESS.
4809
4810 2003-04-22  Kevin Buettner  <kevinb@redhat.com>
4811
4812         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
4813         on the DWARF2 register number prior to fetching a register.
4814
4815 2003-04-22  J. Brobecker  <brobecker@gnat.com>
4816
4817         * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
4818         Update all the tests using SOFT_FLOAT considering the fact that
4819         this macro was always set to 0.
4820         * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
4821         considering the fact that this macro was always set to 0.
4822         * hppa-tdep.h (hppa_store_return_value): Likewise.
4823         (hppa_extract_return_value): Likewise.
4824
4825 2003-04-22  J. Brobecker  <brobecker@gnat.com>
4826
4827         * config/pa/tm-hppa.h: Remove obsolete code, was used by
4828         the hppa-pro target only.
4829
4830 2003-04-21  J. Brobecker  <brobecker@gnat.com>
4831
4832         Ongoing multi-arch conversion effort for HP/UX:
4833         * config/pa/tm-hppa.h: Move all macro that are no longer
4834         defined now that GDB_MULTI_ARCH is now set to 1 from here...
4835         * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
4836
4837 2003-04-21  J. Brobecker  <brobecker@gnat.com>
4838
4839         * config/pa/tm-hppa.h: Obsolete a section that was only used
4840         for hppa-pro.
4841
4842 2003-04-21  J. Brobecker  <brobecker@gnat.com>
4843
4844         Ongoing multi-arch conversion for HP/UX.
4845         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
4846         if already defined (allows hppa64 to stay non-multiarched for now).
4847         * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
4848
4849 2003-04-21  Andrew Cagney  <cagney@redhat.com>
4850
4851         * frame.c (frame_id_eq): Fail when the code_addr's do not match.
4852
4853 2003-04-21  Andrew Cagney  <cagney@redhat.com>
4854
4855         * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
4856         "i386_num_mmx_regs".
4857
4858 2003-04-21  Andrew Cagney  <cagney@redhat.com>
4859
4860         * infcall.c: New file.
4861         * infcall.h: New file.
4862         * valarith.c: Include "infcall.h".
4863         * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
4864         * eval.c, ada-valprint.c, ada-lang.c: Ditto.
4865         * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
4866         (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
4867         (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
4868         (SFILES): Add "infcall.c"
4869         (COMMON_OBS): Add "infcall.o".
4870         (infcall.o): Specify dependencies.
4871         * value.h (call_function_by_hand): Delete declaration.
4872         * inferior.h (run_stack_dummy): Delete declaration.
4873         * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
4874         (run_stack_dummy): Move to "infcall.c", merged into
4875         call_function_by_hand.
4876         * valops.c (call_function_by_hand): Moved to "infcall.c".
4877         (find_function_addr, value_arg_coerce): Ditto.
4878         (unwindonsignal_p, coerce_float_to_double): Ditto.
4879         (_initialize_valops): Move "set/show coerce-float-to-double", and
4880         "set/show unwindonsignal" commands to "infcall.c".
4881         * v850-tdep.c, target.h: Update comments.
4882         * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
4883         * sh-tdep.c (sh_init_extra_frame_info): Update comments.
4884         (sh64_init_extra_frame_info): Update comments.
4885         * mn10300-tdep.c: Update comments.
4886         * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
4887         * config/sparc/tm-sparc.h: Update comments.
4888         * breakpoint.h: Update comments.
4889         * avr-tdep.c (avr_init_extra_frame_info): Update comments.
4890         * arm-tdep.c: Update comment.
4891
4892 2003-04-19  Mark Kettenis  <kettenis@gnu.org>
4893
4894         * i386-tdep.c (i386_num_register_names): New variable.
4895         (i386_num_mmx_regs): Renamed from mmx_num_regs.
4896         (MM0_REGNUM): Remove redundant parentheses in define.
4897         (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
4898         (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
4899         i386_mxcsr_regnum_p): Remove redundant parentheses.
4900         (i386_register_name): Use i386_num_register_names.
4901
4902         * i386-tdep.c (i386_extract_return_value,
4903         i386_store_return_value): Correct check for availability of
4904         floating-point registers.
4905
4906         * i386-tdep.c (i386_frame_num_args): Remove function.
4907         (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
4908
4909         * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
4910         mmx_regnum_to_fp_regnum.  Adjust all callers.
4911
4912         * i386-tdep.c (i386_get_longjmp_target): Use
4913         TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
4914         and TARGET_CHAR_BIT.  Use extract_typed_address instead of
4915         extract_address.
4916
4917 2003-04-19  Mark Kettenis  <kettenis@gnu.org>
4918
4919         * core-regset.c: Update comments to reflect reality.  Re-order
4920         includes.
4921         (fetch_core_registers): Use switch instead of if.  Remove
4922         redundant prototype.
4923
4924 2003-04-18  Jim Blandy  <jimb@redhat.com>
4925
4926         * s390-tdep.c (s390_frame_align): New function.
4927         (s390_gdbarch_init): Register it with the gdbarch object.
4928
4929 2003-04-17  Richard Henderson  <rth@redhat.com>
4930
4931         * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
4932
4933 2003-04-17  Michael Snyder  <msnyder@redhat.com>
4934             Karen Bennet  <bennet@redhat.com>
4935
4936         Committed by Elena Zannoni  <ezannoni@redhat.com>
4937         * gdb_gcore.sh: New script to create a core dump of a process.
4938
4939 2003-04-17  Elena Zannoni  <ezannoni@redhat.com>
4940
4941         * values.c (value_being_returned): Don't fetch the return
4942         value if the return type is void.
4943
4944 2003-04-17  Jeff Johnston  <jjohnstn@redhat.com>
4945
4946         * thread-db.c: Reindented.
4947
4948 2003-04-17  Jeff Johnston  <jjohnstn@redhat.com>
4949
4950         * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
4951         td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
4952         as types.
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978 2003-04-16  Kevin Buettner  <kevinb@redhat.com>
4979
4980         * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
4981         the size of ``long double'' to 16, instead of 8.
4982
4983 2003-04-16  Mark Kettenis  <kettenis@gnu.org>
4984
4985         * i386-linux-nat.c: Add some whitespace to make things more
4986         readable.
4987         (fetch_register, store_register, fetch_inferior_registers,
4988         store_inferior_registers): Get rid of assignment in if-statement.
4989         (store_register): Fix typo in error message.
4990
4991 2003-04-16  Andrew Cagney  <cagney@redhat.com>
4992
4993         * utils.c (xmmalloc): Always allocate something, matches
4994         libiberty/xmalloc's semantics.
4995         (xmrealloc, xmcalloc): Ditto.
4996
4997 2003-04-16  Andrew Cagney  <cagney@redhat.com>
4998
4999         * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
5000         update comments.
5001         (get_frame_type): Initialize unwind and type when needed.
5002         (get_frame_id, frame_register_unwind): Ditto.
5003
5004 2003-04-16  Andrew Cagney  <cagney@redhat.com>
5005
5006         * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
5007         obsolete.
5008         * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
5009         * sparcl-stub.c: Obsolete file.
5010         * config/sparc/tm-sparclet.h: Obsolete file.
5011         * sparclet-stub.c: Obsolete file.
5012         * sparclet-rom.c: Obsolete file.
5013         * sparcl-tdep.c: Obsolete file.
5014         * config/sparc/tm-sparclite.h: Obsolete file.
5015         * config/sparc/sparclite.mt: Obsolete file.
5016         * config/sparc/sparclet.mt: Obsolete file.
5017         * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
5018         sparc86x-*-* obsolete.
5019
5020 2003-04-15  David Carlton  <carlton@math.stanford.edu>
5021
5022         * Makefile.in (SFILES): Add cp-namespace.c.
5023         (COMMON_OBS): Add cp-namespace.o.
5024         (block.o): Depend on gdb_obstack_h and cp_support_h.
5025         (buildsym.o): Depend on cp_support_h.
5026         (cp-namespace.o): New.
5027         (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
5028         gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
5029         (dwarf2read.o): Depend on cp_support_h.
5030         * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
5031         * dwarf2read.c (process_die): Set processing_has_namespace_info,
5032         processing_current_namespace.
5033         (read_namespace): Update processing_current_namespace; check for
5034         anonymous namespaces.
5035         (dwarf2_name): New function.
5036         (dwarf2_extension): Ditto.
5037         * cp-support.h: Update copyright, contributors.
5038         Add inclusion guards.
5039         Add opaque declaration for structs obstack, block, symbol.
5040         (struct using_direct): New struct.
5041         Add declarations for cp_find_first_component,
5042         cp_entire_prefix_len, processing_has_namespace_info,
5043         processing_current_namespace, cp_is_anonymous,
5044         cp_add_using_directive, cp_initialize_namespace,
5045         cp_finalize_namespace, cp_set_block_scope,
5046         cp_scan_for_anonymous_namespaces.
5047         * cp-namespace.c: New file.
5048         * cp-support.c: Update copyright.
5049         Include ctype.h, gdb_assert.h, gdbcmd.h.
5050         New variable maint_cplus_cmd_list.
5051         (cp_find_first_component): New function.
5052         (cp_entire_prefix_len, maint_cplus_command)
5053         (first_component_command, _initialize_cp_support): Ditto.
5054         * buildsym.c: Include cp-support.h.
5055         New variable using_list.
5056         (add_symbol_to_list): Check for anonymous namespaces.
5057         (finish_block): Set block's scope.
5058         (start_symtab): Initialize C++ namespace support.
5059         (end_symtab): Finalize C++ namespace support.
5060         * block.h: Add opaque declarations for structs
5061         block_namespace_info, using_direct, and obstack.
5062         Add declarations for block_set_scope and block_set_using.
5063         (struct block): Add 'language_specific' member.
5064         (BLOCK_NAMESPACE): New macro.
5065         * block.c: Include gdb_obstack.h and cp-support.h.
5066         (struct block_namespace_info): New struct.
5067         (block_set_scope): New function.
5068         (block_set_using, block_initialize_namespace): Ditto.
5069
5070 2003-04-14  Kevin Buettner  <kevinb@redhat.com>
5071
5072         * solib-svr4.c (svr4_have_link_map_offsets): New function.
5073         (locate_base): Return early if there aren't any link map offsets.
5074         (svr4_solib_create_inferior_hook): Warn if shared library support
5075         is unavailable.
5076
5077 2003-04-14  David Carlton  <carlton@math.stanford.edu>
5078
5079         * symtab.c (symbol_set_names): Add prefix when storing Java names
5080         in hash table.  Fix for PR java/1039.
5081
5082 2003-04-14  David Carlton  <carlton@math.stanford.edu>
5083
5084         * symtab.c (symbol_set_names): Rename 'name' arg to
5085         'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
5086         * symtab.h: Change 'name' argument in declaration of
5087         symbol_set_names to 'linkage_name'.
5088         (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
5089
5090 2003-04-14  Andrew Cagney  <cagney@redhat.com>
5091
5092         * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
5093         return the fully sign-extended register value.
5094         (get_frame_pointer): Ditto.
5095         (mips_pop_frame): Initialize "proc_desc" after checking for a
5096         dummy frame.
5097
5098 2003-04-14  Andrew Cagney  <cagney@redhat.com>
5099
5100         * mips-tdep.c (mips_push_dummy_frame): Delete function.
5101         (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
5102         (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
5103         (mips_push_register): Delete function.
5104         (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
5105         PUSH_FP_REGNUM.
5106
5107 2003-04-14  Jim Blandy  <jimb@redhat.com>
5108
5109         * symmisc.c: #include "gdb_regex.h".
5110         (maintenance_list_symtabs, maintenance_list_psymtabs): New
5111         functions.
5112         * maint.c (maintenance_list_command): New function.
5113         (_initialize_maint_cmds): Register the above as commands.
5114         * symtab.h (maintenance_list_symtabs,
5115         maintenance_list_psymtabs): New declarations.
5116         * cli/cli-cmds.c (maintenancelistlist): New variable.
5117         (init_cmd_lists): Initialize it.
5118         * cli/cli-cmds.h (maintenancelistlist): New declaration.
5119         * gdbcmd.h (maintenancelistlist): New declaration.
5120         * Makefile.in (symmisc.o): Update dependencies.
5121
5122 2003-04-14  Elena Zannoni  <ezannoni@redhat.com>
5123
5124         * s390-nat.c: Include asm/types.h for addr_t.
5125
5126 2003-04-14  Corinna Vinschen  <vinschen@redhat.com>
5127
5128         * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
5129         actually incoming type.
5130
5131 2003-04-13  Andrew Cagney  <cagney@redhat.com>
5132
5133         * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
5134         get_next_frame and get_frame_saved_regs.
5135
5136 2003-04-13  Andrew Cagney  <cagney@redhat.com>
5137
5138         * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
5139         of gdbarch_num_regs.
5140
5141 2003-04-13  Andrew Cagney  <cagney@redhat.com>
5142
5143         * frame.h: Mention what replaced what in "struct frame_info".
5144         * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
5145         deprecated_update_frame_base_hack and
5146         deprecated_update_frame_pc_hack.
5147         * hppa-tdep.c: Ditto.
5148
5149 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
5150
5151         * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
5152         to read_reg and update its comment.  Remove regnum member.
5153         * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
5154         Don't call read_reg when setting in_reg.  Call read_reg to get
5155         the frame base if it's in a register.  Return the register number
5156         on the stack instead of in the context.  Remove extra arguments
5157         to read_reg.
5158         * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
5159         (dwarf2_evaluate_loc_desc): Call value_from_register.  Expect
5160         the register number on the expression stack.
5161         (needs_frame_read_reg): Remove extra arguments.
5162
5163 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
5164
5165         * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
5166         made non-static.
5167         (execute_stack_op): All callers updated.
5168         * dwarf2expr.h: Add prototype for dwarf2_read_address.
5169         * dwarf2loc.c (find_location_expression): New function.
5170         (dwarf_expr_frame_base): Call it.
5171         (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
5172         (dwarf2_tracepoint_var_ref): New function, broken out from
5173         locexpr_tracepoint_var_ref.
5174         (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
5175         Make static.
5176         (loclist_read_variable, loclist_read_needs_frame): New functions.
5177         (loclist_describe_location, loclist_tracepoint_var_ref): New
5178         functions.
5179         (dwarf2_loclist_funcs): New struct location_funcs.
5180         * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
5181         (struct dwarf2_locexpr_baton): Add comments.
5182         (dwarf2_loclist_funcs): New extern.
5183         * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
5184         base_address and base_known.
5185         (dwarf_loc_buffer): New variable.
5186         (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
5187         (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
5188         (dwarf2_has_info): Initialize dwarf_loc_offset.
5189         (dwarf2_build_psymtabs): Read in .debug_loc.
5190         (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
5191         DWARF_LOC_SIZE.
5192         (psymtab_to_symtab_1): Likewise.  Move base address calculation
5193         here, from...
5194         (dwarf2_get_pc_bounds): ... here.  Use the base address from
5195         cu_header.
5196         (dwarf2_symbol_mark_computed): Handle location lists.
5197
5198 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
5199
5200         * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
5201         if the linkage name demangled successfully.
5202
5203 2003-04-13  Mark Kettenis  <kettenis@gnu.org>
5204
5205         * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
5206         disassmbly_flavour): Removed.
5207
5208         * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
5209
5210 2003-04-13  Mark Kettenis  <kettenis@gnu.org>
5211
5212         * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
5213
5214 2003-04-12  Andrew Cagney  <cagney@redhat.com>
5215
5216         * frame.h (struct frame_info): Move definition from here ...
5217         * frame.c (struct frame_info): ... to here.
5218
5219 2003-04-12  Andrew Cagney  <cagney@redhat.com>
5220
5221         * gdbthread.h (save_infrun_state): Delete parameter
5222         "prev_func_start".
5223         (struct thread_info): Delete field "prev_func_start".
5224         (load_infrun_state): Ditto.
5225         * thread.c (load_infrun_state, save_infrun_state): Update.
5226         * infrun.c (prev_func_start): Delete variable.
5227         (context_switch, init_wait_for_inferior): Update.
5228         (stop_stepping, keep_going): Update.
5229
5230 2003-04-12  Andrew Cagney  <cagney@redhat.com>
5231
5232         * gdbarch.sh: Add missing opaque declarations.
5233         * gdbarch.h: Regnerate.
5234         * symtab.h: Add missing opaque declarations.
5235         * value.h, target.h, symfile.h, stabsread.h: Ditto.
5236         * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
5237         * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
5238         * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
5239         * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
5240         * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
5241         * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
5242         * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
5243         * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
5244         * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
5245         * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
5246         * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
5247         * cli/cli-setshow.h, cli/cli-script.h: Ditto.
5248
5249 2003-04-11  Andrew Cagney  <cagney@redhat.com>
5250
5251         * frame.c (get_frame_id): Return this frame's "id".
5252         (legacy_get_prev_frame): Set prev's frame ID code_addr to the
5253         function start.
5254         (legacy_saved_regs_this_id): Replace function body with
5255         internal-error.
5256         (deprecated_frame_xmalloc): Mark the frame ID as valid, use
5257         FRAME_OBSTACK_ZALLOC.
5258         (create_new_frame): Mark the frame ID as valid.
5259
5260 2003-04-11  Alexandre Oliva  <aoliva@redhat.com>
5261
5262         * Makefile.in (libbfd_h): Added missing setting.
5263         * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
5264         according to the selected ABI.
5265
5266 2003-04-11  Jeff Johnston  <jjohnstn@redhat.com>
5267
5268         * gdb_indent.sh: Recognize pid_t and sigset_t as types.
5269
5270 2003-04-11  Andrew Cagney  <cagney@redhat.com>
5271
5272         * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
5273         SAVED_PC_AFTER_CALL.
5274         * gdbarch.h, gdbarch.c: Regenerate.
5275         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5276         * x86-64-tdep.c (x86_64_init_abi): Update.
5277         * vax-tdep.c (vax_gdbarch_init): Update.
5278         * v850-tdep.c (v850_gdbarch_init): Update.
5279         * sparc-tdep.c (sparc_gdbarch_init): Update.
5280         * sh-tdep.c (sh_gdbarch_init): Update.
5281         * s390-tdep.c (s390_gdbarch_init): Update.
5282         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5283         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5284         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5285         * mips-tdep.c (mips_gdbarch_init): Update.
5286         * mcore-tdep.c (mcore_gdbarch_init): Update.
5287         * m68k-tdep.c (m68k_gdbarch_init): Update.
5288         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5289         * ia64-tdep.c (ia64_gdbarch_init): Update.
5290         (ia64_saved_pc_after_call): Update declaration.
5291         * i386ly-tdep.c (i386lynx_init_abi): Update.
5292         * i386-tdep.c (i386_gdbarch_init): Update.
5293         * hppa-tdep.c (hppa_gdbarch_init): Update.
5294         * h8300-tdep.c (h8300_gdbarch_init): Update.
5295         * frv-tdep.c (frv_gdbarch_init): Update.
5296         * cris-tdep.c (cris_gdbarch_init): Update.
5297         * avr-tdep.c (avr_gdbarch_init): Update.
5298         * arm-tdep.c (arm_gdbarch_init): Update.
5299         * alpha-tdep.c (alpha_gdbarch_init): Update.
5300         * ns32knbsd-nat.c (frame_num_args): Update.
5301         * ns32k-tdep.c (umax_frame_num_args): Update.
5302         * mips-tdep.c (mips_init_frame_pc_first): Update.
5303         * infrun.c (step_over_function): Update.
5304         * i386-linux-tdep.c (skip_hurd_resolver): Update.
5305         * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
5306         * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
5307         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
5308         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
5309         * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
5310         * arm-linux-tdep.c (skip_hurd_resolver): Update.
5311         * arch-utils.c (init_frame_pc_default): Update.
5312         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
5313         * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
5314         declaration.
5315
5316 2003-04-11  Andrew Cagney  <cagney@redhat.com>
5317
5318         * i387-tdep.c: Update copyright.
5319         (i387_to_double): Delete function.
5320         (double_to_i387): Delete function.
5321
5322 2003-04-10  Andrew Cagney  <cagney@redhat.com>
5323
5324         * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
5325         frame's function's address.  Simplify.
5326         (d10v_frame_unwind_cache): Check that the frame's function is
5327         non-zero.
5328
5329 2003-04-10  Jim Blandy  <jimb@redhat.com>
5330
5331         * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
5332         call to set_gdbarch_deprecated_push_arguments.
5333
5334 2003-04-10  Andrew Cagney  <cagney@redhat.com>
5335
5336         * frame.c (fprint_frame_id): New function.
5337         (fprint_frame_type, fprint_frame): New function.
5338         (frame_pc_unwind, frame_func_unwind): Add/update trace code.
5339         (create_sentinel_frame, get_frame_id): Ditto.
5340         (frame_id_p, frame_id_eq): Ditto.
5341         (frame_id_inner, create_new_frame): Ditto.
5342         (legacy_get_prev_frame, get_prev_frame): Ditto.
5343         (deprecated_update_frame_pc_hack): Ditto.
5344         (frame_register_unwind): Ditto.
5345         (deprecated_update_frame_base_hack): Ditto.
5346
5347 2003-04-10  Corinna Vinschen  <vinschen@redhat.com>
5348
5349         * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
5350         (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
5351         frame_chain function.
5352         * Makefile.in: Add dependencies due to above change.
5353
5354 2003-04-10  Corinna Vinschen  <vinschen@redhat.com>
5355
5356         * blockframe.c (legacy_frame_chain_valid): Move call to
5357         DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
5358         inside_entry_file.
5359
5360 2003-04-09  Andrew Cagney  <cagney@redhat.com>
5361
5362         * frame.h (struct frame_id): Replace "pc" and "base" with
5363         "stack_addr" and "code_addr".  Update comments.
5364         (frame_id_build): Update parameter names and comment.
5365         (struct frame_info): Replace "id_p" and "id" with "this_id".
5366         * dummy-frame.c (dummy_frame_this_id): Update.
5367         * breakpoint.c (print_one_breakpoint): Update.
5368         * frame.c (get_frame_id): Update.
5369         (get_frame_base, frame_id_build): Update.
5370         (create_sentinel_frame, legacy_get_prev_frame): Update.
5371         (deprecated_update_frame_base_hack): Update.
5372         (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
5373         (frame_id_inner): Ditto.
5374
5375 2003-04-09  Andrew Cagney  <cagney@redhat.com>
5376
5377         * defs.h (gdb_print_host_address): Make "addr" parameter a
5378         pointer constant.
5379         * utils.c (gdb_print_host_address): Update.
5380
5381 2003-04-09  Kevin Buettner  <kevinb@redhat.com>
5382
5383         * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
5384         register number for R0 is 0.
5385
5386 2003-04-09  J. Brobecker  <brobecker@gnat.com>
5387
5388         * frame.h (struct gdbarch): Add opaque structure definition
5389         to avoid a compilation warning on LynxOS 4.0.
5390
5391 2003-04-09  Andrew Cagney  <cagney@redhat.com>
5392
5393         * frame.h (struct frame_info): Delete field "pc".  Replace
5394         "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
5395         structure.
5396         * frame.c (frame_pc_unwind): Update.
5397         (create_sentinel_frame): Do not set "pc".
5398         (get_prev_frame): Do not set "pc".  Use frame_pc_unwind.
5399         (get_frame_pc): Call frame_pc_unwind.
5400         (deprecated_update_frame_pc_hack): Update.
5401         (create_new_frame): Use "pc" not "->pc".
5402
5403 2003-04-09  Andrew Cagney  <cagney@redhat.com>
5404
5405         * frame.c (get_frame_id): Eliminate code updating "frame".
5406         (legacy_get_prev_frame): Ditto.
5407         (get_frame_base): Return id.base directly.
5408         (deprecated_update_frame_base_hack): Update "id.base".
5409         * frame.h (struct frame_info): Delete field "frame".
5410
5411 2003-04-09  Andrew Cagney  <cagney@redhat.com>
5412
5413         * NEWS: Mention that the "Sequent family" is obsolete.
5414         * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
5415         i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
5416         * configure.host: Obsolete i[3456]86-sequent-bsd*,
5417         i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
5418         * config/i386/tm-ptx4.h: Obsolete file.
5419         * config/i386/tm-ptx.h: Obsolete file.
5420         * symm-tdep.c: Obsolete file.
5421         * config/i386/symmetry.mt: Obsolete file.
5422         * config/i386/tm-symmetry.h: Obsolete file.
5423         * symm-nat.c: Obsolete file.
5424         * config/i386/nm-symmetry.h: Obsolete file.
5425         * config/i386/xm-symmetry.h: Obsolete file.
5426         * config/i386/symmetry.mh: Obsolete file.
5427         * config/i386/nm-ptx4.h: Obsolete file.
5428         * config/i386/ptx4.mh: Obsolete file.
5429         * config/i386/ptx.mt: Obsolete file.
5430         * config/i386/ptx.mh: Obsolete file.
5431         * config/i386/xm-ptx4.h: Obsolete file.
5432         * config/i386/xm-ptx.h: Obsolete file.
5433
5434 2003-04-09  Andrew Cagney  <cagney@redhat.com>
5435
5436         Obsolete mips*-*-mach3*.
5437         * NEWS: Mention that mips*-*-mach3* is obsolete.
5438         * m3-nat.c: Obsolete file.
5439         * config/nm-m3.h: Obsolete file.
5440         * config/mips/tm-mipsm3.h: Obsolete file.
5441         * config/mips/mipsm3.mt: Obsolete file.
5442         * config/mips/mipsm3.mh: Obsolete file.
5443         * config/mips/xm-mipsm3.h: Obsolete file.
5444         * mipsm3-nat.c: Obsolete file.
5445         * configure.host: Obsolete mips-dec-mach3*.
5446         * configure.tgt: Obsolete mips*-*-mach3*.
5447
5448 2003-04-09  Andrew Cagney  <cagney@redhat.com>
5449
5450         * doublest.h: Update copyright.
5451         (deprecated_store_floating, deprecated_extract_floating): Rename
5452         store_floating and extract_floating.  Update comments.
5453         * doublest.c: Update copyright.
5454         (extract_floating_by_length): Replace extract_floating.
5455         (store_floating_by_length): Replace store_floating.
5456         (deprecated_extract_floating): New function.
5457         (deprecated_store_floating): New function.
5458         (extract_typed_floating): Call extract_floating_by_length.
5459         (store_typed_floating): Call store_floating_by_length.
5460         * x86-64-tdep.c (x86_64_store_return_value): Update.
5461         * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
5462         (sh64_extract_return_value): Update.
5463         (sh_sh4_register_convert_to_virtual): Update.
5464         (sh_sh64_register_convert_to_virtual): Update.
5465         (sh_sh4_register_convert_to_raw): Update.
5466         (sh_sh64_register_convert_to_raw): Update.
5467         * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
5468         (rs6000_register_convert_to_raw): Update.
5469         * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
5470         (ia64_register_convert_to_raw): Update.
5471         * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
5472         (REGISTER_CONVERT_TO_VIRTUAL): Update.
5473         * arm-linux-tdep.c (arm_linux_push_arguments): Update.
5474         * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
5475         (alpha_register_convert_to_raw): Update.
5476
5477 2003-04-08  Andrew Cagney  <cagney@redhat.com>
5478
5479         * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
5480         * gdbarch.h, gdbarch.c: Re-generate.
5481         * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
5482         (d10v_gdbarch_init): Do not set saved_pc_after_call.
5483         * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
5484         conditionally, use frame_pc_unwind as an alternative.  Add
5485         comments.
5486         * arch-utils.c (init_frame_pc_default): Only call
5487         SAVED_PC_AFTER_CALL when available.
5488
5489 2003-04-08  Elena Zannoni  <ezannoni@redhat.com>
5490
5491         * infrun.c (stop_soon): Rename from stop_soon_quietly.
5492         (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
5493         (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
5494         (start_remote): Ditto.
5495         (handle_inferior_event): Ditto.
5496         (save_inferior_status): Ditto.
5497         (restore_inferior_status): Ditto.
5498         * infcmd.c (attach_command): Ditto.
5499         * fork-child.c (startup_inferior): Ditto.
5500         * inferior.h (stop_soon): Rename from stop_soon_quietly.
5501         * alpha-tdep.c (heuristic_proc_start): Ditto.
5502         * mips-tdep.c (heuristic_proc_start): Ditto.
5503         * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
5504         * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
5505         * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
5506         * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
5507         * remote-vx.c (vx_create_inferior): Ditto.
5508
5509 2003-04-08  Elena Zannoni  <ezannoni@redhat.com>
5510
5511         * infrun.c (stop_soon_quietly): Make it an enum, to better
5512         override the default behavior of handle_inferior_event.
5513         (clear_proceed_status): Update uses of stop_soon_quietly to
5514         reflect that it is now an enum.
5515         (start_remote): Ditto.
5516         (handle_inferior_event): Change logic a bit if stop_soon_quietly
5517         is set to handle the new GNU/Linux kernel behavior for
5518         attach/sigstop.  Update uses of stop_soon_quietly.
5519         * inferior.h (enum stop_kind): New enum.
5520         * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
5521         Reset normal handle_inferior_event behavior, afterwards.
5522         * fork-child.c (startup_inferior): Update.
5523         * alpha-tdep.c (heuristic_proc_start): Update.
5524         * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
5525         * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
5526         * solib-osf.c (osf_solib_create_inferior_hook): Update.
5527         * solib-irix.c (irix_solib_create_inferior_hook): Update.
5528         * remote-vx.c (vx_create_inferior): Update.
5529         * mips-tdep.c (heuristic_proc_start): Update.
5530
5531 2003-04-07  Elena Zannoni  <ezannoni@redhat.com>
5532
5533         * disasm.c (dump_insns):  Move variables inside loop, or they will
5534         be freed more than once, causing wild memory corruptions.
5535         (gdb_disassembly): Look for the substring "-thread",
5536         instead of "-threads" in the target name, to make sure to find
5537         the 'multi-thread' target.  Also, make sure we do the right thing
5538         with the "core" target.
5539
5540 2003-04-07  Kevin Buettner  <kevinb@redhat.com>
5541
5542         * mips-tdep.c (mips_print_fp_register): New function, created from
5543         do_fp_register_row().  Registers are now (also) printed as hex.
5544         Only one register is printed per row.
5545         (mips_print_register, do_fp_register_row): Print floating point
5546         registers with mips_print_fp_register().
5547
5548 2003-04-06  Andrew Cagney  <cagney@redhat.com>
5549
5550         * valprint.h (inspect_it): Add extern declaration.
5551         * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
5552         (selectors_info, classes_info): Ditto.
5553         (find_objc_msgcall): Fix indentation.
5554         (objc_printstr): Delete extern declarations.
5555
5556         * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
5557
5558 2003-04-06  Andrew Cagney  <cagney@redhat.com>
5559
5560         * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
5561         Update comment.
5562         * frame.c (legacy_saved_regs_this_id): Update.
5563         (legacy_get_prev_frame): Update.
5564         * xstormy16-tdep.c: Update comment.
5565         * sparc-tdep.c (sparc_frame_chain): Update comment.
5566         * blockframe.c (legacy_frame_chain_valid): Update.
5567
5568 2003-04-06  Andrew Cagney  <cagney@redhat.com>
5569
5570         * valprint.c (val_print_type_code_int): Delete #ifdef
5571         PRINT_TYPELESS_INTEGER code.
5572
5573         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
5574         (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
5575         multi-arch definition.
5576         * gdbarch.h: Re-generate.
5577
5578 2003-04-05  Andrew Cagney  <cagney@redhat.com>
5579
5580         Eliminate FRAME_FIND_SAVED_REGS.
5581         * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
5582         Change FSR parameter to a pointer.
5583         * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
5584         Assume FSR parameter is a pointer.
5585         * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
5586         Make fsr a pointer.
5587         * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
5588         (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs.  Make
5589         saved_regs a pointer.
5590         (hppa_frame_saved_pc): Ditto.
5591         (find_dummy_frame_regs): Make frame_saved_regs a pointer
5592         (hppa_pop_frame): Call hppa_frame_init_saved_regs.  Make fsr a
5593         pointer.
5594         (restore_pc_queue): Make fsr a pointer.
5595         (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
5596         (hppa_frame_chain): Make saved_regs a pointer, call
5597         hppa_frame_init_saved_regs.
5598         * sparc-tdep.c: Include "gdb_assert.h".
5599         (sparc_frame_find_saved_regs): Replace internal_error with
5600         gdb_assert.
5601         * remote-vxsparc.c (vx_read_register): Delete reference to
5602         FRAME_FIND_SAVED_REGS.
5603         * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
5604         * gdbarch.h: Regenerate.
5605         * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
5606         (deprecated_get_frame_saved_regs): Delete declaration.
5607         (struct frame_saved_regs): Delete definition.
5608         * frame.c (deprecated_get_frame_saved_regs): Delete function.
5609         * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
5610         (hppa_frame_find_saved_regs): Delete declaration.
5611         (FRAME_FIND_SAVED_REGS): Delete macro.
5612         (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
5613         * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
5614         FRAME_FIND_SAVED_REGS in comment.
5615
5616 2003-04-05  Andrew Cagney  <cagney@redhat.com>
5617
5618         * frame.c (frame_func_unwind, get_frame_func): New functions.
5619         * frame.h (get_frame_func, frame_func_unwind): Declare.
5620         (struct frame_info): Add field "prev_func" for caching the
5621         previous frame's function address.
5622         * arm-tdep.c (arm_frameless_function_invocation): Combine
5623         get_pc_function_start and get_frame_pc into get_frame_func.
5624         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
5625         (sh64_nofp_frame_init_saved_regs): Ditto.
5626         * s390-tdep.c (s390_function_start): Ditto.
5627         * rs6000-tdep.c (rs6000_pop_frame): Ditto.
5628         (rs6000_frameless_function_invocation): Ditto.
5629         (rs6000_frame_saved_pc): Ditto.
5630         * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
5631         * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
5632         * i386-tdep.c (i386_frameless_signal_p): Ditto.
5633         (i386_frame_init_saved_regs): Ditto.
5634         * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
5635         * d10v-tdep.c (d10v_frame_unwind_cache): Combine
5636         get_pc_function_start and frame_pc_unwind into frame_func_unwind.
5637         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
5638         * blockframe.c (frameless_look_for_prologue): Ditto.
5639
5640 2003-04-05  Andrew Cagney  <cagney@redhat.com>
5641
5642         * frame.c (legacy_get_prev_frame): Link prev to next at the
5643         function start.  Update comments.
5644
5645 2003-04-05  Andrew Cagney  <cagney@redhat.com>
5646
5647         * frame.c (get_frame_id): Update comment.
5648         (legacy_get_prev_frame): Update comment.
5649         * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
5650         * gdbarch.h: Regenerate.
5651         * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
5652         * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
5653
5654 2003-04-05  Andrew Cagney  <cagney@redhat.com>
5655
5656         * stack.c (print_frame_info): Use get_frame_pc.
5657
5658 2003-04-04  Andrew Cagney  <cagney@redhat.com>
5659
5660         * frame.c (get_prev_frame): Do not call frame_type_from_pc.  Set
5661         the frame's type from the unwinder.
5662         (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
5663         (create_new_frame, legacy_get_prev_frame): When the unwinder's
5664         type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
5665         (get_frame_base_address): Use get_frame_type.
5666         (get_frame_locals_address, get_frame_args_address): Ditto.
5667         (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
5668         * frame.h (enum frame_type): Add UNKNOWN_FRAME.
5669         (struct frame_info): Add comment explaining why the frame contains
5670         a "type" field.
5671         * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
5672         * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
5673         * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
5674         NORMAL_FRAME.
5675         * frame-unwind.h: Include "frame.h".
5676         (struct frame_unwind): Add "type" field.
5677         * Makefile.in (frame_unwind_h): Add $(frame_h).
5678
5679 2003-04-04  Andrew Cagney  <cagney@redhat.com>
5680
5681         * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
5682         * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
5683         * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
5684         get_frame_base.
5685         (d10v_unwind_dummy_id): Use frame_id_build.
5686         * frame.c (find_frame_sal): Use get_frame_pc.
5687         (create_new_frame): Use deprecated_update_frame_pc_hack and
5688         deprecated_update_frame_base_hack.
5689         (create_sentinel_frame): Add comment about ->pc going away.
5690         (get_prev_frame): Add comment about ->pc going away.
5691         (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
5692         frame_id_build, deprecated_update_frame_pc_hack and
5693         deprecated_update_frame_base_hack.
5694         (select_frame): Use get_frame_pc.
5695         (legacy_saved_regs_this_id): Use frame_id_build.
5696
5697 2003-04-04  Elena Zannoni  <ezannoni@redhat.com>
5698
5699         * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
5700         signed integer case.
5701         (classify_argument): Handle enumerations and references.
5702
5703 2003-04-04  Andrew Cagney  <cagney@redhat.com>
5704
5705         * frame.c (create_sentinel_frame): Initialize the sentinel frame's
5706         ID to NULL.
5707
5708 2003-04-01  Adam Fedor  <fedor@gnu.org>
5709
5710         * gdb/objc-lang.c (selectors_info): Replace calls to
5711         SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
5712         SYMBOL_NATURAL_NAME.
5713         (classes_info, find_methods): Likewise.
5714
5715 2003-04-03  Kevin Buettner  <kevinb@redhat.com>
5716
5717         * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
5718         ``mach'' to the value determined by bfd_default_set_arch_mach().
5719
5720 2003-04-02  Bob Rossi  <bob_rossi@cox.net>
5721
5722         * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
5723         (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
5724         (mi-cmd-file.o): Update dependencies.
5725
5726 2003-04-01  Kevin Buettner  <kevinb@redhat.com>
5727
5728         * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
5729         (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
5730
5731 2003-04-01  Adam Fedor  <fedor@gnu.org>
5732
5733         * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
5734         * language.h (struct language_defn): Add la_demangle.
5735         (language_demangle): Declare.
5736         * language.c (language_demangle): New function.
5737         (unk_lang_demangle): Likewise.
5738         (unknown_language_defn, auto_language_defn, local_language_defn):
5739         Add ukn_lang_demangle.
5740         * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
5741         * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
5742         * c-lang.c (c_language_defn, asm_language_defn): Likewise.
5743         (cplus_language_defn): Add cplus_demangle for la_demangle element.
5744         * jv-lang.c (java_demangle): New function
5745         (java_language_defn): Use it for la_demangle element.
5746         * objc-lang.c (objc_demangle): Add options argument
5747         (objc_language_defn): Use objc_demangle for la_demangle element.
5748         * maint.c (maintenance_demangle): Replace switch with
5749         call to language_demangle.
5750         * utils.c (fprintf_symbol_filtered): Likewise.
5751
5752 2003-04-01  Andrew Cagney  <cagney@redhat.com>
5753
5754         * printcmd.c (print_frame_nameless_args): Delete #ifdef
5755         NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
5756         PRINT_TYPELESS_INTEGER.
5757         * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
5758         PUSH_RETURN_ADDRESS.
5759
5760 2003-04-01  Andrew Cagney  <cagney@redhat.com>
5761
5762         * Makefile.in (d10v-tdep.o): Update dependencies.
5763         * d10v-tdep.c: Include "frame-base.h".
5764         (d10v_frame_unwind): Make constant.
5765         (d10v_frame_base_address): New function.
5766         (d10v_frame_base): New variable.
5767         (d10v_gdbarch_init): Set frame_base default.
5768         (struct d10v_unwind_cache): Add the field "prev_sp".  Update
5769         comment for base.
5770         (d10v_frame_unwind_cache): Set and use "prev_sp".
5771         (d10v_frame_this_id): Use the previous frame's inner most stack
5772         address and this frame's func address for the frame ID.  Use
5773         frame_id_build.  Don't analyze beyond the current instruction.
5774
5775 2003-04-01  Andrew Cagney  <cagney@redhat.com>
5776
5777         * frame.h (get_frame_locals_address, get_frame_args_address):
5778         Refer to the base address, instead of the address of the first
5779         local or parameter.
5780
5781 2003-04-01  Andrew Cagney  <cagney@redhat.com>
5782
5783         Add frame debug info addresses:
5784         * frame-base.c: New file.
5785         * frame-base.h: New file.
5786         * frame.h (struct frame_base): Add opaque declaration.
5787         (get_frame_base): Update comment.
5788         (get_frame_base_address): Declare.
5789         (get_frame_locals_address): Declare.
5790         (get_frame_args_address): Declare.
5791         (struct frame_info): Add "base" and "base_cache".  Update
5792         comments on the unwinder.
5793         * frame.c: Include "frame-base.h".
5794         (get_frame_locals_address): New function.
5795         (get_frame_base_address): New function.
5796         (get_frame_args_address): New function.
5797         * findvar.c (read_var_value): Use get_frame_locals_address and
5798         get_frame_args_address.
5799         * stack.c (frame_info): Use get_frame_locals_address and
5800         get_frame_args_address.
5801         (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
5802         moved to "frame-base.c".
5803         * printcmd.c (print_frame_nameless_args): Ditto.
5804         * symtab.h (address_class): Update comments.
5805         * dwarf2loc.c (dwarf_expr_frame_base): Add note about
5806         get_frame_base_address.
5807         * dwarf2expr.c (execute_stack_op): Ditto.
5808         * Makefile.in (frame_base_h): Define.
5809         (frame.o): Update dependencies.
5810         (frame-base.o): Add dependencies.
5811         (SFILES): Add frame-base.c.
5812         (COMMON_OBS): Add frame-base.o.
5813
5814 2003-04-01  Andrew Cagney  <cagney@redhat.com>
5815
5816         * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
5817         CALL_DUMMY_LENGTH): Ditto.
5818         * gdbarch.c: Re-generate.
5819         * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
5820         (CALL_DUMMY_LENGTH): Delete macro.
5821         * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
5822         * arm-tdep.c (arm_gdbarch_init): Ditto.
5823         * avr-tdep.c (avr_gdbarch_init): Ditto.
5824         * cris-tdep.c (cris_gdbarch_init): Ditto.
5825         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5826         * frv-tdep.c (frv_gdbarch_init): Ditto.
5827         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5828         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5829         * i386-tdep.c (i386_gdbarch_init): Ditto.
5830         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5831         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5832         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5833         * mips-tdep.c (mips_gdbarch_init): Ditto.
5834         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5835         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5836         * s390-tdep.c (s390_gdbarch_init): Ditto.
5837         * sh-tdep.c (sh_gdbarch_init): Ditto.
5838         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5839         * v850-tdep.c (v850_gdbarch_init): Ditto.
5840         * vax-tdep.c (vax_gdbarch_init): Ditto.
5841         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
5842
5843 2003-04-01  Corinna Vinschen  <vinschen@redhat.com>
5844
5845         * frame.c (get_prev_frame): Disable call to inside_entry_file().
5846
5847 2003-04-01  Andrew Cagney  <cagney@redhat.com>
5848
5849         * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
5850         (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
5851         * gdbarch.h, gdbarch.c: Re-generate.
5852         * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
5853         (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
5854         * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
5855         * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
5856         (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
5857         * infcmd.c (run_stack_dummy): Simplify assuming
5858         CALL_DUMMY_BREAKPOINT_OFFSET_P.
5859         * infrun.c (handle_inferior_event): Ditto.
5860         * alpha-tdep.c (alpha_gdbarch_init): Do not set
5861         call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
5862         * arm-tdep.c (arm_gdbarch_init): Ditto.
5863         * avr-tdep.c (avr_gdbarch_init): Ditto.
5864         * cris-tdep.c (cris_gdbarch_init): Ditto.
5865         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5866         * frv-tdep.c (frv_gdbarch_init): Ditto.
5867         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5868         * i386-tdep.c (i386_gdbarch_init): Ditto.
5869         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5870         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5871         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5872         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5873         * mips-tdep.c (mips_gdbarch_init): Ditto.
5874         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5875         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5876         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5877         * s390-tdep.c (s390_gdbarch_init): Ditto.
5878         * sh-tdep.c (sh_gdbarch_init): Ditto.
5879         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5880         * v850-tdep.c (v850_gdbarch_init): Ditto.
5881         * vax-tdep.c (vax_gdbarch_init): Ditto.
5882         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
5883
5884 2003-04-01  Daniel Jacobowitz  <drow@mvista.com>
5885
5886         * symfile.c (symfile_relocate_debug_section): Update call to
5887         bfd_simple_get_relocated_section_contents.
5888
5889 2003-03-31  Andrew Cagney  <cagney@redhat.com>
5890
5891         * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
5892         * gdbarch.h, gdbarch.c: Regenerate.
5893         * inferior.h (FIX_CALL_DUMMY): Delete macro.
5894         * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
5895         available.
5896         * frame.h (generic_fix_call_dummy): Delete declaration.
5897         * dummy-frame.h: Update comment.
5898         * dummy-frame.c (generic_fix_call_dummy): Delete function.
5899         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5900         fix_call_dummy.
5901         * sh-tdep.c (sh_gdbarch_init): Ditto.
5902         * s390-tdep.c (s390_gdbarch_init): Ditto.
5903         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5904         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5905         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5906         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5907         * i386-tdep.c (i386_gdbarch_init): Ditto.
5908         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5909         * frv-tdep.c (frv_gdbarch_init): Ditto.
5910         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5911         * cris-tdep.c (cris_gdbarch_init): Ditto.
5912         * avr-tdep.c (avr_gdbarch_init): Ditto.
5913         * arm-tdep.c (arm_gdbarch_init): Ditto.
5914
5915 2003-03-31  J. Brobecker  <brobecker@gnat.com>
5916
5917         * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
5918         (INIT_FRAME_AP): Likewise.
5919         (EXTRA_FRAME_INFO): Likewise.
5920
5921 2003-03-31  Andrew Cagney  <cagney@redhat.com>
5922
5923         * gdbarch.sh: Include "symfile.h".
5924         (CALL_DUMMY_ADDRESS): Default to entry_point_address.
5925         * gdbarch.h, gdbarch.c: Re-generate.
5926         * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
5927         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5928         call_dummy_address, the default is at entry_point_address.
5929         * v850-tdep.c (v850_gdbarch_init): Ditto.
5930         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5931         * sh-tdep.c (sh_gdbarch_init): Ditto.
5932         * s390-tdep.c (s390_gdbarch_init): Ditto.
5933         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5934         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5935         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5936         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5937         * i386-tdep.c (i386_gdbarch_init): Ditto.
5938         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5939         * frv-tdep.c (frv_gdbarch_init): Ditto.
5940         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5941         * cris-tdep.c (cris_gdbarch_init): Ditto.
5942         * arm-tdep.c (arm_gdbarch_init): Ditto.
5943
5944 2003-03-31  Andrew Cagney  <cagney@redhat.com>
5945
5946         * gdbarch.sh (CALL_DUMMY_P): Delete.
5947         * gdbarch.h, gdbarch.c: Re-generate.
5948         * inferior.h (CALL_DUMMY_P): Delete macro.
5949         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5950         * vax-tdep.c (vax_gdbarch_init): Update.
5951         * v850-tdep.c (v850_gdbarch_init): Update.
5952         * sparc-tdep.c (sparc_gdbarch_init): Update.
5953         * sh-tdep.c (sh_gdbarch_init): Update.
5954         * s390-tdep.c (s390_gdbarch_init): Update.
5955         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5956         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5957         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5958         * mips-tdep.c (mips_gdbarch_init): Update.
5959         * mcore-tdep.c (mcore_gdbarch_init): Update.
5960         * m68k-tdep.c (m68k_gdbarch_init): Update.
5961         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5962         * ia64-tdep.c (ia64_gdbarch_init): Update.
5963         * i386-tdep.c (i386_gdbarch_init): Update.
5964         * h8300-tdep.c (h8300_gdbarch_init): Update.
5965         * frv-tdep.c (frv_gdbarch_init): Update.
5966         * d10v-tdep.c (d10v_gdbarch_init): Update.
5967         * cris-tdep.c (cris_gdbarch_init): Update.
5968         * breakpoint.c (deprecated_frame_in_dummy): Update.
5969         * avr-tdep.c (avr_gdbarch_init): Update.
5970         * alpha-tdep.c (alpha_gdbarch_init): Update.
5971         * arm-tdep.c (arm_gdbarch_init): Update.
5972         * dummy-frame.c (dummy_frame_this_id): Update comments.
5973         * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
5974         * frame.c (legacy_get_prev_frame): Ditto.
5975         * valops.c (call_function_by_hand): Delete function.
5976         (hand_function_call): Rename to call_function_by_hand
5977
5978 2003-03-30  Andrew Cagney  <cagney@redhat.com>
5979
5980         2002-11-10 Klee Dienes <kdienes@apple.com>
5981         * value.h (struct value): Update comment.
5982
5983 2003-03-30  Andrew Cagney  <cagney@redhat.com>
5984
5985         * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
5986         D10V_FP_REGNUM.
5987         (d10v_gdbarch_init): Do not set fp_regnum.
5988
5989         * frame.c (get_frame_base): Force ID initialization.
5990         (get_prev_frame): Move computation of the frame ID from here ...
5991         (get_frame_id): ... to here.
5992         (legacy_get_prev_frame): Mark the frame ID as valid.
5993         * frame.h (struct frame_info): Add field "id_p".
5994
5995 2003-03-30  Mark Kettenis  <kettenis@gnu.org>
5996
5997         * i386-tdep.c (i386_store_struct_return): Removed.
5998         (i386_gdbarch_init): Don't set deprecated_store_struct_return.
5999
6000 2003-03-30  Andrew Cagney  <cagney@redhat.com>
6001
6002         * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
6003         * gdbarch.h, gdbarch.c: Regenerate.
6004         * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
6005         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6006         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6007         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6008         * i386-tdep.c (i386_gdbarch_init): Ditto.
6009         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6010         * cris-tdep.c (cris_gdbarch_init): Ditto.
6011         * vax-tdep.c (vax_gdbarch_init): Ditto.
6012         * s390-tdep.c (s390_gdbarch_init): Ditto.
6013         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6014         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6015         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6016         * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
6017         * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
6018         * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
6019         * sparc-tdep.c (sparc_gdbarch_init): Update.
6020         * sh-tdep.c (sh_gdbarch_init): Update.
6021         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6022         * mips-tdep.c (mips_gdbarch_init): Update.
6023         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6024         * ia64-tdep.c (ia64_gdbarch_init): Update.
6025         * frv-tdep.c (frv_gdbarch_init): Update.
6026         * avr-tdep.c (avr_gdbarch_init): Update.
6027         * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
6028         DEPRECATED_DUMMY_WRITE_SP.  Call when the method is available,
6029         instead of when push_dummy_call is not available.
6030
6031 2003-03-30  Andrew Cagney  <cagney@redhat.com>
6032
6033         * infttrace.c: Include "gdbthread.h".
6034         (parent_attach_all): Fix function signature.
6035         (call_ptrace): Update call.
6036         * Makefile.in (infttrace.o): Update dependencies.
6037
6038 2003-03-30  Andrew Cagney  <cagney@redhat.com>
6039
6040         * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
6041         PUSH_RETURN_ADDRESS.
6042         * gdbarch.h, gdbarch.c: Regenerate.
6043         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6044         * x86-64-tdep.c (x86_64_init_abi): Update.
6045         * v850-tdep.c (v850_gdbarch_init): Update.
6046         * sparc-tdep.c (sparc_gdbarch_init): Update.
6047         * sh-tdep.c (sh_gdbarch_init): Update.
6048         * s390-tdep.c (s390_gdbarch_init): Update.
6049         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6050         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6051         * mips-tdep.c (mips_gdbarch_init): Update.
6052         * mcore-tdep.c (mcore_gdbarch_init): Update.
6053         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6054         * ia64-tdep.c (ia64_gdbarch_init): Update.
6055         * i386-tdep.c (i386_gdbarch_init): Update.
6056         * h8300-tdep.c (h8300_gdbarch_init): Update.
6057         * frv-tdep.c (frv_gdbarch_init): Update.
6058         * cris-tdep.c (cris_gdbarch_init): Update.
6059         * avr-tdep.c (avr_gdbarch_init): Update.
6060         * arm-tdep.c (arm_gdbarch_init): Update.
6061         * valops.c (hand_function_call): Update.
6062
6063 2003-03-29  Andrew Cagney  <cagney@redhat.com>
6064
6065         * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
6066         sizeof_call_dummy_words.
6067         * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
6068         define.
6069         * gdbarch.h: Regenerate.
6070
6071 2003-03-29  Andrew Cagney  <cagney@redhat.com>
6072
6073         * infttrace.h: New file.
6074         * hpread.c: Include "gdb_assert.h" and "somsolib.h".
6075         (hpread_get_textlow): Detect an uninitialized dn_bufp.
6076         (hpread_read_doc_function_type): Detect an initialized type1.
6077         (hpread_quick_traverse): Initialize mod_name_string.
6078         * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
6079         (som_solib_get_solib_by_pc): Declare.
6080         (so_lib_thread_start_addr): Declare.
6081         (no_shared_libraries): Declare.
6082         * somread.c (init_import_symbols): Make static.  Add forward
6083         declaration.
6084         * config/pa/nm-hppah.h: Include "infttrace.h" for
6085         parent_attach_all.
6086         (hppa_insert_hw_watchpoint): Declare.
6087         (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
6088         * hppah-nat.c: Include "gdb_string.h".
6089         (parent_attach_all): Delete extern declaration, moved to
6090         "infttrace.h".
6091         (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
6092         int.
6093         (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
6094         * Makefile.in (infttrace_h): Define.
6095         (hpread.o): Update dependencies.
6096         (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
6097         * hppa-hpux-tdep.c: Include "gdb_string.h".
6098         * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
6099         * infrun.c (handle_inferior_event): Always initialize
6100         stepped_after_stopped_by_watchpoint.  Add default and remove
6101         fallthrough in switch statement.
6102         * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
6103         parameter to int.
6104         (hppa_remove_hw_watchpoint): Ditto.
6105
6106 2003-03-29  Andrew Cagney  <cagney@redhat.com>
6107
6108         * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
6109         offset.
6110
6111 2003-03-29  Richard Earnshaw  <rearnsha@arm.com>
6112
6113         * arm-tdep.c (arm_push_arguments): Delete.
6114         (struct stack_item): New type.
6115         (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
6116         (arm_store_struct_return): Delte.
6117         (arm_gdbarch_init): Register arm_push_dummy_call.  Don't register
6118         arm_push_arguments or arm_store_struct_return.
6119
6120 2003-03-28  Andrew Cagney  <cagney@redhat.com>
6121
6122         * Makefile.in (d10v-tdep.o): Update dependencies.
6123         * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
6124         * d10v-tdep.c: Include "remote.h".
6125         (target_resume_hook): Delete extern declaration.
6126         (target_wait_loop_hook): Ditto.
6127         (tdisassemble_command): Eliminate assignment in "if" conditional.
6128         (d10v_ts2_register_sim_regno): Eliminate call to
6129         legacy_register_sim_regno.
6130         (d10v_ts3_register_sim_regno): Ditto.
6131
6132 2003-03-28  Jeff Johnston  <jjohnstn@redhat.com>
6133
6134         * thread.c: Reindented.
6135         * lin-lwp.c: Ditto.
6136         * linux-proc.c: Ditto.
6137
6138 2003-03-28  Bob Rossi  <bob_rossi@cox.net>
6139
6140         * MAINTAINERS (write after approval): Add myself.
6141
6142 2003-03-27  Theodore A. Roth  <troth@openavr.org>
6143
6144         * objc-exp.y: Add missing semi-colons.
6145
6146 2003-03-27  Andrew Cagney  <cagney@redhat.com>
6147
6148         * regcache.c (write_sp): Delete function and references.
6149         * inferior.h (write_sp): Delete declaration.
6150         * valops.c (hand_function_call): Replace write_sp with
6151         TARGET_WRITE_SP.
6152         * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
6153         (sparc_pop_frame): Ditto.
6154
6155 2003-03-27  Andrew Cagney  <cagney@redhat.com>
6156
6157         * NEWS: Mention removal of support for hppa*-*-bsd* and
6158         hppa*-*-osf* natives, and hppa*-*-pro* target.
6159         * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
6160         * config/pa/xm-pa.h: Obsolete file.
6161         * config/pa/xm-hppab.h: Obsolete file.
6162         * config/pa/nm-hppab.h: Obsolete file.
6163         * config/pa/tm-hppab.h: Obsolete file.
6164         * config/pa/tm-hppao.h: Obsolete file.
6165         * config/pa/nm-hppao.h: Obsolete file.
6166         * config/pa/tm-pro.h: Obsolete file.
6167         * config/pa/hppaosf.mt: Obsolete file.
6168         * config/pa/hppaosf.mh: Obsolete file.
6169         * config/pa/hppapro.mt: Obsolete file.
6170         * config/pa/hppabsd.mt: Obsolete file.
6171         * config/pa/hppabsd.mh: Obsolete file.
6172         * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
6173         * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
6174         hppa*-*-osf*.
6175
6176 2003-03-27  Andrew Cagney  <cagney@redhat.com>
6177
6178         * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
6179         push_arguments.  Don't set push_return_address or write_sp.
6180         (d10v_push_dummy_call): Replace d10v_push_arguments.
6181         (d10v_push_return_address, d10v_write_sp): Delete function,
6182         handled by push_dummy_call.
6183
6184 2003-03-26  Andrew Cagney  <cagney@redhat.com>
6185
6186         * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
6187         (push_dummy_call): New pure multi-arch replacement with gdbarch,
6188         regcache and dummy_addr parameters.
6189         * gdbarch.h, gdbarch.c: Re-generate.
6190         * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
6191         available; assume it will handle stack alignment and return
6192         address issues.  Fall back to DEPRECATED_PUSH_ARGUMENTS and
6193         legacy_push_arguments.
6194         (legacy_push_arguments): Rename default_push_arguments.
6195         * value.h (legacy_push_arguments): Rename default_push_arguments.
6196         * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
6197         * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6198         * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6199         * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6200         * config/i386/tm-symmetry.h: Update.
6201         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6202         * x86-64-tdep.c (x86_64_init_abi): Update.
6203         * v850-tdep.c (v850_gdbarch_init): Update.
6204         * sparc-tdep.c (sparc_gdbarch_init): Update.
6205         * sh-tdep.c (sh_gdbarch_init): Update.
6206         * s390-tdep.c (s390_gdbarch_init): Update.
6207         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6208         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6209         * mips-tdep.c (mips_gdbarch_init): Update.
6210         * mcore-tdep.c (mcore_gdbarch_init): Update.
6211         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6212         * ia64-tdep.c (ia64_gdbarch_init): Update.
6213         * i386-tdep.c (i386_gdbarch_init): Update.
6214         * hppa-tdep.c (hppa_gdbarch_init): Update.
6215         * h8300-tdep.c (h8300_gdbarch_init): Update.
6216         * frv-tdep.c (frv_gdbarch_init): Update.
6217         * d10v-tdep.c (d10v_gdbarch_init): Update.
6218         * cris-tdep.c (cris_gdbarch_init): Update.
6219         * avr-tdep.c (avr_gdbarch_init): Update.
6220         * arm-tdep.c (arm_gdbarch_init): Update.
6221         * arm-linux-tdep.c (arm_linux_init_abi): Update.
6222         * alpha-tdep.c (alpha_gdbarch_init): Update.
6223
6224 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
6225
6226         * signals/signals.c (do_target_signal_to_host): Correct realtime
6227         signal range test.
6228
6229 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
6230
6231         * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
6232         (struct sal_chain, map_catch_names): Remove.
6233         (catch_exception_command_1): Don't call
6234         handle_gnu_4_16_catch_command.
6235
6236 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
6237
6238         From Mark Dettinger <dettinge@de.ibm.com>:
6239         * dwarf2cfi.c (read_2u): Increment pointer by two.
6240
6241 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
6242
6243         * signals/signals.c: Fix typos in last change.
6244
6245 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
6246
6247         * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
6248         not already defined.  Use __SIGRTMIN if available.
6249         (target_signal_from_host): Remove SIGRTMIN block.
6250         (do_target_signal_to_host): Remove SIGRTMIN block; check that
6251         the signal is within the realtime range.
6252
6253 2003-03-25  Adam Fedor  <fedor@gnu.org>
6254
6255         * Makefile.in (infrun.o): Add $(language_h)
6256         * infrun.c (handle_inferior_event): Use skip_language_trampoline
6257         for language specific trampolines.
6258         * language.h (struct language_defn): Add skip_trampoline.
6259         (skip_language_trampoline): Declare.
6260         * language.c (unk_lang_trampoline, skip_language_trampoline):
6261         New functions.
6262         (unknown_language_defn, auto_language_defn, local_language_defn):
6263         Add ukn_lang_trampoline.
6264         * ada-lang.c (ada_language_defn): Add NULL for language
6265         specific skip_trampoline.
6266         * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
6267         scm-lang.c: Likewise.
6268         * objc-lang.c (objc_skip_trampoline): New function.
6269         (objc_language_defn): Add objc_skip_trampoline.
6270
6271 2003-03-25  Andrew Cagney  <cagney@redhat.com>
6272
6273         * frame.c (get_prev_frame): Delay validating a frame's ID -
6274         non-NULL, didn't go backwards - until an attempt to unwind it to
6275         the previous frame.
6276
6277 2003-03-25  Andrew Cagney  <cagney@redhat.com>
6278
6279         * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
6280         EXTRA_STACK_ALIGNMENT_NEEDED.  Default to 0 not 1.
6281         * gdbarch.h, gdbarch.c: Re-generate.
6282         * config/sparc/tm-sparc.h
6283         (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
6284         * sparc-tdep.c (sparc_gdbarch_init): Set
6285         deprecated_extra_stack_alignment_needed.
6286         * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
6287         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
6288         extra_stack_alignment_needed.
6289         * v850-tdep.c (v850_gdbarch_init): Ditto.
6290         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6291         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6292         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6293         * cris-tdep.c (cris_gdbarch_init): Ditto.
6294         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6295         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6296
6297 2003-03-25  Andrew Cagney  <cagney@redhat.com>
6298
6299         * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
6300         STORE_STRUCT_RETURN.
6301         * gdbarch.h, gdbarch.c: Regenerate.
6302         * d10v-tdep.c (d10v_store_struct_return): Delete function.
6303         (d10v_push_arguments): Set the struct return register.
6304         (d10v_gdbarch_init): Update.
6305         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6306         * x86-64-tdep.c (x86_64_init_abi): Update.
6307         * vax-tdep.c (vax_gdbarch_init): Update.
6308         * v850-tdep.c (v850_gdbarch_init): Update.
6309         * sparc-tdep.c (sparc_gdbarch_init): Update.
6310         * sh-tdep.c (sh_gdbarch_init): Update.
6311         * s390-tdep.c (s390_gdbarch_init): Update.
6312         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6313         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6314         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6315         * mips-tdep.c (mips_gdbarch_init): Update.
6316         * mcore-tdep.c (mcore_gdbarch_init): Update.
6317         * m68k-tdep.c (m68k_gdbarch_init): Update.
6318         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6319         * ia64-tdep.c (ia64_gdbarch_init): Update.
6320         * i386-tdep.c (i386_gdbarch_init): Update.
6321         * hppa-tdep.c (hppa_gdbarch_init): Update.
6322         * h8300-tdep.c (h8300_gdbarch_init): Update.
6323         * frv-tdep.c (frv_gdbarch_init): Update.
6324         * cris-tdep.c (cris_gdbarch_init): Update.
6325         * avr-tdep.c (avr_gdbarch_init): Update.
6326         * arm-tdep.c (arm_gdbarch_init): Update.
6327         * alpha-tdep.c (alpha_gdbarch_init): Update.
6328
6329 2003-03-25  Andrew Cagney  <cagney@redhat.com>
6330
6331         * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
6332         (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
6333         CALL_DUMMY_STACK_ADJUST with a predicate variable.
6334         * gdbarch.h, gdbarch.c: Regenerate.
6335         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6336         call_dummy_stack_adjust_p.
6337         * vax-tdep.c (vax_gdbarch_init): Ditto.
6338         * v850-tdep.c (v850_gdbarch_init): Ditto.
6339         * sh-tdep.c (sh_gdbarch_init): Ditto.
6340         * s390-tdep.c (s390_gdbarch_init): Ditto.
6341         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6342         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6343         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6344         * mips-tdep.c (mips_gdbarch_init): Ditto.
6345         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6346         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6347         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6348         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6349         * i386-tdep.c (i386_gdbarch_init): Ditto.
6350         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6351         * frv-tdep.c (frv_gdbarch_init): Ditto.
6352         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6353         * cris-tdep.c (cris_gdbarch_init): Ditto.
6354         * avr-tdep.c (avr_gdbarch_init): Ditto.
6355         * arm-tdep.c (arm_gdbarch_init): Ditto.
6356         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6357         * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
6358         * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
6359         * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
6360         * sparc-tdep.c (sparc_gdbarch_init): Update.  Do not set
6361         call_dummy_stack_adjust_p.
6362         * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
6363         (CALL_DUMMY_STACK_ADJUST): Delete macro.
6364         * sparc-tdep.c (sparc32_push_arguments): Update.
6365         * valops.c (hand_function_call): Update.
6366
6367 2003-03-25  Corinna Vinschen  <vinschen@redhat.com>
6368
6369         * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
6370         set_gdbarch_char_signed.
6371
6372 2003-03-25  Richard Earnshaw  <rearnsha@arm.com>
6373
6374         PR cli/548
6375         * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
6376
6377 2003-03-25  Richard Earnshaw  <rearnsha@arm.com>
6378
6379         * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
6380         (_initialize_arm_tdep): Don't set tm_print_insn.
6381
6382 2003-03-24  Adam Fedor  <fedor@gnu.org>
6383
6384         * Makefile.in (YYOBJ): Add objc-exp.tab.o
6385         * objc-lang.h: Add multiple inclusion protection.
6386         (start_msglist, add_msglist, end_msglist): Additional declarations.
6387
6388 2003-03-24  Richard Earnshaw  <rearnsha@arm.com>
6389
6390         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
6391         value was renamed to ARM_FLOAT_SOFT_FPA.
6392
6393 2003-03-23  Andrew Cagney  <cagney@redhat.com>
6394
6395         * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
6396         (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
6397         * gdbarch.h, gdbarch.c: Regenerate.
6398         * valops.c (hand_function_call): Update.
6399         * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
6400         * frame.c (legacy_saved_regs_this_id): Update.
6401         (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
6402         * dummy-frame.h: Update.
6403         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
6404         * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
6405         * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
6406         * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
6407         * config/m68k/tm-sun3.h: Update.
6408         * blockframe.c (inside_main_func, frame_chain_valid): Update.
6409         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6410         * x86-64-tdep.c (x86_64_init_abi): Update.
6411         * vax-tdep.c (vax_gdbarch_init): Update.
6412         * v850-tdep.c (v850_gdbarch_init): Update.
6413         * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
6414         * sh-tdep.c (sh_gdbarch_init): Update.
6415         * s390-tdep.c (s390_gdbarch_init): Update.
6416         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
6417         (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
6418         (frame_get_saved_regs): Update.
6419         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
6420         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6421         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6422         * mips-tdep.c (mips_gdbarch_init): Update.
6423         * mcore-tdep.c (mcore_gdbarch_init): Update.
6424         * m68k-tdep.c (m68k_gdbarch_init): Update.
6425         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6426         * ia64-tdep.c (ia64_gdbarch_init): Update.
6427         * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
6428         * i386-interix-tdep.c (i386_interix_init_abi): Update.
6429         (i386_interix_back_one_frame): Update.
6430         * hppa-tdep.c (hppa_gdbarch_init): Update.
6431         (hppa_init_extra_frame_info): Update.
6432         * h8300-tdep.c (h8300_gdbarch_init): Update.
6433         * frv-tdep.c (frv_gdbarch_init): Update.
6434         * cris-tdep.c (cris_gdbarch_init): Update.
6435         * avr-tdep.c (avr_gdbarch_init): Update.
6436         * arm-tdep.c (arm_gdbarch_init): Update.
6437         * alpha-tdep.c (alpha_gdbarch_init): Update.
6438
6439 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
6440
6441         * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
6442         (arm_get_fp_model): Declare.
6443         * arm-tdep.c (fp_model_strings): New string array.
6444         (arm_fp_model, current_fp_model): New variables.
6445         (arm_get_fp_model): New function.
6446         (arm_set_fp): New function.
6447         (set_fp_model_sfunc): New function.
6448         (show_fp_model): New function.
6449         (_initialize_arm_tdep): Add new command to set/show the FPU.
6450         (arm_extract_return_value): Use arm_get_fp_model.
6451         (arm_store_return_value): Likewise.
6452         (arm_gdbarch_init): Default fpa model is softfpa.  Call arm_set_fp
6453         to initialize the floating-point data types.
6454         * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
6455         model is FPA.
6456
6457 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
6458
6459         * arm-tdep.c (show_arm_command): Don't print out help.  Instead, show
6460         the current setting of each value.
6461         (_initialize_arm_tdep): Delete variable new_cmd and add new vars
6462         new_set and new_show.  Use add_setshow_cmd_full and
6463         add_setshow_boolean_cmd as appropriate.  Deprecate "set/show apcs32"
6464         commands and add new version as subcommands of "set/show arm".
6465
6466 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
6467
6468         * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
6469         (set_arm_command, show_arm_command): New functions.
6470         (_initialize_arm_tdep): Add them.
6471         (num_disassembly_options): Renamed from num_flavor_options.
6472         (valid_disassembly_styles): Renamed from valid_flavors.
6473         (disassembly_style): Renamed from disassembly_flavor.
6474         (set_disassembly_style_sfunc): Renamed from
6475         set_disassembly_flavor_sfunc.
6476         (set_disassembly_style): Renamed from set_disassembly_flavor.
6477         (arm_othernames): Updated.
6478         (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
6479         command.  Add "set/show arm disassembly" commands.  Deprecate
6480         "othernames" command.
6481
6482 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
6483
6484         * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
6485         (arm-tdep.o): Depend on elf_arm_h.
6486
6487 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
6488
6489         * Makefile.in (coff_internal_h): Define.
6490         (arm-tdep.o): Update dependencies.
6491
6492 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
6493
6494         * arm-tdep.c (prologue_cache): Delete.
6495         (check_prologue_cache, save_prologue_cache): Delete.
6496         (arm_scan_prologue): Don't check or update the prologue_cache.
6497         (arm_gdb_arch_init): Don't initialize it.
6498         (_initialize_arm_tdep): Likewise.
6499
6500 2003-03-21  Stephane Carrez  <stcarrez@nerim.fr>
6501
6502         * MAINTAINERS (tui): Maintainer of tui code.
6503
6504 2003-03-21  Corinna Vinschen  <vinschen@redhat.com>
6505
6506         * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
6507         (i386-cygwin-tdep.o): Add dependencies.
6508         * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
6509         * i386-cygwin-tdep.c: New file.
6510         * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
6511         * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
6512
6513 2003-03-20  Andrew Cagney  <cagney@redhat.com>
6514
6515         * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
6516         (handle_inferior_event): Remove code calling
6517         DYNAMIC_TRAMPOLINE_NEXTPC.
6518
6519         * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
6520         already has a full path.
6521
6522         * main.c (gdb_main): Return 1.
6523         (captured_main): Call error to report an invalid interpreter.
6524
6525         * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
6526         * alpha-osf1-tdep.c: Include "gdb_string.h".
6527
6528 2003-03-19  J. Brobecker  <brobecker@gnat.com>
6529
6530         Continuing work to convert the hppa targets to multiarch partial.
6531
6532         * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
6533         method, now that hppa_push_dummy_frame has a conformant prototype.
6534         * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
6535         inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
6536         for the switch to multiarch partial.
6537
6538 2003-03-19  Kevin Buettner  <kevinb@redhat.com>
6539
6540         * mdebugread.c (parse_symbol): For stEnd, we're done counting
6541         when iss is issNull.
6542
6543 2003-03-18  Kevin Buettner  <kevinb@redhat.com>
6544
6545         * mips-tdep.c (mips_register_name): Fix fencepost error involving
6546         NUM_REGS bounds check.
6547
6548 2003-03-18  Kevin Buettner  <kevinb@redhat.com>
6549
6550         * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
6551         * mips-tdep.c (gdb_assert.h): Include.
6552         (mips_generic_reg_names, mips_processor_reg_names): Make static.
6553         (mips_register_name): Handle integer registers explicitly.  Add
6554         bounds checking.
6555         (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
6556         (mips_lsi33k_reg_names): Don't list integer registers; they're
6557         handled by mips_register_name() now.
6558         * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
6559         * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
6560         * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
6561         * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
6562         * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
6563
6564 2003-03-18  Andrew Cagney  <cagney@redhat.com>
6565
6566         * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
6567         a void pointer.
6568         * gdbtypes.h (print_scalar_formatted): Update declaration.
6569         * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
6570
6571 2003-03-18  J. Brobecker  <brobecker@gnat.com>
6572
6573         * infrun.c (observer.h): Add #include.
6574         (normal_stop): Add call to observer_notify_normal_stop.
6575         * Makefile.in (infrun.o): Add dependency on observer.h.
6576
6577 2003-03-18  J. Brobecker  <brobecker@gnat.com>
6578
6579         Continuing work to convert the hppa targets to multiarch partial.
6580         * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
6581         parameter. Reformat comment.
6582         * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
6583         (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
6584         to match new profile.
6585
6586 2003-03-18  J. Brobecker  <brobecker@gnat.com>
6587
6588         * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
6589         appear to be working in any case.
6590
6591 2003-03-18  J. Brobecker  <brobecker@gnat.com>
6592
6593         * observer.c (observer_test_first_observer): New static variable.
6594         (observer_test_second_observer): Likewise.
6595         (observer_test_third_observer): Likewise.
6596         (observer_test_first_notification_function): New static function.
6597         (observer_test_second_notification_function): Likewise.
6598         (observer_test_third_notification_function): Likewise.
6599
6600 2003-03-17  J. Brobecker  <brobecker@gnat.com>
6601
6602         * hppa-tdep.c (gdb_assert.h): Add missing #include.
6603         * somsolib.c (gdb_assert.h): Likewise.
6604         * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
6605         (somsolib.o): Likewise.
6606
6607 2003-03-17  Andrew Cagney  <cagney@redhat.com>
6608
6609         * disasm.c (gdb_disassembly): Set di.mach using the architecture's
6610         BFD.  Simplify setting of di.endian.
6611
6612 2003-03-17  Andrew Cagney  <cagney@redhat.com>
6613
6614         * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
6615         * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
6616
6617         From Elena Zannoni  <ezannoni@redhat.com>
6618         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
6619         vector and floating-point parameters.
6620         (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
6621         convention.
6622         (ppc_sysv_abi_broken_use_struct_convention): Ditto.
6623
6624 2003-03-17  Fernando Nasser  <fnasser@redhat.com>
6625
6626         * MAINTAINERS: Remove my name from several maintainership roles.
6627
6628 2003-03-17  Andrew Cagney  <cagney@redhat.com>
6629
6630         Fix frame off-by-one bug.
6631         * frame-unwind.h (frame_this_id_ftype): Replace
6632         frame_unwind_id_ftype.
6633         (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
6634         (struct frame_unwind): Replace "id" with "this_id".  Replace "reg"
6635         with "prev_register".
6636         * frame-unwind.c (frame_unwind_find_by_pc): Return
6637         legacy_saved_regs_unwind instead of trad_frame_unwind.  Update
6638         comment.
6639         * dummy-frame.c (cached_find_dummy_frame): Delete function.
6640         (dummy_frame_this_id): Replace dummy_frame_id_unwind.
6641         (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
6642         (dummy_frame_unwind): Update.
6643         * sentinel-frame.c (sentinel_frame_prev_register): Replace
6644         sentinel_frame_register_unwind.
6645         (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
6646         (sentinel_frame_unwinder): Update.
6647         * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
6648         (struct frame_info): Rename "unwind_cache" to "prologue_cache".
6649         * frame.c (create_sentinel_frame): Update. Initialize
6650         "prologue_cache" instead of "unwind_cache".
6651         (frame_register_unwind): Call this frame's prev_register with the
6652         next frame and this frame's prologue cache.
6653         (get_prev_frame): Simplify.  Always call prev frame's this_id with
6654         this frame and prev frame's prologue cache.  Document that this
6655         call is shifted one to the left when compared to the
6656         frame_register_unwind call.
6657         (legacy_saved_regs_prev_register): Replace
6658         frame_saved_regs_register_unwind.
6659         (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
6660         (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
6661         (legacy_saved_regs_unwind): Replace trad_frame_unwind.
6662         * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
6663         (d10v_frame_unwind): Update.
6664         (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
6665         (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
6666         (saved_regs_unwinder): Replace this "frame" with "next_frame", and
6667         "saved_regs" with "this_saved_regs".
6668
6669 2003-03-16  Andrew Cagney  <cagney@redhat.com>
6670
6671         * frame.c (frame_pop): Don't call target_store_registers.  Fix
6672         problem reported by Mark Kettenis.
6673
6674 2003-03-16  Mark Kettenis  <kettenis@gnu.org>
6675
6676         * i386-tdep.c (i386_register_type): Renamed from
6677         i386_register_virtual_type.  Adjust function signature.
6678         (i386_gdbarch_init): Set register_type instead of
6679         deprecated_max_register_raw_size,
6680         deprecated_max_register_virtual_size and register_virtual_type.
6681
6682 2003-03-14  Andrew Cagney  <cagney@redhat.com>
6683
6684         * frame.c (get_prev_frame): When a legacy frame, always call
6685         legacy_get_prev_frame.  Simplify unwind code using assumption that
6686         the unwinder is new.
6687         (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
6688         (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
6689         SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
6690
6691 2003-03-14  Andrew Cagney  <cagney@redhat.com>
6692
6693         * frame.c (get_saved_register): Delete function.
6694         * frame.h (get_saved_register): Delete declaration.
6695         * xstormy16-tdep.c: Update comment.
6696         * regcache.h: Update comments.
6697         * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
6698         get_saved_register and extract_address, use
6699         frame_read_unsigned_register.
6700         (sparc_frame_saved_pc): Ditto.
6701         (sparc_get_saved_register): Instead of get_saved_register, use
6702         frame_register.
6703         (sparc_pop_frame): Ditto.
6704         * findvar.c: Update comments.
6705         (value_of_register): Call frame_register instead of
6706         get_saved_register.
6707         (value_from_register): Ditto.
6708         * config/sparc/tm-sparc.h: Update comment.
6709         * breakpoint.c: Update comment.
6710
6711 2003-03-14  Andrew Cagney  <cagney@redhat.com>
6712
6713         * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
6714         GET_SAVED_REGISTER.
6715         * gdbarch.h, gdbarch.c: Re-generate.
6716         * frame.h: Update comments.
6717         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6718         * x86-64-tdep.c (x86_64_init_abi): Update.
6719         * sparc-tdep.c (sparc_gdbarch_init): Update.
6720         * sh-tdep.c (sh_gdbarch_init): Update.
6721         * mips-tdep.c (mips_gdbarch_init): Update.
6722         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6723         * cris-tdep.c (cris_gdbarch_init): Update.
6724         * ia64-tdep.c (ia64_gdbarch_init): Update.
6725         * frame.c (frame_register): Update.
6726         (get_saved_register): Update.
6727         * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
6728
6729 2003-03-13  Andrew Cagney  <cagney@redhat.com>
6730
6731         * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
6732         * gdbarch.h, gdbarch.c: Regenerate.
6733         * valops.c (hand_function_call): Update comment.
6734         * stack.c (return_command): Update comment.
6735         * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
6736         * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
6737         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6738         * x86-64-tdep.c (x86_64_init_abi): Update.
6739         * vax-tdep.c (vax_gdbarch_init): Update.
6740         * v850-tdep.c (v850_gdbarch_init): Update.
6741         * sparc-tdep.c (sparc_gdbarch_init): Update.
6742         * sh-tdep.c (sh_gdbarch_init): Update.
6743         * s390-tdep.c (s390_gdbarch_init): Update.
6744         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6745         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6746         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6747         * mips-tdep.c (mips_gdbarch_init): Update.
6748         * mcore-tdep.c (mcore_gdbarch_init): Update.
6749         * m68k-tdep.c (m68k_gdbarch_init): Update.
6750         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6751         * ia64-tdep.c (ia64_gdbarch_init): Update.
6752         * i386-tdep.c (i386_gdbarch_init): Update.
6753         * hppa-tdep.c (hppa_gdbarch_init): Update.
6754         * h8300-tdep.c (h8300_gdbarch_init): Update.
6755         * frv-tdep.c (frv_gdbarch_init): Update.
6756         * cris-tdep.c (cris_gdbarch_init): Update.
6757         * avr-tdep.c (avr_gdbarch_init): Update.
6758         * arm-tdep.c (arm_gdbarch_init): Update.
6759         * alpha-tdep.c (alpha_gdbarch_init): Update.
6760
6761 2003-03-13  Andrew Cagney  <cagney@redhat.com>
6762
6763         * frame.c (legacy_frame_p): New function.
6764         (get_prev_frame): Use legacy_frame_p.
6765         * frame.h (legacy_frame_p): Declare.
6766
6767 2003-03-13  D. Venkatasubramanian <dvenkat@noida.hcltech.com>
6768
6769         * MAINTAINERS (write after approval): Alphabetically
6770         listing corrected.
6771
6772 2003-03-13  D. Venkatasubramanian <dvenkat@noida.hcltech.com>
6773
6774         * MAINTAINERS (write after approval): Add myself.
6775
6776 2003-03-12  Andrew Cagney  <cagney@redhat.com>
6777
6778         * frame.c (get_prev_frame): Rename the frame parameter to
6779         "this_frame".
6780         (get_next_frame, legacy_get_prev_frame): Ditto.
6781
6782 2003-03-12  Andrew Cagney  <cagney@redhat.com>
6783
6784         * frame.c (get_current_frame): Check target_has_registers before
6785         checking target_has_stack.
6786         * eval.c (evaluate_subexp_standard): Use get_selected_frame,
6787         instead of deprecated_selected_frame.
6788         * findvar.c (value_of_register): Pass "frame", not
6789         deprecated_selected_frame, to value_of_builtin_reg.
6790
6791 2003-03-12  Andrew Cagney  <cagney@redhat.com>
6792
6793         * regcache.c (regcache_cooked_write_signed): New function.
6794         (regcache_cooked_write_unsigned): New function.
6795         (regcache_cooked_read_unsigned): Fix regnum in range assertion.
6796         (regcache_cooked_read_signed): Fix regnum in range assertion.
6797         * regcache.h (regcache_cooked_write_signed): Declare.
6798         (regcache_cooked_write_unsigned): Declare.
6799
6800 2003-03-12  Andrew Cagney  <cagney@redhat.com>
6801
6802         * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
6803         * gdbarch.h, gdbarch.c: Re-generate.
6804         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6805         * x86-64-tdep.h: Update.
6806         * x86-64-tdep.c (x86_64_init_abi): Update.
6807         * v850-tdep.c (v850_gdbarch_init): Update.
6808         * sparc-tdep.c (sparc_gdbarch_init): Update.
6809         * sh-tdep.c (sh_gdbarch_init): Update.
6810         * s390-tdep.c (s390_gdbarch_init): Update.
6811         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6812         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
6813         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6814         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6815         * mips-tdep.c (mips_gdbarch_init): Update.
6816         * mcore-tdep.c (mcore_gdbarch_init): Update.
6817         * m68k-tdep.c (m68k_gdbarch_init): Update.
6818         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6819         * ia64-tdep.c (ia64_gdbarch_init): Update.
6820         * i386-tdep.c (i386_gdbarch_init): Update.
6821         * i386-interix-tdep.c (i386_interix_init_abi): Update.
6822         * hppa-tdep.c (hppa_gdbarch_init): Update.
6823         * h8300-tdep.c (h8300_gdbarch_init): Update.
6824         * frv-tdep.c (frv_gdbarch_init): Update.
6825         * cris-tdep.c (cris_gdbarch_init): Update.
6826         * avr-tdep.c (avr_gdbarch_init): Update.
6827         * arm-tdep.c (arm_gdbarch_init): Update.
6828         * alpha-tdep.c (alpha_gdbarch_init): Update.
6829         * sh-tdep.c (sh_init_extra_frame_info): Update.
6830         (sh64_init_extra_frame_info): Update.
6831         * ns32knbsd-nat.c (frame_num_args): Update.
6832         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
6833         * xstormy16-tdep.c (xstormy16_pop_frame): Update.
6834         (xstormy16_frame_chain_valid): Update.
6835         * vax-tdep.c (vax_saved_pc_after_call): Update.
6836         * v850-tdep.c (v850_frame_chain): Update.
6837         (v850_pop_frame): Update.
6838         (v850_init_extra_frame_info): Update.
6839         * sparc-tdep.c (setup_arbitrary_frame): Update.
6840         * ns32k-tdep.c (umax_frame_num_args): Update.
6841         * s390-tdep.c (s390_pop_frame_regular): Update.
6842         * mn10300-tdep.c (mn10300_frame_chain): Update.
6843         (mn10300_pop_frame_regular): Update.
6844         (mn10300_init_extra_frame_info): Update.
6845         * mips-tdep.c (mips_init_frame_pc_first): Update.
6846         (mips_frame_chain): Update.
6847         (mips_pop_frame): Update.
6848         * mcore-tdep.c (mcore_frame_chain): Update.
6849         (mcore_pop_frame): Update.
6850         (mcore_init_extra_frame_info): Update.
6851         * arch-utils.c (init_frame_pc_default): Update.
6852         * m68k-tdep.c (isi_frame_num_args): Update.
6853         (delta68_frame_num_args): Update.
6854         (news_frame_num_args): Update.
6855         * ia64-tdep.c (ia64_pop_frame_regular): Update.
6856         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6857         (alpha_frame_chain): Update.
6858         (alpha_pop_frame): Update.
6859         * hppa-tdep.c (hppa_saved_pc_after_call): Update.
6860         (hppa_init_extra_frame_info): Update.
6861         (hppa_frame_chain): Update.
6862         (hppa_frame_chain_valid): Update.
6863         * cris-tdep.c (cris_init_extra_frame_info): Update.
6864         * avr-tdep.c (avr_init_extra_frame_info): Update.
6865         * arm-tdep.c (arm_frame_chain_valid): Update.
6866         (arm_init_extra_frame_info): Update.
6867         (arm_pop_frame): Update.
6868         * frame.c (frame_pc_unwind): Update.
6869         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
6870         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6871         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6872         * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
6873         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
6874         * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
6875
6876 2003-03-12  Andrew Cagney  <cagney@redhat.com>
6877
6878         Eliminate the need for POP_FRAME.
6879         * frame.c (do_frame_unwind_register): New function.
6880         (frame_pop): When no POP_FRAME, pop the frame using register
6881         unwind and a scratch regcache.
6882         (frame_saved_regs_pop): Delete function.
6883         (trad_frame_unwinder): Update.
6884         * d10v-tdep.c (d10v_frame_pop): Delete function.
6885         (d10v_frame_unwind): Update.
6886         * sentinel-frame.c (sentinel_frame_pop): Delete function.
6887         (sentinel_frame_unwinder): Update.
6888         * dummy-frame.c (dummy_frame_pop): Delete function.
6889         (dummy_frame_unwind): Update.
6890         * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
6891         (struct frame_unwind): Update.
6892
6893 2003-03-11  Kevin Buettner  <kevinb@redhat.com>
6894
6895         * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
6896         mips_dwarf_dwarf2_ecoff_reg_to_regnum().
6897         (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
6898         Do range checks on register number obtained from debugging info.
6899         (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
6900         set_gdbarch_dwarf2_reg_to_regnum().  Adjust call of
6901         set_gdbarch_ecoff_reg_to_regnum() to account for new name of
6902         mapping function.
6903         (do_fp_register_row): Fix typo which caused double type to be
6904         used when attempting to unpack a float.
6905
6906 2003-03-11  J. Brobecker  <brobecker@gnat.com>
6907
6908         * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
6909
6910 2003-03-11  Andrew Cagney  <cagney@redhat.com>
6911
6912         * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
6913         frame.  Problem found by Corinna Vinschen.
6914
6915 2003-03-11  Pierre Muller  <muller@ics.u-strasbg.fr>
6916
6917         * doublest.c (floatformat_from_length): Accept also
6918         the real size of 'long double' type.
6919
6920 2003-03-10  Daniel Jacobowitz  <drow@mvista.com>
6921
6922         From Klee Dienes <kdienes@apple.com>:
6923         * breakpoint.c (bpstat_copy): Copy the command lines as well
6924         as the old value, to match what is freed in bpstat_clear.
6925
6926 2003-03-10  David Carlton  <carlton@math.stanford.edu>
6927
6928         * minsyms.c (add_minsym_to_hash_table): Replace
6929         DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
6930         (compare_minimal_symbols, compact_minimal_symbols)
6931         (install_minimal_symbols, find_solib_trampoline_target): Ditto.
6932         (lookup_minimal_symbol_text): Use strcmp on linkage names instead
6933         of DEPRECATED_SYMBOL_MATCHES_NAME.
6934         (lookup_minimal_symbol_solib_trampoline): Ditto.
6935
6936 2003-03-10  Andrew Cagney  <cagney@redhat.com>
6937
6938         * regcache.h (regcache_cooked_read_ftype): Define.
6939         (regcache_save, regcache_restore): Add a cooked_read parameter.
6940         * regcache.c (regcache_save, regcache_restore): Update.
6941         (do_cooked_read): New function.
6942         (regcache_cpy): Pass do_cooked_read to regcache_save and
6943         regcache_restore.
6944
6945 2003-03-10  Andrew Cagney  <cagney@redhat.com>
6946
6947         * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
6948         * gdbarch.h, gdbarch.c: Re-generate.
6949         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6950         * x86-64-tdep.h: Update.
6951         * x86-64-tdep.c (x86_64_init_abi): Update.
6952         * v850-tdep.c (v850_gdbarch_init): Update.
6953         * sparc-tdep.c (sparc_gdbarch_init): Update.
6954         * sh-tdep.c (sh_gdbarch_init): Update.
6955         * s390-tdep.c (s390_gdbarch_init): Update.
6956         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6957         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
6958         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6959         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6960         * mips-tdep.c (mips_gdbarch_init): Update.
6961         * mcore-tdep.c (mcore_gdbarch_init): Update.
6962         * m68k-tdep.c (m68k_gdbarch_init): Update.
6963         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6964         * ia64-tdep.c (ia64_gdbarch_init): Update.
6965         * i386-tdep.c (i386_gdbarch_init): Update.
6966         * i386-interix-tdep.c (i386_interix_init_abi): Update.
6967         * hppa-tdep.c (hppa_gdbarch_init): Update.
6968         * h8300-tdep.c (h8300_gdbarch_init): Update.
6969         * frv-tdep.c (frv_gdbarch_init): Update.
6970         * cris-tdep.c (cris_gdbarch_init): Update.
6971         * avr-tdep.c (avr_gdbarch_init): Update.
6972         * arm-tdep.c (arm_gdbarch_init): Update.
6973         * alpha-tdep.c (alpha_gdbarch_init): Update.
6974         * sh-tdep.c (sh_init_extra_frame_info): Update.
6975         (sh64_init_extra_frame_info): Update.
6976         * ns32knbsd-nat.c (frame_num_args): Update.
6977         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
6978         * xstormy16-tdep.c (xstormy16_pop_frame): Update.
6979         (xstormy16_frame_chain_valid): Update.
6980         * vax-tdep.c (vax_saved_pc_after_call): Update.
6981         * v850-tdep.c (v850_frame_chain): Update.
6982         (v850_pop_frame): Update.
6983         (v850_init_extra_frame_info): Update.
6984         * sparc-tdep.c (setup_arbitrary_frame): Update.
6985         * ns32k-tdep.c (umax_frame_num_args): Update.
6986         * s390-tdep.c (s390_pop_frame_regular): Update.
6987         * mn10300-tdep.c (mn10300_frame_chain): Update.
6988         (mn10300_pop_frame_regular): Update.
6989         (mn10300_init_extra_frame_info): Update.
6990         * mips-tdep.c (mips_init_frame_pc_first): Update.
6991         (mips_frame_chain): Update.
6992         (mips_pop_frame): Update.
6993         * mcore-tdep.c (mcore_frame_chain): Update.
6994         (mcore_pop_frame): Update.
6995         (mcore_init_extra_frame_info): Update.
6996         * arch-utils.c (init_frame_pc_default): Update.
6997         * m68k-tdep.c (isi_frame_num_args): Update.
6998         (delta68_frame_num_args): Update.
6999         (news_frame_num_args): Update.
7000         * ia64-tdep.c (ia64_pop_frame_regular): Update.
7001         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7002         (alpha_frame_chain): Update.
7003         (alpha_pop_frame): Update.
7004         * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7005         (hppa_init_extra_frame_info): Update.
7006         (hppa_frame_chain): Update.
7007         (hppa_frame_chain_valid): Update.
7008         * cris-tdep.c (cris_init_extra_frame_info): Update.
7009         * avr-tdep.c (avr_init_extra_frame_info): Update.
7010         * arm-tdep.c (arm_frame_chain_valid): Update.
7011         (arm_init_extra_frame_info): Update.
7012         (arm_pop_frame): Update.
7013         * frame.c (frame_pc_unwind): Update.
7014         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7015         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7016         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7017         * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7018         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7019         * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
7020
7021 2003-03-10  Andrew Cagney  <cagney@redhat.com>
7022
7023         * gdbarch.sh (gdbarch_unwind_pc): New method.
7024         * gdbarch.h, gdbarch.c: Regenerate.
7025         * frame.c (frame_pc_unwind): Rewrite.  Prefer gdbarch_unwind_pc,
7026         but use read_pc and FRAME_SAVED_PC as fall backs.
7027         (frame_saved_regs_pc_unwind): Delete function.
7028         (trad_frame_unwinder): Update.
7029         * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
7030         (struct frame_unwind): Update.
7031         * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
7032         (dummy_frame_unwind): Update.
7033         * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
7034         (sentinel_frame_unwinder): Update.
7035         * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
7036         (d10v_frame_unwind): Update.
7037         (d10v_unwind_pc): New function.
7038         (d10v_gdbarch_init): Set unwind_pc.
7039
7040 2003-03-10  Andrew Cagney  <cagney@redhat.com>
7041
7042         * gdbarch.h: Re-generate.
7043
7044         * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
7045         PC.
7046         (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
7047         the PC register.
7048
7049 2003-03-08  Mark Kettenis  <kettenis@gnu.org>
7050
7051         * gdbarch.sh (save_dummy_frame_tos): Add comment.
7052
7053 2003-03-08  Andrew Cagney  <cagney@redhat.com>
7054
7055         * cli-out.c: Update copyright.
7056         (cli_out_data): Define typedef.  Use instead of ui_out_data.
7057
7058 2003-03-08  Andrew Cagney  <cagney@redhat.com>
7059
7060         * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
7061         the result.
7062
7063 2003-03-07  Andrew Cagney  <cagney@redhat.com>
7064
7065         * gdbarch.sh: Don't generate two macro definitions when an
7066         undefined macro taking no arguments.
7067         * gdbarch.h: Regenerate.
7068
7069 2002-03-07  Michal Ludvig  <mludvig@suse.cz>
7070
7071         * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
7072         (x86_64_unwind_dummy_id): New functions.
7073         (x86_64_init_abi): Register these two new functions.
7074
7075 2003-03-07  Michal Ludvig  <mludvig@suse.cz>
7076
7077         * x86-64-tdep.c (x86_64_function_has_prologue): New function.
7078         (x86_64_skip_prologue): Move prologue detection to
7079         separate function.
7080         * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
7081
7082 2003-03-05  Andrew Cagney  <cagney@redhat.com>
7083
7084         * d10v-tdep.c (d10v_unwind_dummy_id): New function.
7085         (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
7086         * frame.c (get_prev_frame): Restructure the frame ID unwind code
7087         to use unwind_dummy_id when a dummy frame.
7088         * gdbarch.sh (unwind_dummy_id): New multi-arch method with
7089         predicate.
7090         * gdbarch.h, gdbarch.c: Regneerate.
7091
7092 2003-03-05  Andrew Cagney  <cagney@redhat.com>
7093
7094         * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
7095         (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
7096         Do not use d10v_read_sp or d10v_read_fp when obtaining register
7097         values.
7098
7099 2003-03-05  Andrew Cagney  <cagney@redhat.com>
7100
7101         * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
7102         (struct d10v_unwind_cache): Delete field "frameless".  Replace
7103         "next_addr" with "sp_offset".  Add "r11_offset".
7104         (d10v_frame_unwind_cache): Update.
7105         (prologue_find_regs): Update.  When "mv r11, sp", save the
7106         "sp_offset" in "r11_offset".  Recognize "st rn, @r11", note that
7107         RN was saved in r11_offset.
7108
7109 2003-03-05  Andrew Cagney  <cagney@redhat.com>
7110
7111         * frame.c (deprecated_update_frame_pc_hack): Also update the the
7112         cached PC value in the next frame.
7113
7114 2003-03-05  Andrew Cagney  <cagney@redhat.com>
7115
7116         * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
7117         "id_unwind_cache" with "id".
7118         (frame_id_unwind): Delete declaration.
7119         * frame.c (frame_id_unwind): Delete function.
7120         (get_prev_frame): Call the frame id unwind method directly.  Store
7121         the returned next frame's ID value in NEXT_FRAME.  Note that there
7122         is a problem with the wrong unwind ID being called with the wrong
7123         unwind cache.
7124
7125 2003-03-05  Daniel Jacobowitz  <drow@mvista.com>
7126
7127         * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
7128
7129 2003-03-05  James Ingham <jingham@apple.com>
7130             Daniel Jacobowitz  <drow@mvista.com>
7131
7132         * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
7133         (auto_cp_abi): New variable.
7134         (current_cp_abi, num_cp_abis): Make static.
7135         (CP_ABI_MAX): Define.
7136         (cp_abis): Turn into an array.
7137         (value_virtual_fn_field): Fix formatting.
7138         (switch_to_cp_abi, register_cp_abi): Update.  register_cp_abi now
7139         takes a pointer.
7140         (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
7141         (list_cp_abis, _initialize_cp_abi): New functions.
7142         * cp-abi.h: Add prototype for set_cp_abi_as_auto_default.  Remove
7143         declarations for cp_abis, num_cp_abis, current_cp_abi, and
7144         switch_to_cp_abi.  Update prototype for register_cp_abi.
7145         * Makefile.in (cp-abi.o): Update dependencies.
7146         * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
7147         instead of switch_to_cp_abi.
7148         * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise.  Update call to
7149         register_cp_abi.
7150         * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
7151         register_cp_abi.
7152         * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
7153
7154 2003-03-05  Daniel Jacobowitz  <drow@mvista.com>
7155
7156         * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
7157         * dwarf2loc.c: Include "regcache.h".
7158         (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum.  Use
7159         register_size.
7160         * Makefile.in (dwarf2loc.o): Update dependencies.
7161
7162 2003-03-04  Theodore A. Roth  <troth@openavr.org>
7163
7164         * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
7165         number of io registers reported by remote target is not a multiple of
7166         step.
7167
7168 2003-03-04  David Carlton  <carlton@math.stanford.edu>
7169
7170         * symtab.c (lookup_partial_symbol): Add linkage_name argument.
7171         (lookup_symbol_aux_psymtabs): Update call to
7172         lookup_partial_symbol.
7173         (lookup_transparent_type, find_main_psymtab)
7174         (make_symbol_overload_list): Ditto.
7175
7176 2003-03-04  Kazu Hirata  <kazu@cs.umass.edu>
7177
7178         * MAINTAINERS (Write after approval): Update my email address.
7179
7180 2003-03-03  Andrew Cagney  <cagney@redhat.com>
7181
7182         Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
7183         * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
7184         predicate.  Replace MAX_REGISTER_RAW_SIZE.
7185         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
7186         MAX_REGISTER_VIRTUAL_SIZE.
7187         * regcache.c (legacy_max_register_raw_size): New function.
7188         (legacy_max_register_virtual_size): New function.
7189         * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
7190         (MAX_REGISTER_RAW_SIZE): Define.
7191         (legacy_max_register_raw_size): Declare.
7192         (legacy_max_register_virtual_size): Declare.
7193         * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7194         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
7195         * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7196         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
7197         * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7198         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
7199         * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7200         * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7201         * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7202         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7203         * vax-tdep.c (vax_gdbarch_init): Update.
7204         * v850-tdep.c (v850_gdbarch_init): Update.
7205         * sparc-tdep.c (sparc_gdbarch_init): Update.
7206         * sh-tdep.c (sh_gdbarch_init): Update.
7207         * s390-tdep.c (s390_gdbarch_init): Update.
7208         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7209         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7210         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7211         * mips-tdep.c (mips_gdbarch_init): Update.
7212         * mcore-tdep.c (mcore_gdbarch_init): Update.
7213         * m68k-tdep.c (m68k_gdbarch_init): Update.
7214         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7215         * ia64-tdep.c (ia64_gdbarch_init): Update.
7216         * i386-tdep.c (i386_gdbarch_init): Update.
7217         * hppa-tdep.c (hppa_gdbarch_init): Update.
7218         * h8300-tdep.c (h8300_gdbarch_init): Update.
7219         * frv-tdep.c (frv_gdbarch_init): Update.
7220         * cris-tdep.c (cris_gdbarch_init): Update.
7221         * avr-tdep.c (avr_gdbarch_init): Update.
7222         * arm-tdep.c (arm_gdbarch_init): Update.
7223         * alpha-tdep.c (alpha_gdbarch_init): Update.
7224         * d10v-tdep.c (d10v_gdbarch_init): Do not set
7225         max_register_raw_size or max_register_virtual_size.
7226
7227 2003-03-03  David Carlton  <carlton@math.stanford.edu>
7228
7229         * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
7230         SYMBOL_MATCHES_NAME, add comment.
7231         (SYMBOL_MATCHES_NATURAL_NAME): New.
7232         * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
7233         SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
7234         (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
7235         * symtab.c (lookup_partial_symbol): Use
7236         SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME.  Delete
7237         unhelpful comment.
7238         (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
7239         SYMBOL_MATCHES_NAME.
7240         Fix for PR c++/33.
7241
7242 2003-03-03  David Carlton  <carlton@math.stanford.edu>
7243
7244         * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
7245         * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
7246         by regexp matching against SYMBOL_NATURAL_NAME.
7247
7248 2003-03-03  David Carlton  <carlton@math.stanford.edu>
7249
7250         * linespec.c (find_method): Extract code into collect_methods.
7251         (collect_methods): New.
7252
7253 2003-03-02  Mark Kettenis  <kettenis@gnu.org>
7254
7255         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
7256         get_frame_base.
7257
7258         * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
7259         DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
7260
7261 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
7262
7263         * arch-utils.c (generic_register_byte): Fix to use the loop index
7264         and not regnum when summing the size of all registers up to regnum.
7265
7266 2003-03-01  Andrew Cagney  <cagney@redhat.com>
7267
7268         * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
7269         FRAME_INIT_SAVED_REGS.
7270         * gdbarch.h, gdbarch.c: Regenerate.
7271         * stack.c (frame_info): Update.
7272         * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
7273         (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
7274         (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
7275         * ns32k-tdep.c (ns32k_pop_frame): Update.
7276         * mips-tdep.c (mips_pop_frame): Update.
7277         * m68hc11-tdep.c (m68hc11_pop_frame): Update.
7278         * ia64-tdep.c (ia64_frame_chain): Update.
7279         (ia64_frame_saved_pc, ia64_get_saved_register): Update.
7280         (ia64_frameless_function_invocation): Update.
7281         (ia64_init_extra_frame_info): Update.
7282         (ia64_pop_frame_regular): Update.
7283         * frame.h (struct frame_info): Update comment.
7284         (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
7285         * frame.c (frame_saved_regs_register_unwind): Update.
7286         (frame_saved_regs_register_unwind): Update.
7287         (deprecated_generic_get_saved_register): Update.
7288         * cris-tdep.c: Update comment.
7289         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
7290         Rename macro.
7291         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7292         * x86-64-tdep.c (x86_64_init_abi): Update.
7293         * vax-tdep.c (vax_gdbarch_init): Update.
7294         * v850-tdep.c (v850_gdbarch_init): Update.
7295         * sparc-tdep.c (sparc_gdbarch_init): Update.
7296         * sh-tdep.c (sh_gdbarch_init): Update.
7297         * s390-tdep.c (s390_gdbarch_init): Update.
7298         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7299         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7300         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7301         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7302         * mips-tdep.c (mips_gdbarch_init): Update.
7303         * mcore-tdep.c (mcore_gdbarch_init): Update.
7304         * m68k-tdep.c (m68k_gdbarch_init): Update.
7305         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7306         * ia64-tdep.c (ia64_gdbarch_init): Update.
7307         * i386-tdep.c (i386_gdbarch_init): Update.
7308         * frv-tdep.c (frv_gdbarch_init): Update.
7309         * avr-tdep.c (avr_gdbarch_init): Update.
7310         * arm-tdep.c (arm_gdbarch_init): Update.
7311         * alpha-tdep.c (alpha_gdbarch_init): Update.
7312
7313 2003-03-01  Andrew Cagney  <cagney@redhat.com>
7314
7315         * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
7316         option enum and switch.  When no windows, set the interpreter to
7317         INTERP_CONSOLE.
7318
7319 2003-03-01  Andrew Cagney  <cagney@redhat.com>
7320
7321         * main.c (captured_main): Replace magic option characters with an
7322         enum.
7323
7324 2003-03-01  Andrew Cagney  <cagney@redhat.com>
7325
7326         * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
7327         INIT_EXTRA_FRAME_INFO.
7328         * gdbarch.h, gdbarch.c: Regenerate.
7329         * arm-tdep.c: Update comments.
7330         * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
7331         * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
7332         * frame.h, avr-tdep.c: Ditto.
7333         * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
7334         (create_new_frame, legacy_get_prev_frame): Ditto.
7335         * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
7336         * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
7337         * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
7338         deprecated_init_extra_frame_info instead of init_extra_frame_info.
7339         * x86-64-tdep.c (x86_64_init_abi): Ditto.
7340         * v850-tdep.c (v850_gdbarch_init): Ditto.
7341         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7342         * sh-tdep.c (sh_gdbarch_init): Ditto.
7343         * s390-tdep.c (s390_gdbarch_init): Ditto.
7344         * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
7345         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7346         * mips-tdep.c (mips_gdbarch_init): Ditto.
7347         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7348         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7349         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7350         * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
7351         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7352         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7353         * frv-tdep.c (frv_gdbarch_init): Ditto.
7354         * cris-tdep.c (cris_gdbarch_init): Ditto.
7355         * avr-tdep.c (avr_gdbarch_init): Ditto.
7356         * arm-tdep.c (arm_gdbarch_init): Ditto.
7357         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7358         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7359
7360 2003-03-01  Andrew Cagney  <cagney@redhat.com>
7361
7362         * gdbarch.sh (register_type): New function with predicate.
7363         (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
7364         * gdbarch.h, gdbarch.c: Re-generate.
7365         * arch-utils.c (generic_register_byte): Use generic_register_size.
7366         (generic_register_size): When available, use
7367         gdbarch_register_type.
7368         * regcache.c (init_regcache_descr): When available, initialize the
7369         register type array using gdbarch_register_type.  If the
7370         architecture supplies gdbarch_register_type, do not use the legacy
7371         regcache layout.
7372         * d10v-tdep.c (d10v_register_type): Replace
7373         d10v_register_virtual_type.
7374         (d10v_gdbarch_init): Set register_type instead of
7375         register_virtual_type.
7376
7377 2003-03-01  Andrew Cagney  <cagney@redhat.com>
7378
7379         * Makefile.in (ax-gdb.o): Update dependencies.
7380         * ax-gdb.c: Include "regcache.h".
7381         (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
7382         * findvar.c (value_of_register): Ditto.
7383         * infcmd.c (default_print_registers_info): Ditto.
7384
7385 2003-03-01  Mark Kettenis  <kettenis@gnu.org>
7386
7387         * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
7388         DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
7389
7390 2003-03-01  Mark Kettenis  <kettenis@gnu.org>
7391
7392         * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
7393         of STREQ.
7394
7395 2003-02-28  Daniel Jacobowitz  <drow@mvista.com>
7396
7397         * Makefile.in (dwarf2loc.o): Update dependencies.
7398         * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
7399         * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
7400         * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
7401         * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
7402         (locexpr_tracepoint_var_ref): New function.
7403         (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
7404
7405 2003-02-28  Andrew Cagney  <cagney@redhat.com>
7406
7407         * regcache.c (register_size): New function.
7408         * regcache.h (register_size): Declare
7409         * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
7410         max_register_size instead of MAX_REGISTER_RAW_SIZE.
7411
7412 2003-02-28  David Carlton  <carlton@math.stanford.edu>
7413
7414         * linespec.c (decode_compound): Extract code into find_method.
7415         (find_method): New.
7416
7417 2003-02-28  J. Brobecker  <brobecker@gnat.com>
7418
7419         * Makefile.in: Add rules to build and link in observer.o.
7420
7421 2003-02-27  J. Brobecker  <brobecker@gnat.com>
7422
7423         * observer.c: Minor comments edits.
7424
7425 2003-02-27  J. Brobecker  <brobecker@gnat.com>
7426
7427         * observer.h, observer.c: New file.
7428
7429 2003-02-27  Andrew Cagney  <cagney@redhat.com>
7430
7431         * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
7432
7433 2003-02-27  Stephane Carrez  <stcarrez@nerim.fr>
7434
7435         * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
7436         (M6812_OP_STS_EXT): Likewise.
7437         (m6811_prologue): Use the above to recognize prologue.
7438         (m6812_prologue): Likewise.
7439
7440 2003-02-27  David Carlton  <carlton@math.stanford.edu>
7441
7442         * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
7443         SYMBOL_PRINT_NAME.
7444         (compare_psymbols): Ditto.
7445         * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
7446
7447 2003-02-27  Michael Snyder  <msnyder@redhat.com>
7448
7449         * f-lang.c (build_fortran_types): New function.
7450         (_initialize_f_language): Gdbarch-register built-in fortran types.
7451         * doublest.c (extract_floating): Fix warning text.
7452
7453 2003-02-27  Andrew Cagney  <cagney@redhat.com>
7454
7455         * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
7456         predicate.  Replaces PUSH_DUMMY_FRAME.
7457         * gdbarch.h, gdbarch.c: Regnerate.
7458         * valops.c (hand_function_call): Update.  Call
7459         generic_push_dummy_frame directly.
7460         * vax-tdep.c (vax_gdbarch_init): Update.
7461         * sparc-tdep.c (sparc_gdbarch_init): Update.
7462         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7463         * m68k-tdep.c (m68k_gdbarch_init): Update.
7464         * hppa-tdep.c (hppa_gdbarch_init): Update.
7465         * alpha-tdep.c (alpha_gdbarch_init): Update.
7466         * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
7467         * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
7468         * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
7469         * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
7470         push_dummy_frame to generic_push_dummy_frame.
7471         * v850-tdep.c (v850_gdbarch_init): Ditto.
7472         * sh-tdep.c (sh_gdbarch_init): Ditto.
7473         * s390-tdep.c (s390_gdbarch_init): Ditto.
7474         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7475         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7476         * mips-tdep.c (mips_gdbarch_init): Ditto.
7477         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7478         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7479         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7480         * i386-tdep.c (i386_gdbarch_init): Ditto.
7481         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7482         * frv-tdep.c (frv_gdbarch_init): Ditto.
7483         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7484         * cris-tdep.c (cris_gdbarch_init): Ditto.
7485         * avr-tdep.c (avr_gdbarch_init): Ditto.
7486         * arm-tdep.c (arm_gdbarch_init): Ditto.
7487
7488 2003-02-26  Kevin Buettner  <kevinb@redhat.com>
7489
7490         * mips-tdep.c (show_mips_abi): New function.
7491         (_initialize_mips_tdep): Use show_mips_abi() to implement the
7492         command ``show mips abi''.
7493
7494 2003-02-26  Jeff Johnston  <jjohnstn@redhat.com>
7495
7496         From Elena Zannoni  <ezannoni@redhat.com>
7497         * dbxread.c (process_one_symbol): Only record line 0 if one or
7498         more sline entries have been seen for the function.
7499
7500 2003-02-26  Michael Chastain  <mec@shout.net>
7501
7502         * configure: Regenerate with autoconf 000227.
7503
7504 2003-02-26  Michael Chastain  <mec@shout.net>
7505
7506         Close PR build/660.
7507         * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
7508         for old libc5/glibc.
7509         * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
7510
7511 2003-02-26  Kris Warkentin  <kewarken@qnx.com>
7512
7513         * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
7514         * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
7515
7516 2003-02-26  Michael Chastain  <mec@shout.net>
7517
7518         * configure.in: New variable HAVE_UINTPTR_T.
7519         * configure, config.in: Regenerated.
7520
7521 2003-02-26  Daniel Jacobowitz  <drow@mvista.com>
7522
7523         Fix PR build/1097.
7524         * utils.c (gdb_realpath): Move closing brace outwards one #endif.
7525
7526 2003-02-25  Andrew Cagney  <cagney@redhat.com>
7527
7528         * frame.c (get_prev_frame): Add comment on check for
7529         inside_entry_func. Only check for inside_entry_file when not a
7530         dummy and not a sentinel.  Check that the new frame is not inner
7531         to the old frame.
7532
7533 2003-02-25  Andrew Cagney  <cagney@redhat.com>
7534
7535         * frame.c (frame_debug): New variable.
7536         (_initialize_frame): Add "set/show debug frame" command.
7537         (get_prev_frame): When frame_debug, print reason why unwind
7538         failed.
7539
7540 2003-02-25  Michael Chastain  <mec@shout.net>
7541
7542         * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
7543         to avoid uintptr_t definition problems.
7544
7545 2003-02-25  David Carlton  <carlton@math.stanford.edu>
7546
7547         * symtab.h (SYMBOL_NATURAL_NAME): New macro.
7548         (SYMBOL_LINKAGE_NAME): Ditto.
7549         (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
7550         SYMBOL_LINKAGE_NAME.
7551         (struct general_symbol_info): Expand comment.
7552         (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
7553         (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
7554         (SYMBOL_MATCHES_REGEXP): Ditto.
7555         * symtab.c (symbol_natural_name): New function.
7556         * objfiles.h: Replace all uses of SYMBOL_NAME by
7557         DEPRECATED_SYMBOL_NAME.
7558         * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
7559         * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
7560         * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
7561         * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
7562         * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
7563         * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
7564         * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
7565         * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
7566         * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
7567         * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
7568         * ada-exp.y: Ditto.
7569         * ada-exp.y: Update copyright.
7570         * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
7571         * cp-valprint.c: Ditto.
7572
7573 2003-02-25  Jeff Johnston  <jjohnstn@redhat.com>
7574
7575         * infptrace.c (detach): Do not flag error if ptrace detach fails
7576         and errno is set to ESRCH.
7577
7578 2003-02-24  Andrew Cagney  <cagney@redhat.com>
7579
7580         * infptrace.c (udot_info): Change type of udot_off to long.  Use
7581         paddr when printing udot_off's value.
7582
7583 2003-02-24  David Carlton  <carlton@math.stanford.edu>
7584
7585         * symtab.c (make_symbol_overload_list): Only read in partial
7586         symtabs containing a matching partial symbol.
7587
7588 2003-02-24  David Carlton  <carlton@math.stanford.edu>
7589
7590         * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
7591         do the comparison, not strcmp.
7592         * symfile.c (compare_psymbols): Ditto.
7593         * defs.h: Declare strcmp_iw_ordered.
7594         * utils.c (strcmp_iw_ordered): New function.
7595
7596 2003-02-24  Jim Blandy  <jimb@redhat.com>
7597
7598         * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
7599         support, shared libs): Remove my name from here, to better reflect
7600         reality.
7601
7602 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
7603
7604         * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
7605         (target_ops): Add to_have_continuable_watchpoint.
7606         * target.c (update_current_target): Add INHERIT line for
7607         to_have_continuable_watchpoint.
7608         * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
7609         * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
7610         config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
7611         config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
7612
7613 2003-02-24  Elena Zannoni  <ezannoni@redhat.com>
7614
7615         * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
7616         maintainership.
7617
7618 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
7619
7620         * solib.c (solib_open): Call target defined search function after
7621         failing with solib-search-path.
7622         * solist.h (target_so_ops): Add find_and_open_solib function hook and
7623         create define TARGET_SO_FIND_AND_OPEN_SOLIB.
7624
7625 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
7626
7627         * MAINTAINERS: Add myself to Write After section.
7628
7629 2003-02-23  Stephane Carrez  <stcarrez@nerim.fr>
7630
7631         * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
7632
7633 2003-02-22  Stephane Carrez  <stcarrez@nerim.fr>
7634
7635         * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
7636         (m68hc11_add_reggroups): New function.
7637         (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
7638         (m68hc11_gdbarch_init): Install the reggroups.
7639         (_initialize_m68hc11_tdep): Initialize them.
7640
7641 2003-02-21  James E Wilson  <wilson@tuliptree.org>
7642
7643         * MAINTAINERS: Update my email address.
7644
7645 2003-02-21  David Carlton  <carlton@math.stanford.edu>
7646
7647         * arm-tdep.c (arm_gdbarch_init): Add break after default label.
7648
7649 2003-02-21  Daniel Jacobowitz  <drow@mvista.com>
7650
7651         Based on a patch from Daniel Berlin (dberlin@dberlin.org).
7652         * symtab.h: Add opaque declarations of struct axs_value and
7653         struct agent_expr.
7654         (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
7655         (struct location_funcs): New type.
7656         (struct symbol): Add "loc" to aux_value.
7657         (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
7658         * dwarf2read.c: Include "dwarf2expr.h".
7659         (dwarf2_symbol_mark_computed): New function.
7660         (read_func_scope): Use it.
7661         (var_decode_location): New function.
7662         (new_symbol): Use it.
7663         * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
7664
7665         * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
7666         (dwarf2expr_h, dwarf2loc_h): New variables.
7667         (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
7668         (dwarf2expr.o, dwarf2loc.o): New rules.
7669         (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
7670         * buildsym.c (finish_block): Handle LOC_COMPUTED and
7671         LOC_COMPUTED_ARG.
7672         * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
7673         * m2-exp.y (yylex): Likewise.
7674         * printcmd.c (address_info, print_frame_args): Likewise.
7675         * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
7676         * symmisc.c (print_symbol, print_partial_symbols): Likewise.
7677         * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
7678         (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
7679         * symtab.c (lookup_block_symbol): Likewise.
7680
7681 2003-02-20  Adam Fedor  <fedor@gnu.org>
7682
7683         * symtab.h: Remove objc_specific struct
7684         (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
7685         * symtab.c (symbol_init_language_specific, symbol_demangled_name):
7686         Have language_objc use cplus_specific struct.
7687
7688 2003-02-20  Tom Tromey  <tromey@redhat.com>
7689
7690         * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
7691         TYPE_NAME, when printing a String value.  PR java/1075.
7692
7693 2003-02-20  Adam Fedor  <fedor@gnu.org>
7694
7695         * objc-lang.h (find_methods): Remove declaration.
7696         * objc-lang.c (find_methods): Make static.
7697
7698 2003-02-20  Christopher Faylor  <cgf@redhat.com>
7699
7700         * win32-nat.c (get_image_name): Check return value from
7701         ReadProcessMemory.
7702         (child_xfer_memory): Ditto.
7703
7704 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
7705
7706         * configure.in (TARGET_SYSTEM_ROOT): Set default to
7707         ${exec_prefix}/${target_alias}/sys-root.  Match explicit
7708         '${exec_prefix}' (in addition to the expansion thereof) as
7709         relocatable.
7710         * configure: Rebuilt.
7711
7712 2003-02-20  David Carlton  <carlton@math.stanford.edu>
7713
7714         * symtab.c (search_symbols): Revert the search_symbols part of my
7715         2002-12-23 patch.  Add comment.
7716
7717 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
7718
7719         * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
7720         * dbxread.c (elfstab_build_psymtabs): Don't call
7721         install_minimal_symbols.
7722         (stabsect_build_psymtabs): Likewise.
7723         * elfread.c (elf_symfile_read): Call install_minimal_symbols
7724         earlier.
7725         * somread.c (som_symfile_read): Call install_minimal_symbols
7726         and do_cleanups earlier.
7727         * nlmread.c (nlm_symfile_read): Likewise.
7728         * mdebugread.c (elfmdebug_build_psymtabs): Call
7729         install_minimal_symbols and make appropriate cleanups.
7730
7731 2003-02-20  Kevin Buettner  <kevinb@redhat.com>
7732
7733         * solib.c (reload_shared_libraries): New function.
7734         (_initialize_solib): Add callbacks for ``set solib-search-path''
7735         and ``set solib-absolute-prefix''.
7736
7737 2003-02-20  David Carlton  <carlton@math.stanford.edu>
7738
7739         * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
7740         expand comment.
7741         * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
7742         SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
7743         * ada-typeprint.c (ada_typedef_print): Ditto.
7744         * ax-gdb.c (gen_var_ref): Ditto.
7745         * breakpoint.c (print_one_breakpoint): Ditto.
7746         * buildsym.c (finish_block): Ditto.
7747         * c-valprint.c (c_val_print): Ditto.
7748         * expprint.c (print_subexp): Ditto.
7749         * findvar.c (locate_var_value): Ditto.
7750         * infcmd.c (jump_command): Ditto.
7751         * linespec.c (decode_line_2, decode_compound): Ditto.
7752         * maint.c (maintenance_translate_address): Ditto.
7753         * objc-lang.c (compare_selectors, compare_classes): Ditto.
7754         * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
7755         Ditto.
7756         * p-valprint.c (pascal_val_print): Ditto.
7757         * stabsread.c (define_symbol): Ditto.
7758         * stack.c (print_frame, frame_info, print_block_frame_locals)
7759         (print_frame_arg_vars, return_command): Ditto.
7760         * symfile.c (compare_symbols, compare_psymbols): Ditto.
7761         * symmisc.c (print_symbol): Ditto.
7762         * symtab.c (lookup_partial_symbol, lookup_block_symbol)
7763         (compare_search_syms, print_symbol_info, print_msymbol_info)
7764         (rbreak_command): Ditto.
7765         * tracepoint.c (tracepoints_info): Ditto.
7766         * typeprint.c (typedef_print): Ditto.
7767         * valops.c (value_of_variable, hand_function_call): Ditto.
7768         * cli/cli-cmds.c (edit_command, list_command): Ditto.
7769         * ada-typeprint.c: Update Copyright.
7770         * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
7771         * tracepoint.c, cli/cli-cmds.c: Ditto.
7772
7773 2003-02-20  Kevin Buettner  <kevinb@redhat.com>
7774
7775         * frame.c (generic_unwind_get_saved_register): Make non-static.
7776         * frame.h (generic_unwind_get_saved_register): Declare.
7777         * mips-tdep.c (read_next_frame_reg): Fetch register from
7778         current regcache when frame is NULL.
7779         (mips_init_extra_frame_info): Pass NULL explicitly for parameter
7780         that must be NULL.
7781         (mips_get_saved_register): Call generic_unwind_get_saved_register()
7782         instead of frame_register_unwind().
7783
7784 2003-02-20  Andrew Cagney  <ac131313@redhat.com>
7785
7786         * remote-sim.c (gdbsim_insert_breakpoint)
7787         (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
7788         code.
7789
7790 2003-02-20  Andrew Cagney  <ac131313@redhat.com>
7791
7792         * remote.c (_initialize_remote): Add commands "set/show remote
7793         hardware-watchpoint-limit" and "set/show remote
7794         hardware-breakpoint-limit".
7795         (remote_hw_watchpoint_limit): Initialize to -1.
7796         (remote_hw_breakpoint_limit): Ditto.
7797         (remote_check_watch_resources): Treat a limit of -1 as unlimited.
7798
7799 2003-02-19  Raoul Gough  <RaoulGough@yahoo.co.uk>
7800
7801         * coff-pe-read.c: New file - support reading of minimal symbols from a
7802         portable executable using the export table.
7803         * coff-pe-read.h: New file.
7804         * coffread.c: Include coff-pe-read.h.
7805         (coff_symtab_read): Call read_pe_exported_syms iff no recognized
7806         debugging symbols found.
7807         * Makefile.in (SFILES): Add coff-pe-read.o.
7808         (coff_pe_read_h): Define.
7809         (COMMON_OBS): Add coff-pe-read.o.
7810         (coffread.o): Add coff_pe_read_h dependency.
7811         (coff-pe-read.o): New target.
7812
7813 2003-02-19  David Carlton  <carlton@math.stanford.edu>
7814
7815         * Makefile.in (SFILES): Add block.c.
7816         (block_h): New.
7817         (COMMON_OBS): Add block.o.
7818         (block.o): New.
7819         (x86-64-tdep.o): Add $(block_h).
7820         (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
7821         (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
7822         (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
7823         (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
7824         (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
7825         (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
7826         (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
7827         * value.h: Add opaque declaration for struct block.
7828         * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
7829         * ada-lang.h: Ditto.
7830         * x86-64-tdep.c: #include "block.h"
7831         * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
7832         * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
7833         * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
7834         * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
7835         * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
7836         * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
7837         * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
7838         * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
7839         * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
7840         (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
7841         * symtab.c (block_function): Ditto.
7842         (contained_in): Ditto.
7843         * frame.h: Move block_for_pc and block_for_pc_sect declarations to
7844         block.h.  Add opaque declaration for struct block.
7845         * symtab.h: Move block_function and contained_in declarations to
7846         block.h.  Add opaque declarations for struct block, struct
7847         blockvector.
7848         (struct block): Move to block.h.
7849         (struct blockvector): Ditto.
7850         (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
7851         (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
7852         (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
7853         (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
7854         (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
7855         Ditto.
7856         * block.c: New file.
7857         * block.h: New file.
7858
7859 2003-02-19  Theodore A. Roth  <troth@openavr.org>
7860
7861         * avr-tdep.c (avr_extract_return_value): Remove function.
7862         (avr_store_return_value): Remove function.
7863         (avr_extract_struct_value_address): Remove function.
7864         (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
7865
7866 2003-02-19  Andrew Cagney  <ac131313@redhat.com>
7867
7868         * rs6000-tdep.c: Include "gdb_assert.h".
7869         (registers_e500): Add "acc" and "spefscr".
7870         (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
7871         (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
7872         ppc_gplast_regnum, sp_regnum and fp_regnum.  Check that gp0_regnum
7873         really is "r0".
7874         (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
7875
7876 2003-02-18  Keith Seitz  <keiths@redhat.com>
7877
7878         * Makefile.in: Add gdbtk-interps.c.
7879
7880 2003-02-18  Kevin Buettner  <kevinb@redhat.com>
7881
7882         * sparc-tdep.c (sparc_frame_chain): Adjust return value.
7883         * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
7884
7885 2003-02-18  Andrew Cagney  <cagney@redhat.com>
7886
7887         * symtab.h (struct objfile): Add opaque declaration.
7888
7889 2003-02-18  Elena Zannoni  <ezannoni@redhat.com>
7890
7891         From Jim Ingham   <jingham@apple.com>:
7892         * dbxread.c (process_one_symbol): Use last_function_start rather
7893         than function_start_offset to find the real beginning of the
7894         current function.  The latter is just the text section offset on
7895         some systems, the former is always the real function start.
7896
7897 2003-02-17  Andrew Cagney  <cagney@redhat.com>
7898
7899         * configure.in: Revert ${target} != ${host}.
7900
7901 2003-02-17  Andrew Cagney  <ac131313@redhat.com>
7902
7903         * configure.in (Makefile): Use the test ${target} != ${host},
7904         instead of the absence of the "nm.h" file, to determine of the
7905         configuration non-native.
7906         * configure: Regenerate.
7907
7908 2003-02-14  Elena Zannoni  <ezannoni@redhat.com>
7909
7910         From Brian Ford  <ford@vss.fsi.com>
7911
7912         * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
7913         conditionalize tui_active test.
7914         (lookup_cmd_1): Ditto.
7915
7916 2003-02-14  Mark Kettenis  <kettenis@gnu.org>
7917
7918         * configure.in: Add check for _etext.
7919         * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
7920         available.
7921         * config.in, configure: regenerated.
7922
7923 2003-02-14  Daniel Jacobowitz  <drow@mvista.com>
7924
7925         * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
7926
7927 2003-02-14  Andrew Cagney  <ac131313@redhat.com>
7928
7929         * main.c (tui_version): Delete variable.
7930         (captured_main): When --tui, set interpreter_p to "tui" instead of
7931         enabling tui_version.
7932         * printcmd.c (display_command) [TUI]: Test tui_active instead of
7933         tui_version.
7934         * cli/cli-decode.c (lookup_cmd_composition): Ditto.
7935         * cli/cli-cmds.c (disassemble_command): Ditto.
7936         * defs.h (tui_version): Delete declaration.
7937         * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
7938         (tui-interp.o): Add rules.
7939         (SUBDIR_TUI_OBS): Add "tui-interp.o".
7940
7941 2003-02-14  Christopher Faylor  <cgf@redhat.com>
7942
7943         * win32-nat.c (register_loaded_dll): Correctly set address range for
7944         just-loaded dll.
7945
7946 2003-02-12  Jason Molenda  (jmolenda@apple.com)
7947
7948         * symmisc.c (print_objfile_statistics): Include information about
7949         the number of psymtabs and symtabs in each object file.
7950
7951 2003-02-13  Keith R Seitz  <keiths@redhat.com>
7952
7953         * main.h (struct captured_main_args): Add interpreter_p.
7954         * main.c (captured_main): Initialize interpreter_p from context.
7955         * gdb.c (main): Set interpreter_p argument.
7956         * Makefile.in (gdb.o): Add dependency for interps.h.
7957
7958 2003-02-12  Andrew Cagney  <ac131313@redhat.com>
7959
7960         * event-top.c (cli_command_loop): Delete declaration.
7961         (_initialize_event_loop): Delete function setting event_loop_hook.
7962         * event-top.h (cli_command_loop): Declare.  Update copyright.
7963         (EVENT_TOP_H): Define.  Wrap header in #ifdef EVENT_TOP_H.
7964         * interps.c (current_interp_command_loop): When event_loop_p, call
7965         cli_command_loop.
7966
7967 2003-02-12  Andrew Cagney  <ac131313@redhat.com>
7968
7969         * interps.h (interp_command_loop_ftype): Change return type to
7970         void.
7971
7972 2003-02-12  Michal Ludvig  <mludvig@suse.cz>
7973
7974         * x86-64-tdep.c (x86_64_extract_return_value)
7975         (x86_64_store_return_value): Use regcache instead of regbuf.
7976         (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
7977         * x86-64-linux-nat.c (fill_gregset): Use regcache.
7978
7979 2003-02-11  Andrew Cagney  <ac131313@redhat.com>
7980
7981         * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
7982         * aclocal.m4: Regenerate.
7983         * configure: Regenerate.
7984
7985         * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
7986         TCL_LD_SEARCH_FLAGS.
7987
7988 2003-02-10  Michal Ludvig  <mludvig@suse.cz>
7989
7990         * dwarf2cfi.c: Reindented.
7991
7992 2003-02-09  Andrew Cagney  <ac131313@redhat.com>
7993
7994         * interps.c (clear_interpreter_hooks): Convert function definition
7995         to ISO C.
7996
7997 2003-02-07  David Carlton  <carlton@math.stanford.edu>
7998
7999         * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
8000
8001 2003-02-07  Kevin Buettner  <kevinb@redhat.com>
8002
8003         * gdbtypes.h (struct main_type): Move ``length'' field from here...
8004         (struct type): ...to here.
8005         (TYPE_LENGTH): Adjust to reflect different location of ``length''
8006         field.
8007         * gdbtypes.c (make_qualified_type): Set length on newly created type.
8008         (replace_type): Set length on all type variants for a given type.
8009
8010 2003-02-07  Andrew Cagney  <ac131313@redhat.com>
8011
8012         * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
8013         <sys/stat.h>.
8014         * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8015
8016 2003-02-06  Andrew Cagney  <ac131313@redhat.com>
8017
8018         * Makefile.in (symm-nat.o): Update dependencies.
8019         (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
8020         (lynx-nat.o, ia64-linux-nat.): Ditto.
8021         * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
8022         "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
8023         * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
8024
8025         * Makefile.in (inflow_h): Define.
8026         (procfs.o, inflow.o, procfs.o): Update dependencies.
8027         * inftarg.c (child_stop): Delete extern declaration of
8028         inferior_process_group.  Include "inflow.h".
8029         * procfs.c (procfs_stop): Ditto.  Include "inflow.h".
8030         * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
8031         * inflow.h (PROCESS_GROUP_TYPE): ... to here.  New file.
8032         (our_process_group, inferior_process_group): Extern declarations.
8033
8034         * procfs.c: Include "gdb_assert.h".
8035
8036         * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
8037         * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
8038         * jv-typeprint.c (java_type_print_base): Ditto.
8039         * typeprint.c (typedef_print): Eliminate STREQ.
8040         * cli/cli-script.c (define_command, define_command): Ditto.
8041         * main.c (captured_main): Ditto.
8042         * values.c (lookup_internalvar): Ditto.
8043         * utils.c (safe_strerror, parse_escape): Eliminate assignment
8044         within `if' conditional.
8045         * linespec.c (decode_line_2): Ditto.
8046         * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
8047         (bfd_openw_with_cleanup): Ditto.
8048
8049 2003-02-07  Mark Kettenis  <kettenis@gnu.org>
8050
8051         * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
8052         legacy_extract_return_value and store_return_value to
8053         legacy_return_value.
8054
8055 2003-02-06  Raoul Gough  <RaoulGough@yahoo.co.uk>
8056
8057         * win32-nat.c (get_relocated_section_addrs): New function.  Find
8058         section load addresses for symbol handling in relocated DLLs.
8059         (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
8060
8061 2003-02-05  Fred Fish  <fnf@intrinsity.com>
8062
8063         * remote-e7000.c (e7000_drain_command): Fix precedence problem with
8064         '=' and '!='.
8065         * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
8066         with '&' and '=='.
8067         (angel_RDI_info): Ditto.
8068         * infttrace.c (threads_continue_all_but_one): Fix precedence problem
8069         with '&' and '!='.
8070         (threads_continue_all_with_signals): Ditto.
8071
8072 2003-02-05  Jim Ingham <jingham@apple.com>
8073             Keith Seitz  <keiths@redhat.com>
8074             Elena Zannoni  <ezannoni@redhat.com>
8075             Andrew Cagney  <ac131313@redhat.com>
8076
8077         * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
8078         (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
8079         (SUBDIR_MI_OBS): Add "mi-interp.o".
8080         (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
8081         (SFILES): Add "interps.c".
8082         (COMMON_OBS): Add "interps.o".
8083         (interps_h, mi_main_h): Define.
8084         (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
8085         (mi-main.o, main.o, event-top.o): Update dependencies.
8086         * cli/cli-interp.c: New file.
8087         * interps.h, interps.c: New files.
8088         * top.c: (gdb_init): Don't install the default interpreter, handed
8089         by captured_main.
8090         * main.c: Include "interps.h".
8091         (interpreter_p): Note that it should malloc'ed.
8092         (captured_command_loop): Call current_interp_command_loop.
8093         (captured_main): Initialize interpreter_p to INTERP_CONSOLE.  Use
8094         xfree and xstrdup when updating interpreter_p.  Install the
8095         default interpreter.  Add hack to stop mi1's copyright notice
8096         being encoded.
8097         * event-top.h (gdb_setup_readline): Declare.
8098         (gdb_disable_readline): Declare.
8099         * event-top.c: Include "interps.h".
8100         (display_gdb_prompt): Call current_interp_display_prompt_p.
8101         (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
8102         gdb_stdlog, and gdb_stdtarg.
8103         (_initialize_event_loop): Don't call gdb_setup_readline.
8104         * cli-out.c (cli_out_set_stream): New function.
8105         * cli-out.h (cli_out_set_stream): Declare.
8106
8107 2003-02-06  Mark Kettenis  <kettenis@gnu.org>
8108
8109         * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
8110         i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove.  These are all
8111         handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
8112         * config/i386/i386sco5.mt, config/i386/i386v4.mt,
8113         config/i386/i386v42mp.mt: Removed.
8114
8115 2003-02-05  Mark Kettenis  <kettenis@gnu.org>
8116
8117         * configure.tgt (*-*-solaris*): Set gdb_osabi to
8118         GDB_OSABI_SOLARIS.
8119
8120 2003-02-05  Michael Chastain  <mec@shout.net>
8121
8122         * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
8123         2.12.1 and earlier versions.
8124
8125 2003-02-05  Andrew Cagney  <ac131313@redhat.com>
8126
8127         Remove orphaned hosts, targets and files.
8128         * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
8129         * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
8130         * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
8131         * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
8132         * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
8133         * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
8134         * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
8135         * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
8136         * config/sparc/tm-sp64sim.h: Delete.
8137         * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
8138         hosts.
8139         * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
8140         mips*-dec-mach3* targets.
8141
8142 2003-02-04  Michael Chastain  <mec@shout.net>
8143
8144         * NEWS: Fix typo: sepcifying -> specifying.
8145
8146 2003-02-04  Michael Chastain  <mec@shout.net>
8147
8148         * dwarfread.c: Add documentation on the state of dwarf-1,
8149         looking towards obsoletion.
8150
8151 2003-02-03  Michael Chastain  <mec@shout.net>
8152
8153         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
8154         gdb/testsuite/gdb.c++/pr-1023.exp.
8155
8156 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
8157
8158         * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
8159         * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
8160
8161         * utils.c (init_page_info): Delete reference to MPW in comments.
8162         * main.c (captured_main): Delete #ifdef MPW.
8163
8164 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
8165
8166         * NEWS: Note that the m32r-*-elf* is obsolete.
8167         * monitor.c (monitor_expect): Obsolete reference to m32r.
8168         * configure.tgt: Mark m32r-*-elf* as obsolete.
8169         * MAINTAINERS: Mark m32k as obsolete.
8170         * m32r-rom.c: Obsolete file.
8171         * config/m32r/m32r.mt: Obsolete file.
8172         * config/m32r/tm-m32r.h: Obsolete file.
8173         * m32r-stub.c: Obsolete file.
8174         * m32r-tdep.c: Obsolete file.
8175
8176 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
8177
8178         * NEWS: Mention that the z8k-zilog-none is obsolete.
8179         * MAINTAINERS: Mark z8k as obsolete.
8180         * configure.tgt: Obsolete the z8k-*-coff* target.
8181         * config/z8k/z8k.mt: Obsolete file.
8182         * config/z8k/tm-z8k.h: Obsolete file.
8183         * z8k-tdep.c: Obsolete file.
8184
8185 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
8186
8187         * NEWS: Mention that the mn10200-elf is obsolete.
8188         * configure.tgt: Obsolete mn10200-*-* target.
8189         * breakpoint.c (update_breakpoints_after_exec): Update comment to
8190         mention that the mn10200 is obsolete.
8191         * breakpoint.h: Ditto.
8192         * MAINTAINERS: Mark the mn10200-elf as obsolete.
8193         * config/mn10200/mn10200.mt: Obsolete file.
8194         * config/mn10200/tm-mn10200.h: Obsolete file.
8195         * mn10200-tdep.c: Obsolete file.
8196
8197 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
8198
8199         * MAINTAINERS: Mark h8500 as obsolete.
8200         * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
8201         * findvar.c (value_from_register): Ditto.
8202         * h8500-tdep.c: Mark file as obsolete.
8203         * config/h8500/h8500.mt: Ditto.
8204         * config/h8500/tm-h8500.h: Ditto.
8205         * NEWS: Mention that h8500 is obsolete.
8206
8207 2003-02-04  David Carlton  <carlton@math.stanford.edu>
8208
8209         * objfiles.c (allocate_objfile): Always set name.  Add comment at
8210         start of function.
8211         * jv-lang.c (get_dynamics_objfile): Add comment.
8212
8213 2003-02-04  David Carlton  <carlton@math.stanford.edu>
8214
8215         * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
8216         * printcmd.c (build_address_symbolic): Replace uses of
8217         SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
8218         SYMBOL_NAME, and asm_demangle.
8219         Update copyright.
8220
8221 2003-02-04  David Carlton  <carlton@math.stanford.edu>
8222
8223         * linespec.c (decode_compound): Extract code into
8224         lookup_prefix_sym.
8225         (lookup_prefix_sym): New function.
8226
8227 2003-02-04  David Carlton  <carlton@math.stanford.edu>
8228
8229         * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
8230         FLOAT_COERCION_BADNESS.
8231         * gdbtypes.c (rank_one_type): Replace all uses of
8232         INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
8233
8234 2003-02-04  Jim Blandy  <jimb@redhat.com>
8235
8236         * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
8237         section, let dwarf_macinfo_section point to it, not
8238         dwarf_loc_section.
8239
8240 2003-02-04  Daniel Jacobowitz  <drow@mvista.com>
8241
8242         Pointed out by Anton Blanchard <anton@samba.org>.
8243         * ppc-linux-tdep.c (insn_is_sigreturn): New function.
8244         (ppc_linux_at_sigtramp_return_path): Use it.
8245
8246 2003-02-04  Daniel Jacobowitz  <drow@mvista.com>
8247
8248         * defs.h (streq): Add prototype.
8249         * utils.c (streq): New function.
8250
8251         * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
8252         SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
8253         * mdebugread.c (new_symbol): Likewise.
8254         * stabsread.c (define_symbol): Likewise.
8255         * coffread.c (process_coff_symbol): Likewise.
8256         * dwarfread.c (new_symbol): Likewise.
8257
8258         * minsyms.c (prim_record_minimal_symbol_and_info): Use
8259         SYMBOL_SET_NAMES instead of setting SYMBOL_NAME.  Set the language
8260         here.
8261         (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
8262         SYMBOL_INIT_DEMANGLED_NAME.
8263         * objfiles.c: Include "hashtab.h".
8264         (allocate_objfile): Call htab_set_functions_ex for the
8265         demangled_names_hash.
8266         (free_objfile): Call htab_delete for the demangled_names_hash.
8267         * objfiles.h (struct htab): Add declaration.
8268         (struct objfile): Add demangled_names_hash.
8269         * symfile.c: Include "hashtab.h".
8270         (reread_symbols): Call htab_delete for the demangled_names_hash.
8271         (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
8272         SYMBOL_NAME in the bcache.
8273         * symtab.c: Include "hashtab.h".  Update comments.
8274         (create_demangled_names_hash, symbol_set_names): New functions.
8275         (symbol_find_demangled_name): New function, broken out from
8276         symbol_init_demangled_names.
8277         (symbol_init_demangled_names): Use it.
8278         * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
8279         (SYMBOL_SET_NAMES): New macro.
8280         (symbol_set_names): Add prototype.
8281
8282 2003-02-03  Jim Blandy  <jimb@redhat.com>
8283
8284         Use a single, consistent representation for an empty minimal
8285         symbol table in an objfile.
8286         * objfiles.c (terminate_minimal_symbol_table): New function.
8287         (allocate_objfile): Call it.
8288         * objfiles.h (terminate_minimal_symbol_table): New declaration.
8289         (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8290         non-NULL.
8291         * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
8292         objfile has minimal symbols, compare minimal_symbol_count to zero,
8293         instead of comparing msymbols with NULL.
8294         * objfiles.c (have_minimal_symbols): Same.
8295         * solib-sunos.c (solib_add_common_symbols): Call
8296         terminate_minimal_symbol_table.
8297         * symfile.c (reread_symbols): Same.
8298
8299 2003-02-03  Kevin Buettner  <kevinb@redhat.com>
8300
8301         * s390-tdep.c (s390_address_class_type_flags)
8302         (s390_address_class_type_flags_to_name)
8303         (s390_address_class_name_to_type_flags): New functions.
8304         (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
8305         ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
8306
8307 2003-02-03  Michael Snyder  <msnyder@redhat.com>
8308
8309         * arm-tdep.c: Fix spell-o in comment.
8310
8311 2003-02-03  Michal Ludvig  <mludvig@suse.cz>
8312
8313         * dwarf2cfi.c (pointer_encoding): Added new parameter.
8314         * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8315         error messages to contain BFD filename.
8316
8317 2003-02-02  Elena Zannoni  <ezannoni@redhat.com>
8318
8319         Fix PR gdb/742 gdb/743 gdb/877
8320         * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
8321         (do_mixed_source_and_assembly): Use
8322         make_cleanup_ui_out_tuple_begin_end and
8323         make_cleanup_ui_out_tuple_begin_end.
8324         (do_mixed_source_and_assembly): Ditto.
8325         * thread.c (do_captured_list_thread_ids): Ditto.
8326         * ui-out.h (ui_out_table_begin, ui_out_list_begin,
8327         ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
8328         ui_out_tuple_end): Delete prototypes.
8329         * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
8330         ui_out_list_end, ui_out_tuple_end): Delete.
8331
8332         From Kevin Buettner  <kevinb@redhat.com>:
8333         * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
8334         * ui-out.c (make_cleanup_ui_out_table_begin_end)
8335         (do_cleanup_table_end):  New functions.
8336         * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
8337         Use cleanups to invoke_ui_out_tuple_end().
8338         (breakpoint_1): Use cleanup to invoke ui_out_table_end().
8339         * cli/cli-setshow.c (cmd_show_list): Use
8340         make_cleanup_ui_out_tuple_begin_end.
8341
8342 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
8343
8344         * frame.c (frame_unwind_register): New function.
8345         (frame_unwind_unsigned_register): Use.
8346         (frame_unwind_signed_register): Use.
8347         (frame_read_register): New function.
8348         * frame.h (frame_unwind_register): Declare.
8349         (frame_read_register): Declare.
8350
8351         * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
8352         and frame_unwind_register instead of read_memory, write_register
8353         and deprecated_write_register_bytes.
8354
8355 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
8356
8357         * frame.h: Note that namelen can be negative.
8358         * frame.c (frame_map_name_to_regnum): When LEN is negative, use
8359         NAME's length.
8360
8361         * NEWS: Mention that the d10v's `regs' command is deprecated.
8362         * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
8363         (d10v_print_registers_info): New function.
8364         (show_regs): Call d10v_print_registers_info.
8365         (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
8366
8367 2003-02-02  Mark Kettenis  <kettenis@gnu.org>
8368
8369         * stack.c (print_frame_info): Restore call to annotate_frame_begin
8370         lost in the previous patch.
8371
8372 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
8373
8374         From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
8375         * stack.c (print_frame_info_base): Output complete FRAME tuple
8376         for synthesized frames.
8377
8378 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
8379
8380         * mips-nat.c (zerobuf): Delete.
8381         (fetch_inferior_registers): Alloc local zerobuf.
8382         (fetch_core_registers): Alloc local zerobuf.
8383         * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
8384         MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
8385         * thread-db.c (thread_db_store_registers): Ditto.
8386         * sh-tdep.c (sh_do_register): Ditto.
8387         * rom68k-rom.c (rom68k_supply_one_register): Ditto.
8388         * remote-sim.c (gdbsim_store_register): Ditto.
8389         * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
8390         * remote-e7000.c (fetch_regs_from_dump): Ditto.
8391         * monitor.c (monitor_supply_register): Ditto.
8392         * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
8393         * mips-nat.c (fetch_inferior_registers): Ditto.
8394         * m68klinux-nat.c (fetch_register): Ditto.
8395         * lynx-nat.c (fetch_inferior_registers): Ditto.
8396         (fetch_inferior_registers): Ditto.
8397         * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
8398         * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
8399         (hpux_thread_store_registers): Ditto.
8400         * hppah-nat.c (fetch_register): Ditto.
8401         * hppab-nat.c (fetch_register): Ditto.
8402         * hppa-tdep.c (pa_register_look_aside): Ditto.
8403         (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
8404         * dve3900-rom.c (fetch_bitmapped_register): Ditto.
8405
8406 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
8407
8408         * gdbarch.sh: Explictly specify all method levels.  When a
8409         variable with an empty level, provide a non-multi-arch default.
8410         (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
8411         * gdbarch.h: Re-generate.
8412         * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete.  Always defined.
8413         * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
8414
8415 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
8416
8417         * defs.h (host_pointer_to_address): Delete declaration.
8418         (address_to_host_pointer): Delete declaration.
8419         * utils.c (host_pointer_to_address): Delete function.
8420         (address_to_host_pointer): Delete function.
8421         * procfs.c (procfs_address_to_host_pointer): New function.
8422         * procfs.c (proc_set_watchpoint): Use.
8423         (procfs_can_use_hw_breakpoint): Update comments.
8424         * somsolib.c (hpux_address_to_host_pointer_hack): New function.
8425         (som_solib_add): Use.
8426         * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
8427         * hppa-tdep.c (unwind_command): Use.
8428
8429 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
8430
8431         * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
8432         strlen d_name.
8433
8434         * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
8435         ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
8436         (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
8437         * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
8438         (define_symbol): Update.
8439         * symfile.c (generic_load): Remove references to nindy.
8440         * symtab.c: Remove references to nindy.
8441
8442 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
8443
8444         * infcmd.c (print_float_info): Delete code conditional on
8445         FLOAT_INFO.
8446         * config/nm-lynx.h: Delete #undef FLOAT_INFO.  Update copyright.
8447         * config/m68k/nm-apollo68b.h: Ditto.
8448         * config/i386/tm-ptx.h (FLOAT_INFO): Delete.  Update copyright.
8449         * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
8450         * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
8451
8452 2003-02-01  Mark Kettenis  <kettenis@gnu.org>
8453
8454         * config/i386/tm-i386os9k.h: Removed.
8455
8456         * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
8457         Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
8458         they're identical to i[3456]86-*-sysv* now.
8459         * config/i386/i386v32.mh: Removed.
8460         * config/i386/xm-i386v32.h: Removed.
8461         * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
8462
8463         * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
8464
8465         * config/i386/i386dgux.mh: Removed.
8466         * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
8467
8468         * configure.in: Fix typo.
8469         * configure: Regenerated.
8470
8471 2003-01-31  David Carlton  <carlton@math.stanford.edu>
8472
8473         * dwarf2read.c (dwarf2_locate_sections): Set
8474         dwarf_ranges_section.
8475
8476 2003-01-31  Andrew Cagney  <ac131313@redhat.com>
8477
8478         * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
8479         * utils.c: Update comments documenting legitimate uses of PTR.
8480
8481         * utils.c: Re-indent.
8482
8483         * config/djgpp/fnchange.lst: Delete nindy files.
8484         * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
8485         * nindy-share/nindy.c, nindy-share/env.h: Delete files.
8486         * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
8487         * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
8488         * nindy-share/README, nindy-share/Onindy.c: Delete files.
8489         * nindy-tdep.c, nindy-share/Makefile: Delete files.
8490         * Makefile.in (init.c): Remove nindy references.
8491         (saber_gdb): Delete rule.
8492         (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
8493         nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
8494         and a68v-nat.c.
8495         (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
8496         (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
8497         (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
8498         nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
8499         nindy-share/stop.h.
8500         * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
8501         * saber.suppress: Delete file.
8502
8503 2003-01-31  Daniel Jacobowitz  <drow@mvista.com>
8504
8505         * dbxread.c (stabs_data): New static variable.
8506         (fill_symbuf): Support an in-memory buffer for stabs data.
8507         (stabs_seek): New function.
8508         (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
8509         (read_ofile_symtab): Use stabs_seek.
8510         (elfstab_build_psymtabs): Take an asection* instead of
8511         an offset and size.  Relocate the stabs data if necessary.
8512         Save the section* for dbx_psymtab_to_symtab.
8513         * dwarf2read.c: Add section variables for each debug section.
8514         (dwarf2_locate_sections): Fill them in.
8515         (dwarf2_read_section): Take an asection* argument.
8516         Relocate the section contents if necessary.
8517         (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
8518         * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
8519         it to dwarf2_read_section.
8520         (dwarf2_build_frame_info): Update callers.
8521         * elfread.c (elf_symfile_read): Update call to
8522         elfstab_build_psymtabs.
8523         * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
8524         (DBX_STAB_SECTION): New macro.
8525         * stabsread.h (elfstab_build_psymtabs): Update prototype.
8526         * symfile.c (symfile_dummy_outputs): New function.
8527         (symfile_relocate_debug_section): New function.
8528         * symfile.h (symfile_relocate_debug_section): Add prototype.
8529
8530 2003-01-31  Richard Henderson  <rth@redhat.com>
8531
8532         * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
8533         (register_addr): ... here.  Support ALPHA_UNIQUE_REGNUM.
8534         (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
8535         * alpha-tdep.c (alpha_register_name): Add "unique".
8536         * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
8537         (ALPHA_UNIQUE_REGNUM): New.
8538         * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
8539
8540 2003-01-31  Andrew Cagney  <ac131313@redhat.com>
8541
8542         * README: Remove reference to Ericsson 1800 monitor.
8543         * Makefile.in (remote-es.o): Delete rule.
8544         (ALLDEPFILES): Delete remote-es.c.
8545         * remote-es.c: Delete file.
8546         * config/m68k/es1800.mt: Delete file.
8547         * config/djgpp/fnchange.lst: Update.
8548         * configure.tgt: Delete m68*-ericsson-* target.
8549
8550 2003-01-31  Adam Fedor  <fedor@gnu.org>
8551
8552         * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
8553         Remove duplicate/shadowing variable of same name.
8554
8555 2003-01-30  Jim Blandy  <jimb@redhat.com>
8556
8557         * symfile.c (find_separate_debug_file): Assert that the objfile's
8558         directory name we compute ends with a slash, and then assume that
8559         that's so everywhere we use it.
8560
8561 2003-01-30  Daniel Jacobowitz  <drow@mvista.com>
8562
8563         * valops.c (value_assign): Flush frame cache after stores to memory
8564         also.
8565
8566 2003-01-30  Andrew Cagney  <ac131313@redhat.com>
8567
8568         * Makefile.in (mon960-rom.o): Delete rule.
8569         * mon960-rom.c: Delete file.
8570
8571 2003-01-30  Andrew Cagney  <ac131313@redhat.com>
8572
8573         * d10v-tdep.c: Include "frame-unwind.h".
8574         (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
8575         list.
8576         (next_addr, uses_frame): Delete.
8577         (struct d10v_unwind_cache): Define.
8578         (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
8579         Use info instead of next_addr and uses_frame globals.
8580         (d10v_frame_init_saved_regs): Delete function.
8581         (d10v_init_extra_frame_info): Delete function.
8582         (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
8583         frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
8584         init_frame_pc or frame_saved_pc.
8585         (d10v_pop_frame): Delete function.
8586         (do_d10v_pop_frame): Delete function.
8587         (d10v_frame_chain): Delete function.
8588         (d10v_frame_chain_valid): Delete function.
8589         (d10v_frame_pc_unwind): New function.
8590         (d10v_frame_id_unwind): New function.
8591         (saved_regs_unwinder): New function.
8592         (d10v_frame_register_unwind): New function.
8593         (d10v_frame_pop): New function.
8594         (d10v_frame_unwind): New variable.
8595         (d10v_frame_p): New function.
8596         (d10v_frame_saved_pc): Delete function.
8597         * Makefile.in (d10v-tdep.o): Update dependencies.
8598
8599 2003-01-30  J. Brobecker  <brobecker@gnat.com>
8600
8601         * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
8602         causing some regressions due to a change in the default value
8603         for this macro.
8604
8605 2003-01-29  Richard Henderson  <rth@redhat.com>
8606             Elena Zannoni  <ezannoni@redhat.com>
8607             Daniel Jacobowitz  <drow@mvista.com>
8608
8609         Fix PR gdb/961.
8610         * dwarf2read.c  (dwarf_ranges_offset, dwarf_ranges_size): New
8611         variables.
8612         (RANGES_SECTION): New.
8613         (dwarf_ranges_buffer): New variable.
8614         (struct comp_unit_head): Add member "die".
8615         (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
8616         (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
8617         (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
8618         (dwarf2_locate_sections): Likewise.
8619         (dwarf2_build_psymtabs): Read .debug_ranges.
8620         (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
8621         (psymtab_to_symtab_1): Swap dwarf_ranges in.  Set cu_header.die.
8622         (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
8623         Look for DW_AT_ranges and return the bounding box.
8624
8625 2003-01-29  Brian Ford <ford@vss.fsi.com>
8626
8627         * win32-nat.c (cygwin_pid): Removed as unused.
8628         (child_attach): Try fall back to Cygwin pid.
8629
8630 2003-01-29  Jim Blandy  <jimb@redhat.com>
8631
8632         * objfiles.h (struct objfile): Doc fix.
8633
8634 2003-01-29  Andrew Cagney  <ac131313@redhat.com>
8635
8636         * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
8637         (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
8638         (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
8639         (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
8640         * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
8641         (FRAME_SAVED_PC): Change to a function with predicate.
8642         * gdbarch.h, gdbarch.c: Re-generate.
8643
8644 2003-01-28  Andrew Cagney  <ac131313@redhat.com>
8645
8646         * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
8647
8648         * complaints.c (complain): Delete function.
8649         * complaints.h (struct deprecated_complaint): Delete definition.
8650         (complain): Delete declaration.
8651
8652 2003-01-28  Kevin Buettner  <kevinb@redhat.com>
8653
8654         * mips-tdep.c (mips_init_extra_frame_info): Return early for
8655         dummy frames.
8656
8657 2003-01-27  Andrew Cagney  <ac131313@redhat.com>
8658
8659         * sentinel-frame.h, sentinel-frame.c: New files.
8660         * Makefile.in (frame.o): Update dependencies.
8661         (SFILES): Add sentinel-frame.c.
8662         (sentinel_frame_h): Define.
8663         (COMMON_OBS): Add sentinel-frame.o.
8664         (sentinel-frame.o): Specify dependencies.
8665         * frame.c: Include "sentinel-frame.h".
8666         (frame_register_unwind): Rewrite assuming that there is always a a
8667         ->next frame.
8668         (frame_register, generic_unwind_get_saved_register): Ditto.
8669         (frame_read_unsigned_register, frame_read_signed_register): Ditto.
8670         (create_sentinel_frame, unwind_to_current_frame): New functions.
8671         (get_current_frame): Rewrite using create_sentinel_frame and
8672         unwind_to_current_frame.  When possible, always create a frame.
8673         (create_new_frame): Set next to the sentinel frame.
8674         (get_next_frame): Rewrite.  Don't go below the level 0 frame.
8675         (deprecated_update_frame_pc_hack): Update the next frame's PC and
8676         ID cache when necessary.
8677         (frame_saved_regs_id_unwind): Use frame_relative_level.
8678         (deprecated_generic_get_saved_register): Use frame_relative_level,
8679         get_frame_saved_regs, get_frame_pc, get_frame_base and
8680         get_next_frame.
8681         (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
8682         frame_register.
8683
8684 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
8685
8686         * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
8687
8688 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
8689
8690         * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
8691         (maintenance_set_profile_cmd): Use error () instead of warning ().
8692
8693 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
8694
8695         * configure.in: Check that -pg works if using --enable-profiling.
8696         Check for monstartup and _mcleanup regardless of --enable-profiling.
8697         * maint.c: Check for monstartup and _mcleanup before using them.
8698         * config.in: Regenerated.
8699         * configure: Regenerated.
8700
8701 2003-01-24  Nick Clifton  <nickc@redhat.com>
8702
8703         * Add sh2e support:
8704
8705         2002-04-02  Elena Zannoni  <ezannoni@redhat.com>
8706
8707                 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
8708                 (sh2e_show_regs): New.
8709                 (sh_gdbarch_init): Handle bfd_mach_sh2e.
8710                 * config/sh/tm-sh.h: Added sh2e to comments.
8711
8712 2003-01-23  Jim Blandy  <jimb@redhat.com>
8713
8714         * symfile.c (syms_from_objfile): Don't print the "(no debugging
8715         symbols found)" message here; we haven't checked for a separate
8716         debug info file yet, so we don't know yet.
8717         (symbol_file_add_with_addrs_or_offsets): Print it here, after
8718         we've looked everywhere.  Also, there's no need to print a special
8719         message when we're loading the separate debug info file: the one
8720         symbol_file_add prints is fine.
8721
8722 2003-01-23  Alexander Larsson <alexl@redhat.com>
8723             Jim Blandy  <jimb@redhat.com>
8724
8725         Add support for executables whose debug info has been separated
8726         out into a separate file, leaving only a link behind.
8727         * objfiles.h (struct objfile): New fields: separate_debug_objfile
8728         and separate_debug_objfile_backlink.
8729         (put_objfile_before): New declaration.
8730         * symfile.c: #include "filenames.h".
8731         (symbol_file_add_with_addrs_or_offsets): If this objfile has its
8732         debug info in a separate file, read that, too. Save the addrs
8733         argument, so we can use it again to read the separated debug info;
8734         syms_from_objfile modifies the table we pass it.
8735         (reread_symbols): After re-reading an objfile, call
8736         reread_separate_symbols to refresh its separate debug info
8737         objfile, if it has one.
8738         (reread_separate_symbols, find_separate_debug_file,
8739         get_debug_link_info, separate_debug_file_exists): New functions.
8740         (debug_file_directory): New global var.
8741         (_initialize_symfile): Initialize debug_file_directory, and
8742         provide the new `set debug-file-directory' command to let the user
8743         change it.
8744         * objfiles.c (free_objfile): If this objfile has its debug info in
8745         a separate objfile, free that one too.  If this is itself a
8746         separate debug info objfile, clear our parent's backlink.
8747         (put_objfile_before): New function.
8748         * utils.c (gnu_debuglink_crc32): New function.
8749         * defs.h (gnu_debuglink_crc32): New declaration.
8750         * Makefile.in (symfile.o): Note dependency on "filenames.h".
8751         * configure.in: Handle --with-separate-debug-dir config option.
8752         * acinclude.m4 (AC_DEFINE_DIR): New macro.
8753         * acconfig.h (DEBUGDIR): New macro.
8754         * configure, aclocal.m4, config.in: Regenerated.
8755
8756 2003-01-22  Jim Blandy  <jimb@redhat.com>
8757
8758         * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
8759         like the old symbol_file_add, but taking new arguments: you can
8760         now pass in either a `struct section_addr_info' list to say where
8761         each section is loaded, or a `struct section_offsets' table.  Pass
8762         these new arguments through to syms_from_objfile as appropriate.
8763         (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
8764         with the appropriate quiescent values for the new arguments.
8765
8766         * symfile.c: #include "gdb_assert.h".
8767         (syms_from_objfile): Add the ability to pass in a section offset
8768         table directly, as an alternative to the section_addr_info table.
8769         Document arguments better.
8770         (symbol_file_add): Pass extra arguments to syms_from_objfile.
8771         * symfile.h (syms_from_objfile): Update declaration.
8772         * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
8773         syms_from_objfile.
8774         * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
8775
8776 2003-01-22  Daniel Jacobowitz  <drow@mvista.com>
8777
8778         Original patch by Tom Tromey <tromey@cygnus.com> and
8779         Jason Molenda <jmolenda@apple.com>.
8780         * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
8781         (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
8782         * NEWS: Mention profiling.
8783         * configure.in (--enable-gdbtk): Fix typo.
8784         (--enable-profiling): New.  Set PROFILE_CFLAGS.
8785         * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
8786         Fill in function.
8787         (profiling_state): New variable.
8788         (mcleanup_wrapper): New function.
8789         (_initialize_maint): Remove NOTYET, fix call to
8790         add_setshow_boolean_cmd for "maint set profile".
8791         * configure: Regenerated.
8792
8793 2003-01-21  Martin M. Hunt  <hunt@redhat.com>
8794
8795         * Makefile.in (install-gdbtk): Install PNG images too.
8796
8797 2003-01-21  Andrew Cagney  <ac131313@redhat.com>
8798
8799         * exec.c (text_start): Delete global variable.
8800         (exec_file_attach): Make text_start local to the function.
8801         * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
8802         * valops.c (hand_function_call): Delete code that handles
8803         BEFORE_TEXT_END and AFTER_TEXT_END.
8804         * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
8805         of CALL_DUMMY_LOCATION.
8806         * gdbarch.c: Regenerate.
8807         * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
8808         (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
8809         * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
8810         (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
8811         (text_end): Delete extern declaration.
8812
8813 2003-01-21  Andrew Cagney  <ac131313@redhat.com>
8814
8815         * frame.h (FRAME_OBSTACK_ZALLOC): Define.
8816         * blockframe.c (backtrace_below_main): Move to "frame.c".
8817         (frame_chain_valid): Delete check for backtrace_below_main.
8818         (_initialize_blockframe): Delete initialization, move ``set
8819         backtrace-below-main'' command to "frame.c".
8820         (do_flush_frames_sfunc): Delete function.
8821         * frame.c: Include "command.h" and "gdbcmd.h".
8822         (frame_type_from_pc): New function.
8823         (create_new_frame): Use frame_type_from_pc.
8824         (legacy_get_prev_frame): New function.
8825         (get_prev_frame): Rewrite.  When an old style frame, call
8826         legacy_get_prev_frame.  Otherwize, unwind the PC first.
8827         (_initialize_frame): Add ``set backtrace-below-main'' command.
8828         * Makefile.in (frame.o): Update dependencies.
8829
8830 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
8831
8832         * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
8833         DEPRECATED_REGISTERS_INFO.
8834
8835 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
8836
8837         * MAINTAINERS: Replace `Blanket Write Privs' with `Global
8838         Maintainers'.  Update `Various Maintainers'.
8839
8840 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
8841
8842         * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
8843         * gdbarch.sh (POP_FRAME): Change to function with predicate.
8844         Suppress actual parameters when `-'.
8845         * gdbarch.h, gdbarch.c: Regenerate.
8846
8847 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
8848
8849         * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
8850         code handling dummy frames.
8851
8852 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
8853
8854         * frame-unwind.h (frame_unwind_pop_ftype): Declare.
8855         (struct frame_unwind): Add field pop.
8856         * frame.h (frame_pop): Declare.
8857         * frame.c (frame_saved_regs_pop): New function.
8858         (trad_frame_unwinder): Add frame_saved_regs_pop.
8859         (frame_pop): New function.
8860         * dummy-frame.c (dummy_frame_pop): New function.
8861         (discard_innermost_dummy): New function.
8862         (generic_pop_dummy_frame): Use discard_innermost_dummy.
8863         (dummy_frame_unwind): Add dummy_frame_pop.
8864         * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
8865         * valops.c (hand_function_call): Ditto.
8866         * stack.c (return_command): Ditto.
8867
8868 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
8869
8870         * cris-tdep.c: Fix function declaration indentation.
8871         * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
8872         * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
8873         * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
8874         * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
8875         * xcoffread.c, config/pa/tm-hppa.h: Ditto.
8876         * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
8877
8878 2003-01-18  Michael Chastain  <mec@shout.net>
8879
8880         * README (Unpacking and Installation -- quick overview):
8881         Warn against ".../gdb-5.3/gdb/configure".
8882
8883 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
8884
8885         * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
8886         (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
8887         (struct frame_unwind): Declare opaque.
8888         (dummy_frame_p): Declare function.
8889         * dummy-frame.c (dummy_frame_id_unwind): Make static.
8890         (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
8891         * dummy-frame.c: Include "frame-unwind.h".
8892         (dummy_frame_p): New function.
8893         (dummy_frame_unwind): New variable.
8894         * frame.c: Include "frame-unwind.h".
8895         (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
8896         to use the new unwind field.
8897         (set_unwind_by_pc): Delete function.
8898         (create_new_frame, get_prev_frame): Set unwind field using
8899         frame_unwind_find_by_pc.
8900         (trad_frame_unwind, trad_frame_unwinder): New variables.
8901         * frame.h (trad_frame_unwind): Declare variable.
8902         (frame_id_unwind_ftype): Delete declaration.
8903         (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
8904         (struct frame_unwind): Declare opaque.
8905         (struct frame_info): Replace the fields id_unwind, pc_unwind and
8906         register_unwind with a single unwind pointer.
8907         * frame-unwind.h, frame-unwind.c: New files.
8908         * Makefile.in (SFILES): Add frame-unwind.c.
8909         (frame_unwind_h): Define.
8910         (COMMON_OBS): Add frame-unwind.o.
8911         (frame-unwind.o): Specify dependencies.
8912         (frame.o, dummy-frame.o): Update dependencies.
8913
8914 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
8915
8916         * ada-valprint.c: Eliminate PTR.
8917         * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
8918         * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
8919         * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
8920         * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
8921         * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
8922         * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
8923         * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8924
8925 2003-01-17  Andrew Cagney  <ac131313@redhat.com>
8926
8927         * main.c (captured_main): Don't use PTR.
8928         * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
8929         * gdbtypes.c (lookup_primitive_typename): Ditto.
8930         (lookup_struct_elt_type): Ditto.
8931         * f-valprint.c (info_common_command): Ditto.
8932         (list_all_visible_commons): Ditto.
8933         * jv-typeprint.c (java_type_print_base): Ditto.
8934
8935         * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
8936         mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
8937         Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c.  Rename
8938         i386-interix-nat.c and i386-interix-tdep.c.  Rename
8939         m68klinux-nat.c and m68klinux-tdep.c.  Rename
8940         config/mips/tm-linux.h and config/mips/tm-linux64.h.  Rename
8941         bfd/po/.cvsignore and opcodes/po/.cvsignore.  Rename
8942         gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
8943         * main.c (captured_main): Use xfree, not free.
8944
8945 2003-01-16  Andrew Cagney  <ac131313@redhat.com>
8946
8947         * frame.h (frame_id_unwind_ftype): Change type so that the frame's
8948         ID back using a parameter.
8949         * frame.c (frame_id_unwind): Update call.
8950         (frame_saved_regs_id_unwind): Update.
8951         * dummy-frame.c (dummy_frame_id_unwind): Update function.
8952         * dummy-frame.h (struct frame_id): Add opaque declaration.
8953         (dummy_frame_id_unwind): Update declaration.
8954
8955 2003-01-15  Andrew Cagney  <ac131313@redhat.com>
8956
8957         * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
8958
8959 2003-01-15  Stephen P. Smith <ischis2@cox.net>
8960
8961         * MAINTAINERS (Stephen P. Smith): Updated email address.
8962
8963 2003-01-14  Elena Zannoni  <ezannoni@redhat.com>
8964
8965         Fix PR gdb/898
8966         * breakpoint.c (until_break_command): Add new argument.  Use it to
8967         decide whether to stop only at the current frame or not.
8968         * breakpoint.h (until_break_command): Update prototype.
8969         * infcmd.c (until_command): Add new argument to until_break_command
8970         call.
8971         (advance_command): New function.
8972         (_initialize_infcmd): Update help string for 'until' command.
8973         Add new 'advance' command.
8974
8975 2003-01-14  David Carlton  <carlton@math.stanford.edu>
8976
8977         * linespec.c (decode_line_1): Normalize comments.
8978         (set_flags): Ditto.
8979         (locate_first_half): Ditto.
8980         (decode_compound): Ditto.
8981         (symtab_from_filename): Ditto.
8982         (decode_all_digits): Ditto.
8983         (decode_dollar): Ditto.
8984         (find_methods): Ditto.
8985         (find_toplevel_char): Ditto.
8986
8987 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
8988
8989         * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
8990         * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
8991         * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
8992         * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
8993         * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
8994         * language.c, language.h, m32r-tdep.c: Update copyright.
8995         * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
8996         * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
8997         * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
8998         * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
8999         * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
9000         * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
9001
9002 2003-01-13  Elena Zannoni  <ezannoni@redhat.com>
9003
9004         * stabsread.h (process_later, resolve_cfront_continuation):
9005         Obsolete.
9006         Update copyright years.
9007         * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
9008         Update copyright year.
9009         * dbxread.c(struct cont_elem): Obsolete.
9010         (process_later, process_now): Obsolete functions.
9011         (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
9012         Update copyright year.
9013         * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
9014         (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
9015         * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
9016         (parse_partial_symbols): Obsolete cfront support.
9017         * stabsread.c
9018         (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
9019         macros.
9020         (get_substring, get_cfront_method_physname, msg_unknown_complaint,
9021         read_cfront_baseclasses, read_cfront_member_functions,
9022         resolve_cfront_continuation,read_cfront_static_fields,
9023         copy_cfront_struct_fields): Obsolete functions.
9024         (define_symbol, read_one_struct_field): Obsolete cfront support.
9025         * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
9026         Update Copyright year.
9027
9028 2003-01-13  Elena Zannoni  <ezannoni@redhat.com>
9029
9030         * stack.c (print_frame_info, print_stack_frame_base_stub,
9031         print_stack_frame_base, show_and_print_stack_frame_stub,
9032         show_and_print_stack_frame, print_only_stack_frame_stub,
9033         print_only_stack_frame): Delete functions.
9034         (print_stack_frame_stub): Call print_frame_info instead of
9035         print_frame_info_base.
9036         (print_frame_info_base): Rename to print_frame_info.
9037         (backtrace_command_1): Call print_frame_info, instead of
9038         print_frame_info_base.
9039         (current_frame_command): Call print_stack_frame, instead of
9040         print_only_stack_frame.
9041         (frame_command): Call print_stack_frame, instead of
9042         show_and_print_stack_frame.
9043         (up_command): Ditto.
9044         (down_command): Ditto.
9045         * frame.h (print_only_stack_frame): Delete prototype.
9046         * infrun.c (normal_stop): Call print_stack_frame, instead of
9047         show_and_print_stack_frame.
9048         * thread.c (info_threads_command): Call print_stack_frame, instead
9049         of print_only_stack_frame.
9050
9051 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
9052
9053         * README (Graphical interface to GDB): Update URL.  Point at
9054         gdb/links/.
9055
9056         * gdb_indent.sh: Update to version 2.2.9.  Warn when not exact
9057         version match.
9058
9059 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
9060
9061         * symtab.c (find_pc_sect_line): Don't consider end-of-function
9062         lines.
9063
9064 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
9065
9066         * thread-db.c (attach_thread): Prototype.
9067         (struct private_thread_info): Remove lwpid.  Add thread handle (th),
9068         thread information (ti), and valid flags (th_valid, ti_valid).
9069         (attach_thread): Move target_pid_to_str call to after the thread
9070         is added to GDB's list.  Initialize the cache.
9071         (thread_get_info_callback, thread_db_map_id2thr)
9072         (thread_db_get_info): New functions.
9073         (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
9074         (thread_db_store_registers, thread_db_thread_alive)
9075         (thread_db_get_thread_local_address): Use them.
9076         (thread_db_pid_to_str): Likewise.  Return "Missing" instead
9077         of calling error() for threads in unknown state.
9078
9079         (clear_lwpid_callback): New function.
9080         (thread_db_resume): Use it to clear the cache.
9081
9082 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
9083
9084         * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
9085         (resume_callback): Remove dead code.
9086
9087 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
9088
9089         * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
9090         predicate.
9091         * gdbarch.h, gdbarch.c: Regenerate.
9092         * stack.c (frame_info): Only initialize the saved registers when
9093         FRAME_INIT_SAVED_REGS_P.
9094         * frame.c (frame_saved_regs_register_unwind): Assert
9095         FRAME_INIT_SAVED_REGS_P.
9096         (deprecated_generic_get_saved_register): Ditto.
9097
9098 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
9099
9100         * source.c (openp): Squelch warning about "filename".
9101
9102 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
9103
9104         * source.c (openp): If the file does not exist don't necessarily
9105         search the path.
9106
9107 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
9108
9109         Fix PR gdb/872.
9110         * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
9111         (integer_types_same_name_p): New function.
9112         (rank_one_type): Use it.
9113         * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
9114
9115 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
9116
9117         * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
9118         variables.
9119         (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
9120         * configure.in: Add --with-sysroot.
9121         * configure: Regenerated.
9122         * main.c (gdb_sysroot): New variable.
9123         (captured_main): Initialize gdb_sysroot.
9124         * defs.h (gdb_sysroot): New extern declaration.
9125         * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
9126
9127 2003-01-12  Michael Chastain  <mec@shout.net>
9128
9129         * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
9130
9131 2003-01-12  Michael Chastain  <mec@shout.net>
9132
9133         * top.c (print_gdb_version): Bump copyright year to 2003.
9134
9135 2003-01-12  David Carlton  <carlton@bactrian.org>
9136
9137         * linespec.c (symtab_from_filename): Rename variable 's' to
9138         'file_symtab'.
9139
9140 2003-01-12  Andrew Cagney  <ac131313@redhat.com>
9141
9142         * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
9143         dummy frame.
9144         (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
9145
9146 2003-01-12  Andrew Cagney  <ac131313@redhat.com>
9147
9148         * d10v-tdep.c: Include "gdb_assert.h".
9149         (d10v_store_return_value): Rewrite to match current interface.
9150         (d10v_extract_struct_value_address): Ditto.
9151         (d10v_extract_return_value): Ditto.
9152         (d10v_gdbarch_init): Set store_restore_value,
9153         extract_struct_value_address and extract_return_value.
9154
9155 2003-01-12  J. Brobecker  <brobecker@gnat.com>
9156
9157         * hpread.c (set_namestring): New procedure replacing the
9158         SET_NAMESTRING macro.
9159         (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
9160         by calls to set_namestring.
9161
9162 2003-01-11  J. Brobecker  <brobecker@gnat.com>
9163
9164         * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
9165         a compilation warning.
9166         (hpread_process_one_debug_symbol): Likewise.
9167
9168 2003-01-10  David Carlton  <carlton@math.stanford.edu>
9169
9170         * linespec.c (decode_line_1): Rename variable 's' to
9171         'file_symtab'.
9172         (decode_all_digits): Rename argument 's' to 'file_symtab'.
9173         (decode_dollar): Ditto.
9174         (decode_variable): Ditto.
9175         (symbol_found): Ditto.
9176
9177 2003-01-09  Michael Chastain  <mec@shout.net>
9178
9179         * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
9180
9181 2003-01-07  Corinna Vinschen  <vinschen@redhat.com>
9182
9183         * win32-nat.c (set_process_privilege): New function.
9184         (child_attach): Call set_process_privilege() to enable the
9185         SE_DEBUG_NAME user privilege if available in process token.
9186
9187 2003-01-10  J. Brobecker  <brobecker@gnat.com>
9188
9189         * hpread.c (hpread_process_one_debug_symbol): Fix a small
9190         compilation error in the previous revision.
9191
9192 2003-01-09  David Carlton  <carlton@math.stanford.edu>
9193
9194         * linespec.c: Update copyright.
9195
9196 2003-01-09  Daniel Jacobowitz  <drow@mvista.com>
9197
9198         * lin-lwp.c (child_wait): Ignore exit statuses for processes other
9199         than inferior_ptid.
9200         (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
9201
9202 2003-01-09  Andrew Cagney  <ac131313@redhat.com>
9203
9204         * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
9205         Update comments.
9206         * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
9207         (frame_saved_regs_zalloc): Update.
9208         (frame_saved_regs_register_unwind): Update.
9209         (create_new_frame): Update.
9210         (get_prev_frame): Update.
9211         (frame_extra_info_zalloc): Update.
9212         (deprecated_get_frame_saved_regs): Update.
9213         * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
9214         * cris-tdep.c: Update comment.
9215
9216         * somsolib.h: Fix function indentation.
9217         * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
9218         * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
9219         * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
9220         * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
9221         * somsolib.c, inftarg.c: Remove assignment in if conditional.
9222
9223         * infrun.c (follow_fork): Use ISO C definition.
9224         * expprint.c (print_subexp): Use xfree instead of free.
9225         * charset.c: Include "gdb_string.h" instead of <string.h>.
9226         (register_iconv_charsets): Use ISO C definition.
9227         (host_charset, target_charset): Ditto.
9228         * Makefile.in (charset.o): Update dependencies.
9229         (mi-cmd-env.o): Update dependencies.
9230
9231 2003-01-08  Andrew Cagney  <cagney@redhat.com>
9232
9233         * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
9234         get_frame_base.
9235
9236 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
9237
9238         * gdb_mbuild.sh: Add --keep option.  When specified, keep the
9239         build directories.  Save edited gdb output in Mbuild.log.  If a
9240         build fails, remove any final GDB executable.
9241
9242 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
9243
9244         * gdb_mbuild.sh: Edit the output of `maint print architecture'
9245         replacing hex constants with function names and stripping leading
9246         file name directory prefixes.
9247
9248 2003-01-08  Andrew Cagney  <cagney@redhat.com>
9249
9250         * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
9251         get_frame_base.
9252
9253 2003-01-08  David Carlton  <carlton@math.stanford.edu>
9254
9255         * linespec.c (decode_line_1): Move code into decode_variable.
9256         (decode_variable): New function.
9257
9258 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
9259
9260         * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
9261
9262 2003-01-08  Andrew Cagney  <cagney@redhat.com>
9263
9264         * cris-tdep.c (cris_frame_init_saved_regs): Use
9265         get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
9266         saved_regs buffer.
9267         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
9268         (sh64_nofp_frame_init_saved_regs): Ditto.
9269         (sh_fp_frame_init_saved_regs): Ditto.
9270         * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
9271         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
9272         * mcore-tdep.c (analyze_dummy_frame): Ditto.
9273         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
9274
9275 2003-01-08  Daniel Jacobowitz  <drow@mvista.com>
9276
9277         * minsyms.c (lookup_minimal_symbol): Update comment.
9278         (lookup_minimal_symbol_text): Update comment.  Use the hash table.
9279         (lookup_minimal_symbol_solib_trampoline): Likewise.
9280
9281 2003-01-08  Andrew Cagney  <cagney@redhat.com>
9282
9283         * d10v-tdep.c (d10v_init_extra_frame_info): Use
9284         frame_relative_level.
9285
9286         * alpha-tdep.c: Use get_frame_extra_info.
9287         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9288         * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
9289         * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
9290         * sparc-tdep.c, xstormy16-tdep.c: Ditto.
9291
9292         * alpha-tdep.c: Use get_next_frame.
9293         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9294         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
9295         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
9296         * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
9297         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
9298         * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
9299         * xstormy16-tdep.c: Ditto.
9300
9301 2003-01-07  Andrew Cagney  <cagney@redhat.com>
9302
9303         * alpha-tdep.c: Use get_frame_base.
9304         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9305         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
9306         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
9307         * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
9308         * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
9309         * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
9310         * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
9311         * config/sparc/tm-sparc.h: Ditto.
9312
9313 2003-01-07  Andrew Cagney  <cagney@redhat.com>
9314
9315         * frame.c (deprecated_get_frame_context): New function.
9316         (deprecated_set_frame_context): New function.
9317         * frame.h (deprecated_get_frame_context): Declare.
9318         (deprecated_set_frame_context): Declare.
9319         * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
9320         (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
9321
9322 2003-01-07  Andrew Cagney  <cagney@redhat.com>
9323
9324         * frame.c (deprecated_set_frame_next_hack): New function.
9325         (deprecated_set_frame_prev_hack): New function.
9326         * frame.h (deprecated_set_frame_next_hack): Declare.
9327         (deprecated_set_frame_prev_hack): Declare.
9328         * mcore-tdep.c (analyze_dummy_frame): Use
9329         deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
9330         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
9331
9332 2003-01-07  David Carlton  <carlton@math.stanford.edu>
9333
9334         * linespec.c (decode_line_1): Move code into decode_dollar.
9335         (decode_dollar): New function.
9336
9337 2003-01-07  Andrew Cagney  <cagney@redhat.com>
9338
9339         * arm-tdep.c (arm_init_extra_frame_info): Use
9340         deprecated_update_frame_base_hack.
9341         * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
9342         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
9343         (fix_frame_pointer): Ditto.
9344         (mn10300_analyze_prologue): Ditto.
9345
9346 2003-01-07  Andrew Cagney  <cagney@redhat.com>
9347
9348         * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
9349         extra_info using frame_extra_info_zalloc.
9350         * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
9351         * sh-tdep.c (sh_init_extra_frame_info): Ditto.
9352         (sh64_init_extra_frame_info): Ditto.
9353         * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
9354         * s390-tdep.c (s390_init_extra_frame_info): Ditto.
9355         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
9356         * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
9357         * frv-tdep.c (frv_init_extra_frame_info): Ditto.
9358         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
9359         * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
9360         * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
9361         * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
9362         * cris-tdep.c (cris_init_extra_frame_info): Ditto.
9363         * arm-tdep.c (arm_init_extra_frame_info): Ditto.
9364         * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
9365
9366         * mn10300-tdep.c (analyze_dummy_frame): Use
9367         deprecated_set_frame_extra_info_hack.
9368         * mcore-tdep.c (analyze_dummy_frame): Ditto.
9369
9370 2003-01-07  J. Brobecker  <brobecker@gnat.com>
9371
9372         * mdebugread.c (parse_symbol): Skip stProc entries which storage
9373         class is not scText. These do not define "real" procedures.
9374         (parse_partial_symbols): Likewise.
9375
9376 2003-01-06  Michael Snyder  <msnyder@redhat.com>
9377
9378         * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
9379
9380 2003-01-06  Andrew Cagney  <ac131313@redhat.com>
9381
9382         * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
9383         * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
9384         * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
9385         deprecated_frame_xmalloc_with_cleanup.
9386         * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
9387         deprecated_frame_xmalloc.
9388         * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
9389         * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
9390
9391 2003-01-06  Andrew Cagney  <cagney@redhat.com>
9392
9393         * x86-64-linux-tdep.c: Include "osabi.h".
9394         * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
9395
9396         * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
9397
9398 2003-01-06  Andrew Cagney  <cagney@redhat.com>
9399
9400         * MAINTAINERS (Target Instruction Set Architectures): Update
9401         arm-elf.  Can be built with -Werror, has been multiarched.
9402
9403         * value.h (unpack_long): Make buffer parameter constant.
9404         (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
9405         * scm-lang.h (scm_parse): Ditto.
9406         * defs.h (extract_typed_address, extract_address): Ditto.
9407         (extract_long_unsigned_integer): Ditto.
9408         * inferior.h (unsigned_pointer_to_address): Ditto.
9409         (signed_pointer_to_address): Ditto.
9410         * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
9411         * gdbarch.h, gdbarch.c: Regenerate.
9412         * findvar.c (extract_long_unsigned_integer): Update.
9413         (extract_address): Update.
9414         (extract_typed_address): Update.
9415         (unsigned_pointer_to_address): Update.
9416         * values.c (unpack_long): Update.
9417         (unpack_double): Update.
9418         (unpack_pointer): Update.
9419         (unpack_field_as_long): Update.
9420         * d10v-tdep.c (d10v_pointer_to_address): Update.
9421         * avr-tdep.c (avr_pointer_to_address): Update.
9422         * scm-lang.c (scm_unpack): Update.
9423         * findvar.c (signed_pointer_to_address): Update.
9424
9425 2003-01-06  Michal Ludvig  <mludvig@suse.cz>
9426
9427         * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
9428         since it is in i386-tdep.c.
9429
9430 2003-01-06  J. Brobecker  <brobecker@gnat.com>
9431
9432         * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
9433         failure introduced in the previous change.
9434
9435 2003-01-05  Michael Chastain  <mec@shout.net>
9436
9437         * README: Remove references to deleted remote-*.c files:
9438         remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
9439         remote-nrom.c, remote-os9k.c, remote-udi.c.
9440
9441 2003-01-05  Mark Kettenis  <kettenis@gnu.org>
9442
9443         * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
9444         * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
9445         i386_get_longjmp_target.
9446
9447 2003-01-05  Andrew Cagney  <ac131313@redhat.com>
9448
9449         * arm-tdep.c (prologue_cache): Change to a pointer.
9450         (_initialize_arm_tdep): Allocate prologue_cache.
9451         (check_prologue_cache): Update.
9452         (save_prologue_cache): Update.
9453         (arm_gdbarch_init): Update.
9454
9455 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
9456
9457         * stabsread.c (update_method_name_from_physname): Call complaint()
9458         instead of error.
9459
9460 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
9461
9462         * arm-tdep.c (arm_frame_chain_valid):  Remove unnecessary test.
9463         * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
9464         * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
9465
9466         * blockframe.c: Include "gdbcmd.h" and "command.h".
9467         (backtrace_below_main): New variable.
9468         (file_frame_chain_valid, func_frame_chain_valid)
9469         (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
9470         (generic_func_frame_chain_valid): Remove functions.
9471         (frame_chain_valid, do_flush_frames_sfunc): New functions.
9472         (_initialize_blockframe): New function.
9473         * Makefile.in (blockframe.o): Update dependencies.
9474         * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
9475         comment.  Call frame_chain_valid ().
9476         * frame.h: Remove old prototypes.  Add prototype for
9477         frame_chain_valid and update comments to match.
9478         * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
9479         Remove old comment.
9480         * gdbarch.h: Regenerated.
9481         * gdbarch.c: Regenerated.
9482
9483         * alpha-tdep.c (alpha_gdbarch_init): Don't call
9484         set_gdbarch_frame_chain_valid.
9485         * avr-tdep.c (avr_gdbarch_init): Likewise.
9486         * cris-tdep.c (cris_gdbarch_init): Likewise.
9487         * frv-tdep.c (frv_gdbarch_init): Likewise.
9488         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
9489         * i386-tdep.c (i386_svr4_init_abi): Likewise.
9490         (i386_nw_init_abi): Likewise.
9491         (i386_gdbarch_init): Likewise.
9492         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
9493         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
9494         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
9495         * mcore-tdep.c (mcore_gdbarch_init): Likewise.
9496         * mips-tdep.c (mips_gdbarch_init): Likewise.
9497         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
9498         * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
9499         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9500         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
9501         * s390-tdep.c (s390_gdbarch_init): Likewise.
9502         * sh-tdep.c (sh_gdbarch_init): Likewise.
9503         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
9504         * v850-tdep.c (v850_gdbarch_init): Likewise.
9505         * vax-tdep.c (vax_gdbarch_init): Likewise.
9506         * x86-64-tdep.c (x86_64_init_abi): Likewise.
9507
9508         * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
9509         * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
9510         * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
9511         * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
9512         * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
9513         * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
9514         * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
9515         * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
9516
9517 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
9518
9519         * Makefile.in (acconfig_h): Remove incorrect macro.
9520         (config_h): Define.
9521         (osabi.o): Update dependencies.
9522         * configure.tgt: Set gdb_osabi based on target triplet.
9523         * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
9524         * configure: Regenerated.
9525         * config.in: Regenerated.
9526         * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
9527         (GDB_OSABI_DEFAULT): Define if not already defined.
9528         (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
9529         (set_osabi_string): New variables.
9530         (gdbarch_register_osabi): Add new OS ABI to
9531         gdb_osabi_available_names.
9532         (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
9533         (set_osabi, show_osabi): New functions.
9534         (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
9535
9536 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
9537
9538         * arch-utils.c (gdbarch_info_init): Set osabi to
9539         GDB_OSABI_UNINITIALIZED.
9540         * gdbarch.sh: Add osabi to struct gdbarch and to struct
9541         gdbarch_info.  Include "osabi.h" in gdbarch.c.  Check osabi
9542         in gdbarch_list_lookup_by_info and in gdbarch_update_p.
9543         * gdbarch.c: Regenerated.
9544         * gdbarch.h: Regenerated.
9545         * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
9546         there's no BFD.
9547         (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
9548         * osabi.h (enum gdb_osabi): Move to defs.h.
9549         (gdbarch_init_osabi): Update prototype.
9550         * defs.h (enum gdb_osabi): Moved here.
9551         * Makefile.in: Update dependencies.
9552
9553         * alpha-tdep.h: Don't include "osabi.h".
9554         (struct gdbarch_tdep): Remove osabi member.
9555         * alpha-tdep.c: Include "osabi.h".
9556         (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
9557         iterate over arches.  Update call to gdbarch_init_osabi.
9558         (alpha_dump_tdep): Don't dump osabi.
9559         * alpha-linux-tdep.c: Include "osabi.h".
9560         * alpha-osf1-tdep.c: Include "osabi.h".
9561         * alphafbsd-tdep.c: Include "osabi.h".
9562         * alphanbsd-tdep.c: Include "osabi.h".
9563
9564         * arm-tdep.h: Don't include "osabi.h".
9565         (struct gdbarch_tdep): Remove osabi member.
9566         * arm-tdep.c: Include "osabi.h".
9567         (arm_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
9568         iterate over arches.  Update call to gdbarch_init_osabi.
9569         (arm_dump_tdep): Don't dump osabi.
9570         * arm-linux-tdep.c: Include "osabi.h".
9571         * armnbsd-tdep.c: Include "osabi.h".
9572
9573         * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
9574         Update call to gdbarch_init_osabi.
9575
9576         * i386-tdep.h: Don't include "osabi.h".
9577         (struct gdbarch_tdep): Remove osabi member.
9578         * i386-tdep.c: Include "osabi.h".
9579         (i386_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
9580         iterate over arches.  Update call to gdbarch_init_osabi.
9581         (i386_dump_tdep): Don't dump osabi.
9582         * i386-linux-tdep.c: Include "osabi.h".
9583         * i386-sol2-tdep.c: Include "osabi.h".
9584         * i386bsd-tdep.c: Include "osabi.h".
9585         * i386gnu-tdep.c: Include "osabi.h".
9586         * i386ly-tdep.c: Include "osabi.h".
9587         * i386nbsd-tdep.c: Include "osabi.h".
9588         * i386obsd-tdep.c: Include "osabi.h".
9589
9590         * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
9591         (mips_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
9592         check osabi when iterating over arches.  Update call to
9593         gdbarch_init_osabi.
9594         (mips_dump_tdep): Don't dump osabi.
9595
9596         * ns32k-tdep.h: Don't include "osabi.h".
9597         (struct gdbarch_tdep): Remove.
9598         * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
9599         gdbarch_lookup_osabi.  Don't iterate over arches.  Don't
9600         allocate tdep.  Update call to gdbarch_init_osabi.
9601         (ns32k_dump_tdep): Remove.
9602         (_initialize_ns32k_tdep): Update call to gdbarch_register.
9603         * ns32knbsd-tdep.c: Include "osabi.h".
9604
9605         * ppc-tdep.h: Don't include "osabi.h".
9606         (struct gdbarch_tdep): Remove osabi member.
9607         * rs6000-tdep.c: Include "osabi.h".
9608         (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't check
9609         osabi when iterating over arches.  Update call to
9610         gdbarch_init_osabi.
9611         (rs6000_dump_tdep): Don't dump osabi.
9612         * ppc-linux-tdep.c: Include "osabi.h".
9613         * ppcnbsd-tdep.c: Include "osabi.h".
9614
9615         * sh-tdep.h: Don't include "osabi.h".
9616         (struct gdbarch_tdep): Remove osabi member.
9617         * sh-tdep.c: Include "osabi.h".
9618         (sh_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
9619         iterate over arches.  Update call to gdbarch_init_osabi.
9620         (sh_dump_tdep): Don't dump osabi.
9621         * shnbsd-tdep.c: Include "osabi.h".
9622
9623         * sparc-tdep.c: Include "osabi.h".
9624         (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
9625         iterate over arches.  Update call to gdbarch_init_osabi.
9626         (sparc_dump_tdep): Don't dump osabi.  Do dump the rest of the
9627         tdep structure.
9628
9629         * vax-tdep.h: Don't include "osabi.h".
9630         (struct gdbarch_tdep): Remove.
9631         * vax-tdep.c: Include "osabi.h".
9632         (vax_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
9633         iterate over arches.  Don't allocate tdep.  Update call
9634         to gdbarch_init_osabi.
9635         (vax_dump_tdep): Remove.
9636         (_initialize_vax_tdep): Update call to gdbarch_register.
9637
9638 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
9639
9640         * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
9641         entirely.
9642         (breakpoint_re_set_one): Don't fetch the value for a disabled
9643         watchpoint.
9644
9645 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
9646
9647         * buildsym.h (processing_hp_compilation): Remove obsolete variable.
9648         * gdbarch.sh Remove include of "value.h" in gdbarch.h.
9649         (COERCE_FLOAT_TO_DOUBLE): Remove.
9650         * gdbarch.c: Regenerate.
9651         * gdbarch.h: Regenerate.
9652         * Makefile.in: Remove value_h from gdbarch_h.
9653         * valops.c (coerce_float_to_double): New variable.
9654         (default_coerce_float_to_double): Remove.
9655         (standard_coerce_float_to_double): Remove.
9656         (value_arg_coerce): Use coerce_float_to_double.
9657         (_initialize_valops): Add "set coerce-float-to-double".
9658         * value.h (default_coerce_float_to_double): Remove prototype.
9659         (standard_coerce_float_to_double): Remove prototype.
9660
9661         * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
9662         prototyped.
9663         * mdebugread.c (parse_symbol): Likewise.
9664         * stabsread.c (define_symbol): Mark all functions as prototyped.
9665
9666         * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
9667         * alpha-tdep.c (alpha_gdbarch_init): Remove call to
9668         set_gdbarch_coerce_float_to_double.
9669         * arm-tdep.c (arm_gdbarch_init): Likewise.
9670         * frv-tdep.c (frv_gdbarch_init): Likewise.
9671         * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
9672         * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
9673         * mips-tdep.c (mips_gdbarch_init): Likewise.
9674         (mips_coerce_float_to_double): Remove.
9675         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
9676         (rs6000_coerce_float_to_double): Remove.
9677         * s390-tdep.c (s390_gdbarch_init): Likewise.
9678         * sh-tdep.c (sh_gdbarch_init): Likewise.
9679         (sh_coerce_float_to_double): Remove.
9680         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
9681         (sparc_coerce_float_to_double): Remove.
9682         * v850-tdep.c (v850_gdbarch_init): Likewise.
9683         * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
9684         * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9685         * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
9686         (hppa_coerce_float_to_double): Remove prototype.
9687         * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9688
9689 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
9690
9691         * regformats/reg-m68k.dat: Remove fpcode and fpflags.
9692
9693 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
9694
9695         Suggested by Stewart Brown <sb24@avaya.com>:
9696         * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
9697         in recursive calls.  Handle TYPE_CODE_TYPEDEF.
9698         (c_type_print_varspec_suffix): Likewise.
9699
9700 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
9701
9702         * configure.in: Don't set and AC_SUBST SUBDIRS.
9703         * configure: Regenerated.
9704
9705         * configure.in: Remove code dealing with shared libraries.
9706         * Makefile.in: Remove HLDFLAGS and HLDENV.
9707         * configure: Regenerated.
9708
9709 2003-01-04  Andrew Cagney  <ac131313@redhat.com>
9710
9711         * frame.c (deprecated_frame_xmalloc): New function.
9712         (deprecated_set_frame_saved_regs_hack): New function.
9713         (deprecated_set_frame_extra_info_hack): New function.
9714         * frame.h (deprecated_frame_xmalloc): Declare.
9715         (deprecated_set_frame_saved_regs_hack): Declare.
9716         (deprecated_set_frame_extra_info_hack): Declare.
9717
9718 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
9719
9720         * configure.in: Move code that provides the --enable-gdbtk option
9721         right after the code that handles the --enable-tui option, and
9722         polish it somewhat.
9723         * configure: Regenerated.
9724
9725         * configure.in: Call AC_GNU_SOURCE.  Check for pread64 using
9726         AC_CHECK_FUNCS and remove the old check for pread64.
9727         * acinclude.m4 (AC_GNU_SOURCE): New macro.
9728         * acconfig.h (_GNU_SOURCE): Add.
9729         (HAVE_PREAD64): Remove.
9730         * configure, aclocal.m4, config.in: Regenerated.
9731
9732 2003-01-03  Andrew Cagney  <ac131313@redhat.com>
9733
9734         * alpha-tdep.c: Use get_frame_saved_regs.
9735         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9736         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
9737         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
9738         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
9739         * vax-tdep.c, xstormy16-tdep.c: Ditto.
9740
9741 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
9742
9743         * configure.in: Remove all use of the SUBDIRS variable; add
9744         directories using the AC_CONFIG_SUBDIRS macro instead.  Polish
9745         code providing the --enable-multi-ice option, and move it right in
9746         front of the code that checks whether gdbserver is supported.
9747         Polish that too.
9748         * configure: Regenerated.
9749         * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
9750         @SUBDIRS@.
9751
9752 2003-01-03  Andrew Cagney  <cagney@redhat.com>
9753
9754         * alpha-tdep.c: Use deprecated_update_frame_base_hack.
9755         * avr-tdep.c, cris-tdep.c: Ditto.
9756         * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
9757         * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
9758
9759 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
9760
9761         * configure.in: Remove --enable-netrom option.
9762         * configure: Regenerated.
9763
9764 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
9765
9766         * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
9767         declaration for `struct re_pattern_buffer' instead.
9768         * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
9769
9770 2003-01-03  J. Brobecker  <brobecker@gnat.com>
9771
9772         * mdebugread.c (parse_symbol): Count until the stEnd matching
9773         the structure name.
9774
9775 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
9776
9777         * configure.in: Remove --with-cpu option.
9778         subscripts.  Remove evil changequotes here.
9779         * acconfig.h (TARGET_CPU_DEFAULT): Remove.
9780         * config.in, configure: Regenerated.
9781
9782         * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
9783         * configure.in: Cleanup section that sources GDB and BFD configure
9784         subscripts.  Remove evil changequotes here.
9785         * config.in, configure: Regenerated.
9786
9787 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
9788
9789         * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
9790         frame accessor methods.
9791         * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9792         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
9793         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
9794         * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
9795         * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
9796         * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
9797         * z8k-tdep.c: Ditto.
9798
9799 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
9800
9801         * configure.in: Remove UI_OUT configuration code.
9802         * ada-lang.c: Update assuming UI_OUT is always true.
9803         * Makefile.in (UIOUT_CFLAGS): Remove.
9804         * configure: Regenerated.
9805         * TODO: Remove blurb about elimination of -DUI_OUT.
9806
9807         * configure.in: Move code that provides the --enable-gdbcli,
9808         --enable-gdbmi options right before the code that handles the
9809         --enable-tui option.  Polish a bit.
9810         * configure: Regenerated.
9811
9812         * configure.in: Rewrite check for GNU regex and the
9813         --without-included regex option, and move it into the "Checks for
9814         library functions" section.  This makes us use the system regex
9815         again by default on systems with version 2 of the GNU C library.
9816         This was apparently broken.
9817         * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
9818         * acconfig.h (USE_INCLUDED_REGEX): Remove.
9819         * config.in, configure: Regenerated.
9820
9821         * configure.in: Move code that provides the --enable-tui option
9822         before the "Checks for libraries" section.  Polish the code
9823         somewhat and set need_curses to yes if we build the TUI.  Rewrite
9824         code that looks for a library providing termcap functionality to
9825         match more closely what's done in the Readline library, and move
9826         it into to the "Checks for libraries" section.
9827         * configure: Regenerated.
9828         * Makefile.in (TERMCAP): Remove variable.
9829         * config/i386/go32.mh (TERMCAP): Remove variable.
9830
9831 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
9832
9833         * MAINTAINERS: Mention gdb_mbuild.sh.
9834         * gdb_mbuild.sh: Rewrite.
9835
9836 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
9837
9838         * configure.in: Fix typo in last change.
9839         * config.in, configure: Regenerated.
9840
9841 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
9842
9843         * valarith.c (value_binop): Delete obsolete code and comments.
9844         * configure.host: Ditto.
9845         * buildsym.h (make_blockvector): Ditto.
9846         * buildsym.c (make_blockvector): Ditto.
9847         * defs.h (enum language): Ditto.
9848         (chill_demangle): Ditto.
9849         * elfread.c (elf_symtab_read): Ditto.
9850         * dwarfread.c (CHILL_PRODUCER): Ditto.
9851         (set_cu_language): Ditto.
9852         (handle_producer): Ditto.
9853         * expprint.c (print_subexp): Ditto.
9854         * gdbtypes.c (chill_varying_type): Ditto.
9855         * gdbtypes.h (builtin_type_chill_bool): Ditto.
9856         (builtin_type_chill_char, builtin_type_chill_long): Ditto.
9857         (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
9858         (chill_varying_type): Ditto.
9859         * language.h (_LANG_chill): Ditto.
9860         * language.c (binop_result_type, integral_type): Ditto.
9861         (character_type, string_type, structured_type): Ditto.
9862         (lang_bool_type, binop_type_check): Ditto.
9863         * stabsread.h (os9k_stabs): Ditto.
9864         * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
9865         (define_symbol, read_type, read_struct_fields): Ditto.
9866         (read_array_type, read_enum_type, read_huge_number): Ditto.
9867         (read_range_type, start_stabs): Ditto.
9868         * symfile.c (init_filename_language_table): Ditto.
9869         (add_psymbol_with_dem_name_to_list): Ditto.
9870         * symtab.c (symbol_init_language_specific): Ditto.
9871         (symbol_init_demangled_name, symbol_demangled_name): Ditto.
9872         * symtab.h (struct general_symbol_info): Ditto.
9873         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
9874         * typeprint.c (typedef_print): Ditto.
9875         * utils.c (fprintf_symbol_filtered): Ditto.
9876         * valops.c (value_cast, search_struct_field, value_slice): Delete
9877         obsolete code.
9878         (varying_to_slice): Delete function.
9879         * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
9880         (varying_to_slice): Delete declaration.
9881         * MAINTAINERS: Update.
9882
9883 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
9884
9885         * configure.in: Reorganize "Checks for library functions section"
9886         a bit.  Remove check for `btowc' and `isascii' functions.
9887         * configure: Regenerated.
9888
9889         * acconfig.h (_MSE_INT_H): Remove.
9890         * configure.in: Create "Checks for header files" section, and move
9891         appropriate tests there.  Don't check for objlist.h, wchar.h,
9892         wctype.h and asm/debugreg.h.  Rewrite Solaris 2.[78] <curses.h>
9893         misdetection fix.  Also add "Checks for types", "Checks for
9894         compiler characteristics" and "Checks for library functions"
9895         sections.
9896         * config.in, configure: Regenerated.
9897
9898         * configure.in: Create "Checks for programs" section, and move
9899         appropriate tests there.
9900
9901 2003-01-01  Mark Kettenis  <kettenis@gnu.org>
9902
9903         * configure.in: Create "Checks for libraries" section, and move
9904         appropriate tests there.  Cleanup check for wctype in libw.  Use
9905         AC_SEARCH_LIBS to see whether we need libsocket.
9906         * configure: Regenerated.
9907
9908 For older changes see ChangeLog-2002
9909 \f
9910 Local Variables:
9911 mode: change-log
9912 left-margin: 8
9913 fill-column: 74
9914 version-control: never
9915 End: