46015972e41498bfb8bfa47bf56b25661e8b53ca
[external/binutils.git] / gdb / ChangeLog
1 2003-09-17  Andrew Cagney  <cagney@redhat.com>
2
3         * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
4         * gdbarch.h, gdbarch.c: Regenerate.
5         * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
6         * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
7         * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
8         * sparcnbsd-tdep.c: Update.
9         
10 2003-09-17  Andrew Cagney  <cagney@redhat.com>
11
12         * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
13         * gdbarch.h, gdbarch.c: Regenerate.
14         * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
15         * d10v-tdep.c, frame.c: Update.
16         * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
17         * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
18         * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
19         * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
20         * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
21         * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
22         * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
23         * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
24         * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
25         * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
26         * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
27         * config/pa/nm-hppah.h: Update.
28
29 2003-09-16  Andrew Cagney  <cagney@redhat.com>
30
31         * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
32         "use_struct_convention" to "ppc_linux_use_struct_convention".
33         (ppc_linux_use_struct_convention): New function.
34         * rs6000-tdep.c (rs6000_use_struct_convention): New function.
35         (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
36         "rs6000_use_struct_convention".
37         * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
38         declaration.
39         * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
40         Delete function.
41
42 2003-09-16  Andrew Cagney  <cagney@redhat.com>
43
44         * buildsym.c: Remove more occurances of "register".
45         * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
46         * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
47         * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
48         * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
49         * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
50         * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
51         * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
52         * utils.c, valops.c, values.c, xcoffread.c: Ditto.
53
54 2003-09-16  Corinna Vinschen  <vinschen@redhat.com>
55
56         * sh-tdep.h (struct gdbarch_tdep): Remove.  Change all register
57         numbers to enumeration values.
58         * sh-tdep.c: Accomodate above change.
59         (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
60         (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
61         (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
62         (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
63         (IS_FPUSH): Rename from IS_FMOV.
64         (sh_extract_struct_value_address): Remove useless comment.
65         (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
66         instead of own local values.
67         (sh_dump_tdep): Remove.
68         (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
69         * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
70
71 2003-09-15  Andrew Cagney  <cagney@redhat.com>
72
73         * doublest.c (convert_floatformat_to_doublest): No longer need to
74         cast "exp_bias" to an int.  Reverts 2002-12-04 change.
75
76 2003-09-15  Daniel Jacobowitz  <drow@mvista.com>
77
78         * values.c (unpack_double): Call floatformat_is_valid.
79
80 2003-09-15  Mark Kettenis  <kettenis@gnu.org>
81
82         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
83         ps_strings into a long.
84
85         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
86         _initialize_am64fbsd_nat.
87
88 2003-09-15  Kevin Buettner  <kevinb@redhat.com>
89
90         * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
91         associated with DW_AT_ranges attribute is out of bounds.
92
93 2003-09-15  David Lecomber  <dsl@sources.redhat.com>
94
95         * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
96
97 2003-09-14  Michael Chastain  <mec@shout.net>
98
99         * config/m68k/nm-apollo68v.h: Delete.
100         * config/m68k/xm-apollo68v.h: Delete.
101
102 2003-09-14  Andrew Cagney  <cagney@redhat.com>
103
104         * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
105         * dcache.c: Update copyrights and descriptions.
106         * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
107
108 2003-09-14  Andrew Cagney  <cagney@redhat.com>
109
110         * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
111         "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
112
113 2003-09-14  Andrew Cagney  <cagney@redhat.com>
114
115         * alpha-nat.c: Remove some occurances of "register".
116         * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
117         * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
118         * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
119         * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
120         * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
121         * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
122         * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
123         * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
124         * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
125         * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
126         * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
127         * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
128         * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
129         * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
130         * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
131         * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
132         * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
133         * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
134         * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
135         * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
136         * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
137         * values.c, vax-tdep.c, xcoffread.c: Ditto.
138         
139 2003-09-13  Andrew Cagney  <cagney@redhat.com>
140
141         * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
142         * ppc-tdep.h (struct regcache): Declare opaque.
143         * objfiles.h (struct objfile_data): Declare opaque.
144         * cp-support.h (struct objfile): Declare opaque.
145         * linux-nat.h (target_waitstatus): Declare opaque.
146
147 2003-09-14  Mark Kettenis  <kettenis@gnu.org>
148
149         * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
150         (stabs_argument_has_addr): New architecture method.
151         * arch-utils.h (default_stabs_argument_has_addr): New prototype.
152         * arch-utils.c: Include "buildsym.h".
153         (default_stabs_argument_has_addr): New function.
154         * stabsread.c (define_symbol): Use stabs_argument_has_addr
155         instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
156
157         * cris-tdep.c (cris_gdbarch_init): Set
158         deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
159         * hppa-tdep.c (hppa_gdbarch_init): Likewise.
160         * mcore-tdep.c (mcore_gdbarch_init): Likewise.
161         * mips-tdep.c (mips_gdbarch_init): Likewise.
162         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
163         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
164
165 2003-09-13  Andrew Cagney  <cagney@redhat.com>
166
167         * values.c (using_struct_return): Delete "function" and "funcaddr"
168         parameters.
169         * value.h (using_struct_return): Update declaration.
170         * infcmd.c (finish_command_continuation): Update.
171         (finish_command): Update.
172         * infcall.c (call_function_by_hand): Update.
173         * eval.c (evaluate_subexp_standard): Update.
174
175 2003-09-13  Christopher Faylor  <cgf@redhat.com>
176
177         * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
178         SSE registers since gdb will not operate correctly without this.
179         Restore include file ordering munged in previous change.
180         * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
181
182 2003-09-13  Mark Kettenis  <kettenis@gnu.org>
183
184         * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
185         REG_STRUCT_HAS_ADDR.
186         * gdbarch.c, gdbarch.h: Updated.
187         * infcall.c (call_function_by_hand): Update.
188         * stabsread.c (define_symbol): Updated.
189         
190         * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
191
192 2003-09-12  Christopher Faylor  <cgf@redhat.com>
193
194         * win32-nat.c: Reorganize so that defines used by target headers are
195         actually defined by the system headers.
196         * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
197         than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
198
199 2003-09-12  Jim Blandy  <jimb@redhat.com>
200
201         * dbxread.c (read_dbx_symtab): Don't report an internal error if
202         the file has no .data, .bss, or .rodata sections.  Instead wait
203         until we see a variable alleged to live in one of those sections.
204
205         * dbxread.c (read_dbx_symtab): If we have no .data section and no
206         .bss section, presume that any variables we find live in the
207         .rodata section.
208
209         * dbxread.c (read_dbx_symtab): Add FIXME about finding section
210         offsets for global and static variables.
211
212         * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
213         symbol types are, by definition, in the .data section, so it is
214         correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
215         If there is no .data section, there should be no N_DATA or N_DATA
216         | N_EXT symbols.
217
218 2003-09-12  Mark Kettenis  <kettenis@gnu.org>
219
220         * amd64fbsd-tdep.c: Fix sigtramp recognition.
221         (amd64fbsd_sigcontext_addr): Rewrite.
222         (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
223         with correct values.
224         (amd64fbsd_sc_reg_offset): Initialize with correct values.
225         (amd64fbsd_init_abi): Fix typo.
226
227 2003-09-12  Andrew Cagney  <cagney@redhat.com>
228
229         * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
230         (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
231
232 2003-09-12  Andrew Cagney  <cagney@redhat.com>
233
234         * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
235         "entry_file_highpc".  Update comments.
236         * defs.h (deprecated_inside_entry_file): Rename
237         "inside_entry_file".
238         * blockframe.c (deprecated_inside_entry_file): Rename
239         "inside_entry_file".
240         * frame.c (get_prev_frame): Update.  Use if 0 instead of #if 0.
241         * vax-tdep.c (vax_frame_chain): Update.
242         * sh64-tdep.c (sh64_frame_chain): Update.
243         * sh-tdep.c (sh_frame_chain): Update.
244         * rs6000-tdep.c (rs6000_frame_chain): Update.
245         * ns32k-tdep.c (ns32k_frame_chain): Update.
246         * mips-tdep.c (mips_frame_chain): Update.
247         * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
248         * m32r-tdep.c (m32r_frame_this_id): Update.
249         * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
250         * frv-tdep.c (frv_frame_this_id): Update.
251         * d10v-tdep.c (d10v_frame_this_id): Update.
252         * cris-tdep.c (cris_frame_chain): Update.
253         * blockframe.c (legacy_frame_chain_valid): Update.
254         * avr-tdep.c (avr_frame_this_id): Update.
255         * arm-tdep.c (arm_prologue_this_id): Update.
256         * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
257         * objfiles.c (objfile_relocate): Update.
258         * mipsread.c (mipscoff_symfile_read): Update.
259         (mipscoff_symfile_read): Update.
260         * mdebugread.c (parse_partial_symbols): Update.
261         * dwarfread.c (read_file_scope): Update.
262         * dwarf2read.c (read_file_scope): Update.
263         * dbxread.c (read_dbx_symtab): Update.
264         (read_dbx_symtab): Update.
265         * coffread.c (complete_symtab): Update.
266
267 2003-09-12  Jeff Johnston  <jjohnstn@redhat.com>
268
269         * top.c (quit_target): New static helper function.
270         (quit_force): Moved code to quit_target().  Call quit_target()
271         via catch_errors() to catch errors during quit.
272
273 2003-09-11  David Carlton  <carlton@kealia.com>
274
275         * buildsym.c (finish_block): Use allocate_block to allocate the
276         block.
277         * mdebugread.c (new_block): Add FIXME.
278
279 2003-09-11  David Carlton  <carlton@kealia.com>
280
281         * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
282         * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
283         (recursive_dump_type): Ditto.
284         * printcmd.c (print_formatted): Ditto.
285         * typeprint.c (print_type_scalar): Ditto.
286         * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
287         (c_type_print_varspec_suffix, c_type_print_base): Ditto.
288         * cp-support.h: Declare cp_check_possible_namespace_symbols,
289         maint_cplus_cmd_list.
290         * cp-support.c: Make maint_cplus_cmd_list extern.
291         * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
292         command.h.
293         (lookup_symbol_file): Look in possible namespace blocks when
294         appropriate.
295         (initialize_namespace_symtab): New.
296         (get_possible_namespace_block, free_namespace_block)
297         (check_possible_namespace_symbols)
298         (check_possible_namespace_symbols_loop)
299         (check_one_possible_namespace_symbol)
300         (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
301         (_initialize_cp_namespace): Ditto.
302         * block.h: Declare allocate_block.
303         * block.c (allocate_block): New.
304         * jv-lang.c (get_java_class_symtab): Allocate blocks via
305         allocate_block.
306         * symfile.h: Update declaration of add_psymbol_to_list.
307         * symfile.c (add_psymbol_to_list): Return the partial symbol in
308         question.
309         * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
310         scan_partial_symbols_call.
311         (scan_partial_symbols): Add NAMESPACE argument; update calls to
312         helper functions.
313         (add_partial_symbol): If necessary, scan mangled names for names
314         of namespaces.
315         (add_partial_namespace): Add NAMESPACE argument; generate partial
316         symbols associated  to namespaces.
317         (add_partial_enumeration): Add NAMESPACE argument.
318         (new_symbol): Allow namespace syms.
319         (read_namespace): Generate namespace syms.
320         * objfiles.h: Add opaque declaration of struct symtab.
321         (struct objfile): Add cp_namespace_symtab member.
322         * objfiles.c (allocate_objfile): Set
323         objfile->cp_namespace_symtab.
324         * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
325         dictionary_h, command_h.
326
327 2003-09-11  Andrew Cagney  <cagney@redhat.com>
328
329         * rs6000-tdep.c (rs6000_push_dummy_call): Use
330         regcache_raw_write_signed to set SP_REGNUM, move the operation to
331         near the function's end.
332         (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
333         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
334         regcache_raw_write_signed to set SP_REGNUM.
335
336 2003-09-11  Elena Zannoni  <ezannoni@redhat.com>
337
338         * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
339         orig_addrs is set up properly.
340
341 2003-09-11  Andrew Cagney  <cagney@redhat.com>
342
343         * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
344         * gdbarch.h, gdbarch.c: Re-generate.
345         * infcall.c (call_function_by_hand): Update.
346         * hppa-tdep.c (hppa_push_arguments): Update.
347         * ada-lang.c (place_on_stack): Update.
348         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
349         * sparc-tdep.c (sparc_gdbarch_init): Update.
350         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
351         * hppa-tdep.c (hppa_gdbarch_init): Update.
352         * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
353         stack_align.
354
355 2003-09-11  Daniel Jacobowitz  <drow@mvista.com>
356
357         * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
358         register do need a frame.
359
360 2003-09-11  Andrew Cagney  <cagney@redhat.com>
361
362         Since the IRIX 4 configuration was forcing K&R mode it hasn't been
363         buildable since GDB 5.0.
364         * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
365         * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
366         * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
367         * irix4-nat.c: Delete file.
368         * config/mips/irix4.mh: Delete file.
369         * config/mips/irix3.mh: Delete file.
370         * config/mips/irix3.mt: Delete file.
371         * config/mips/tm-irix3.h: Delete file.
372         * config/mips/nm-irix3.h: Delete file.
373         * config/mips/xm-irix3.h: Delete file.
374         * config/mips/nm-irix4.h: Delete file.
375         * config/mips/xm-irix4.h: Delete file.
376         * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
377
378 2003-09-10  J. Brobecker  <brobecker@gnat.com>
379
380         * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
381         * Makefile.in (hppa-tdep.o): Update dependencies.
382
383 2003-09-10  James E Wilson  <wilson@specifixinc.com>
384
385         * MAINTAINERS: Change my e-mail address.  Move to paper trail
386         section.
387
388 2003-09-10  Kevin Buettner  <kevinb@redhat.com>
389
390         * MAINTAINERS (frv): New ISA entry.
391
392 2003-09-10  Kevin Buettner  <kevinb@redhat.com>
393
394         * frv-tdep.c (dis-asm.h): Include.
395         * Makefile.in (frv-tdep.o): Update dependencies.
396
397 2003-09-09  Jeff Johnston  <jjohnstn@redhat.com>
398
399         * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
400         Fix typo for high range of floating registers.
401
402 2003-09-09  David Carlton  <carlton@kealia.com>
403
404         * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
405         highpc initialization here out of scan_partial_symbols.
406         (scan_partial_symbols): Restructure into a recursive version,
407         calling add_partial_namespace and add_partial_enumeration when
408         appropriate.
409         (add_partial_namespace): New.
410         (add_partial_enumeration, locate_pdi_sibling): Ditto.
411
412 2003-09-09  Andrew Cagney  <cagney@redhat.com>
413
414         * rs6000-tdep.c (ppc_push_return_address): Delete function.
415         (rs6000_push_dummy_call): Set LR to BP_ADDR.
416         (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
417         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
418
419         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
420         (rs6000_push_dummy_call): Set the "TOC" register.
421
422         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
423         methods "max_register_raw_size", "max_register_virtual_size" or
424         "register_virtual_size".
425
426 2003-09-09  Ian Lance Taylor  <ian@wasabisystems.com>
427
428         * MAINTAINERS: Update my e-mail address.
429
430 2003-09-09  Andrew Cagney  <cagney@redhat.com>
431
432         * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
433         (rs6000_push_dummy_call): Store the struct return address.
434         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
435
436 2003-09-09  Andrew Cagney  <cagney@redhat.com>
437
438         * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
439         "ppc_sysv_abi_push_arguments".
440         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
441         "ppc_sysv_abi_push_arguments".
442         * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
443         instead of "push_arguments".
444         (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
445
446 2003-09-09  Andrew Cagney  <cagney@redhat.com>
447
448         * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
449         instead of CALL_DUMMY_ADDRESS.
450
451 2003-09-09  Paul N. Hilfinger  <hilfingr@gnat.com>
452
453         * p-lang.c: Eliminate "register".
454         * c-lang.c: Ditto.
455         * expprint.c: Ditto.
456         * f-lang.c: Ditto.
457         * jv-lang.c: Ditto.
458         * language.c: Ditto.
459         * m2-lang.c: Ditto.
460         * parse.c: Ditto.
461         * scm-lang.c: Ditto.
462         * objc-lang.c: Ditto.
463
464 2003-09-09  Nick Clifton  <nickc@redhat.com>
465
466         * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
467
468 2003-09-04  Andrew Cagney  <cagney@redhat.com>
469
470         * avr-tdep.c: Include "dis-asm.h".
471         * cris-tdep.c: Include "dis-asm.h".
472         (cris_delayed_get_disassembler): Use "struct disassemble_info"
473         instead of corresponding typedef.
474         * h8300-tdep.c: Include "dis-asm.h".
475         * ia64-tdep.c: Include "dis-asm.h".
476         * i386-tdep.c: Include "dis-asm.h".
477         (i386_print_insn): Use "struct disassemble_info" instead of
478         corresponding typedef.
479         * m68k-tdep.c: Include "dis-asm.h".
480         * mcore-tdep.c: Include "dis-asm.h".
481         * mips-tdep.c: Include "dis-asm.h".
482         (gdb_print_insn_mips): Make static, use "struct disassemble_info"
483         instead of corresponding typedef.
484         * ns32k-tdep.c: Include "dis-asm.h".
485         * s390-tdep.c: Include "dis-asm.h".
486         * sparc-tdep.c: Include "dis-asm.h".
487         * vax-tdep.c: Include "dis-asm.h".
488         * v850-tdep.c: Include "dis-asm.h".
489         * mn10300-tdep.c: Include "dis-asm.h".
490         * rs6000-tdep.c: Include "dis-asm.h".
491         * xstormy16-tdep.c: Include "dis-asm.h".
492         (_initialize_xstormy16_tdep): Delete "extern" declaration of
493         print_insn_xstormy16.
494         * Makefile.in (v850-tdep.o): Update dependencies.
495         (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
496         (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
497         (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
498         (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
499         (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
500         (gdbarch_h): Remove $(dis_asm_h).
501         * disasm.c: Include "dis-asm.h".
502         (dis_asm_read_memory): Use "struct disassemble_info" instead of
503         corresponding typedef.
504         (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
505         (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
506         * gdbarch.sh: Do not include "dis-asm.h".
507         (struct disassemble_info): Declare opaque.
508         (TARGET_PRINT_INSN): Update declaration.
509         * gdbarch.h, gdbarch.c: Re-generate.
510
511 2003-09-08  Andrew Cagney  <cagney@redhat.com>
512
513         * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
514         CALL_DUMMY_ADDRESS, change to a predicate.
515         * gdbarch.h, gdbarch.c: Re-generate.
516         * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
517         Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
518         * infcall.c (call_function_by_hand): Ditto.
519         * sparc-tdep.c (sparc_push_return_address): Ditto.
520         (sparc_gdbarch_init): Set deprecated_call_dummy_address.
521         * xstormy16-tdep.c (xstormy16_push_return_address): Replace
522         CALL_DUMMY_ADDRESS with entry_point_address.
523         * v850-tdep.c (v850_push_return_address): Ditto.
524         * s390-tdep.c (s390_push_return_address): Ditto.
525         * rs6000-tdep.c (ppc_push_return_address): Ditto.
526         * mn10300-tdep.c (mn10300_push_return_address): Ditto.
527         * mcore-tdep.c (mcore_push_return_address): Ditto.
528         * cris-tdep.c (cris_push_return_address): Ditto.
529         * arm-tdep.c (arm_push_return_address): Ditto.
530
531 2003-09-08  Andrew Cagney  <cagney@redhat.com>
532
533         * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
534         enum.  Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
535         and REG_UNMODIFIED to REG_SAME_VALUE.
536         (execute_cfa_program): Update.
537         (dwarf2_frame_cache): Update.  Initialize table to
538         REG_UNSPECIFIED, complain if CFI fails to specify a register's
539         location.
540         (dwarf2_frame_prev_register): Update.  Handle REG_UNSPECIFIED.
541
542 2003-09-08  Andrew Cagney  <cagney@redhat.com>
543
544         * gnu-nat.c: Remove "inline" function attribute.
545         * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
546
547 2003-09-08  Kevin Buettner  <kevinb@redhat.com>
548
549         * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
550         target.
551
552 2003-09-08  Kevin Buettner  <kevinb@redhat.com>
553
554         * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
555         (frame_extra_info): Rename this struct to frv_unwind_cache.
556         Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
557         Add fields ``prev_sp'' and ``base''.
558         (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
559         (frv_saved_pc_after_call, frv_init_extra_frame_info)
560         (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
561         Delete.
562         (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
563         Revise all callers.  Fill in the unwind cache argument and make
564         other adjustments to account for new frame mechanisms.
565         (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
566         (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
567         (frv_frame_base_address, frv_unwind_dummy_id): New functions.
568         (frv_frame_unwind, frv_frame_base): New structs.
569         (frv_push_arguments): Change name to frv_push_dummy_call().  Add
570         additional arguments expected by this method and adjust function
571         body accordingly.
572         (frv_gdbarch_init): Remove calls to the following functions:
573         set_gdbarch_deprecated_init_frame_pc(),
574         set_gdbarch_deprecated_saved_pc_after_call(),
575         set_gdbarch_deprecated_frame_chain(),
576         set_gdbarch_deprecated_frame_saved_pc(),
577         set_gdbarch_deprecated_frame_init_saved_regs(),
578         set_gdbarch_deprecated_push_arguments(),
579         set_gdbarch_deprecated_push_return_address(),
580         set_gdbarch_deprecated_pop_frame(),
581         set_gdbarch_deprecated_call_dummy_words(),
582         set_gdbarch_deprecated_sizeof_call_dummy_words(),
583         set_gdbarch_deprecated_init_extra_frame_info(),
584         set_gdbarch_deprecated_dummy_write_sp(), and
585         set_gdbarch_deprecated_pc_in_call_dummy().
586         Add calls to the following functions:
587         set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
588         set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
589         frame_base_set_default().
590         * Makefile.in (frv-tdep.o): Update dependencies.
591         
592 2003-09-09  Mark Kettenis  <kettenis@gnu.org>
593
594         * dwarf2-frame.c (read_encoded_value): Add support for
595         DW_EH_PE_aligned encoding.
596
597 2003-09-08  Daniel Jacobowitz  <drow@mvista.com>
598
599         * infrun.c (normal_stop): Don't print a message if the inferior
600         has exited.
601
602 2003-09-08  Jim Blandy  <jimb@redhat.com>
603
604         * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
605         * dbxread.c: #include "gdb_assert.h".
606         (read_dbx_symtab): If the objfile has no .data section, use the
607         section index for the .bss section instead.
608
609 2003-09-08  Daniel Jacobowitz  <drow@mvista.com>
610
611         * frame.c (deprecated_safe_get_selected_frame): New function.
612         * frame.h (deprecated_safe_get_selected_frame): Add prototype.
613         * findvar.c (read_var_value): Call it.
614
615 2003-09-08  Corinna Vinschen  <vinschen@redhat.com>
616
617         * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
618         (sh64-tdep.o): Add dependencies.
619         * configure.tgt: Add FIXME to sh-*-linux*.
620         * sh-tdep.c: Move sh64 support to sh64-tdep.c.
621         (sh_gdbarch_init): Always set correct sh_show_regs function
622         pointer.  Call sh64_gdbarch_init() if machine type is sh5. 
623         * sh-tdep.h: Move sh64 support to sh64-tdep.c.
624         * sh64-tdep.c: New file, containing all sh64 related code from
625         sh-tdep.c.
626         * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
627         * config/sh/linux.mt (TDEPFILES): Ditto.
628         * config/sh/nbsd.mt (TDEPFILES): Ditto. 
629         * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
630         * config/sh/wince.mt (TDEPFILES): Ditto.
631
632 2003-09-07  Daniel Jacobowitz  <drow@mvista.com>
633
634         * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
635         (stop_wait_callback): Handle !lp->signalled also.
636         (lin_lwp_has_pending, flush_callback): New functions.
637         (lin_lwp_wait): Call flush_callback.
638         * linux-proc.c (linux_proc_add_line_to_sigset): New function.
639         (linux_proc_pending_signals): New function.
640         * linux-nat.h (linux_proc_pending_signals): Add prototype.
641
642 2003-09-07  Daniel Jacobowitz  <drow@mvista.com>
643
644         From Nick Kelsey <nickk@ubicom.com>:
645         * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
646         when the stop PC is at the beginning of a function also.
647
648 2003-09-06  Daniel Jacobowitz  <drow@mvista.com>
649
650         * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
651         (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
652
653 2003-09-06  Mark Kettenis  <kettenis@gnu.org>
654
655         * sol-thread.c: Include "gdb_string.h".
656
657 2003-09-03  Mark Kettenis  <m.kettenis@osp.nl>
658
659         * gcore.c: Reorder include files in alphabetical order.  Include
660         "gdb_assert.h".  Various coding style fixes.
661         (derive_stack_segment, derive_heap_segment): Replace check for
662         non-null BOTTOM and TOP with gdb_assert.
663         (derive_heap_segment): Replace check for successful creation of
664         ZERO with gdb_assert.
665         (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
666
667 2003-09-04  Andrew Cagney  <cagney@redhat.com>
668
669         * thread-db.c (verbose_dlsym): New function.
670         (thread_db_load): Use verbose_dlsym
671         (thread_db_new_objfile): Print that libthread_db was loaded, and
672         that thread debugging was enabled.
673
674 2003-09-04  Andrew Cagney  <cagney@redhat.com>
675
676         * configure.tgt: Add "mips64*-*-*" target.  Delete
677         mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
678         mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
679         mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
680         mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
681         mips*-sony-*, and mips64*-*-elf* targets.
682         * config/mips/embedl.mt: Delete file.
683         * config/mips/embedl64.mt: Delete file.
684         * config/mips/mips.mt: Delete file.
685         * config/mips/mips64.mt: Delete file.
686         * config/mips/tm-embed.h: Delete file.
687         * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
688         * config/mips/embed64.mt: Delete out-of-date comment.
689
690 2003-09-04  Andrew Cagney  <cagney@redhat.com>
691
692         * hppa-tdep.c (hppa_gdbarch_init): Set
693         "have_nonsteppable_watchpoint".
694         * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
695         * mips-tdep.c (mips_dump_tdep): Do not print
696         HAVE_NONSTEPPABLE_WATCHPOINT.
697         (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
698         * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
699         * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
700         * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
701
702 2003-09-04  Corinna Vinschen  <vinschen@redhat.com>
703
704         * breakpoint.c (watchpoint_check): Remove accidentally checked in
705         unused code.  Add comment.
706
707 2003-09-04  Corinna Vinschen  <vinschen@redhat.com>
708
709         * breakpoint.c (watchpoint_check): Check for pc being in an
710         epilogue if watchpoint frame couldn't be found.
711
712 2003-09-04  Andrew Cagney  <cagney@redhat.com>
713
714         * Makefile.in: Re-generate all dependencies.
715
716 2003-09-03  Andrew Cagney  <cagney@redhat.com>
717
718         * arch-utils.h (legacy_print_insn): Delete declaration.
719         * arch-utils.c (legacy_print_insn): Delete function.
720         * disasm.c (deprecated_tm_print_insn_info): Delete.
721         (_initialize_disasm): Delete function, contained code initializing
722         deprecated_tm_print_insn_info.
723         * gdbarch.sh (deprecated_tm_print_insn): Delete.
724         (deprecated_tm_print_insn_info): Delete.
725         (TARGET_PRINT_INSN): Do not provide a default.
726         * gdbarch.h, gdbarch.c: Re-generate.
727
728 2003-09-03  Andrew Cagney  <cagney@redhat.com>
729
730         * disasm.c (fprintf_disasm): New function.
731         (gdb_disassemble_info): Call "init_disassemble_info", instead of
732         INIT_DISASSEMBLE_INFO_NO_ARCH.  Do not initialize "insn_sets",
733         reverts 2003-08-14 change.
734         (_initialize_disasm): Call "init_disassemble_info", instead of
735         INIT_DISASSEMBLE_INFO_NO_ARCH.
736
737 2003-09-03  Michael Snyder  <msnyder@redhat.com>
738
739         * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
740
741 2003-09-03  Andrew Cagney  <cagney@redhat.com>
742
743         * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
744         * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
745         * symfile.c (syms_from_objfile): Update.
746         (reread_symbols): `Update
747         * exec.c (exec_file_attach): Update.
748         (exec_file_attach): Update.
749         * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
750         2003-08-29 change.
751         * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
752
753 2003-09-03  Daniel Jacobowitz  <drow@mvista.com>
754
755         * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
756         trad-frame.h.
757         (arm_get_cache): Delete macro.
758         (struct arm_prologue_cache): Update comments.  Make saved_regs into
759         a trad_frame_saved_reg pointer.  Remove unwound_pc; rename unwound_sp
760         to prev_sp.
761         (thumb_scan_prologue): Update for cache changes.  Don't call
762         DEPRECATED_PC_IN_CALL_DUMMY.
763         (arm_scan_prologue): Update for cache changes.  Take NEXT_FRAME
764         argument and use it in desperation search for our prologue.  Do not
765         search past the specified PC.
766         (arm_make_prologue_cache): Simplify.
767
768         (arm_prologue_this_id, arm_prologue_prev_register)
769         (arm_prologue_unwind, arm_prologue_unwind_sniffer)
770         (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
771         (arm_sigtramp_this_id, arm_sigtramp_prev_register)
772         (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
773         (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
774
775         (arm_frame_chain_valid, arm_find_callers_reg)
776         (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
777         (arm_pop_frame): Delete obsolete methods.
778         (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
779
780         (arm_gdbarch_init): Update for new frame methods.  Register prologue
781         and sigtramp unwinders.  Set the default frame base method.
782
783         * Makefile.in (arm-tdep.o): Update dependencies.
784         * varobj.c (find_frame_addr_in_frame_chain): Call
785         get_frame_base_address.
786         * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
787
788 2003-09-03  Daniel Jacobowitz  <drow@mvista.com>
789
790         * arm-tdep.c (arm_minimal_frame_chain): Renamed from
791         arm_frame_chain.  Take NEXT_FRAME and CACHE arguments.
792         Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
793         (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
794         Take NEXT_FRAME and CACHE arguments.  Call
795         FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
796         Set unwound_pc in CACHE instead of modifying the frame argument.
797         Don't bother checking the frame type when looking for sigtramp
798         frames.
799         (arm_make_prologue_cache, arm_frame_chain)
800         (arm_init_extra_frame_info): New functions.
801
802 2003-09-03  Daniel Jacobowitz  <drow@mvista.com>
803
804         * arm-tdep.c (arm_get_cache): Define.
805         (struct arm_prologue_cache): Renamed from frame_extra_info.  Add
806         unwound_sp, unwound_pc, and saved_regs.
807         (thumb_scan_prologue): Take a cache instead of the frame.
808         (arm_scan_prologue): Likewise.
809         (arm_frame_chain): Create a temporary cache for arm_scan_prologue
810         instead of a temporary frame.
811         (arm_init_extra_frame_info): Allocate and use a cache.
812         (arm_frame_saved_pc, arm_pop_frame): Use the cache.
813
814 2003-09-03  Andrew Cagney  <cagney@redhat.com>
815
816         * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
817         * config/mips/wince.mt (TM_CLIBS): Ditto.
818         * config/sh/wince.mt (TM_CLIBS): Ditto.
819         * config/pa/hppa64.mt (TM_CLIBS): Delete.
820         * config/sparc/sp64.mt (CC): Delete.
821
822 2003-09-03  Andrew Cagney  <cagney@redhat.com>
823
824         * defs.h: Do not include "arch-utils.h".
825         (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
826         GDB_MULTI_ARCH_PURE.
827         * configure.in (GDB_MULTI_ARCH): Do not define.
828         * configure, config.in: Regenerate.
829         * configure.tgt: Do not set variable "gdb_multi_arch".
830         * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
831         * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
832         * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
833         * config/v850/v850.mt (TM_FILE): Delete disabled definition.
834         * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
835         * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
836         * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
837         * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
838         * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
839         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
840         * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
841         * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
842         * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
843         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
844         * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
845         * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
846         * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
847         * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
848         
849 2003-08-30  Michael Chastain  <mec@shout.net>
850
851         * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
852         * config/m68k/nm-hp300hpux.h: Delete.
853         * config/m68k/tm-hp300hpux.h: Delete.
854         * config/m68k/xm-hp300hpux.h: Delete.
855         * config/m68k/xm-hp300bsd.h: Delete.
856         * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
857         tm-hp300hpux.h, xm-hp300hpux.h.
858         * somsolib.c: Remove comment about hp300 shared libraries.
859
860 2003-08-31  Mark Kettenis  <kettenis@gnu.org>
861
862         * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
863         Only define PTRACE_GET_THREAD_AREA is not already defined.
864         Various style fixes in code and comments and some additional
865         spelling fixes in comments.  Move after functions dealing with
866         debug registers.
867         * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
868         Fix coding-style.
869
870         * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
871         frame_unwind_register_unsigned instead of
872         frame_unwind_unsigned_register.
873
874 2003-08-30  Mark Kettenis  <kettenis@gnu.org>
875
876         * configure.in: Search for gethostbyname in libnsl.
877         * configure: Regenerated.
878
879 2003-08-29  Mark Kettenis  <kettenis@gnu.org>
880
881         * configure.in: Remove redundant AC_MSG_RESULT in check for
882         uintptr_t in stdint.h.
883         * configure: Regenerated.
884
885         * amd64-nat.h (struct regcache): Add opaque declaration.
886
887         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
888         * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
889         Change "register array" to "register cache" in comments.
890         (x86_64_linux_gregset64_reg_offset): New variable.
891         (GETREGS_SUPPLIES): Remove macro.
892         (supply_gregset): Call amd64_supply_native_gregset instead of
893         x86_64_linux_supply_gregset.
894         (fill_gregset): Rename `regno' to `regnum'.  Call
895         amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
896         (store_regs): Rename `regno' to `regnum'.
897         (store_fpregs): Rename `regno' to `regnum'.
898         (fetch_inferior_registers): Rename `regno' to `regnum'.  Use
899         amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
900         Reorganize function a bit.
901         (store_inferior_registers): Rename `regno' to `regnum'.  Use
902         amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
903         Reorganize function a bit.
904         (_initialize_x86_64_linux_nat): New function.
905         * config/i386/x86-64linux.mh.
906
907 2003-08-29  Andrew Cagney  <cagney@redhat.com>
908
909         * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
910         (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
911         (target_remove_watchpoint): Delete macro.
912         (target_insert_watchpoint): Delete macro.
913         (remote_mips_can_use_hardware_watchpoint): Delete declaration.
914         (remote_mips_stopped_by_watchpoint): Delete declaration.
915         (remote_mips_remove_watchpoint): Delete declaration.
916         (remote_mips_set_watchpoint): Delete declaration.
917         (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
918         * remote-mips.c (_initialize_remote_mips): Set
919         "to_insert_watchpoint", "to_stopped_by_watchpoint",
920         "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
921         (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
922         (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
923         (mips_stopped_by_watchpoint): Rename
924         remote_mips_stopped_by_watchpoint.
925         (mips_can_hardware_watchpoint): Rename
926         remote_mips_can_use_hardware_watchpoint, update function
927         signature.
928
929 2003-08-29  Mark Kettenis  <kettenis@gnu.org>
930
931         * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
932         USER_DS.  We haven't given them a register number yet.
933
934         * amd64-nat.h: New file.
935         * amd64-nat.c: New file.
936         * amd64fbsd-nat.c: Include "amd64-nat.h".
937         (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
938         (amd64fbsd32_r_reg_offset): New variable.
939         (supply_gregset): Simply call amd64_supply_native_gregset.
940         (fill_gregset): Rename `regno' to `regnum'.  Simply call
941         amd64_collect_native_gregset.
942         (fill_fpregset): Rename `regno' to `regnum'.
943         (fetch_inferior_registers): Rename `regno' to `regnum'.  Replace
944         usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
945         Use `struct reg' and `struct fpreg' instead of `gregset_t' and
946         `fpregset_t'.  Call amd64_supply_native_gregset instead of
947         supply_gregset.  Call x86_64_supply_fxsave instead of
948         supply_fpregset.
949         (store_inferior_registers): Rename `regno' to `regnum'.  Replace
950         usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
951         Use `struct reg' and `struct fpreg' instead of `gregset_t' and
952         `fpregset_t'.  Call amd64_collect_native_gregset instead of
953         fill_gregset.  Call x86_64_collect_fxsave instead of
954         fill_fpregset.
955         (_initialize_am64fbsd_nat): Initialize
956         amd64_native_gregset32_reg_offset and
957         amd64_native_gregset64_reg_offset.
958         * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
959
960         * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
961         null pointer.  Fix typo in comment.
962
963         * regcache.c (supply_register): Reimplement to call
964         regcache_raw_supply.
965         (regcache_collect): Reimplement by calling regcache_raw_collect.
966
967 2003-08-28  Mark Kettenis  <kettenis@gnu.org>
968
969         * regcache.c (register_buffer): Consitify first argument.
970         (regcache_raw_supply, regcache_raw_collect): New
971         functions.
972
973 2003-08-28  Daniel Jacobowitz  <drow@mvista.com>
974
975         * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET.  Suggested
976         by Nathan J. Williams.
977
978 2003-08-28  Daniel Jacobowitz  <drow@mvista.com>
979
980         * lin-lwp.c (wait_lwp): New function, copied from
981         stop_wait_callback.  Clean up.
982         (stop_wait_callback): Use wait_lwp.
983
984 2003-08-28  Andrew Cagney  <cagney@redhat.com>
985
986         * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
987         flavour and disassembler options.
988         (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
989         (mips_gdbarch_init): Set "print_insn".  Delete initialization of
990         deprecated_tm_print_insn_info.
991         
992 2003-08-27  Andrew Cagney  <cagney@redhat.com>
993
994         * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
995         Use target_read_memory.
996         (s390_get_frame_info): Update.  Do not reference
997         deprecated_tm_print_insn_info.
998         (s390_check_function_end, s390_is_sigreturn): Ditto.
999
1000 2003-08-27  Andrew Cagney  <cagney@redhat.com>
1001
1002         * Makefile.in (cris-tdep.o): Update dependencies.
1003         * cris-tdep.c: Include "gdb_assert.h".
1004         (cris_gdbarch_init): Set print_insn.
1005         (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1006         (cris_delayed_get_disassembler): Simplify, directly call the
1007         disassembler returned by cris_get_disassembler.
1008         * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1009         (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1010         * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1011         (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1012         * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1013         (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1014         * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1015         (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1016         * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1017         (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1018         * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1019         (gdb_print_insn_sparc): Delete function.
1020         (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1021         deprecated_tm_print_insn_info.
1022         * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1023         (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1024         (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1025         * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1026         (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1027         * s390-tdep.c (gdb_print_insn_s390): Delete function.
1028         (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1029         (s390_gdbarch_init): Set print_insn.
1030
1031 2003-08-27  Andrew Cagney  <cagney@redhat.com>
1032
1033         * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1034         (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1035         * infcall.c (call_function_by_hand): Convert the entry point
1036         address into a code address.
1037
1038 2003-08-27  Andrew Cagney  <cagney@redhat.com>
1039
1040         * dsrec.c: Include "gdb_string.h".
1041         * Makefile.in (dsrec.o): Update dependencies.
1042
1043 2003-08-27  Michael Chastain  <mec@shout.net>
1044
1045         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1046
1047 2003-08-27  Andrew Cagney  <cagney@redhat.com>
1048
1049         * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1050         (alpha_osf1_init_abi): Do not set call_dummy_address.
1051
1052 2003-08-27  David Carlton  <carlton@kealia.com>
1053
1054         From Randolph Chung  <tausq@debian.org>:
1055         * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1056         compiles with -Wformat-nonliteral -Werror.
1057
1058 2003-08-26  Jim Blandy  <jimb@redhat.com>
1059
1060         * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1061         (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1062         bfd_lookup_symbol, since we only want symbols in code sections.
1063         (look_for_base): Pass zero as the SECT_FLAGS argument to
1064         bfd_lookup_symbol, since we're not concerned about which section
1065         the symbol is in.
1066
1067 2003-08-26  Jeff Johnston  <jjohnstn@redhat.com>
1068
1069         * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1070         we are frameless or the return address register is already known. 
1071
1072 2003-08-26  Andrew Cagney  <cagney@redhat.com>
1073
1074         * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1075         in size.  Add comments.
1076
1077 2003-08-26  Jeff Johnston  <jjohnstn@redhat.com>
1078
1079         * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1080         (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr(). 
1081
1082 2003-08-26  Jason Merrill  <jason@redhat.com>
1083
1084         * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1085         case out of #ifdef MIPS block.
1086
1087 2003-08-25  Daniel Jacobowitz  <drow@mvista.com>
1088
1089         PR java/1322
1090         * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1091         available before calling SECT_OFF_TEXT.
1092         * PROBLEMS: Remove description of java/1322.
1093
1094 2003-08-25  Jeff Johnston  <jjohnstn@redhat.com>
1095
1096         * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63, 
1097         bof, and nat0-nat127 as pseudo-registers.
1098         (ia64_frame_cache): New struct used to cache frame info.
1099         (ia64_register_reggroup_p): New routine used to override default
1100         register grouping so registers without names are still saved and 
1101         restored.
1102         (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their 
1103         pseudo values.
1104         (ia64_pseudo_register_read): New routine to read pseudo-registers.
1105         (ia64_pseudo_register_write): New routine to write pseudo-registers.
1106         (ia64_alloc_frame_cache): New routine to create a new 
1107         ia64_frame_cache.
1108         (examine_prologue): Change prototype to add next_frame pointer.
1109         Assume frameless until otherwise proven.  Verify that the cfm for
1110         current frame matches the cfm that should occur for the prologues 
1111         alloc insn and if equal, mark as not frameless.  At end of routine,
1112         if not frameless, calculate registers for the previous frame and store
1113         in the cache, if a cache is provided.
1114         (ia64_skip_prologue):  Use new prototype when calling examine_prologue
1115         and pass 0 for next_frame.
1116         (ia64_store_return_value): Change to use convert_typed_floating()
1117         instead of calling ia64_convert_to_raw().
1118         (ia64_extract_return_value): Change to use convert_typed_floating()
1119         instead of calling ia64_convert_to_virtual().
1120         (ia64_frame_cache): New routine to support new frame model.
1121         (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1122         (ia64_frame_sniffer): Ditto.
1123         (ia64_sigtramp_frame_init_saved_regs): Ditto.
1124         (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1125         (ia64_sigtramp_frame_prev_register): Ditto.
1126         (ia64_sigtramp_frame_sniffer): Ditto.
1127         (ia64_frame_base_address): Ditto.
1128         (ia64_extract_struct_value_address): Change to issue error message.
1129         (ia64_frame_align): New routine to align sp.
1130         (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1131         (ia64_push_arguments): Removed.  Logic moved to 
1132         ia64_push_dummy_call().
1133         (ia64_push_return_address): Ditto.
1134         (ia64_unwind_dummy_id): New function.
1135         (ia64_unwind_pc): Ditto.
1136         (ia64_convert_register_p): Ditto.
1137         (ia64_register_to_value): Ditto.
1138         (ia64_value_to_register): Ditto.
1139         (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1140         (ia64_register_byte, ia64_register_raw_size): Ditto.
1141         (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1142         (ia64_saved_pc_after_call): Ditto.
1143         (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1144         (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1145         (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1146         (ia64_register_convert_to_raw): Ditto.
1147         (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1148         (ia64_init_extra_frame_info): Ditto.
1149         (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1150         (ia64_gdbarch_init): Remove registering of deprecated functions that
1151         are no longer used.  Add registration of new gdbarch functions.
1152         Remove registering deprecated_write_sp.  Replace
1153         set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1154         Delete set_gdbarch_deprecated_register_convertible(),
1155         set_gdbarch_deprecated_register_convert_to_virtual(), and
1156         set_gdbarch_deprecated_register_convert_to_raw() calls.  Remove
1157         set_gdbarch_deprecated_register_size(),
1158         set_gdbarch_deprecated_register_bytes(),
1159         set_gdbarch_pcregnum(),
1160         set_gdbarch_deprecated_register_byte(),
1161         set_gdbarch_deprecated_register_raw_size(),
1162         set_gdbarch_deprecated_max_register_raw_size(),
1163         set_gdbarch_deprecated_register_virtual_size(),
1164         and set_gdbarch_deprecated_max_register_virtual_size() calls.
1165         Replace set_gdbarch_deprecated_extract_return_value() with
1166         set_gdbarch_extract_return_value().  Remove calls to:
1167         set_gdbarch_deprecated_saved_pc_after_call();
1168         set_gdbarch_deprecated_frame_chain(),
1169         set_gdbarch_deprecated_frame_saved_pc(),
1170         set_gdbarch_deprecated_frame_init_saved_regs(),
1171         set_gdbarch_deprecated_get_saved_register(),
1172         set_gdbarch_deprecated_call_dummy_words(),
1173         set_gdbarch_deprecated_sizeof_call_dummy_words(),
1174         set_gdbarch_deprecated_init_extra_frame_info(),
1175         set_gdbarch_deprecated_frame_args_address(),
1176         set_gdbarch_deprecated_frame_locals_address(),
1177         and set_gdbarch_deprecated_dummy_write_sp().
1178         Add set_gdbarch_convert_register_p(),
1179         set_gdbarch_register_to_value(),
1180         set_gdbarch_value_to_register(),
1181         set_gdbarch_push_dummy_call(),
1182         set_gdbarch_frame_align(),
1183         set_gdbarch_unwind_dummy_id(),
1184         set_gdbarch_unwind_pc(),
1185         frame_unwind_append_sniffer(),
1186         frame_unwind_append_sniffer(),
1187         and frame_base_set_default().
1188
1189 2003-08-25  Chris Demetriou  <cgd@broadcom.com>
1190
1191         * configure.tgt: Document need for special "mipsisa64" handling.
1192         (mipsisa64*-*-linux64): Handle as target linux64.
1193         (mipsisa64*-*-*): Handle as target embed64.
1194
1195 2003-08-18  Michael Chastain  <mec@shout.net>
1196
1197         * PROBLEMS: Document pr gdb/1322, the Java anonymous
1198         objfile bug.
1199
1200 2003-08-24  Mark Kettenis  <kettenis@gnu.org>
1201
1202         * i387-tdep.h: Update copyright date.
1203         (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1204
1205         * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1206         CFLAGS games to reflect reality.
1207
1208 2003-08-24  Andrew Cagney  <cagney@redhat.com>
1209
1210         * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1211         GDB_MULTI_ARCH is always non-zero.
1212         * osabi.c (_initialize_gdb_osabi): Ditto.
1213         (gdbarch_init_osabi): Ditto.
1214         * sparc-tdep.c: Ditto for #if code.
1215
1216 2003-08-23  Mark Kettenis  <kettenis@gnu.org>
1217
1218         * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1219         Update comments.
1220         * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype.  Update
1221         comments.
1222         * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1223         x86_64_supply_fxsave.
1224         * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1225         x86_64_supply_fxsave.
1226         * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1227         x86_64_supply_fxsave.
1228
1229 2003-08-23  Andreas Jaeger  <aj@suse.de>
1230
1231         * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1232         i387_supply_fxsave.
1233
1234 2003-08-23  Mark Kettenis  <kettenis@gnu.org>
1235
1236         * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1237         i387_supply_register.
1238         (go32_fetch_registers): Adjust call to i387_supply_fsave.
1239         * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1240         i387_supply_fsave.
1241         (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1242         i387_supply_fxsave.
1243         * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1244         i387_supply_fsave.
1245         * i386bsd-nat.c (supply_fpregset): Adjust call to
1246         i387_supply_fsave.
1247         (fetch_inferior_registers): Remove extraneous whitespace.  Adjust
1248         call to i387_supply_fxsave.  Call i387_supply_fsave instead of
1249         supply_fpregset.
1250         (store_inferior_registers): Remove extraneous whitespace.  Call
1251         i387_fill_fsave instead of fill_fpregset.
1252         * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1253         (supply_fpregset): Likewise.
1254         * i386v4-nat.c (supply_fpregset): Adjust call to
1255         i387_supply_fsave.
1256         * i386-interix-nat.c (supply_fpregset): Adjust call to
1257         i387_supply_fsave.
1258         * i386-linux-nat.c (supply_fpregset): Adjust call to
1259         i387_supply_fsave.
1260         (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1261         * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1262         i387supply_fsave and i387_supply_fxsave.
1263         * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1264         Incorporate code from `i387_supply_register.
1265         (i387_supply_register): Remove.
1266         (i387_supply_fxsave): Add `regnum' argument.
1267         Update comments.
1268         * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1269         prototype.
1270         (i387_supply_register): remove prototype.
1271         Update comments.
1272         
1273 2003-08-22  Michael Chastain  <mec@shout.net>
1274
1275         * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1276         Add lines for files in gdb/testsuite/gdb.cp/* that are
1277         still not 8.3 unique.
1278
1279 2003-08-22  Daniel Jacobowitz  <drow@mvista.com>
1280
1281         * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1282         TYPE_VPTR_FIELDNO is valid.
1283
1284 2003-08-19  Mark Kettenis  <kettenis@gnu.org>
1285
1286         * utils.c (set_width_command): Remove prototypes.
1287         (set_screen_size): New prototype.
1288         (init_page_info): Simplify by fetching the screen size from
1289         Readline.  Call set_screen_size.
1290         (set_screen_size): New function.
1291         (set_width): Add missing whitespace in comment.
1292         (set_width_command): Call set_screen_size.
1293         (set_height_command): New function.
1294         (initialize_utils): Fix formatting.  Make "set height" command
1295         call set_height_command.  Remove redundant code that turns off
1296         pagination if output isn't a terminal.  Remove redundant call to
1297         set_width_command.
1298         
1299 2003-08-22  Mark Kettenis  <kettenis@gnu.org>
1300
1301         * sparc64-tdep.h (sparc64_regnum): Fix comment.
1302         (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1303         (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1304         * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1305         `case' keyword.
1306         (sparc64_register_info): Give the reister with number
1307         SPARC64_STATE_REGNUM a name.
1308         (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1309         %asi and %ccr.
1310         (sparc64_push_dummy_call): Take BIAS into account when checking
1311         stcak alignment.
1312         (sparc_software_single_step): Remove assertions that check whether
1313         NPC and NNPC were zero.
1314         (sparc_supply_rwindow): Make public.  Merge functionality with
1315         sparc64_supply_rwindow.
1316         (sparc_fill_rwindow): Make public.  Merge functionality with
1317         sparc64_fill_rwindow.
1318         (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1319         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1320         SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1321         * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1322         sparc_supply_rwindow instead of sparc64_supply_rwindow.
1323
1324         * reggroups.c: Add whitespace after declarations of local
1325         variables in functions.
1326
1327 2003-08-21  Michael Chastain  <mec@shout.net>
1328
1329         * gdbtypes.h: Change array bound type from an int to enum.
1330
1331 2003-08-21  Andrew Cagney  <cagney@redhat.com>
1332
1333         * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1334         * config/sparc/tm-sparc.h: Ditto.
1335         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1336         unconditionally.
1337         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1338
1339 2003-07-13  Mark Kettenis  <kettenis@gnu.org>
1340
1341         * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1342         (register_objfile_data, set_objfile_data, objfile_data): New
1343         prototypes.
1344         * objfiles.c (objfile_alloc_data, objfile_free_data): New
1345         prototypes.
1346         (allocate_objfile): Call objfile_alloc_data.
1347         (free_objfile): Call objfile_free_data.
1348         (struct objfile_data): New.
1349         (struct objfile_data_registration): New.
1350         (struct objfile_data_registry): New.
1351         (objfile_data_registry): New variable.
1352         (register_objfile_data): New function.
1353         (objfile_alloc_data, objfile_free_data): New functions.
1354         (set_objfile_data, objfile_data): New functions.
1355         * dwarf2-frame.c (dwarf2_frame_data): New variable.
1356         (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1357         (_initialize_dwarf2_frame): New function and prototype.
1358
1359 2003-08-21  Andrew Cagney  <cagney@redhat.com>
1360
1361         * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1362         a specific architecture.
1363         * arch-utils.h (set_architecture_from_arch_mach): Delete
1364         declaration.
1365         (target_architecture_hook): Delete declaration.
1366         * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1367         (default_float_format): Assume GDB_MULTI_ARCH.
1368         (default_double_format): Assume GDB_MULTI_ARCH.
1369         (set_endian_from_file): Delete function.
1370         (arch_ok): Delete function.
1371         (set_arch): Delete function.
1372         (set_architecture_from_arch_mach): Delete function.
1373         (set_architecture_from_file): Delete function.
1374         (set_architecture): Assume GDB_MULTI_ARCH.
1375         (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1376
1377 2003-08-21  Mark Kettenis  <kettenis@gnu.org>
1378
1379         Rewrite FreeBSD/sparc64 native configuration.
1380         * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1381         * sparc64fbsd-nat.c: New file.
1382         * sparc64fbsd-tdep.c: New file.
1383         * sparc64-tdep.c sparc64-tdep.h: New files.
1384         * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1385         sparc64fbsd-tdep.o): New dependencies.
1386         (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1387         and sparc64fbsd-tdep.c.
1388         (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1389         * config/sparc/fbsd.mh: Remove copyright notice.
1390         (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1391         sparcbsd-nat.o.
1392         * config/sparc/fbsd.mt: Remove copyright notice.
1393         (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1394         solib-legacy.o.  Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1395         * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1396         (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1397         PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1398         regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1399         fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1400         * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1401         "sparc/tm-sp64.h".
1402         (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1403         (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1404
1405 2003-08-21  Michael Chastain  <mec@shout.net>
1406
1407         * symtab.h: Add doco on the space critical structures and
1408         some measurements of space usage.
1409
1410 2003-08-21  Michael Snyder  <msnyder@redhat.com>
1411
1412         * tracepoint.c (trace_dump_command): Trace break address
1413         is subject to DECR_PC_AFTER_BREAK.
1414         (set_traceframe_context): Make "trace_line" an int.
1415         Fixes suggested by Mark Newman  <mark.newman@lmco.com>
1416         
1417 2003-08-20  Michael Snyder  <msnyder@redhat.com>
1418
1419         * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1420         * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set 
1421         FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for 
1422         argument passing.
1423         (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New 
1424         functions, replace sh_push_dummy_call.
1425         (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1426
1427 2003-08-20  Michael Chastain  <mec@shout.net>
1428
1429         * gdbtypes.h (struct main_type): Rearrange to save space.
1430
1431 2003-08-20  Michael Snyder  <msnyder@redhat.com>
1432
1433         * trad-frame.c: Comment typo fix.
1434
1435 2003-08-20  Michael Snyder  <msnyder@redhat.com>
1436             Kevin Buettner  <kevinb@redhat.com>
1437
1438         * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1439         (frv_frame_init_saved_regs): Add declaration.
1440         (frame_extra_info): Add new field ``saved_regs''.
1441         (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1442         (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1443         Update frame related code.
1444         (frv_extract_struct_value_address): Adjust formatting.
1445         * Makefile.in (frv-tdep.o): Update dependencies.
1446         * config/frv/tm-frv.h (target_insert_watchpoint)
1447         (target_remove_watchpoint, target_insert_hw_breakpoint)
1448         (target_remove_hw_breakpoint): Delete these macros.
1449         (remote_insert_watchpoint, remote_remove_watchpoint)
1450         (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1451         these declarations.
1452
1453 2003-08-20  Michael Chastain  <mec@shout.net>
1454
1455         * defs.h (ENUM_BITFIELD): New macro.
1456         * symtab.h (ENUM_BITFIELD): Use it.
1457         (BYTE_BITFIELD): Remove old macro, which was already disabled.
1458
1459 2003-08-19  Shrinivas Atre <shrinivasa@kpitcummins.com>
1460
1461         * MAINTAINERS (write after approval): Add myself.
1462         
1463 2003-08-18  Andrew Cagney  <cagney@redhat.com>
1464
1465         * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1466         * gdbarch.h, gdbarch.c: Re-generate.
1467         * infcall.c (call_function_by_hand): Adjust the SP by
1468         frame_red_zone_size before allocating any stack space.
1469         * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1470         * x86-64-tdep.c (x86_64_frame_align): New function.
1471         (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1472
1473         * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1474         Remove code adjusting SP so that it skips over the Red Zone.
1475
1476 2003-08-18  Mark Kettenis  <kettenis@gnu.org>
1477
1478         * NEWS (New native configurations): Mention FreeBSD/amd64.
1479
1480 2003-08-18  Andrew Cagney  <cagney@redhat.com>
1481
1482         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1483         "dwarf2_build_frame_info".  Append "m68k_frame_sniffer" instead of
1484         "m68k_frame_p".
1485         (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1486
1487 2003-08-18  Mark Kettenis  <kettenis@gnu.org>
1488
1489         * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1490
1491 2003-08-18  Michal Ludvig  <mludvig@suse.cz>
1492
1493         * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1494         Define.
1495         * i386-linux-nat.c: Include "linux-nat.h".
1496         (child_post_startup_inferior): New function.
1497         
1498 2003-08-18  Mark Kettenis  <kettenis@gnu.org>
1499
1500         * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1501         at the start of a frameless function.  This probably fixes PR
1502         backtrace/1338.
1503
1504 2003-08-17  Michael Chastain  <mec@shout.net>
1505
1506         * symfile.c (find_sym_fns): Remove special case for apollo target.
1507
1508 2003-08-17  Daniel Jacobowitz  <drow@mvista.com>
1509
1510         * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1511         (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1512         (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1513         (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1514         (linux_supports_tracevforkdone): New function.
1515         (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1516         TRACEVFORKDONE.
1517         (child_follow_fork): Handle vfork.
1518         (linux_handle_extended_wait): Likewise.  Also handle exec.
1519         (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1520         * NEWS: Mention fork tracing.
1521
1522 2003-08-17  Daniel Jacobowitz  <drow@mvista.com>
1523
1524         * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1525
1526 2003-08-17  Daniel Jacobowitz  <drow@mvista.com>
1527
1528         * Makefile.in (i386-linux-nat.o): Update dependencies.
1529         * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1530         * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1531         (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1532         * i386-linux-nat.c: Include "linux-nat.h".
1533         (child_post_startup_inferior): New function.
1534         * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1535         * infptrace.c (kill_inferior): Wrap in #ifdef.
1536         * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1537         attaching to each LWP.
1538         (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1539         (init_lin_lwp_ops): Fill in some more operations.
1540         * linux-nat.h (linux_enable_event_reporting)
1541         (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1542         prototypes.
1543         * linux-nat.c (linux_enable_event_reporting): New function.
1544         (child_post_attach, linux_child_post_startup_inferior)
1545         (child_post_startup_inferior, child_follow_fork)
1546         (linux_handle_extended_wait, kill_inferior): New functions.
1547
1548 2003-08-16  Andrew Cagney  <cagney@redhat.com>
1549
1550         * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1551         * gdbarch.h, gdbarch.c: Re-generate.
1552
1553 2003-08-16  Mark Kettenis  <kettenis@gnu.org>
1554
1555         * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1556
1557 2003-08-16  Andrew Cagney  <cagney@redhat.com>
1558
1559         * NEWS: Mention that "set prompt-escape-char" was deleted.
1560         * top.c (get_prompt_1): Delete function.
1561         (gdb_prompt_escape):
1562         (init_main): Do not clear "gdb_prompt_escape".  Delete "set
1563         prompt-escape-char" command.
1564         (MAX_PROMPT_SIZE): Delete macro.
1565         (get_prompt): Simplify, do not call get_prompt_1.
1566
1567 2003-08-16  Andrew Cagney  <cagney@redhat.com>
1568
1569         * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1570         -Werror.  -Wformat-nonliteral problems.
1571
1572 2003-08-15  J. Brobecker  <brobecker@gnat.com>
1573
1574         Further multiarching work mostly for hppa64-*-hpux11:
1575         * hppa-tdep.h: New file.
1576         * hppa-tdep.c: #include hppa-tdep.c.
1577         (hppa32_num_regs): Renamed from hppa_num_regs.
1578         (hppa64_num_regs): New constant.
1579         (hppa64_call_dummy_breakpoint_offset): New constant.
1580         (hppa32_call_dummy_length): New constant.
1581         (hppa64_call_dummy_length): New constant.
1582         (hppa32_stack_align): Make name 32bit explicit.
1583         (hppa32_register_virtual_type): Likewise.
1584         (hppa32_extract_return_value): Likewise.
1585         (hppa32_use_struct_convention): Likewise.
1586         (hppa32_store_return_value): Likewise.
1587         (hppa64_register_virtual_type): New function.
1588         (hppa64_extract_return_value): New function.
1589         (hppa64_use_struct_convention): New function.
1590         (hppa64_store_return_value): New function.
1591         (hppa_frame_locals_address): Remove declaration, function does
1592         not exist anymore.
1593         (hppa_register_byte): Add support for PA64 ABI.
1594         (hppa_gdbarch_init): Add support for PA64 ABI.
1595         * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1596         Make name 32bit explicit.
1597         (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1598         (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1599         (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1600         (hppa64_hpux_frame_base_before_sigtramp): New function.
1601         (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1602         * config/pa/tm-hppa64.h: Remove macros that are no longer
1603         necessary now that the gdbarch vector is properly setup.
1604         Transform some macros into function calls. Some minor cleanup. 
1605         * config/pa/tm-hppah.h: Update function calls in macros
1606         following the function renaming in hppa-hpux-tdep.c.
1607         * Makefile.in (hppa_tdep_h): New variable.
1608         (hppa-tdep.o): Add dependency over hppa_tdep_h.
1609
1610 2003-08-14  Michael Snyder  <msnyder@redhat.com>
1611
1612         * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1613
1614 2003-08-13  J. Brobecker  <brobecker@gnat.com>
1615
1616         * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1617         bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1618         routine.
1619
1620 2003-08-13  Michael Snyder  <msnyder@redhat.com>
1621
1622         * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1623         (frv_saved_pc_after_call): Use deprecated ftype.
1624         (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1625         (frv_remote_translate_xfer_address): Remove.
1626         (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1627
1628 2003-08-13  J. Brobecker  <brobecker@gnat.com>
1629
1630         * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1631         initialization after the common gdbarch initialization, not before.
1632
1633 2003-08-13  J. Brobecker  <brobecker@gnat.com>
1634
1635         * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1636         (ADDR_BITS_REMOVE): Remove, redundant.
1637
1638 2003-08-13  J. Brobecker  <brobecker@gnat.com>
1639
1640         * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1641         gdbarch method to clear the 2 low bits of text addresses.
1642
1643 2003-08-12  Andrew Cagney  <cagney@redhat.com>
1644
1645         * Makefile.in (dsrec.o): Update dependencies.
1646         * dsrec.c: Include "gdb_assert.h".
1647         (make_srec): Use snprintf instead of sprintf, use a literal format
1648         string.
1649
1650 2003-08-12  Andrew Cagney  <cagney@redhat.com>
1651
1652         * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1653         FRAME_OBSTACK_ZALLOC.
1654
1655 2003-08-12  Kevin Buettner  <kevinb@redhat.com>
1656
1657         * i386-tdep.c (i386_gdbarch_init): Enable default support for
1658         SSE registers.
1659
1660 2003-08-10  Mark Kettenis  <kettenis@gnu.org>
1661
1662         * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1663         amd64fbsd_sc_reg_offset): Add extern declarations.
1664         * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1665         declarations.
1666
1667 2003-08-11  Ben Elliston  <bje@wasabisystems.com>
1668
1669         * MAINTAINERS (write after approval): Update my mail address.
1670
1671 2003-08-10  Andrew Cagney  <cagney@redhat.com>
1672
1673         * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1674
1675 2003-08-10  Mark Kettenis  <kettenis@gnu.org>
1676
1677         * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1678         i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1679         i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1680         i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1681         i386bsd_sc_reg_offset): Add extern declarations.
1682         * i386obsd-nat.c: Include "i386-tdep.h"
1683         (_initialize_i386obsd_nat): Remove extern declarations.
1684         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1685         declarations.
1686         * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1687         declarations.
1688
1689         * i386-tdep.c (i386_register_to_value): Use get_frame_register
1690         instead of frame_read_register.
1691         (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1692         instead of frame_read_register.  Use I386_ESP_REGNUM instead of
1693         SP_REGNUM.
1694         (i386_frame_prev_register): Use frame_unwind_register_unsigned
1695         instead of frame_unwind_unsigned_register.  Use
1696         I386_EFLAGS_REGISTER instead of PS_REGNUM.
1697         (i386_get_longjmp_target): Use regcache_read_unsigned_register
1698         instead of read_register.  Use builtin_type_void_data_ptr instead
1699         of builtin_type_void_func_ptr when extracting the address of the
1700         jmp_buf.
1701         (i386_extract_return_value, i386_store_return_value,
1702         i386_pseudo_register_read, i386_pseudo_register_write): Use
1703         register_size instead REGISTER_RAW_SIZE.
1704
1705 2003-08-10  Andrew Cagney  <cagney@redhat.com>
1706
1707         * infcall.c (call_function_by_hand): Use xstrprintf instead of
1708         sprintf.  Make "name" constant.
1709
1710 2003-08-10  Mark Kettenis  <kettenis@gnu.org>
1711
1712         * i387-tdep.c (i387_register_to_value): Use get_frame_register
1713         instead of frame_read_register.
1714         (i387_print_float_info): Use get_frame_register and
1715         get_frame_register_unsigned instead of frame_register_read.
1716
1717         * i386fbsd-nat.c: Include "i386-tdep.h".
1718         (child_resume): Make `eflags' an ULONGEST.  Use
1719         regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1720         instead of register_read and register_write.
1721
1722         * i386bsd-nat.c (fetch_inferior_registers,
1723         store_inferior_registers): Don't use && at the end of a line.
1724         (_initialize_i386bsd_nat): Fix typo.
1725
1726         * frame.c (_initialize_frame): Add missing backslash.
1727
1728         From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1729         * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1730         and supply_register instead of manipulating the register buffer
1731         directly.
1732
1733         From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1734         * config/i386/nm-i386sol2.h
1735         (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1736
1737         Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1738         * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1739         instructions that GCC likes to mingle into the prologue.  Fixes
1740         gdb/1253 and gdb/1255.
1741
1742 2003-08-09  Andrew Cagney  <cagney@redhat.com>
1743
1744         Fix GDB PR cli/926.
1745         * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1746         * command.h (add_setshow_uinteger_cmd): Declare.
1747         * frame.c (set_backtrace_cmd): New function.
1748         (show_backtrace_cmd): New function.
1749         * frame.c (_initialize_frame): Replace "set/show
1750         backtrace-below-main" with "set/show backtrace past-main".  Add
1751         command "set/show backtrace limit".
1752         (backtrace_past_main): Rename "backtrace_below_main".
1753         (backtrace_limit): New variable.
1754         (get_prev_frame): Update.  Check the backtrace_limit.
1755
1756 2003-08-09  Andrew Cagney  <cagney@redhat.com>
1757
1758         * defs.h (xstrprintf): Declare.
1759         * utils.c (xstrprintf): New function.
1760         * breakpoint.c (insert_breakpoints): Replace sprintf and
1761         non-literal format strings, with xstrprintf and cleanups.
1762         (delete_breakpoint,breakpoint_re_set): Ditto.
1763         (commands_command, insert_breakpoints): Ditto.
1764         (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1765         (break_at_finish_command_1): Ditto.
1766
1767 2003-08-09  Andrew Cagney  <cagney@redhat.com>
1768
1769         * MAINTAINERS (language support): List Adam Fedor as Objective C
1770         maintainer.
1771
1772 2003-08-08  J. Brobecker  <brobecker@gnat.com>
1773
1774         * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1775         are now multiarched.
1776
1777 2003-08-08  J. Brobecker  <brobecker@gnat.com>
1778
1779         * config/pa/tm-hppa64.h: Remove lots of macros that are no
1780         longer necessary now that hppa64 is partially multiarch'ed.
1781
1782 2003-08-08  Andrew Cagney  <cagney@redhat.com>
1783
1784         * interps.c (interp_set): Check for a NULL "old_interp".
1785
1786 2003-08-08  H.J. Lu  <hongjiu.lu@intel.com>
1787
1788         * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1789         (install-only): Support DESTDIR.
1790         (uninstall): Likewise.
1791         (install-gdbtk): Likewise.
1792
1793 2003-08-08  Elena Zannoni  <ezannoni@redhat.com>
1794
1795         * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1796         contains something meaningful at all times.
1797
1798 Fri Aug  8 00:28:46 UTC 2003  Brendan Conoboy  <blc@redhat.com>
1799
1800         * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
1801
1802 Fri Aug  8 00:28:38 UTC 2003  Brendan Conoboy  <blc@redhat.com>
1803
1804         * MAINTAINERS (write after approval): Added self.
1805
1806 2003-08-07  Andrew Cagney  <cagney@redhat.com>
1807
1808         * inferior.h (AT_SYMBOL): Define.
1809         * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1810         * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1811         * mips-tdep.c (mips_call_dummy_address): Delete function.
1812         (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1813         set call_dummy_address.
1814
1815 2003-08-07  Andrew Cagney  <cagney@redhat.com>
1816
1817         * language.c (op_error): Delete function.
1818         (binop_type_check): Delete function.
1819         * language.h (type_op_error, range_op_error): Delete macros.
1820         (op_error): Delete declaration.
1821
1822 2003-08-07  Andrew Cagney  <cagney@redhat.com>
1823
1824         * interps.h (INTERP_MI2, INTERP_MI3): Define.
1825
1826 2003-08-07  Michal Ludvig  <mludvig@suse.cz>
1827
1828         * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
1829         (x86_64_push_arguments): Skip the red zone.
1830
1831 2003-08-05  Andrew Cagney  <cagney@redhat.com>
1832
1833         * reggroups.c (reggroup_next): Check for the final entry.
1834
1835 2003-08-04  Andrew Cagney  <cagney@redhat.com>
1836
1837         * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1838         * cli/cli-script.c (define_command): Call query directly, instead
1839         of passing it a buffer.
1840         * ocd.c (ocd_error): Pass error a constant format string.
1841         * remote-mips.c (mips_error): Use fputs_filtered.
1842
1843         * solib-svr4.c (_initialize_svr4_solib): Update
1844         register_gdbarch_data call.
1845         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1846
1847         * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1848         (register_gdbarch_data): Delete "free" parameter.  Update
1849         comments.
1850         * gdbarch.h, gdbarch.c: Re-generate.
1851         * reggroups.c (_initialize_reggroup): Update.
1852         * gnu-v3-abi.c (init_gnuv3_ops): Update.
1853         * frame-base.c (_initialize_frame_base): Update.
1854         * frame-unwind.c (_initialize_frame_unwind): Update.
1855         * user-regs.c (_initialize_user_regs): Update.
1856         * remote.c (_initialize_remote): Update.
1857         * regcache.c (_initialize_regcache): Update.
1858
1859         * regcache.c (xfree_regcache_descr): Delete function.
1860         (_initialize_regcache): Update call to register_gdbarch_data.
1861         (init_regcache_descr, init_legacy_regcache_descr): Use
1862         GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1863
1864         * remote.c (free_remote_state): Delete function.
1865         (_initialize_remote): Update register_gdbarch_data.
1866         (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1867         GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1868
1869 2003-08-04  Andrew Cagney  <cagney@redhat.com>
1870
1871         * reggroups.c (struct reggroup_el): Define.
1872         (struct reggroups): Delete field "nr_group".  Replace array
1873         "group" with a "first" to "last" linked list.
1874         (reggroups_init): Update.  Allocate using gdbarch's obstack.
1875         (reggroups_free): Delete function.
1876         (add_group): Update.  Add "el" parameter.
1877         (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1878         (default_groups): Update.
1879         (reggroup_next): Replace reggroups.
1880         (reggroups_dump): Update.
1881         (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1882         * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1883         * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1884
1885 2003-08-04  Daniel Jacobowitz  <drow@mvista.com>
1886
1887         * Makefile.in (tui-interp.o): Update dependencies.
1888
1889 2003-08-04  David Carlton  <carlton@kealia.com>
1890
1891         * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1892         to internal_error call.
1893         * source.c (forward_search_command): Add "%s" format argument.
1894         (reverse_search_command): Ditto.
1895         * top.c (quit_confirm): Ditto.
1896         * cli/cli-setshow.c (do_setshow_command): Ditto.
1897         * cp-valprint.c (cp_print_class_method): Replace
1898         {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1899         (cp_print_class_member): Ditto.
1900         * event-top.c (command_line_handler): Ditto.
1901         * linux-proc.c (linux_info_proc_cmd): Ditto.
1902         * p-typeprint.c (pascal_type_print_base): Ditto.
1903         * p-valprint.c (pascal_object_print_class_method): Ditto.
1904         (pascal_object_print_class_member): Ditto.
1905         * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1906         * remote.c (remote_cisco_section_offsets): Ditto.
1907         * top.c (command_line_input): Ditto.
1908         * utils.c (vwarning,error_stream,quit): Ditto.
1909         * valprint.c (print_floating,print_binary_chars)
1910         (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1911
1912 2003-08-04  Andrew Cagney  <cagney@redhat.com>
1913
1914         * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1915
1916 2003-08-02  Andrew Cagney  <cagney@redhat.com>
1917
1918         * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1919         gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1920         amd64fbsd-nat.c.
1921
1922 2003-08-02  Andrew Cagney  <cagney@redhat.com>
1923
1924         * Makefile.in: Update all dependencies and definitions.
1925
1926 2003-08-02  Adam Fedor  <fedor@gnu.org>
1927
1928         * linespec.c (is_objc_method_format): New function
1929         (decode_line_1, locate_first_half): Use it.
1930         Fixes PR objc/1298
1931
1932 2003-08-01  Andrew Cagney  <cagney@redhat.com>
1933
1934         * NEWS: Mention that m32r is multi-arch.
1935         From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
1936         * configure.tgt: Recognize m32r-*-*.
1937         * config/m32r/tm-m32r.h: Delete file.
1938         * config/m32r/m32r.mt: New file.
1939         * m32r-rom.c (m32r_upload_command): Use hostent only when 
1940         gethostname succeeds, in order to avoid a compilation
1941         warning.
1942         * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1943         compiler warning.
1944
1945 2003-08-01  Michael Snyder  <msnyder@redhat.com>
1946
1947         * sh-tdep.c (sh_frame_align): New gdbarch method.
1948         (sh_gdbarch_init): Set up frame_align method.
1949
1950 2003-07-31  Michael Snyder  <msnyder@redhat.com>
1951
1952         * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1953         which is already covered by the new frames infrastructure.
1954
1955 2003-07-31  Andrew Cagney  <cagney@redhat.com>
1956
1957         * user-regs.c (struct user_reg): Add "next" link.
1958         (struct user_regs): Replace "user" with "first" and "last" links.
1959         (append_user_reg): Add pre-allocated "reg" parameter.
1960         (builtin_user_regs): Provide initial value for "last".
1961         (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1962         (user_regs_init): Allocate memory from the gdbarch obstack.
1963         (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1964         (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1965         linked list.
1966         (usernum_to_user_reg): New function.
1967         (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1968         (value_of_user_reg): Use usernum_to_user_reg.
1969         (user_regs_free): Delete function.
1970         (_initialize_user_regs): Update register_gdbarch_data call.
1971
1972 2003-07-31  Daniel Jacobowitz  <drow@mvista.com>
1973
1974         * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1975
1976 2003-07-30  Michael Snyder  <msnyder@redhat.com>
1977
1978         * value.h (value_being_returned): Add a struct_addr argument.
1979         * infcall.c (call_function_by_hand): Pass struct_addr to 
1980         value_being_returned.
1981         * infcmd.c (print_return_value): Pass zero as struct_addr.
1982         * values.c (value_being_returned): If struct_addr is passed,
1983         use it instead of trying to recover it from the inferior.
1984
1985 2003-07-30  Kevin Buettner  <kevinb@redhat.com>
1986
1987         * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1988         the prologue analyzer won't need to attempt to extract the pc
1989         value from the woefully incomplete dummy frame.
1990         (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1991         possible.  Disable code which modifies the frame.
1992
1993 2003-07-28  Andrew Cagney  <cagney@redhat.com>
1994
1995         * annotate.c (annotate_breakpoints_headers): Restrict annotation
1996         to level 2.
1997         (annotate_breakpoints_table, annotate_record): Ditto.
1998         (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1999         (annotate_field_name_end, annotate_field_value): Ditto.
2000         (annotate_field_end, annotate_frame_source_begin): Ditto.
2001         (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2002         (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2003         (annotate_frame_begin, annotate_frame_function_name): Ditto.
2004         (annotate_frame_address_end, annotate_frame_address): Ditto.
2005         (annotate_frame_args, annotate_frame_end): Ditto.
2006         (annotate_frame_where, annotate_arg_begin): Ditto.
2007         (annotate_arg_name_end, annotate_arg_value): Ditto.
2008         (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2009         (annotate_function_call, annotate_signal_name): Ditto.
2010         (annotate_signal_string, annotate_signal_name_end): Ditto.
2011         (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2012         (annotate_value_begin, annotate_value_history_value): Ditto.
2013         (annotate_value_history_end, annotate_value_end): Ditto.
2014         (annotate_display_begin, annotate_display_number_end): Ditto.
2015         (annotate_display_format, annotate_display_expression): Ditto.
2016         (annotate_display_expression_end, annotate_display_value): Ditto.
2017         (annotate_display_end, annotate_array_section_begin): Ditto.
2018         (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2019         (annotate_elt, annotate_array_section_end): Ditto.
2020
2021 2003-07-28  Andrew Cagney  <cagney@redhat.com>
2022
2023         * regcache.c (struct regcache_descr): Update comments on
2024         nr_raw_registers.
2025         (init_legacy_regcache_descr): Don't set nr_raw_registers or
2026         sizeof_raw_register_valid_p.
2027         (init_regcache_descr): Set nr_raw_registers and
2028         sizeof_raw_register_valid_p before calling
2029         init_legacy_regcache_descr.
2030
2031 2003-07-28  Andrew Cagney  <cagney@redhat.com>
2032
2033         * mips-tdep.c (print_gp_register_row): Print the GPR's register
2034         MOD NUM_REGS.
2035
2036 2003-07-28  Daniel Jacobowitz  <drow@mvista.com>
2037
2038         * thread.c (info_threads_command): Use get_selected_frame ().
2039         Check that there is at least one non-sentinel frame.
2040
2041 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
2042
2043         * m68hc11-tdep.c (struct frame_extra_info): Remove.
2044         (m68hc11_pop_frame): Remove.
2045         (m68hc11_frame_saved_pc): Remove.
2046         (m68hc11_frame_chain): Remove.
2047         (m68hc11_frame_init_saved_regs): Remove.
2048         (m68hc11_init_extra_frame_info): Remove.
2049         (m68hc11_store_struct_return): Remove.
2050         (m68hc11_saved_pc_after_call): Remove.
2051
2052 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
2053
2054         * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2055         frame unwind information.
2056         (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2057         and adapted for frame unwinding.
2058         (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2059         (m68hc11_unwind_pc): New function.
2060         (m68hc11_frame_unwind_cache): New function to analyze frames.
2061         (m68hc11_frame_this_id): New function to create new frame struct.
2062         (m68hc11_frame_prev_register): New function to unwind a register from
2063         the frame.
2064         (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2065         (m68hc11_frame_p): New function for the above.
2066         (m68hc11_frame_base_address): New function to return fp of frame.
2067         (m68hc11_frame_args_address): Update for frame.
2068         (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2069         (m68hc11_unwind_sp): New function.
2070         (m68hc11_unwind_dummy_id): New function.
2071         (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2072         calls.
2073
2074 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
2075
2076         * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2077         (m68hc11_guess_from_prologue): Advance the pc and frame size only
2078         when we are beyond the current pc.
2079
2080 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
2081
2082         * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2083         from m68hc11_push_arguments.
2084         (m68hc11_push_arguments): Remove.
2085         (m68hc11_push_return_address): Remove.
2086         (m68hc11_gdbarch_init): Install the above; remove above deprecated
2087         handlers; remove deprecated_extra_stack_alignment_needed.
2088
2089 2003-07-27  Andrew Cagney  <cagney@redhat.com>
2090
2091         * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2092         * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2093         REAL_PC and not the pointer.
2094         * hppa-hpux-tdep.c: Include frame.h
2095
2096 2003-07-27  Andrew Cagney  <cagney@redhat.com>
2097
2098         * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2099         GDB_MULTI_ACH_PARTIAL.
2100
2101 2003-07-27  Andrew Cagney  <cagney@redhat.com>
2102
2103         Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2104         * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2105         operator at start and not end of line.
2106         (decode_prologue): Ditto.
2107         (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2108         frame_unwind_register_unsigned instead of
2109         frame_unwind_unsigned_register.
2110         (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2111         read_register.
2112         (m32r_push_dummy_call): Use register_size instead of
2113         REGISTER_RAW_SIZE.
2114         (m32r_frame_sniffer): Replace m32r_frame_p.
2115         (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2116         * m32r-rom.c (report_transfer_performance): Delete extern
2117         declaration.
2118         (m32r_load, m32r_upload_command): Use print_transfer_performance
2119         instead of report_transfer_performance.
2120         (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2121         / add_show_from_set.
2122
2123 2003-07-26  Andrew Cagney  <cagney@redhat.com>
2124
2125         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2126         store_return_value and extract_struct_value_address.
2127
2128 2003-07-26  Daniel Jacobowitz  <drow@mvista.com>
2129
2130         PR c++/1267
2131         * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2132         NULL, default to the section containing PC.
2133
2134 2003-07-24  Stephane Carrez  <stcarrez@nerim.fr>
2135
2136         * NEWS: Mention "regs" deprecated for m68hc11 too.
2137
2138         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2139         (m68hc11_print_register): New function to print out one register.
2140         (m68hc11_print_registers_info): New function to print registers.
2141         (show_regs): Deprecate and use the above.
2142         (m68hc11_gdbarch_init): Install the print_registers_info.
2143
2144 2003-07-24  Jeff Johnston  <jjohnstn@redhat.com>
2145
2146         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2147         that we have a SIGTRAP before returning non-zero.
2148
2149 2003-07-23  Michal Ludvig  <mludvig@suse.cz>
2150             Elena Zannoni  <ezannoni@redhat.com>
2151
2152         * linespec.c (decode_line_2): Avoid crash if 
2153         find_function_start_sal() returns empty record.
2154
2155 2003-07-23  Andreas Schwab  <schwab@suse.de>
2156
2157         * ia64-tdep.c (ia64_print_insn): New function.
2158         (ia64_gdbarch_init): Set print_insn to it.
2159         (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2160         deprecated_tm_print_insn_info.
2161
2162 2003-07-22  Michael Snyder  <msnyder@redhat.com>
2163
2164         * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2165         handle 8-bit returns (long long).
2166         (h8300h_extract_return_value): Ditto.
2167         (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2168
2169 2003-07-22  Andrew Cagney  <cagney@redhat.com>
2170
2171         * gdbarch.c Include "gdb_obstack.h".
2172         (struct gdbarch): Add an "obstack".
2173         (alloc_gdbarch_data): Allocate the gdbarch data using
2174         GDBARCH_OBSTACK_CALLOC.
2175         (free_gdbarch_data): Delete function.
2176         (gdbarch_obstack_zalloc): New function.
2177         (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2178         Assert that the architecture is not initialized.
2179         (gdbarch_alloc): Allocate an obstack, allocate the architecture
2180         vector from the obstack.
2181         (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2182         architecture obstack.
2183         (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2184         (set_gdbarch_data): Assert that the data is not initialized.
2185         (struct gdbarch_data): Delete member "free".
2186         (register_gdbarch_data): Do not initialize "free".
2187         * gdbarch.h, gdbarch.c: Re-generate.
2188         
2189 2003-07-22  Andrew Cagney  <cagney@redhat.com>
2190
2191         * configure.in (build_warnings): Add -Wformat-nonliteral.
2192         * configure: Re-generate.
2193
2194 2003-07-22  Elena Zannoni  <ezannoni@redhat.com>
2195
2196         * dwarf2loc.c (locexpr_describe_location): Fix typos.
2197
2198 2003-07-22  Elena Zannoni  <ezannoni@redhat.com>
2199
2200         * findvar.c (read_var_value): Remove case for thread local storage
2201         variables.  It is now entirely handled by the dwarf2 location
2202         expression code.
2203         * printcmd.c (address_info): Ditto.
2204         * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2205         enumeration value.
2206         (struct symbol): Remove objfile field, which was used by
2207         LOC_THREAD_LOCAL_STATIC only.
2208         * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2209         * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2210         usage of objfile pointer.
2211         * dwarf2loc.c (locexpr_describe_location): Add case to handle
2212         thread local variables.
2213         Add include of objfiles.h.
2214         * dwarf2expr.c (execute_stack_op): Add comments about thread local
2215         storage variables.
2216         * Makefile.in (dwarf2loc.o): Update dependencies.
2217
2218 2003-07-22  Andrew Cagney  <cagney@redhat.com>
2219
2220         * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2221         get_frame_base.
2222         (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2223         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2224         (struct value): Add opaque declaration.
2225         (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2226
2227 2003-07-21  Andrew Cagney  <cagney@redhat.com>
2228
2229         From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2230         * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2231
2232 2003-07-20  Stephane Carrez  <stcarrez@nerim.fr>
2233
2234         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use 
2235         regcache_cooked_read_unsigned instead of read_register.
2236         (m68hc11_saved_pc_after_call): Likewise.
2237         (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2238         instead of write_register.
2239         (m68hc11_register_type): New function.
2240         (m68hc11_register_virtual_type): Remove.
2241         (m68hc11_store_return_value): Convert to use the regcache.
2242         (m68hc11_extract_struct_value_address): Likewise.
2243         (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2244         m68hc11_register_type; undeprecate store_return_value and
2245         extract_struct_value_address.
2246
2247 2003-07-20  Stephane Carrez  <stcarrez@nerim.fr>
2248
2249         * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2250         and translate to use regcache.
2251         (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2252
2253 2003-07-18  Andrew Cagney  <cagney@redhat.com>
2254
2255         * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2256         * gdbarch.h, gdbarch.c: Re-generate.
2257         * i386-tdep.c (i386_gdbarch_init): Do not set
2258         DWARF2_BUILD_FRAME_INFO.
2259         * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2260         unconditionally.
2261         * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2262         DWARF2_BUILD_FRAME_INFO.
2263
2264 2003-07-18  Andrew Cagney  <cagney@redhat.com>
2265
2266         From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2267         * disasm.c (gdb_disassemble_info): Initilize di.arch.
2268
2269 2003-07-18  Andrew Cagney  <cagney@redhat.com>
2270
2271         * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2272         frame_unwind_address_in_block, instead of frame_pc_unwind.
2273         (dwarf2_frame_cache): Ditto.
2274
2275 2003-07-18  Andrew Cagney  <cagney@redhat.com>
2276
2277         * user-regs.h (struct gdbarch): Declare opaque.
2278         * ui-out.h (struct ui_file): Declare opaque.
2279         * dwarf2-frame.h (struct frame_info): Declare opaque.
2280
2281 2003-07-18  Kris Warkentin  <kewarken@qnx.com>
2282
2283         * nto-procfs.c: Clean ARI hits.  Change #include <..> to
2284         #include "...".
2285         (procfs_meminfo): Change strerror to safe_strerror.
2286         (procfs_can_run): Remove K&R badness.
2287
2288 2003-07-17  Michael Snyder  <msnyder@redhat.com>
2289
2290         * remote-sim.c: Comment typo fix.
2291
2292 2003-07-17  Andrew Cagney  <cagney@redhat.com>
2293
2294         * defs.h (GDB_MULTI_ARCH): Delete conditional define.  Handled by
2295         configure.
2296         * sparc-tdep.c (sparc_intreg_size): Make non-static.
2297         * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2298         GDB_MULTI_ARCH_PARTIAL.
2299
2300 2003-07-17  Elena Zannoni  <ezannoni@redhat.com>
2301
2302         * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2303         * x86-64-linux-nat.c (ps_get_thread_area): New function.  Add
2304         include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2305
2306 2003-07-16  Theodore A. Roth  <troth@openavr.org>
2307
2308         * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2309         found.
2310         (avr_frame_unwind_cache): Don't unwind FP for main.
2311         Update a comment.
2312         Save the computed prev_sp.
2313         (avr_saved_regs_unwinder): Remove function.
2314         (avr_frame_prev_register): Use PC unwind logic from 
2315         avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2316
2317 2003-07-16  Andrew Cagney  <cagney@redhat.com>
2318
2319         * frame-base.h (frame_base_p_ftype): Delete definition.
2320         (frame_base_append_predicate): Delete declaration.
2321         * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2322         (frame_unwind_append_predicate): Delete declaration.
2323         * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2324         (append_predicate): Delete parameter "p".
2325         (frame_unwind_append_predicate): Delete function.
2326         (frame_unwind_append_sniffer): Update call to append_predicate.
2327         (frame_unwind_free): Delete function.
2328         (_initialize_frame_unwind): Pass NULL as "free" to
2329         register_gdbarch_data.
2330         (frame_unwind_init): Append the dummy_frame_sniffer.
2331         (frame_unwind_find_by_frame): Simplify.
2332         * frame-base.c (struct frame_base_table): Delete field "p".
2333         (append_predicate): Delete parameter "p".
2334         (frame_base_append_predicate): Delete function.
2335         (frame_base_append_sniffer): Update call to append_predicate.
2336         (frame_base_free): Delete function.
2337         (frame_base_find_by_frame): Simplify.
2338         (_initialize_frame_base): Pass NULL as "free" to
2339         register_gdbarch_data.
2340         * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2341         (x86_64_sigtramp_frame_sniffer): Replace
2342         "x86_64_sigtramp_frame_p".
2343         (x86_64_init_abi): Set the frame unwind sniffers.
2344         * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2345         (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2346         (m68k_gdbarch_init): Set the frame unwind sniffers.
2347         * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2348         "i386_sigtramp_frame_p".
2349         (i386_frame_sniffer): Replace "i386_frame_p".
2350         (i386_gdbarch_init): Set the frame unwind sniffers.
2351         * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2352         (avr_gdbarch_init): Set the frame unwind sniffers.
2353         * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2354         "alpha_sigtramp_frame_p"
2355         (alpha_heuristic_frame_sniffer): Replace
2356         "alpha_heuristic_frame_p".
2357         (alpha_gdbarch_init): Set the frame unwind sniffers.
2358         (alpha_dwarf2_init_abi): Ditto.
2359         * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2360         "alpha_debug_frame_p".
2361         (alpha_mdebug_frame_base_sniffer): Replace
2362         "alpha_mdebug_frame_base_p".
2363         (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2364         * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2365         (d10v_gdbarch_init): Set the frame unwind sniffer.
2366         * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2367         (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2368         * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2369         (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2370         * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2371         * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2372
2373 2003-07-16  Michael Snyder  <msnyder@redhat.com>
2374
2375         * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2376         should go thru sh_dsp_register_sim_regno, else the dsp regs
2377         will not get the right values.
2378
2379 2003-07-16  Corinna Vinschen  <vinschen@redhat.com>
2380
2381         * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2382         deprecated_store_floating by call to store_typed_floating.
2383         (sh_sh4_register_convert_to_raw): Substitute call to
2384         deprecated_extract_floating by call to extract_typed_floating.
2385
2386 2003-07-16  Corinna Vinschen  <vinschen@redhat.com>
2387
2388         * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2389
2390 2003-07-16  Corinna Vinschen  <vinschen@redhat.com>
2391
2392         * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2393         register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2394         gdbarch_register_type in 32 bit code throughout.  Avoid current_gdbarch
2395         as possible.
2396         (do_pseudo_register): Remove.
2397         (sh_push_dummy_code): New function.
2398         (sh64_store_struct_return): Rename from sh_store_struct_return.
2399         Only called for sh64 now.
2400         (sh_extract_struct_value_address): Regcache'ify.
2401         (sh_push_dummy_call): Rename from sh_push_arguments.  Regcache'ify
2402         and accomodate new tasks.
2403         (sh64_push_return_address): Rename from sh_push_return_address.
2404         Only called for sh64 now.
2405         (sh_default_extract_return_value): Rename from sh_extract_return_value.
2406         Regcache'ify.
2407         (sh3e_sh4_extract_return_value): Regcache'ify.
2408         (sh_default_store_return_value): Ditto.
2409         (sh3e_sh4_store_return_value): Ditto.
2410         (sh_default_register_byte): Remove.
2411         (sh_sh4_register_byte): Remove.
2412         (sh_default_register_raw_size): Remove.
2413         (sh_sh4_register_raw_size): Remove.
2414         (sh_register_virtual_size): Remove.
2415         (sh_sh3e_register_virtual_type): Remove.
2416         (sh_sh3e_register_type): New function.
2417         (sh_sh4_register_virtual_type): Remove.
2418         (sh_sh4_register_type): New function.
2419         (sh_default_register_virtual_type): Remove.
2420         (sh_default_register_type): New function.
2421         (do_fv_register_info): Add parameters to accomodate call from
2422         sh_print_registers_info.
2423         (do_dr_register_info): Ditto.
2424         (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2425         Add parameters to accomodate call from sh_print_registers_info.
2426         (sh_do_fp_register): Ditto.
2427         (sh64_do_pseudo_register): Call do_dr_register_info,
2428         do_fv_register_info and sh_do_fp_register with default parameters.
2429         (sh_do_register): Add parameters to accomodate call from
2430         sh_print_registers_info.
2431         (sh_print_register): Ditto.
2432         (sh_print_registers_info): Rename from sh_do_registers_info.
2433         Add parameters to be used as gdbarch_print_registers_info
2434         implementation.  Accomodate removed do_pseudo_register function
2435         pointer.
2436         (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2437         function pointer. Call sh_print_register with default parameters.
2438         (sh64_do_registers_info): Call sh_print_registers_info instead of
2439         sh_do_registers_info.
2440         (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2441         detection of deprecated vs. non-deprecated functionality.
2442         Rename sh_call_dummy_words to sh64_call_dummy_words.  Remove
2443         function pointer assignments by direct function calls.
2444
2445 2003-07-15  Andrew Cagney  <cagney@redhat.com>
2446
2447         * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2448         (frame_register_unwind, create_new_frame): Ditto.
2449         (legacy_get_prev_frame, get_frame_type): Ditto.
2450         (get_frame_base_address): Use frame_base_find_by_frame.
2451         (get_frame_locals_address): Use frame_base_find_by_frame.
2452         (get_frame_args_address): Use frame_base_find_by_frame.
2453         * frame-base.h (frame_base_sniffer_ftype): Declare.
2454         (frame_base_append_sniffer): Declare.
2455         (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2456         * frame-base.c (append_predicate): Add a "sniffer" parameter.
2457         (frame_base_append_sniffer): New function.
2458         (frame_base_append_predicate): Add a NULL sniffer.
2459         (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2460         (struct frame_base_table): Add "sniffer".
2461         (frame_base_free): Free the "sniffer" table.
2462         * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2463         (frame_unwind_append_sniffer): Declare.
2464         (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2465         * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2466         (struct frame_unwind_table): Add "sniffer", delete "middle".
2467         (append_predicate): Add "sniffer" parameter, append the sniffer.
2468         (frame_unwind_init): Update append_predicate call.
2469         (frame_unwind_append_sniffer): New function.
2470         (frame_unwind_append_predicate): Update append_predicate call.
2471         (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2472
2473 2003-07-15  Andrew Cagney  <cagney@redhat.com>
2474
2475         * frame.c (get_prev_frame): Move disabled inside_entry_func to
2476         before code inhibiting repeated unwind attempts.  Add to
2477         commentary on that test's problems.
2478         * blockframe.c (inside_main_func): Look for "main" in the minimal
2479         symbol table.
2480         * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2481         identical.
2482
2483 2003-07-15  Andrew Cagney  <cagney@redhat.com>
2484
2485         * complaints.c (struct explanation): Define.
2486         (struct complaints): Change type of "explanation" to "struct
2487         explanation".
2488         (symfile_explanations): Convert to a "struct explanation" table.
2489         (vcomplaint): Update.
2490
2491 2003-07-15  Michal Ludvig  <mludvig@suse.cz>
2492
2493         * x86-64-linux-nat.c (regmap): Removed.
2494         (supply_gregset, fill_gregset): Call 
2495         x86_64_linux_(fill,supply)_gregset functions.
2496         * x86-64-linux-tdep.c (USER_*): New defines.
2497         (user_to_gdb_regmap, x86_64_core_fns): New structure.
2498         (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2499         New functions.
2500         (fetch_core_registers): Ditto.
2501         (_initialize_x86_64_linux_tdep): Call add_core_fns().
2502         * x86-64-linux-tdep.h: New file.
2503         * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2504         and core-regset.o.
2505         * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2506
2507 2003-07-13  Mark Kettenis  <kettenis@gnu.org>
2508
2509         * x86-64-tdep.c (x86_64_store_return_value): Use
2510         regcache_cooked_write_part instead of regcache_cooked_write.
2511
2512         * configure.host: Add x86_64-*-freebsd*.
2513         * configure.tgt: Add x86_64-*-freebsd*.
2514         * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2515         * amd64fbsd-nat.c: New file.
2516         * amd64fbsd-tdep.c: New file.
2517         * config/i386/nm-fbsd64.h: New file.
2518         * config/i386/fbsd64.mh: New file.
2519         * config/i386/fbsd64.mt: New file.
2520
2521 2003-07-11  Mark Kettenis  <kettenis@gnu.org>
2522
2523         * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2524         `sc_regs_offset' and `sc_fpregs_offset'.
2525         * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2526         SIGFRAME_FPREGSAVE_OFF): Remove defines.
2527         (alpha_sigtramp_register_address): Rewrite to use new members of
2528         `struct gdbarch_tdep'.
2529         (alpha_gdbarch_init): Initialize new members of struct
2530         gdbarch_tdep'.
2531         * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2532         ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2533         (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2534         (alphafbsd_pc_in_sigtramp): Implement.
2535         (alphafbsd_sigtramp_offset): New function.
2536         (alphafbsd_sigcontext_addr): New function.
2537         (alphafbsd_init_abi): Initialize signal trampoline related members
2538         of `struct gdbarch_tdep'.
2539         (_initialize_alphafbsd_tdep): Add prototype.
2540
2541 2003-07-11  Theodore A. Roth  <troth@openavr.org>
2542
2543         * Makefile.in (install-only): Quote sed expression when generating
2544         transformed_name.
2545
2546 2003-07-11  Richard Henderson  <rth@redhat.com>
2547
2548         * Makefile.in (dwarf2-frame.o): Add complaints_h.
2549         * dwarf2-frame.c: Include complaints.h.
2550         (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2551         variable initialization; return NULL on error.
2552         (decode_frame_entry): New.
2553
2554 2003-07-11  Andrew Cagney  <cagney@redhat.com>
2555
2556         * frame.h (frame_address_in_block): Delete declaration.
2557         * blockframe.c (frame_address_in_block): Delete function.
2558         (get_frame_block): Use get_frame_address_in_block.
2559         (block_innermost_frame): Ditto.
2560         * stack.c (print_frame, backtrace_command_1): Ditto.
2561
2562         * frame.h (get_frame_address_in_block): Declare.
2563         (frame_unwind_address_in_block): Declare.
2564         * frame.c (frame_unwind_address_in_block): New function.
2565         (get_frame_address_in_block): New function.
2566
2567 2003-07-10  Andrew Cagney  <cagney@redhat.com>
2568
2569         * gdbarch.sh: Simplify predicate methods.  Remove need to provide
2570         pre-default.   Note: re-generate has no effect.
2571         
2572 2003-07-10  Andrew Cagney  <cagney@redhat.com>
2573
2574         * gdbarch.sh: When a variable, but not a function, compare against
2575         0.  Fix problem in previous patch.
2576         * gdbarch.c: Re-generate.
2577         
2578 2003-07-10  Andrew Cagney  <cagney@redhat.com>
2579
2580         * gdbarch.sh: Use gdb_assert instead of internal_error.  Compare
2581         functions against NULL, not 0.
2582         * gdbarch.c: Re-generate.
2583         
2584 2003-07-10  Fred Fish  <fnf@ninemoons.com>
2585
2586         * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2587         null string instead of a null pointer.
2588         * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2589
2590 2003-07-09  Michael Snyder  <msnyder@redhat.com>
2591
2592         * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2593
2594 2003-07-09  Mark Kettenis  <kettenis@gnu.org>
2595
2596         * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2597         X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2598         X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2599         X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2600         * x86-64-tdep.c: ... from here.
2601
2602 2003-07-09  Andreas Schwab  <schwab@suse.de>
2603
2604         * m68k-tdep.h (enum struct_return): Define.
2605         (struct gdbarch_tdep): Add struct_return.
2606         * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2607         bytes are padded to the right, not to the left.  Pass struct value
2608         address in register %a1, not on stack.
2609         (m68k_use_struct_convention): New function.
2610         (m68k_gdbarch_init): Set use_struct_convention.  Initialize
2611         struct_return in tdep to pcc_struct_return.
2612         * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2613         reg_struct_return.
2614
2615 2003-07-09  Joel Brobecker  <brobecker@gnat.com>      
2616
2617         * somread.c (som_symfile_offsets): Fix compilation error.   
2618
2619 2003-07-09  Andrew Cagney  <cagney@redhat.com>
2620
2621         * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2622         Add comments about the checks.
2623
2624 2003-07-08  Andrew Cagney  <cagney@redhat.com>
2625
2626         * Makefile.in: Make dependency section headers consistent.
2627         (config_h): Move to $BUILD headers section.
2628         (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2629         (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2630         (ada-exp.tab.c): Move to YACC/LEX section.
2631         (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2632         (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2633
2634 2003-07-08  Kris Warkentin  <kewarken@qnx.com>
2635
2636         * nto-procfs.c: Cleaned up a bunch of ARI hits.
2637         Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2638         of strerror with safe_strerror, use ISO C function definitions,
2639         and replace instances of sprintf with snprintf.
2640
2641 2003-07-07  Andrew Cagney  <cagney@redhat.com>
2642
2643         * frame.c (get_prev_frame): Enable check for identical frames.
2644         Update comments.  Update error messages.
2645
2646 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
2647
2648         * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2649
2650 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
2651
2652         * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2653         sort_symtab_syms, no longer necessary.
2654
2655 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
2656
2657         * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2658
2659 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
2660
2661         * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2662         (mips_register_byte): Likewise.
2663
2664 2003-07-07  Daniel Jacobowitz  <drow@mvista.com>
2665
2666         * Makefile.in (sparc_tdep_h): New.
2667         (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2668         (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2669         * sparc-linux-nat.c: Include "sparc-tdep.h".
2670         * sparc-nat.c: Likewise.
2671         * sparc-tdep.c: Likewise.
2672         * sparc64nbsd-nat.c: Likewise.
2673         * sparcnbsd-nat.c: Likewise.
2674         * sparcnbsd-tdep.c: Likewise.
2675         * sparc-tdep.h: New file.
2676         * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2677         and sparc_npc_regnum.
2678
2679 2003-07-07  Daniel Jacobowitz  <drow@mvista.com>
2680
2681         * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2682         (mips_linux_cannot_store_register): List supported instead of
2683         unsupported registers.
2684
2685 2003-07-07  Daniel Jacobowitz  <drow@mvista.com>
2686
2687         * disasm.c (dump_insns): Separate instructions from addresses.
2688
2689 2003-07-07  Andreas Schwab  <schwab@suse.de>
2690
2691         * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2692         dependencies.
2693         * m68k-tdep.c (NUM_FREGS): Delete.
2694         (SIG_PC_FP_OFFSET): Delete.
2695         (TARGET_M68K): Delete.
2696         (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2697         P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2698         P_MOVEL_SP, P_MOVEML_SP): Define.
2699         (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2700         P_TRAP): Delete.
2701         (m68k_register_raw_size): Delete.
2702         (m68k_register_virtual_size): Delete.
2703         (m68k_register_type): Renamed from m68k_register_virtual_type and
2704         add gdbarch argument.
2705         (m68k_store_struct_return): Delete.
2706         (m68k_deprecated_extract_return_value): Delete.
2707         (m68k_deprecated_extract_struct_value_address): Delete.
2708         (m68k_frame_chain): Delete.
2709         (m68k_frame_saved_pc): Delete.
2710         (m68k_fix_call_dummy): Delete.
2711         (m68k_push_dummy_frame): Delete.
2712         (m68k_pop_frame): Delete.
2713         (m68k_extract_return_value): New function.
2714         (m68k_store_return_value): Rewrite using regcache.
2715         (m68k_extract_struct_value_address): Rewrite using regcache.
2716         (m68k_push_dummy_call): New function.
2717         (struct m68k_frame_cache): Define.
2718         (m68k_alloc_frame_cache): New function.
2719         (m68k_analyze_frame_setup): New function.
2720         (m68k_analyze_register_saves): New function.
2721         (m68k_analyze_prologue): New function.
2722         (m68k_skip_prologue): Rewrite using above functions.
2723         (m68k_unwind_pc): New function.
2724         (m68k_frame_cache): New function.
2725         (m68k_frame_this_id): New function.
2726         (m68k_frame_prev_register): New function.
2727         (m68k_frame_unwind): New variable.
2728         (m68k_frame_p): New function.
2729         (m68k_sigtramp_frame_cache): New function.
2730         (m68k_sigtramp_frame_this_id): New function.
2731         (m68k_sigtramp_frame_prev_register): New function.
2732         (m68k_sigtramp_frame_unwind): New variable.
2733         (m68k_sigtramp_frame_p): New function.
2734         (m68k_frame_base_address): New function.
2735         (m68k_frame_base): New function.
2736         (m68k_unwind_dummy_id): New function.
2737         (fill_gregset): Use regcache_collect.
2738         (fill_fpregset): Likewise.
2739         (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2740         defined.
2741         (m68k_gdbarch_init): Don't define call_dummy_words.  Don't set
2742         deprecated_init_frame_pc, deprecated_store_struct_return,
2743         deprecated_extract_return_value, deprecated_store_return_value,
2744         deprecated_frame_chain, deprecated_frame_saved_pc,
2745         deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2746         deprecated_register_virtual_size,
2747         deprecated_max_register_raw_size,
2748         deprecated_max_register_virtual_size,
2749         deprecated_register_virtual_type, deprecated_register_size,
2750         deprecated_register_byte, deprecated_register_bytes,
2751         deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2752         call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2753         deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2754         deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2755         deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2756         deprecated_push_dummy_frame, deprecated_pop_frame,
2757         deprecated_dummy_write_sp.  Set deprecated_saved_pc_after_call
2758         only if SYSCALL_TRAP is defined.  Set extract_return_value,
2759         store_return_value, extract_struct_value_address, register_type,
2760         push_dummy_call, unwind_dummy_id, unwind_pc.  Add two frame unwind
2761         predicates.
2762         * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2763         M68K_MAX_REGISTER_SIZE): Define.
2764         (struct m68k_sigtramp_info): Define.
2765         (struct gdbarch_tdep): Add get_sigtramp_info.
2766         * m68klinux-nat.c (fetch_register): Use register_size instead of
2767         REGISTER_RAW_SIZE.  Don't put assignment in if.
2768         (store_register): Likewise.
2769         (fetch_inferior_registers): Likewise.
2770         (store_inferior_registers): Likewise.
2771         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2772         (m68k_linux_frame_saved_pc): Delete.
2773         (m68k_linux_sigcontext_reg_offset,
2774         m68k_linux_ucontext_reg_offset): Define.
2775         (m68k_linux_get_sigtramp_info): New function.
2776         (m68k_linux_extract_return_value): Rewrite using regcache.
2777         (m68k_linux_store_return_value): Likewise.
2778         (m68k_linux_extract_struct_value_address): Likewise.
2779         (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2780         Don't set deprecated_frame_saved_pc,
2781         deprecated_extract_return_value, deprecated_store_return_value,
2782         deprecated_extract_struct_value_address.  Set
2783         extract_return_value, store_return_value,
2784         extract_struct_value_address.
2785
2786 2003-07-07  Andrew Cagney  <cagney@redhat.com>
2787
2788         * expprint.c: Include "user-regs.h" instead of "frame.h".
2789         (print_subexp): Use user_reg_map_regnum_to_name, instead of
2790         frame_map_regnum_to_name.
2791         * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2792         (frame_map_name_to_regnum): Simplify, call
2793         user_reg_map_name_to_regnum.
2794         (frame_map_regnum_to_name): Simplify, call
2795         user_reg_map_regnum_to_name.
2796         (frame_register_unwind): Update.
2797         * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2798         (_initialize_frame_reg): Call user_reg_add_builtin.
2799         * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2800         (value_of_register): Use value_of_user_reg.
2801         * eval.c (evaluate_subexp_standard): Update.
2802         * parse.c (write_dollar_variable): Update.
2803         * d10v-tdep.c (d10v_print_registers_info): Update.
2804         * infcmd.c (registers_info): Update.
2805         * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2806         (builtin_regs_h): Delete macro.
2807         (user_regs_h): Define.
2808         (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2809         (builtin-regs.o): Delete target.
2810         (user-regs.o): Specify dependencies.
2811         (expprint.o): Update dependencies.
2812         (findvar.o): Update dependencies.
2813         (frame.o): Update dependencies.
2814         (std-regs.o): Update dependencies.
2815
2816 2003-07-06  Christopher Faylor  <cgf@redhat.com>
2817
2818         * win32-nat.c (solib_symbols_add): Use one variable for all section
2819         address stuff.  Pass variable rather than address of variable to
2820         safe_symbol_file_add.
2821
2822 2003-07-06  Andreas Schwab  <schwab@suse.de>
2823
2824         * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2825
2826 2003-07-04  Joel Brobecker  <brobecker@gnat.com>
2827
2828         * rs6000-nat.c (vmap_symtab): Fix compilation error.
2829
2830 2003-07-04  Kris Warkentin  <kewarken@qnx.com>
2831
2832         * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2833
2834 2003-07-04  Kris Warkentin  <kewarken@qnx.com>
2835
2836         * nto-procfs.c: New file.  Native procfs support for QNX Neutrino.
2837         * config/i386/nto.mh: New file.
2838         * config/i386/nm-nto.h: New file.
2839         * configure.host: Add i[3456]86-*-nto*.
2840
2841 2003-07-03  Joel Brobecker  <brobecker@gnat.com>
2842
2843         * remote-vx.c (vx_add_symbols): Fix compilation error.
2844
2845 2003-07-03  Andrew Cagney  <cagney@redhat.com>
2846
2847         * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2848         * gdbarch.h, gdbarch.c: Re-generate.
2849         * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2850         (legacy_register_name): Declare.
2851         * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2852         (REGISTER_NAME): Define.
2853         * sparc-tdep.c (legacy_register_name): New function.
2854         * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2855         (REGISTER_NAME): Define.
2856         (hppa64_register_name): Declare.
2857         * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2858         * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2859         (hppa64_register_name): New function.
2860         (hppa_register_name): New function.
2861         * arch-utils.c (legacy_register_name): Delete.
2862         * arch-utils.h (legacy_register_name): Delete.
2863
2864 2003-07-03  Daniel Jacobowitz  <drow@mvista.com>
2865
2866         * cli/cli-interp.c (cli_interpreter_resume): Update the
2867         cli_uiout's stream to gdb_stdout.
2868
2869 2003-07-03  Andrew Cagney  <cagney@redhat.com>
2870
2871         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2872         predicate.
2873         * gdbarch.h, gdbarch.c: Re-generate.
2874         * regcache.c (init_regcache_descr): Use legacy code when either
2875         REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2876
2877 2003-07-02  Daniel Jacobowitz  <drow@mvista.com>
2878
2879         * NEWS: Move "set logging" entry into GDB 6.0 section.
2880
2881 2003-07-02  Jim Blandy  <jimb@redhat.com>
2882
2883         * s390-tdep.c (struct frame_extra_info): new member:
2884         'stack_bought_valid'.
2885         (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2886         initialize fextra_info->stack_bought.
2887         (s390_frameless_function_invocation): Don't trust the value of
2888         fextra_info_ptr->stack_bought unless
2889         fextra_info->stack_bought_valid is set.
2890
2891         New S390 prologue analyzer.
2892         * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2893         (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2894         pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2895         pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2896         compute_x_addr, s390_on_stack, s390_store,
2897         s390_get_signal_frame_info): New functions.
2898         (S390_NUM_SPILL_SLOTS): New macro.
2899         (s390_get_frame_info): Rewritten.
2900         (is_arg_reg): Deleted.
2901
2902         Break out the decoding of S/390 instructions into separate
2903         functions, to make it more legible, and easier to check
2904         against the spec.
2905         * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2906         is_rx, is_rxe): New functions.
2907         (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2908         op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2909         op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2910         op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2911         enums for opcode values.  (Is this an improvement?)
2912
2913 2003-07-02  Andrew Cagney  <cagney@redhat.com>
2914
2915         * i386-tdep.c: Revert change committed as part of trad-frame code
2916         below.
2917
2918 2003-07-02  Daniel Jacobowitz  <drow@mvista.com>
2919
2920         * breakpoint.c (insert_catchpoint): Make static.
2921
2922 2003-07-02  Andreas Schwab  <schwab@suse.de>
2923
2924         * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2925         former ia64_push_arguments and ia64_push_return_address, and use
2926         regcache functions instead of read/write_register.
2927         (ia64_gdbarch_init): Set push_dummy_call instead of
2928         deprecated_push_arguments and deprecated_push_return_address.
2929
2930 2003-07-01  Andreas Jaeger  <aj@suse.de>
2931
2932         * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2933         before the call.
2934         Set %rax only to number of SSE registers used.
2935
2936 2003-07-01  Andrew Cagney  <cagney@redhat.com>
2937
2938         * trad-frame.h: Update comments, a -1 .addr is reserved.
2939         (trad_frame_value_p, trad_frame_addr_p): Declare.
2940         (trad_frame_reg_p): Declare.
2941         (trad_frame_set_value): Rename trad_frame_register_value.
2942         (trad_frame_set_unknown): Declare.
2943         * trad-frame.c (trad_frame_realreg_p): New function.
2944         (trad_frame_addr_p, trad_frame_value_p): New function.
2945         (trad_frame_set_unknown): New function.
2946         (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2947         (trad_frame_prev_register): Use trad_frame_realreg_p,
2948         trad_frame_addr_p and trad_frame_value_p.
2949         (trad_frame_set_value): Rename trad_frame_register_value.
2950         * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2951         and trad_frame_set_value.
2952
2953 2003-06-30  Jim Blandy  <jimb@redhat.com>
2954
2955         Patch from IBM (authors unspecified, probably Ulrich Weigand and
2956         Gerhard Tonn) for argument passing on the S/390 and S/390x:
2957         * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2958         for 16 registers, and then 32 more bytes.
2959         (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2960         New macros.
2961         (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2962         Move up in the file, since it's now used by is_simple_arg.
2963         (is_simple_arg): Don't assume registers are four bytes long.
2964         Exclude all double arguments.  Extended floats are not simple
2965         args.
2966         (is_power_of_two): New function.
2967         (pass_by_copy_ref): Call is_power_of_two, and check that the
2968         length fits in a register, rather than listing all the acceptable
2969         sizes.  Extended floats are not passed by reference.
2970         (s390_push_arguments): Don't assume registers are four bytes long.
2971         Reserve an argument register to point to the buffer for structures
2972         returned by value.  Use S390_NUM_FP_PARAMETER_REGISTERS and
2973         S390_STACK_FRAME_OVERHEAD.
2974
2975 2003-06-30  Andreas Schwab  <schwab@suse.de>
2976
2977         * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2978         format error message.
2979
2980 2003-06-30  Joel Brobecker  <brobecker@gnat.com>
2981
2982         * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2983
2984 2003-06-30  David Carlton  <carlton@kealia.com>
2985
2986         Band-aid for PR c++/1245.
2987         * Makefile.in (cp-support.o): Depend on complaints_h.
2988         * cp-support.c: Include complaints.h.  Add declaration for
2989         find_last_component.
2990         (cp_find_first_component): Separate code into
2991         cp_find_first_component_aux.
2992         (cp_find_first_component_aux): Call demangled_name_complaint.
2993         (demangled_name_complaint): New.
2994
2995 2003-06-30  Andrew Cagney  <cagney@redhat.com>
2996
2997         * remote.c (remote_write_bytes): Explicitly compute and then use
2998         the payload size.  Update comments to reflect.  Fixes problem of
2999         GDB not sending small packets as found by Fred Fish.
3000
3001 2003-06-30  Andrew Cagney  <cagney@redhat.com>
3002
3003         * remote.c (remote_async_wait): Fix -Wformat problem.
3004
3005 2003-06-29  Andrew Cagney  <cagney@redhat.com>
3006
3007         * remote.c (remote_wait): Call error, and not warning, when the
3008         packet is corrupt.
3009         (remote_async_wait): Ditto.
3010
3011 2003-06-29  Daniel Jacobowitz  <drow@mvista.com>
3012
3013         * sparc-tdep.c (sparc_y_regnum): Make external again.
3014
3015 2003-06-29  Daniel Jacobowitz  <drow@mvista.com>
3016
3017         * cli/cli-logging.c (pop_output_files): Add void to function
3018         definition.
3019
3020 2003-06-29  Andrew Cagney  <cagney@redhat.com>
3021
3022         * frame.c (frame_register_unwind): Use unsigned char when dumping
3023         the buffer contents.
3024
3025 2003-06-28  Daniel Jacobowitz  <drow@mvista.com>
3026
3027         * cli/cli-logging.c: New file.
3028         * cli-out.c (struct ui_out_data): Add original_stream.
3029         (cli_redirect): New function.
3030         (cli_ui_out_impl): Add cli_redirect.
3031         (cli_out_new): Initialize original_stream.
3032         * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3033         (uo_redirect, ui_out_redirect): New.
3034         * ui-out.h (struct ui_out_impl): Add redirect member.
3035         (redirect_ftype): New.
3036         (ui_out_redirect): Add prototype.
3037         * Makefile.in: Add rules for cli-logging.c.
3038         * NEWS: Mention "set logging".
3039
3040 2003-06-27  Elena Zannoni  <ezannoni@redhat.com>
3041
3042         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3043
3044 2003-06-27  Andrew Cagney  <cagney@redhat.com>
3045
3046         * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3047         (m68hc11_gdbarch_init): Do not set call_dummy_address.
3048         * avr-tdep.c (avr_call_dummy_address): Delete function.
3049         (avr_gdbarch_init): Do not set call_dummy_address.
3050
3051 2003-06-27  Elena Zannoni  <ezannoni@redhat.com>
3052
3053         * symfile.c (syms_from_objfile): Move variables to inner block.
3054         Move the checks for the non-mainline case a bit earlier to avoid
3055         doing some useless computations.
3056
3057 2003-06-27  Elena Zannoni  <ezannoni@redhat.com>
3058
3059         * dwarfread.c (decode_modified_type): Gag new compiler warning.
3060
3061 2003-06-26  Elena Zannoni  <ezannoni@redhat.com>
3062
3063         * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3064         sections.
3065
3066 2003-06-26  Michael Chastain  <mec@shout.net>
3067
3068         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3069         gdb/testsuite/gdb.c++/pr-1210.exp.
3070
3071 2003-06-26  Andrew Cagney  <cagney@redhat.com>
3072
3073         * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3074         altivec_expression.h and altivec_registers.h.
3075
3076 2003-06-26  Andrew Cagney  <cagney@redhat.com>
3077
3078         * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3079         info->mach when MIPS16.  Patch suggested by Fred Fish.
3080
3081 2003-06-26  Andrew Cagney  <cagney@redhat.com>
3082
3083         * utils.c (internal_vproblem): Print the problem to a reason
3084         buffer and then pass to query.  Make the msg variable more local.
3085
3086 2003-06-26  Andrew Cagney  <cagney@redhat.com>
3087
3088         * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate.  Deprecate.
3089         (FRAME_LOCALS_ADDRESS): Add predicate.  Deprecate.
3090         * gdbarch.h, gdbarch.c: Re-generate.
3091         * frame-base.c (default_frame_args_address): Update.  Use
3092         default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3093         not available.
3094         (default_frame_locals_address): Ditto for
3095         DEPRECATED_FRAME_LOCALS_ADDRESS.
3096         * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3097         (vax_frame_num_args): Update.
3098         (vax_gdbarch_init): Update.
3099         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3100         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3101         * mcore-tdep.c (mcore_gdbarch_init): Update.
3102         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3103         * ia64-tdep.c (ia64_gdbarch_init): Update.
3104         * symtab.h (address_class): Update comments.
3105         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3106         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3107         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3108         * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3109         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3110         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3111         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3112         * alpha-mdebug-tdep.c: Update.
3113         * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3114
3115 2003-06-26  Andreas Jaeger  <aj@suse.de>
3116
3117         * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3118         of SSE registers so that varargs functions work.  Rework handling
3119         of passing arguments on the stack.
3120         (x86_64_store_return_value): Return double and float values in SSE
3121         register.
3122
3123 2003-06-24  Michael Chastain  <mec@shout.net>
3124
3125         * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3126         the "constructor breakpoints ignored" bug.
3127
3128 2003-06-25  David Carlton  <carlton@kealia.com>
3129
3130         * MAINTAINERS: Update e-mail address.
3131
3132 2003-06-24  Jim Blandy  <jimb@redhat.com>
3133
3134         * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3135
3136         * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3137         function.
3138         (ppc_linux_init_abi): Register it as the
3139         CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3140
3141         * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3142         (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3143         method.
3144
3145         * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3146         (ppc64_standard_linkage_target): Use it.
3147
3148 2003-06-23  Andrew Cagney  <cagney@redhat.com>
3149
3150         * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3151         for 0 "int0" and 4 "int32" sized registers.
3152         * gdbtypes.c (builtin_type_int0): Define.
3153         (build_gdbtypes): Initialize builtin_type_int0.
3154         * gdbtypes.h (builtin_type_int0): Declare.
3155
3156 2003-06-23  Stephane Carrez  <stcarrez@nerim.fr>
3157
3158         * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3159         as characters are unsigned.
3160
3161 2003-06-22  Daniel Jacobowitz  <drow@mvista.com>
3162
3163         PR gdb/1179
3164         * dwarfread.c (struct_type): Skip static fields without crashing.
3165
3166 2003-06-22  Andrew Cagney  <cagney@redhat.com>
3167
3168         GDB 6.0 branch created.
3169         * README: Update.
3170         * PROBLEMS: Update.  Empty.
3171         * NEWS: Update.
3172
3173 2003-06-22  Daniel Jacobowitz  <drow@mvista.com>
3174
3175         * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3176         Suggested by Nick Hibma <n_hibma@webweaving.org>.
3177
3178 2003-06-22  Andrew Cagney  <cagney@redhat.com>
3179
3180         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3181         GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD.  Suggested by Momchil
3182         Velikov.
3183
3184 2003-06-22  Daniel Jacobowitz  <drow@mvista.com>
3185
3186         * cli/cli-cmds.c (shell_escape): Silence warnings from old
3187         compilers.
3188
3189 2003-06-21  Daniel Jacobowitz  <drow@mvista.com>
3190
3191         * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3192         argument of val_print.
3193         * cp-valprint.c (cp_print_value): Don't add the offset parameter
3194         to the address argument of baseclass_offset or target_read_memory.
3195         Do add it to the argument of cp_print_value_fields.
3196
3197 2003-06-21  Andrew Cagney  <cagney@redhat.com>
3198
3199         * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3200         (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3201         instead of 0..NUM_REGS.
3202         (mips_register_reggroup_p): New function.
3203         (mips_pseudo_register_write): New function.
3204         (mips_pseudo_register_read): New function.
3205         (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3206         based on the register's type.
3207         (read_next_frame_reg): Simplify.  Assert that REGNO is a pseudo /
3208         cooked.
3209         (mips_get_saved_register): Simplify.  Assert that REGNO is a
3210         pseudo / cooked.
3211         (mips_register_byte): New function.  Use MIPS_REGISTER_BYTE.
3212         (mips_register_type): Replace mips_register_virtual_type.  Map
3213         NUM_REGS..2*NUM_REGS onto 0..NUM_REGS.  Use MIPS_REGISTER_TYPE
3214         when available.
3215         (read_next_frame_reg): Simplify, but handle SP_REGNUM.  Assert
3216         that the register is cooked / virtual.
3217         (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3218         Only get the extra info when needed.
3219         (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3220         (mips32_heuristic_proc_desc): Fetch the cooked register.
3221         (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3222         (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3223         (mips_print_register): Use gdbarch_register_type, instead of
3224         REGISTER_VIRTUAL_TYPE.
3225         (print_gp_register_row): Use gdbarch_register_type, instead of
3226         REGISTER_VIRTUAL_TYPE.  Allow for a pseudo / cooked REGNUM.
3227         (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3228         Print the pseudo / cooked registers.
3229         (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3230         Print the pseudo / cooked registers.
3231         (mips_xfer_register): Use regcache_cooked_read_part.  Assert that
3232         REG_NUM is pseudo / cooked.
3233         (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3234         (mips_n32n64_xfer_return_value): Ditto.
3235         (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3236         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3237         (mips_register_sim_regno): New function.
3238         (mips_gdbarch_init): Set deprecated_register_byte,
3239         register_group_p, pseudo_register_write, pseudo_register_read,
3240         register_sim_regno, and num_pseudo_regs.  Set register_type,
3241         instead of register_virtual_type.
3242         * Makefile.in (mips-tdep.o): Update dependencies.
3243         * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3244         REGISTER_VIRTUAL_TYPE.
3245         * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3246         * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3247         * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3248         * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3249         * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3250
3251 2003-06-21  Daniel Jacobowitz  <drow@mvista.com>
3252
3253         * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3254         * cli/cli-cmds.c: Include "gdb_vfork.h".
3255         (shell_escape): Use vfork.
3256
3257 2003-06-21  Andrew Cagney  <cagney@redhat.com>
3258
3259         * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3260         32 bit floating-point register saves.
3261
3262         * frame.h (deprecated_unwind_get_saved_register): Delete.
3263         * frame.c (deprecated_unwind_get_saved_register): Delete function.
3264         * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3265         and deprecated_get_next_frame_hack instead of
3266         deprecated_unwind_get_saved_register.
3267
3268         * mips-tdep.c (mips_dump_tdep): Do not print
3269         REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3270
3271         * frame.c (get_frame_register): New function.
3272         (frame_unwind_register_signed): New function.
3273         (get_frame_register_signed): New function.
3274         (frame_unwind_register_unsigned): New function.
3275         (get_frame_register_unsigned): New function.
3276         * frame.h: Add comments on naming schema.
3277         (get_frame_register, frame_unwind_register_signed): Declare.
3278         (get_frame_register_signed, get_frame_register_signed): Declare.
3279         (frame_unwind_register_unsigned): Declare.
3280         (get_frame_register_unsigned): Declare.
3281
3282 2003-06-20  Theodore A. Roth  <troth@openavr.org>
3283
3284         * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3285
3286 2003-06-20  Theodore A. Roth  <troth@openavr.org>
3287
3288         * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3289         (avr_read_sp): Ditto.
3290
3291 2003-06-20  Daniel Jacobowitz  <drow@mvista.com>
3292
3293         * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3294         * config/arm/nm-linux.h: Likewise.
3295         * config/arm/tm-linux.h: Likewise.
3296         * config/ia64/nm-linux.h: Likewise.
3297         * config/ia64/tm-ia64.h: Likewise.
3298         * config/s390/tm-linux.h: Likewise.
3299         * config/s390/tm-s390.h: Likewise.
3300         * s390-nat.c: Likewise.
3301         * s390-tdep.c: Likewise.
3302
3303         * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3304         * config/ia64/linux.mt: Likewise.
3305         * config/m68k/linux.mh: Likewise.
3306         * config/mips/linux.mt: Likewise.
3307         * config/powerpc/linux.mh: Likewise.
3308         * config/sh/linux.mt: Likewise.
3309
3310 2003-06-19  Kris Warkentin  <kewarken@qnx.com>
3311
3312         * solib.c (solib_open): Change tests for whether to search
3313         LD_LIBRARY_PATH and PATH to better deal with remotes.  Update
3314         comments.
3315
3316 2003-06-19  Theodore A. Roth  <troth@openavr.org>
3317
3318         * avr-tdep.c (avr_frame_address): Delete function.
3319         (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3320         set_gdbarch_frame_args_address.
3321
3322 2003-06-19  Andrew Cagney  <cagney@redhat.com>
3323
3324         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3325         (REGISTER_CONVERT_FROM_TYPE): Delete.
3326         (mips_register_convert_to_type): Delete declaration.
3327         (mips_register_convert_from_type): Delete declaration.
3328         * linux-nat.h (struct target_ops): Declare opaque.  s/Linux/Linux
3329         kernel/.
3330
3331 2003-06-19  Michael Snyder  <msnyder@redhat.com>
3332
3333         * linux-nat.h: New file.
3334         * linux-nat.c: Include linux-nat.h.
3335         * lin-lwp.c: Include linux-nat.h.
3336         Move struct lwp_info def to linux-nat.h.
3337         * linux-proc.c: Include linux-nat.h.
3338         (linux_make_note_section): Iterate over lwps instead of threads.
3339         (linux_do_thread_registers): Use lwp instead of merged pid.
3340         * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
3341         * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
3342         Add dependency on linux_nat_h.
3343
3344 2003-06-19  Theodore A. Roth  <troth@openavr.org>
3345
3346         * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3347
3348 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
3349
3350         * varobj.c (get_type, get_target_type): Use check_typedef.
3351
3352 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
3353
3354         * breakpoint.c (insert_catchpoint): Call internal_error.
3355
3356 2003-06-19  Theodore A. Roth  <troth@openavr.org>
3357
3358         * avr-tdep.c (avr_push_dummy_code): Delete function.
3359         (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3360
3361 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
3362
3363         * arch-utils.c (default_prepare_to_proceed): Remove.
3364         (generic_prepare_to_proceed): Remove.
3365         * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3366         (generic_prepare_to_proceed): Remove prototype.
3367         * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3368         * gdbarch.c: Regenerate.
3369         * gdbarch.h: Regenerate.
3370         * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3371         * hppah-nat.c (hppa_switched_threads): Remove.
3372         * infrun.c (prepare_to_proceed): New static function, copied from
3373         generic_prepare_to_proceed.  Remove select_it argument.
3374         (proceed): Call prepare_to_proceed.
3375         * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3376         variables.
3377         (ptrace_wait): Don't set the removed variables.
3378         (hppa_switched_threads): Remove.
3379         * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3380         * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3381         (lin_lwp_prepare_to_proceed): Remove prototype.
3382         * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3383         * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3384
3385 2003-06-18  Theodore A. Roth  <troth@openavr.org>
3386
3387         * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3388         trad-frame.h.
3389         (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3390         (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3391         (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3392         (AVR_PROLOGUE_*): Enumerate prologue types.
3393         (struct frame_extra_info): Remove.
3394         (struct avr_unwind_cache): Define.
3395         (avr_write_sp): Delete function.
3396         (avr_read_fp): Ditto.
3397         (avr_init_extra_frame_info): Ditto.
3398         (avr_pop_frame): Ditto.
3399         (avr_frame_saved_pc): Ditto.
3400         (avr_saved_pc_after_call): Ditto.
3401         (avr_push_return_address): Ditto.
3402         (avr_frame_chain): Ditto.
3403         (avr_store_struct_return): Ditto.
3404         (avr_push_arguments): Ditto.
3405         (avr_scan_prologue): Update comments. Changed to set up the info for
3406         cache unwinding. Now returns end of prologue PC.
3407         (avr_skip_prologue): Better handling of functions lacking a prologue
3408         by using avr_scan_prologue.
3409         (avr_scan_arg_moves): New function.
3410         (avr_saved_regs_unwinder): Ditto.
3411         (avr_frame_unwind_cache): Ditto.
3412         (avr_unwind_pc): Ditto.
3413         (avr_frame_this_id): Ditto.
3414         (avr_frame_prev_register): Ditto.
3415         (avr_frame_p): Ditto.
3416         (avr_frame_base_address ): Ditto.
3417         (avr_unwind_dummy_id): Ditto.
3418         (avr_push_dummy_code): Ditto.
3419         (push_stack_item): Ditto.
3420         (pop_stack_item): Ditto.
3421         (avr_push_dummy_call): Ditto.
3422         (struct stack_item): Define.
3423         (avr_frame_unwind): Declare structure.
3424         (avr_frame_base): Ditto.
3425         (avr_gdbarch_init): Remove calls to
3426         set_gdbarch_deprecated_init_frame_pc,
3427         set_gdbarch_deprecated_target_read_fp,
3428         set_gdbarch_deprecated_dummy_write_sp,
3429         set_gdbarch_deprecated_fp_regnum,
3430         set_gdbarch_deprecated_push_arguments,
3431         set_gdbarch_deprecated_push_return_address,
3432         set_gdbarch_deprecated_pop_frame,
3433         set_gdbarch_deprecated_store_struct_return,
3434         set_gdbarch_deprecated_frame_init_saved_regs,
3435         set_gdbarch_deprecated_init_extra_frame_info,
3436         set_gdbarch_deprecated_frame_chain,
3437         set_gdbarch_deprecated_frame_saved_pc,
3438         set_gdbarch_deprecated_saved_pc_after_call.
3439         Add calls to set_gdbarch_push_dummy_call,
3440         set_gdbarch_push_dummy_code,
3441         frame_unwind_append_predicate,
3442         frame_base_set_default,
3443         set_gdbarch_unwind_dummy_id,
3444         set_gdbarch_unwind_pc.
3445         Wrap a long line.
3446
3447 2003-06-18  Corinna Vinschen  <vinschen@redhat.com>
3448
3449         * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3450         registers for H8/300S.
3451         (h8300_print_registers_info): Ditto.
3452         (h8300_gdbarch_init): Accommodate register count for H8/300S.
3453
3454 2003-06-18  Daniel Jacobowitz  <drow@mvista.com>
3455
3456         * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3457         * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3458         (lin_lwp_wait): Likewise.  Update comments.
3459         * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3460         (pull_pid_from_list, linux_record_stopped_pid): New.
3461
3462 2003-06-17  Stephane Carrez  <stcarrez@nerim.fr>
3463
3464         * ada-lang.c (scan_discrim_bound): Name first argument.
3465         (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3466         declared by ALL_BLOCK_SYMBOLS.
3467
3468 2003-06-17  Stephane Carrez  <stcarrez@nerim.fr>
3469
3470         * ada-tasks.c (find_function_in_inferior): Don't declare it.
3471         ("regcache.h"): Include it.
3472         * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3473
3474 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
3475
3476         * NEWS: Mention gdbserver detach change and "disconnect" command.
3477         * infcmd.c (disconnect_command): New function.
3478         (_initialize_infcmd): Add ``disconnect'' command.
3479         * remote.c (remote_async_detach): Delete.
3480         (remote_detach): Merge remote_async_detach.
3481         (remote_disconnect): New.
3482         (init_remote_ops): Set to_disconnect.
3483         (init_remote_cisco_ops): Likewise.
3484         (init_remote_async_ops): Likewise.  Use remote_detach.
3485         * target.c (cleanup_target): Default to_disconnect.
3486         (update_current_target): Inherit to_disconnect.
3487         (target_disconnect, debug_to_disconnect): New functions.
3488         (setup_target_debug): Set to_disconnect.
3489         * target.h (struct target_ops): Add to_disconnect.
3490         (target_disconnect): Add prototype.
3491
3492 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
3493
3494         * breakpoint.c (insert_catchpoint): New function.
3495         (insert_breakpoints): Use catch_exceptions to call
3496         insert_catchpoint.  Disable catchpoints if they fail to insert.
3497
3498 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
3499
3500         * symfile.c (reread_symbols): Clear sym_private.
3501
3502 2003-06-17  Andrew Cagney  <cagney@redhat.com>
3503
3504         * trad-frame.h (struct frame_info): Add opaque declaration.
3505         * remote-fileio.h (struct cmd_list_element): Add opaque
3506         declaration.
3507         * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3508         comments.
3509
3510 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
3511
3512         * remote.c (remote_prepare_to_store): Replace call to
3513         deprecated_read_register_bytes with multiple regcache_raw_read
3514         calls.
3515
3516 2003-06-17  Kris Warkentin  <kewarken@qnx.com>
3517
3518         * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3519         (nto_find_and_open_solib): Likewise.
3520         (nto_init_solib_absolute_prefix): Likewise.
3521         (_initialize_nto_tdep): Fix indentation.
3522
3523 2003-06-17  Kris Warkentin  <kewarken@qnx.com>
3524
3525         * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3526
3527 2003-06-17  Kris Warkentin  <kewarken@qnx.com>
3528
3529         * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3530
3531 2003-06-17  Jim Blandy  <jimb@redhat.com>
3532
3533         * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3534
3535 2003-06-16  Theodore A. Roth  <troth@openavr.org>
3536
3537         * avr-tdep.c (avr_extract_return_value): New function.
3538         (avr_gdbarch_init): Set extract_return_value method.
3539
3540 2003-06-16  Andrew Cagney  <cagney@redhat.com>
3541
3542         * frame.h (deprecated_get_next_frame_hack): Declare.
3543         * frame.c (legacy_saved_regs_prev_register): Only require
3544         DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed.  Assert that
3545         there are always saved regs.
3546         (deprecated_generic_get_saved_register): Do not require
3547         DEPRECATED_FRAME_INIT_SAVED_REGS.
3548         (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3549         use frame ID unwind instead.
3550         (deprecated_get_next_frame_hack): New function.
3551
3552 2003-06-16  Corinna Vinschen  <vinschen@redhat.com>
3553
3554         * h8300-tdep.c (h8300_push_arguments): Remove.  Substitute by...
3555         (h8300_push_dummy_call): ...this function.  Some minor optimization.
3556         (h8300_push_return_address): Remove.
3557         (h8300_gdbarch_init): Remove calls to
3558         set_gdbarch_deprecated_dummy_write_sp,
3559         set_gdbarch_deprecated_push_arguments and
3560         set_gdbarch_deprecated_push_return_address.
3561         Add call to set_gdbarch_push_dummy_call.
3562
3563 2003-06-16  Corinna Vinschen  <vinschen@redhat.com>
3564
3565         * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3566         (E_PSEUDO_EXR_REGNUM): Ditto.
3567         (h8300_is_argument_spill): Check for instructions moving argument
3568         registers into safe registers.
3569         (h8300_skip_prologue): Check for stm instruction to push registers
3570         used for register variables onto stack.
3571         (gdb_print_insn_h8300): Remove.
3572         (h8300_examine_prologue): Add a comment.
3573         (h8300_register_name): Take pseudo registers into account.
3574         (h8300s_register_name): Ditto.
3575         (h8300sx_register_name): Ditto.
3576         (h8300_print_register): Ditto.
3577         (h8300_print_registers_info): Define "nice" printing order.
3578         (h8300_saved_pc_after_call): Take pseudo registers into account.
3579         (h8300_register_type): Ditto.  Return type used for remote connection
3580         when requesting real CCR or EXR register, return actual type when
3581         requesting pseudo CCR or EXR.
3582         (h8300_pseudo_register_read): New function.
3583         (h8300_pseudo_register_write): Ditto.
3584         (h8300_dbg_reg_to_regnum): Ditto.
3585         (h8300s_dbg_reg_to_regnum): Ditto.
3586         (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3587         set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3588         set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3589         set_gdbarch_print_insn architecture dependent.
3590         Call set_gdbarch_pseudo_register_read and
3591         set_gdbarch_pseudo_register_write.
3592         (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3593
3594 2003-06-16  Andrew Cagney  <cagney@redhat.com>
3595
3596         * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3597         * gdbarch.h, gdbarch.c: Re-generate.
3598         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3599         * s390-tdep.c (s390_gdbarch_init): Update.
3600         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3601         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3602         * mips-tdep.c (mips_gdbarch_init): Update.
3603         * mcore-tdep.c (mcore_gdbarch_init): Update.
3604         * cris-tdep.c (cris_gdbarch_init): Update.
3605         * infcall.c (call_function_by_hand): Update.
3606         * ia64-tdep.c (ia64_push_arguments): Update comment.
3607         * frame.c (legacy_get_prev_frame): Do not assume
3608         SAVE_DUMMY_FRAME_TOS_P.
3609         * dummy-frame.c (find_dummy_frame): Update comment.
3610
3611 2003-06-16  Andrew Cagney  <cagney@redhat.com>
3612
3613         * regcache.c (do_cooked_read): Do not use register_valid_p.
3614
3615 2003-06-15  Theodore A. Roth  <troth@openavr.org>
3616
3617         * avr-tdep.c (avr_register_type): Remove a blank line.
3618         (avr_scan_prologue): Correct some comments.
3619
3620 2003-06-15  Theodore A. Roth  <troth@openavr.org>
3621
3622         * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3623         prologue types.
3624         Properly scan prologues generated by gcc with the -mcall-prologues
3625         option.
3626         Add code to scan -mcall-prologues for mega devices.
3627
3628 2003-06-15  Theodore A. Roth  <troth@openavr.org>
3629
3630         * avr-tdep.c (avr_register_byte): Delete function.
3631         (avr_register_raw_size): Delete function.
3632         (avr_register_virtual_size): Delete function.
3633         (avr_register_virtual_type): Delete function.
3634         (avr_register_type): New function.
3635         (avr_address_to_pointer): Remove unused code.
3636         (avr_read_fp): Need to read FP as two separate bytes due to change to
3637         avr_register_type() usage.
3638         (avr_gdbarch_init): Don't set deprecated_register_size.
3639         Don't set deprecated_register_bytes.
3640         Don't set deprecated_register_byte.
3641         Don't set deprecated_register_raw_size.
3642         Don't set deprecated_max_register_raw_size.
3643         Don't set deprecated_register_virtual_size.
3644         Don't set deprecated_max_register_virtual_size.
3645         Don't set deprecated_register_virtual_type.
3646         Set register_type method.
3647
3648 2003-06-15  Daniel Jacobowitz  <drow@mvista.com>
3649
3650         * Makefile.in (linux-nat.o): Add rule.
3651         * linux-nat.c: New file.
3652         * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3653         (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3654         (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3655         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3656         * config/arm/linux.mh (NATDEPFILES): Likewise.
3657         * config/i386/linux.mh (NATDEPFILES): Likewise.
3658         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3659         * config/ia64/linux.mh (NATDEPFILES): Likewise.
3660         * config/m68k/linux.mh (NATDEPFILES): Likewise.
3661         * config/mips/linux.mh (NATDEPFILES): Likewise.
3662         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3663         * config/s390/s390.mh (NATDEPFILES): Likewise.
3664         * config/sparc/linux.mh (NATDEPFILES): Likewise.
3665
3666 2003-06-15  Mark Kettenis  <kettenis@gnu.org>
3667
3668         * i387-tdep.c: Reorder includes, fix some whitespace issues and
3669         replace out-of-date comment.
3670
3671 2003-06-15  Andrew Cagney  <cagney@redhat.com>
3672
3673         * rdi-share/host.h (Fail): Change to a varargs function.
3674         * remote-rdi.c (Fail): Update.
3675
3676 2003-06-15  Mark Kettenis  <kettenis@gnu.org>
3677
3678         * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3679         (i386_convert_register_p, i386_register_to_value,
3680         i386_register_from_value): Handle types longer than 8 bytes.
3681
3682 2003-06-15  Mark Kettenis  <kettenis@gnu.org>
3683
3684         * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3685         Move floating-point code to new function in i387-tdep.c.
3686         * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3687         New functions containing code moved here from i386-tdep.c.
3688         * i387-tdep.h: Add opaque declaration for `struct type'.
3689         (i387_register_to_value, i387_value_to_register): New prototypes.
3690         * x86-64-tdep.c (x86_64_convert_register_p): New function.
3691         (x86_64_init_abi): Set convert_register_p, register_to_value and
3692         value_to_register here.
3693
3694 2003-06-14  Andrew Cagney  <cagney@redhat.com>
3695
3696         * mips-tdep.c (mips_register_to_value): Make static.
3697         (mips_value_to_register): Make static.
3698         * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3699         * ia64-tdep.c (ia64_register_raw_size): Make static.
3700         (ia64_register_virtual_size): Make static.
3701         (ia64_register_byte): Make static.
3702         * i387-tdep.c: Include "i387-tdep.h".
3703         (print_387_control_word): Delete function.
3704         (print_387_status_word): Delete function.
3705         (print_387_status_bits): Delete function.
3706         (print_387_control_bits): Delete function.
3707         * Makefile.in (i387-tdep.o): Update dependencies.
3708         * rdi-share/host.h (Fail): Declare.
3709         * remote-rdi.c (Fail): Update to match declaration.
3710
3711 2003-06-14  Andrew Cagney  <cagney@redhat.com>
3712
3713         * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3714         * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3715         * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3716         * config/djgpp/fnchange.lst: Delete "remote-array.c".
3717         * README: Delete reference to remote-array.
3718         * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3719         (remote-array.o): Delete target.
3720         * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3721         * remote-array.c: Delete file.
3722
3723 2003-06-14  Andrew Cagney  <cagney@redhat.com>
3724             Mark Kettenis  <kettenis@gnu.org>
3725
3726         * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3727         (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3728         parameter with "frame".
3729         * gdbarch.h, gdbarch.c: Re-generate.
3730         * frame.h (put_frame_register): Declare.
3731         * frame.c (put_frame_register): New function.
3732         * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3733         (legacy_register_to_value): Rewrite, use "frame" to get the
3734         register value.
3735         (legacy_value_to_register): Rewrite, use "frame" to find the
3736         register's location before storing.
3737         * arch-utils.h (legacy_convert_register_p): Update.
3738         (legacy_register_to_value, legacy_value_to_register): Update.
3739         * findvar.c (value_from_register): Rewrite, eliminate use of
3740         REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3741         "frame" to REGISTER_TO_VALUE.
3742         * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3743         lval_reg_frame_relative + lval_register branch of the switch.  Do
3744         not use REGISTER_CONVERT_FROM_TYPE.  Use put_frame_register.
3745         * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3746         I386_EDI_REGNUM): New defines.
3747         (i386_next_regnum, i386_convert_register_p,
3748         i386_register_to_value, i386_value_to_register): New functions.
3749         (i386_register_convertible, i386_register_convert_to_virtual,
3750         i386_convert_to_raw): Remove functions.
3751         (i386_gdbarch_init): Set convert_register_p, register_to_value and
3752         value_to_register instead of register_convertible,
3753         register_convert_to_virtual and register_convert_to_raw.
3754         * mips-tdep.c (mips_convert_register_p): New function.
3755         (mips_value_to_register): Replace mips_register_convert_from_type.
3756         (mips_register_to_value): Replace mips_register_convert_to_type.
3757         (mips_gdbarch_init): Set conver_register_p, value_to_register and
3758         register_to_value.
3759         * alpha-tdep.c (alpha_convert_register_p): Update.
3760         (alpha_value_to_register): Update, store the register.
3761         (alpha_register_to_value): Update, fetch the register.
3762
3763 2003-06-14  Theodore A. Roth  <troth@openavr.org>
3764
3765         * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3766         (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3767         Don't set deprecated_call_dummy_words.
3768         Remove commented out set_gdbarch_believe_pcc_promotion() call.
3769         Don't set remote_translate_xfer_address.
3770         (avr_io_reg_read_command): Remove commented out debug printf.
3771         Wrap a long line.
3772
3773 2003-06-14  Theodore A. Roth  <troth@openavr.org>
3774
3775         * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3776         causes gdb to seg fault.
3777
3778 2003-06-14  Daniel Jacobowitz  <drow@mvista.com>
3779
3780         * sparc-nat.c (fetch_inferior_registers): Correct
3781         a reference to "registers".
3782
3783 2003-06-14  Jeroen Dekkers  <jeroen@dekkers.cx>
3784
3785         * Makefile.in (exc_request_U_h): Define
3786         (exc_request_S_h): Likewise.
3787         (msg_reply_S_h): Likewise.
3788         (msg_U_h): Likewise.
3789         (notify_S_h): Likewise.
3790         (process_reply_S_h): Likewise.
3791         (gnu-nat.o): Depend on gdb_obstack_h
3792         * gnu-nat.c: Include "gdb_obstack.h".
3793
3794 2003-06-13  Andrew Cagney  <cagney@redhat.com>
3795
3796         * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3797         * gdbarch.h, gdbarch.c: Re-generate.
3798
3799 2003-06-13  Andrew Cagney  <cagney@redhat.com>
3800
3801         * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces.  Clarify
3802         when deprecated REGISTER macros can be deleted.
3803         * gdbarch.h, gdbarch.c: Re-generate.
3804
3805 2003-06-13  Jim Blandy  <jimb@redhat.com>
3806
3807         * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3808         Linux entry point symbols for _dl_debug_state, too.
3809
3810 2003-06-13  Andrew Cagney  <cagney@redhat.com>
3811
3812         * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3813         available, do not use the FP register, and always save the TOS.
3814         * dummy-frame.c (dummy_frame_this_id): Do not assert
3815         SAVE_DUMMY_FRAME_TOS.
3816         * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3817         (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3818         (i386_push_dummy_call): Add 8 to the returned SP.
3819         * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3820         * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3821         (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3822         * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3823         (x86_64_push_dummy_call): Return "sp + 16".
3824         (x86_64_init_abi): Do not set save_dummy_frame_tos.
3825         * alpha-tdep.c (alpha_gdbarch_init): Do not set
3826         save_dummy_frame_tos.
3827
3828 2003-06-13  Jim Blandy  <jimb@redhat.com>
3829
3830         * frv-tdep.c (frv_use_struct_convention): Delete static
3831         declaration for function deleted in my change of 2003-06-12.
3832
3833 2003-06-13  Theodore A. Roth  <troth@openavr.org>
3834
3835         * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3836         (avr_pointer_to_address): Shift code addrs left 1 bit.
3837         (avr_convert_from_func_ptr_addr): Delete function since operation is
3838         better handled by avr_address_to_pointer and avr_pointer_to_address.
3839         (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3840
3841 2003-06-13  Mark Kettenis  <kettenis@gnu.org>
3842
3843         From Kelley Cook  <kelleycook@wideopenwest.com>:
3844         * configure.host: Accept i[34567]86 variants.
3845         * configure.tgt: Likewise.
3846         * nlm/configure.in: Likewise.
3847         * nlm/configure: Regenerated.
3848
3849 2003-06-13  Richard Earnshaw  <rearnsha@arm.com>
3850
3851         * arm-tdep.c (solib-svr4.h): Dont' include it.
3852         (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3853         * arm-linux-tdep.c: ... here.  Make static.
3854         (arm_linux_init_abi): Register it.
3855         (solib-svr4.h): Include it.
3856         * Makefile.in: Update dependencies.
3857         * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3858         (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3859
3860 2003-06-13  Corinna Vinschen  <vinschen@redhat.com>
3861
3862         * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3863         indicate registers used for return values.
3864         (struct frame_extra_info): Drop args_pointer and locals_pointer.
3865         (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3866         members.
3867         (h8300_init_extra_frame_info): Ditto.
3868         (h8300_frame_locals_address): Removed.
3869         (h8300_frame_args_address): Removed.
3870         (h8300_extract_return_value): Use new regcache structure. Only care
3871         for 16 bit CPUs.
3872         (h8300h_extract_return_value): Same function for 32 bit CPUs.
3873         (h8300_store_return_value): Use new regcache structure. Only care
3874         for 16 bit CPUs.
3875         (h8300h_store_return_value): Same function for 32 bit CPUs.
3876         (h8300_store_struct_return): Removed.
3877         (h8300_extract_struct_value_address): Use new regcache structure.
3878         (h8300h_extract_struct_value_address): Removed.
3879         (h8300_push_dummy_code): New function.
3880         (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3881         Remove call_dummy_words.  Call set_gdbarch_extract_return_value and
3882         set_gdbarch_store_return_value architecture dependent.
3883         Call set_gdbarch_push_dummy_code and
3884         set_gdbarch_extract_struct_value_address.
3885         Remove calls to set_gdbarch_frame_args_address,
3886         set_gdbarch_frame_locals_address,
3887         set_gdbarch_deprecated_store_struct_return,
3888         set_gdbarch_deprecated_extract_return_value,
3889         set_gdbarch_deprecated_extract_struct_value_address,
3890         set_gdbarch_deprecated_call_dummy_words and
3891         set_gdbarch_deprecated_sizeof_call_dummy_words.
3892
3893 2003-06-13  Corinna Vinschen  <vinschen@redhat.com>
3894
3895         * h8300-tdep.c (h8300_register_byte): Remove.
3896         (h8300h_register_byte): Remove.
3897         (h8300_register_virtual_type): Remove.  Substitute by...
3898         (h8300_register_type): New function.
3899         (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3900         (h8300h_extract_struct_value_address): Ditto.
3901         (h8300_gdbarch_init): Drop calls to
3902         set_gdbarch_deprecated_register_byte and
3903         set_gdbarch_deprecated_register_virtual_type.
3904         Add call to set_gdbarch_register_type.
3905
3906 2003-06-13  Andrew Cagney  <cagney@redhat.com>
3907
3908         * gdbarch.sh: Update comments on registers.
3909         (deprecated_register_byte): Rename register_byte.
3910         (deprecated_register_raw_size): Rename register_raw_size.
3911         (deprecated_register_virtual_size): Rename register_virtual_size.
3912         (deprecated_register_virtual_type): Rename register_virtual_type.
3913         * gdbarch.h, gdbarch.c: Re-generate.
3914         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3915         * vax-tdep.c (vax_gdbarch_init): Update.
3916         * v850-tdep.c (v850_gdbarch_init): Update.
3917         * sparc-tdep.c (sparc_gdbarch_init): Update.
3918         * sh-tdep.c (sh_gdbarch_init): Update.
3919         * s390-tdep.c (s390_gdbarch_init): Update.
3920         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3921         * ns32k-tdep.c: Update.
3922         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3923         * mips-tdep.c (mips_gdbarch_init): Update.
3924         * mcore-tdep.c (mcore_gdbarch_init): Update.
3925         * m68k-tdep.c (m68k_gdbarch_init): Update.
3926         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3927         * ia64-tdep.c (ia64_gdbarch_init): Update.
3928         * hppa-tdep.c (hppa_gdbarch_init): Update.
3929         * h8300-tdep.c (h8300_gdbarch_init): Update.
3930         * frv-tdep.c (frv_gdbarch_init): Update.
3931         * cris-tdep.c (cris_gdbarch_init): Update.
3932         * avr-tdep.c (avr_gdbarch_init): Update.
3933         * alpha-tdep.c (alpha_gdbarch_init): Update.
3934         * arm-tdep.c (arm_gdbarch_init): Update.
3935
3936 2003-06-13  Andrew Cagney  <cagney@redhat.com>
3937
3938         * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3939         mips_o32_use_struct_convention with always_use_struct_convention.
3940
3941 2003-06-12  David Carlton  <carlton@kealia.com>
3942
3943         * cp-namespace.c (cp_set_block_scope): Comment out
3944         processing_has_namespace_info branch.
3945
3946 2003-06-12  Jim Blandy  <jimb@redhat.com>
3947
3948         Recognize and skip 64-bit PowerPC Linux linkage functions.
3949         * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3950         insn_pattern, insns_match_pattern, d_field, ds_field): New
3951         functions, macros, and types for working with PPC instructions.
3952         (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3953         ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3954         ppc64_skip_trampoline_code): New functions, variables, and macros
3955         for recognizing and skipping linkage functions.
3956         (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3957         ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3958
3959         * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3960         register offsets for both the 32- and 64-bit interfaces.
3961
3962         Actually finish the job started by my change of 2003-05-29.
3963         * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3964         other #definition of this.
3965         (ppc_linux_skip_trampoline_code): Remove declaration.
3966         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3967         static.
3968         (ppc_linux_init_abi): Register it as the skip_trampoline_code
3969         method for GDBARCH.
3970
3971         * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3972         'long' on ppc64-*-linux*.
3973
3974         * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3975         isn't #defined, assume the register doesn't exist: act as if
3976         tdep->ppc_mq_regnum were -1.
3977
3978         * configure.host, configure.tgt: Add entries for
3979         powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3980         powerpc/linux.mt.
3981         * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3982         New files.
3983
3984         * arch-utils.c (always_use_struct_convention): New function.
3985         * arch-utils.h (always_use_struct_convention): New prototype.
3986         * alpha-tdep.c (alpha_use_struct_convention): Delete.
3987         (alpha_gdbarch_init): Register always_use_struct_convention,
3988         instead of alpha_use_struct_convention.
3989         * cris-tdep.c (cris_use_struct_convention): Delete.
3990         (cris_gdbarch_init): Register always_use_struct_convention,
3991         instead of cris_use_struct_convention.
3992         * frv-tdep.c (frv_use_struct_convention): Delete.
3993         (frv_gdbarch_init): Register always_use_struct_convention,
3994         instead of frv_use_struct_convention.
3995         * h8300-tdep.c (h8300_use_struct_convention): Delete.
3996         (h8300_gdbarch_init): Register always_use_struct_convention,
3997         instead of h8300_use_struct_convention.
3998         * mips-tdep.c (mips_o32_use_struct_convention): Delete.
3999         (mips_o32_gdbarch_init): Register always_use_struct_convention,
4000         instead of mips_o32_use_struct_convention.
4001
4002 2003-06-12  Andrew Cagney  <cagney@redhat.com>
4003
4004         * wince.c: Include "mips-tdep.h".
4005         * mips-tdep.h (mips_next_pc): Declare.
4006         * mcore-tdep.c: Make more local functions static.
4007         * Makefile.in (wince.o): Update dependencies.
4008
4009 2003-06-12  David Carlton  <carlton@kealia.com>
4010
4011         * symtab.c (lookup_symbol_aux_minsyms): Replace
4012         DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4013         (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4014         (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4015         SYMBOL_NATURAL_NAME.
4016
4017 2003-06-12  Andreas Schwab  <schwab@suse.de>
4018
4019         * Makefile.in (tuiDisassem.o): Update dependencies.
4020
4021 2003-06-12  David Carlton  <carlton@bactrian.org>
4022
4023         * symtab.h: Delete declaration of make_symbol_overload_list.
4024         Add declaration of lookup_partial_symbol.
4025         * symtab.c (remove_params): Move to cp-support.c.
4026         (overload_list_add_symbol, make_symbol_overload_list)
4027         (sym_return_val_size, sym_return_val_index): Ditto.
4028         (lookup_partial_symbol): Make extern.
4029         * cp-support.h: Add declaration of make_symbol_overload_list.
4030         * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4031         symtab.h, and block.h.
4032         (remove_params): Move here from symtab.c.
4033         (overload_list_add_symbol, make_symbol_overload_list)
4034         (sym_return_val_size, sym_return_val_index): Ditto.
4035         * valops.c: Include cp-support.h.
4036         * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4037         frame_h, and block_h.
4038         (valops.o): Depend on cp_support_h.
4039
4040 2003-06-12  Corinna Vinschen  <vinschen@redhat.com>
4041
4042         * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4043         substitute by NUM_REGS throughout.
4044         (h8300_register_name): Only care for H8/300 and H8/300H registers.
4045         (h8300s_register_name): New function for H8S registers.
4046         (h8300sx_register_name): Ditto for H8SX registers.
4047         (h8300_print_register): Revise register printing, avoid depending
4048         on 32 bit long.
4049         (h8300_register_byte): Only care for H8/300 registers.
4050         (h8300h_register_byte): New function for any other architecture.
4051         (h8300_register_raw_size): Remove.
4052         (h8300_register_virtual_type): Revise to return actually useful
4053         type.
4054         (h8300_extract_struct_value_address): Only care for H8/300 registers.
4055         (h8300h_extract_struct_value_address): New function for any other
4056         architecture.
4057         (h8300_gdbarch_init): Add h8300sxn.  Call set_gdbarch_num_regs,
4058         set_gdbarch_register_name, set_gdbarch_register_byte,
4059         set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4060         Remove calls to set_gdbarch_deprecated_register_size,
4061         set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4062         set_gdbarch_deprecated_max_register_raw_size,
4063         set_gdbarch_register_virtual_size and
4064         set_gdbarch_deprecated_max_register_virtual_size entirely.
4065         Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4066         set_gdbarch_long_double_bit.
4067
4068 2003-06-11  Jeff Johnston  <jjohnstn@redhat.com>
4069
4070         * doublest.c (convert_doublest_to_floatformat): When dealing
4071         with the implied integer bit, only alter mant_bits if we are
4072         processing a full 32 bits of mantissa.
4073
4074 2003-06-11  David Carlton  <carlton@bactrian.org>
4075
4076         * dictionary.h: New.
4077         * dictionary.c: New.
4078         * block.h: Add opaque declaration for struct dictionary.
4079         (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4080         'sym' members.
4081         (BLOCK_DICT): New macro.
4082         Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4083         BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4084         BLOCK_SHOULD_SORT.
4085         (ALL_BLOCK_SYMBOLS): Update definition.
4086         * Makefile.in (SFILES): Add dictionary.c.
4087         (dictionary_h): New.
4088         (COMMON_OBS): Add dictionary.o.
4089         (dictionary.o): New.
4090         (ada-lang.o): Depend on dictionary_h.
4091         (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4092         (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4093         (mi-cmd-stack.o): Ditto.
4094         (gdbtk-cmds.o): Update dependencies.
4095         (gdbtk-stack.o): Ditto.
4096         * ada-lang.c: Include dictionary.h.
4097         (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4098         (fill_in_ada_prototype, debug_print_block): Ditto.
4099         (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4100         explicit iteration by use of ALL_BLOCK_SYMBOLS.  Delete variable
4101         'is_sorted'.
4102         * mdebugread.c: Include dictionary.h.
4103         (struct parse_stack): Delete 'maxsyms' member.
4104         (parse_symbol): Update calls to new_block.  Delete calls to
4105         shrink_block.  Use dictionary methods.
4106         (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4107         Update calls to new_symtab.  Don't maintain maxsyms data.
4108         (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4109         (add_symbol): Just call dict_add_symbol.
4110         (new_symtab): Delete 'maxsyms' argument.
4111         (new_symtab): Update calls to new_block.
4112         (new_block): Delete 'maxsyms' argument; add 'function' argument.
4113         (shrink_block): Delete function.
4114         (fixup_sigtramp): Update call to new_block.  Add symbol via
4115         dict_add_symbol.
4116         * jv-lang.c: Include dictionary.h.
4117         (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4118         appropriately.  Set class_symtab->free_func.  Make sure the
4119         blockvector is big enough to hold two blocks.
4120         (add_class_symtab_symbol): Use dictionary methods.
4121         (free_class_block): New function.
4122         (type_from_class): Replace explicit iteration by
4123         ALL_BLOCK_SYMBOLS.
4124         * symtab.h (struct symtab): Replace 'free_ptr' method by
4125         'free_func'.
4126         * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4127         sort_symtab_syms.
4128         * dwarfread.c (psymtab_to_symtab_1): Delete call to
4129         sort_symtab_syms.
4130         * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4131         Include dictionary.h.
4132         (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4133         * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4134         sort_symtab_syms.
4135         * objfiles.c: Include dictionary.h.
4136         (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4137         * buildsym.c: Include dictionary.h.
4138         (finish_block): Use dictionary methods.
4139         (end_symtab): Set free_func to NULL, not free_ptr.
4140         * tracepoint.c: Include dictionary.h.
4141         (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4142         (scope_info): Ditto.
4143         * stack.c: Include dictionary.h.
4144         (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4145         (print_block_frame_labels, print_frame_arg_vars)
4146         (print_frame_args): Ditto.
4147         * symmisc.c (free_symtab_block): Use dictionary methods.
4148         (dump_symtab): Ditto.
4149         (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4150         Include dictionary.h.
4151         * symfile.h: Delete declarations of sort_block_syms,
4152         sort_symtab_syms.
4153         * symfile.c (sort_block_syms): Delete.
4154         (sort_symtab_syms): Delete.
4155         * symtab.c: Include dictionary.h.
4156         (lookup_block_symbol): Use dictionary iterators.
4157         (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4158         (search_symbols, make_symbol_completion_list): Ditto.
4159         (make_symbol_overload_list): Ditto.
4160         * valops.c (value_of_local): Use dict_empty.
4161         Include dictionary.h.
4162
4163 2003-06-11  J. Brobecker  <brobecker@gnat.com>
4164
4165         * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4166
4167 2003-06-11  David Carlton  <carlton@bactrian.org>
4168
4169         * block.h (BLOCK_SHOULD_SORT): Delete.
4170         * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4171         blocks.
4172         * ada-lang.c (ada_add_block_symbols): Ditto.
4173         * symfile.c (sort_block_syms): Delete.
4174         (sort_symtab_syms): Ditto.
4175         * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4176         declarations.
4177         * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4178         * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4179         * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4180         * dwarfread.c (psymtab_to_symtab_1): Ditto.
4181         * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4182         * mdebugread.c (psymtab_to_symtab_1): Ditto.
4183         * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4184
4185 2003-06-11  Jeff Johnston  <jjohnstn@redhat.com>
4186
4187         * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
4188         bits to 128.
4189
4190 2003-06-11  Andrew Cagney  <cagney@redhat.com>
4191
4192         * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4193         REGISTER_CONVERTIBLE.
4194         (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4195         (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4196         * gdbarch.h, gdbarch.c: Re-generate.
4197         * arch-utils.h (deprecated_register_convertible_not): Rename
4198         generic_register_convertible_not.
4199         * arch-utils.c (deprecated_register_convertible_not): Rename
4200         generic_register_convertible.
4201         (legacy_convert_register_p, legacy_register_to_value): Update.
4202         * sh-tdep.c (sh64_push_arguments): Update.
4203         * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4204         * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4205         * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4206         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4207         * arch-utils.c (legacy_value_to_register): Update.
4208         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4209         (rs6000_register_convert_to_raw): Make parameter "from" const.
4210         * mips-tdep.c (mips_gdbarch_init): Update.
4211         (mips_register_convert_to_raw): Make  parameter"virt_buf" const.
4212         * infcmd.c (default_print_registers_info): Update.
4213         * ia64-tdep.c (ia64_gdbarch_init): Update.
4214         (ia64_register_convert_to_raw): Make parameter "from" const.
4215         * i386-tdep.c (i386_gdbarch_init): Update.
4216         (i386_register_convert_to_raw): Update.
4217
4218 2003-06-11  Andrew Cagney  <cagney@redhat.com>
4219
4220         * remote-fileio.c: Include "remote-fileio.h".
4221         * Makefile.in (remote-fileio.o): Update dependencies.
4222         (remote_fileio_h): Fix typo.
4223
4224 2003-06-11  Andrew Cagney  <cagney@redhat.com>
4225
4226         * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4227         (xstormy16_save_dummy_frame_tos): Make static.
4228         (_initialize_xstormy16_tdep): Add declaration.
4229         * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4230         * v850-tdep.c: Make local functions static.
4231         (_initialize_v850_tdep): Add declaration.
4232         * sparc-tdep.c: Make local functions static.
4233         (_initialize_sparc_tdep): Add declaration.
4234         * sh-tdep.c: Make local functions static.
4235         (_initialize_sh_tdep): Add declaration.
4236         * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4237         * s390-tdep.c: Make local functions static.
4238         (_initialize_s390_tdep): Add declaration.
4239         * dbxread.c (find_stab_function_addr): Make static.
4240         * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4241         * ocd.c (_initialize_remote_ocd): Add declaration.
4242         * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4243         * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4244         * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4245         * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4246         * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4247         * remote-array.c (_initialize_array): Add declaration.
4248         (_initialize_remote_monitors): Add declaration.
4249         * remote-mips.c: Make local functions static.
4250         (_initialize_remote_mips): Add declaration.
4251         * mcore-tdep.c: Make all local functions static.
4252         (_initialize_mcore_tdep): Add declaration.
4253         * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4254         * abug-rom.c (_initialize_abug_rom): Add declaration.
4255         * rom68k-rom.c (_initialize_rom68k): Add declaration.
4256         * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4257         * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4258         * remote-est.c (_initialize_est): Add declaration.
4259         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4260         (m68hc11_call_dummy_address): Make static.
4261         * ia64-tdep.c: Make local functions static.
4262         (_initialize_ia64_tdep): Add declaration.
4263         * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4264         * monitor.c (monitor_wait_filter): Make static.
4265         (_initialize_remote_monitors): Add declaration.
4266         * remote-hms.c (_initialize_remote_hms): Add declaration.
4267         * remote-e7000.c (fetch_regs_from_dump): Make static.
4268         (expect_n): Make static.
4269         (_initialize_remote_e7000): Add declaration.
4270         * ser-e7kpc.c: Always include "defs.h".
4271         (_initialize_ser_e7000pc): Add declaration.
4272         * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4273         * cris-tdep.c: Make all but one function static.
4274         (_initialize_cris_tdep): Add declaration.
4275         * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4276         * solib.c (update_solib_list): Make static.
4277         (_initialize_solib): Add declaration.
4278         * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4279         (_initialize_avr_tdep): Add declaration.
4280         * remote-rdi.c (voiddummy): Make static.
4281         (_initialize_remote_rdi): Add declaration.
4282         * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4283         * remote-rdp.c (send_rdp): Make static.
4284         (_initialize_remote_rdp): Add declaration.
4285         * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4286
4287 2003-06-11  Corinna Vinschen  <vinschen@redhat.com>
4288
4289         * remote-fileio.c: Make ari happy.
4290
4291 2003-06-10  J. Brobecker  <brobecker@gnat.com>
4292
4293         * rs6000-nat.c (child_xfer_memory): Compute the right address when
4294         fetching the trailing bytes of the buffer we are about to write.
4295
4296 2003-06-10  Andrew Cagney  <cagney@redhat.com>
4297
4298         * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4299         * Makefile.in (remote-fileio.o): Update dependencies.
4300         * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h".  Do not
4301         include <setjmp.h>, or <sys/types.h> conditional on USG.
4302         (remote_fio_jmp_buf): Delete global variable.
4303
4304 2003-06-10  Corinna Vinschen  <vinschen@redhat.com>
4305             Martin M. Hunt  <hunt@redhat.com>
4306
4307         * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4308         (SFILES): Add remote-fileio.c.
4309         Add dependencies for building remote-fileio.o.  Add remote-fileio.h to
4310         dependencies for building remote.o.
4311         * remote-fileio.c: New file implementing the remote File-I/O protocol.
4312         * remote-fileio.h: New header file defining remote File-I/O interface.
4313         * remote.c (remote_write_bytes, remote_read_bytes): Remove
4314         static storage class.
4315         (remote_wait, remote_async_wait): Call remote_fileio_request() on
4316         'F' packet.
4317         (_initialize_remote): Call initialize_remote_fileio().
4318         * remote.h: Declare remote_write_bytes() and remote_read_bytes().
4319         * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4320         * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4321         (captured_main): Initialize new ui_files.
4322         * ui-file.c: Add read and fgets input functions.
4323         (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4324         (null_file_read): New function.
4325         (ui_file_read): New function.
4326         (set_ui_file_read): New function.
4327         (stdio_file_read): New function.
4328         * ui-file.h: New type ui_file_read_ftype.
4329         (set_ui_file_read): Declare.
4330         (ui_file_read): Declare.
4331
4332 2003-06-09  Andrew Cagney  <cagney@redhat.com>
4333
4334         * frame.h (deprecated_unwind_get_saved_register): Rename
4335         generic_unwind_get_saved_register, update comments.
4336         * mips-tdep.c (mips_get_saved_register): Update.
4337         * frame.c (deprecated_unwind_get_saved_register): Update.
4338
4339 2003-06-09  Andrew Cagney  <cagney@redhat.com>
4340
4341         * vax-tdep.c (vax_frame_locals_address): Delete function.
4342         (vax_gdbarch_init): Do not set frame_locals_address.
4343         * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4344         (m68hc11_gdbarch_init): Do not set frame_locals_address.
4345         * s390-tdep.c (s390_frame_args_address): Delete function.
4346         (s390_gdbarch_init): Do not set frame_args_address or
4347         frame_locals_address.
4348         * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4349         (ns32k_gdbarch_init): Do not set frame_locals_address.
4350         * hppa-tdep.c (hppa_frame_args_address): Delete function.
4351         (hppa_frame_locals_address): Delete function.
4352         (hppa_gdbarch_init): Do not set frame_args_address, or
4353         frame_locals_address.
4354         * arm-tdep.c (arm_frame_args_address): Delete.
4355         (arm_frame_locals_address): Delete.
4356         (arm_gdbarch_init): Do not set frame_args_address, or
4357         frame_locals_address.
4358
4359 2003-06-09  Andrew Cagney  <cagney@redhat.com>
4360
4361         * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4362         * gdbarch.h, gdbarch.c: Re-generate.
4363         * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4364         * arch-utils.c (frame_num_args_unknown): Delete function.
4365         * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4366         (frame_info): Use FRAME_NUM_ARGS_P.
4367         * arm-tdep.c (arm_frame_num_args): Delete function.
4368         (arm_gdbarch_init): Do not set frame_num_args.
4369         * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4370         * hppa-tdep.c (hppa_frame_num_args): Delete function.
4371         (hppa_gdbarch_init): Do not set frame_num_args.
4372         * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4373         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4374         frame_num_args to default frame_num_args_unknown.
4375         * v850-tdep.c (v850_gdbarch_init): Ditto.
4376         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4377         * sh-tdep.c (sh_gdbarch_init): Ditto.
4378         * s390-tdep.c (s390_gdbarch_init): Ditto.
4379         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4380         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4381         * mips-tdep.c (mips_gdbarch_init): Ditto.
4382         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4383         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4384         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4385         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4386         * i386-tdep.c (i386_gdbarch_init): Ditto.
4387         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4388         * frv-tdep.c (frv_gdbarch_init): Ditto.
4389         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4390         * cris-tdep.c (cris_gdbarch_init): Ditto.
4391         * avr-tdep.c (avr_gdbarch_init): Ditto.
4392         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4393
4394 2003-06-09  Andrew Cagney  <cagney@redhat.com>
4395
4396         * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4397         (print_frame_args): Moved to "stack.c".
4398         * stack.c: Include "gdb_assert.h".
4399         (print_frame_nameless_args): Moved from "printcmd.c", made static.
4400         (print_frame_args): Moved from "printcmd.c".
4401         * frame.h (print_frame_args): Delete declaration.
4402         * Makefile.in (stack.o): Update dependencies.
4403
4404 2003-06-08  Andrew Cagney  <cagney@redhat.com>
4405
4406         * frame.c (get_prev_frame): Remove reference to
4407         frame_args_address_correct in comments.
4408         * frame-base.c (default_frame_args_address): Delete code
4409         conditional on FRAME_ARGS_ADDRESS_CORRECT.
4410         * vax-tdep.c (vax_frame_args_address_correct): Delete.
4411         (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4412         * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4413         (vax_frame_args_address_correct): Delete declaration.
4414
4415 2003-06-08  Andrew Cagney  <cagney@redhat.com>
4416
4417         * gdbarch.sh (UNWIND_SP): Add.
4418         * gdbarch.h, gdbarch.c: Re-generate.
4419         * frame.c (frame_sp_unwind): New function.
4420         (get_frame_sp): New function.
4421         * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4422         * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4423         gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4424         value.
4425         * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4426         (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4427
4428 2003-06-08  Andrew Cagney  <cagney@redhat.com>
4429
4430         Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4431         REMOTE_BREAKPOINT.
4432         * remote.c: Update.
4433         * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4434         (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4435         * config/m68k/tm-sun3.h: Update.
4436         * config/m68k/tm-m68klynx.h: Update.
4437         * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4438
4439         * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4440         trad_frame".  Update comments.
4441         * d10v-tdep.c (struct d10v_unwind_cache): Update.
4442         * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4443         (trad_frame_register_value, trad_frame_prev_register): Update.
4444
4445 2003-06-08  Andrew Cagney  <cagney@redhat.com>
4446
4447         * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4448         from GCC's acinclude.m4.
4449         * configure.in: Check for getopt's delcaration.
4450         * aclocal.m4, config.in, configure: Re-generate.
4451         * main.c (error_init): Delete declaration.
4452         * defs.h (error_init): Declare.
4453         * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4454         (rs6000_convert_from_func_ptr_addr): Make static.
4455         (_initialize_rs6000_tdep): Add declaration.
4456         * cli/cli-cmds.c (dont_repeat): Delete declaration.
4457         (show_commands, set_verbose, show_history): Delete declaration.
4458         * top.h (set_verbose): Add declaration.
4459         (show_history, set_history, show_commands): Add declaration.
4460         (do_restore_instream_cleanup): Add declaration.
4461         * objc-lang.c (specialcmp): Make static.
4462         (print_object_command): Make static.
4463         (find_objc_msgsend): Make static.
4464         (find_objc_msgcall_submethod_helper): Make static.
4465         (find_objc_msgcall_submethod): Make static.
4466         (_initialize_objc_language): Add declaration.
4467         (find_implementation_from_class): Make static.
4468         (find_implementation): Make static.
4469         * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4470         * objc-lang.h (lookup_struct_typedef): Add declaration.
4471         * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4472         * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4473         (do_restore_user_call_depth): Make static.
4474         (do_restore_instream_cleanup): Delete declaration.
4475         (dont_repeat): Delete declaration.
4476         * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4477         * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4478         * reggroups.c (_initialize_reggroup): Add declaration.
4479         * cp-support.c (_initialize_cp_support): Add declaration.
4480         * cp-abi.c (_initialize_cp_abi): Add declaration.
4481         * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4482         * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4483         (_initialize_gnu_v3_abi): Add declaration.
4484         * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4485         (_initialize_gnu_v2_abi): Add declaration.
4486         * frame-base.c (_initialize_frame_base): Add declaration.
4487         * doublest.c (floatformat_from_length): Make static.
4488         * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4489         * frame.c (create_sentinel_frame): Make static.
4490         (_initialize_frame): Add declaration.
4491         * top.c (do_catch_errors): Make static.
4492         (gdb_rl_operate_and_get_next_completion): Make static.
4493         * typeprint.c: Include "typeprint.h".
4494         * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4495         (sentinel_frame_this_id): Make static.
4496         * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4497         * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4498         * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4499         * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4500         * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4501         * maint.c (maintenance_print_architecture): Make static.
4502         * signals/signals.c (_initialize_signals): Add declaration.
4503         * std-regs.c (_initialize_frame_reg): Add declaration.
4504         * jv-exp.y (push_variable): ISO C definition.
4505         (push_qualified_expression_name): Ditto.
4506         * memattr.c (_initialize_mem): Add declaration.
4507         * remote.c (remote_check_watch_resources): Make static.
4508         (remote_stopped_by_watchpoint): Make static.
4509         (remote_stopped_data_address): Make static.
4510         * d10v-tdep.c (nr_dmap_regs): Make static.
4511         (a0_regnum): Make static.
4512         (d10v_frame_unwind_cache): Make static.
4513         (d10v_frame_p): Make static.
4514         * osabi.c (show_osabi): Make static.
4515         (_initialize_gdb_osabi): Add extern declaration.
4516         * gdbtypes.c (make_qualified_type): Make static.
4517         (safe_parse_type): Make static.
4518         * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4519         * macrotab.c (macro_bcache_free): Make static.
4520         * interps.c (interp_set_quiet): Make static.
4521         (interpreter_exec_cmd): Make static.
4522         * stack.h (select_frame_command): New file.
4523         * stack.c: Include "stack.h".
4524         (select_frame_command_wrapper): Delete function.
4525         (select_frame_command): Make global.
4526         * infcall.c: Include "infcall.h".
4527         * linespec.c: Include "linespec.h".
4528         * symfile.c (sections_overlap): Make static.
4529         * cp-support.h (cp_initialize_namespace): ISO C declaration.
4530         * charset.c (_initialize_charset): Add missing prototype.
4531         * regcache.c (init_legacy_regcache_descr): Make static.
4532         (do_regcache_xfree): Make static.
4533         (regcache_xfer_part): Make static.
4534         (_initialize_regcache): Add missing prototype.
4535         * breakpoint.c (parse_breakpoint_sals): Make static.
4536         (breakpoint_sals_to_pc): Make static.
4537         * interps.h (clear_interpreter_hooks): ISO C declaration.
4538         * Makefile.in (stack_h): Define.
4539         (stack.o, typeprint.o, mi-main.o): Update dependencies.
4540         (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4541
4542 2003-06-08  Andrew Cagney  <cagney@redhat.com>
4543
4544         * Makefile.in (d10v-tdep.o): Update dependencies.
4545         (SFILES): Add trad-frame.c.
4546         (trad_frame_h): Define.
4547         (COMMON_OBS): Add trad-frame.o.
4548         (trad-frame.o): Specify dependencies.
4549         * d10v-tdep.c: Include "trad-frame.h".
4550         (saved_regs_unwinder): Delete function.
4551         (d10v_frame_prev_register): Use trad_frame_prev_register.
4552         (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4553         trad_frame", delete "regs" and "prev_sp".
4554         (prologue_find_regs): Use trad-frame.
4555         * trad-frame.h, trad-frame.c: New files.
4556
4557 2003-06-08  Mark Kettenis  <kettenis@gnu.org>
4558
4559         * dwarf2cfi.c, dwarf2cfi.h: Remove.
4560
4561 2003-06-07  Adam Fedor  <fedor@gnu.org>
4562
4563         * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4564         (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4565         using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4566         (find_implementation, resolve_msgsend, resolve_msgsend_stret,
4567         resolve_msgsend_super, resolve_msgsend_super_stret):
4568         Use it.
4569
4570 2003-06-07  Andrew Cagney  <cagney@redhat.com>
4571
4572         * symfile.h: Re-indent, clean up comments.
4573
4574 2003-06-07  Andrew Cagney  <cagney@redhat.com>
4575
4576         * inferior.h (deprecated_write_sp): Replace
4577         generic_target_write_sp.
4578         * regcache.c (deprecated_write_sp): Replace
4579         generic_target_write_sp.
4580         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4581         * vax-tdep.c (vax_gdbarch_init): Update.
4582         * v850-tdep.c (v850_gdbarch_init): Update.
4583         * sparc-tdep.c (sparc_gdbarch_init): Update.
4584         * sh-tdep.c (sh_gdbarch_init): Update.
4585         * s390-tdep.c (s390_gdbarch_init): Update.
4586         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4587         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4588         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4589         * mcore-tdep.c (mcore_gdbarch_init): Update.
4590         * m68k-tdep.c (m68k_gdbarch_init): Update.
4591         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4592         * ia64-tdep.c (ia64_gdbarch_init): Update.
4593         * h8300-tdep.c (h8300_gdbarch_init): Update.
4594         * frv-tdep.c (frv_gdbarch_init): Update.
4595         * cris-tdep.c (cris_gdbarch_init): Update.
4596         * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4597
4598 2003-06-07  Andrew Cagney  <cagney@redhat.com>
4599
4600         * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4601         Assert that PC_REGNUM is valid.
4602         (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4603
4604 2003-06-07  Andrew Cagney  <cagney@redhat.com>
4605
4606         * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4607         * gdbarch.h, gdbarch.c: Regenerate.
4608         * mn10300-tdep.c: Include "gdb_assert.h".
4609         (mn10300_read_fp): New function.
4610         (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4611         mn10300_read_fp.  Do not set read_sp to generic_target_read_sp.
4612         * ia64-tdep.c: Include "gdb_assert.h".
4613         (ia64_read_fp): New function.
4614         (ia64_gdbarch_init): Set deprecated_target_read_fp to
4615         ia64_read_sp.  Do not set read_sp to generic_target_read_sp.
4616         * regcache.c (generic_target_read_sp): Delete function.
4617         (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4618         * inferior.h (generic_target_read_sp): Delete declaration.
4619         * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4620         generic_target_read_sp.
4621         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4622         * sparc-tdep.c (sparc_gdbarch_init): Ditto
4623         * sh-tdep.c (sh_gdbarch_init): Ditto.
4624         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4625         * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4626
4627 2003-06-07  Andrew Cagney  <cagney@redhat.com>
4628
4629         * gdbarch.sh: Comment each field of startup_gdbarch.
4630         * gdbarch.h, gdbarch.c: Re-generate.
4631
4632 2003-06-07  Andrew Cagney  <cagney@redhat.com>
4633
4634         * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4635         * gdbarch.h, gdbarch.c: Re-generate.
4636         * regcache.c: Update comments on read_pc et.al.
4637         (generic_target_read_pc): Delete function.
4638         (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4639         * inferior.h (generic_target_read_pc): Delete declaration.
4640         * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4641         generic_target_read_pc.
4642         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4643         * sh-tdep.c (sh_gdbarch_init): Ditto.
4644         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4645         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4646
4647 2003-06-07  Andrew Cagney  <cagney@redhat.com>
4648
4649         * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4650         "index" with "special_local_sect".  Use strcmp instead of STREQ.
4651         Append period to coments.
4652
4653 2003-06-06  Mark Mitchell  <mark@codesourcery.com>
4654
4655         * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4656         (elfstab_offset_sections): Likewise.
4657         * gdb-stabs.h (stab_section_info): Likewise.
4658         * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4659         * objfiles.c (objfile_relocate): Likewise.
4660         * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4661         * remote.c (get_offsets): Likewise.
4662         (remote_cisco_objfile_relocate): Likewise.
4663         * somread.c (som_symfile_offsets): Likewise.
4664         * symfile.c (alloc_section_addr_info): New function.
4665         (build_section_addr_info_from_section_tab): Use it.
4666         (free_section_addr_info): Adjust.
4667         (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4668         (syms_from_objfile): Allocate local_addr dynamically.
4669         (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4670         dynamically.
4671         (add_symbol_file_command): Allocate sect_opts dynamically.
4672         (reread_symbols): Avoid use of SECT_OFF_MAX.
4673         * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4674         (alloc_section_addr_info): Declare it.
4675         * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4676         * win32-nat.c (solib_symbols_add): Allocate section_addrs
4677         dynamically.
4678         * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
4679
4680 2003-06-06  Andrew Cagney  <cagney@redhat.com>
4681
4682         * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4683         (d10v_frame_unwind_cache): Do not set "return_pc".
4684
4685 2003-06-06  Michael Snyder  <msnyder@redhat.com>
4686
4687         * h8300-tdep.c: Make tidy (long lines).
4688
4689 2003-06-06  Michal Ludvig  <mludvig@suse.cz>
4690
4691         * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
4692         to regcache_collect().
4693
4694 2003-06-05  J. Brobecker  <brobecker@gnat.com>
4695
4696         * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4697         pc_in_sigtramp multiarch method.
4698         (hppa_hpux_som_init_abi): Use it.
4699         (hppa_hpux_elf_init_abi): Likewise.
4700         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4701         macro has been multiarched.
4702         * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4703         macro here, as hppa64 isn't multiarched yet.
4704
4705 2003-06-05  Andrew Cagney  <cagney@redhat.com>
4706
4707         * Makefile.in (value_h): Add $(frame_h).
4708         * value.h: Include "frame.h".
4709         (struct value): Replace "frame_addr" with "frame_id".
4710         (VALUE_FRAME_ID): Replace VALUE_FRAME.
4711         * values.c (allocate_value): Use VALUE_FRAME_ID.
4712         (value_copy): Use VALUE_FRAME_ID.
4713         * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4714         * valops.c (value_assign): Update.  Use frame_find_by_id.
4715
4716 2003-06-05  Michal Ludvig  <mludvig@suse.cz>
4717
4718         * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4719         in each pass.
4720
4721 2003-06-05  Jeff Johnston  <jjohnstn@redhat.com>
4722
4723         * thread-db.c (check_event): For create/death event breakpoints,
4724         loop through all messages to ensure that we read the message
4725         corresponding to the breakpoint we are at.
4726
4727 2003-06-04  Michael Snyder  <msnyder@redhat.com>
4728
4729         * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4730
4731 2003-06-04  Mark Kettenis  <kettenis@gnu.org>
4732
4733         * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4734         (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4735         (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4736         when handling .eh_frame sections.
4737
4738 2003-06-04  J. Brobecker  <brobecker@gnat.com>
4739
4740         * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4741         prepare_to_proceed procedure instead of the hppa-specific one.
4742         * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4743
4744 2003-06-04  Jeff Johnston  <jjohnstn@redhat.com>
4745
4746         * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4747         * config.in: Regenerated.
4748         * configure.in: Add test for syscall function and check for
4749         __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4750         * configure: Regenerated.
4751         * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4752         <sys/syscall.h>.
4753         (kill_lwp): New function that uses tkill syscall or
4754         uses kill, depending on whether threading model is nptl or not.
4755         All callers of kill() changed to use kill_lwp().
4756         (lin_lwp_wait): Make special check when WIFEXITED occurs to
4757         see if all threads have already exited in the nptl model.
4758         (stop_and_resume_callback): New callback function used by the
4759         lin_lwp_wait thread exit handling code.
4760         (stop_wait_callback): Check for threads already having exited and
4761         delete such threads fromt the lwp list when discovered.
4762         (stop_callback): Don't assert retcode of kill call.
4763
4764         Roland McGrath  <roland@redhat.com>
4765         * i386-linux-nat.c (ps_get_thread_area): New function needed by
4766         nptl libthread_db.
4767
4768 2003-06-03  Richard Henderson  <rth@redhat.com>
4769
4770         * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4771         (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4772         (alpha_sigtramp_frame_prev_register): Likewise.
4773         (alpha_heuristic_frame_prev_register): Likewise.
4774         * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4775
4776         * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
4777         alpha-specific register id names.
4778         (alpha_mdebug_frame_unwind_cache): Likewise.
4779         (alpha_mdebug_frame_prev_register): Likewise.
4780
4781 2003-06-03  Richard Henderson  <rth@redhat.com>
4782
4783         * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4784         * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4785         * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4786         * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4787         unwind routines.
4788         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4789         * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4790         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4791
4792         * alpha-linux-tdep.c: Remove unnecessary includes.
4793         * Makefile.in (alpha-linux-tdep.o): Update.
4794
4795 2003-06-03  Richard Henderson  <rth@redhat.com>
4796
4797         * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4798         (alphabsd_fill_fpreg): Likewise.
4799
4800 2003-06-03  J. Brobecker  <brobecker@gnat.com>
4801
4802         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr):  Replace
4803         references to struct frame_info fields by calls to the equivalent
4804         accessors. Necessary now that frame_info is opaque.
4805
4806 2003-06-03  J. Brobecker  <brobecker@gnat.com>
4807
4808         * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4809         (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4810         structure, field no longer exists.
4811
4812 2003-06-03  J. Brobecker  <brobecker@gnat.com>
4813
4814         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4815         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4816
4817 2003-06-03  J. Brobecker  <brobecker@gnat.com>
4818
4819         * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4820         references to struct frame_info fields by calls to the equivalent
4821         accessors. Necessary now that frame_info is opaque.
4822
4823 2003-06-03  J. Brobecker  <brobecker@gnat.com>
4824
4825         * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4826         (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4827         structure, field no longer exists.
4828
4829 2003-06-03  Theodore A. Roth  <troth@openavr.org>
4830
4831         * remote.c (init_remote_state): Compute sizeof_g_packet by
4832         accumulation of the size of all registers instead of blindly using
4833         DEPRECATED_REGISTER_BYTES.
4834
4835 2003-06-03  Michael Snyder  <msnyder@redhat.com>
4836
4837         * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4838         * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4839         for h8300sx.
4840
4841 2003-06-03  J. Brobecker  <brobecker@gnat.com>
4842
4843         * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4844         * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4845
4846 2003-06-03  Andrew Cagney  <cagney@redhat.com>
4847
4848         * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4849         (sparc_convert_to_raw): Delete function.
4850         (sparc_gdbarch_init): Do not set register_convert_to_raw or
4851         register_convert_to_virtual.
4852
4853 2003-06-03  Jeff Johnston  <jjohnstn@redhat.com>
4854
4855         * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4856         layer if not dealing with a statically-linked threaded program.
4857
4858 2003-06-03  Kris Warkentin  <kewarken@qnx.com>
4859
4860         * solib.c (solib_open): Update comment to reflect actual search order.
4861
4862 2003-06-03  Andrew Cagney  <cagney@redhat.com>
4863
4864         * frame.c (get_frame_memory_signed): New function.
4865         (get_frame_memory, get_frame_memory_unsigned): New function.
4866         (get_frame_arch): New function.
4867         * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4868         (get_frame_memory, get_frame_unsigned_memory): Declare.
4869         * d10v-tdep.c (d10v_frame_unwind_cache): Use
4870         get_frame_memory_unsigned and get_frame_arch.
4871         (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4872
4873 2003-06-03  Raoul Gough  <RaoulGough@yahoo.co.uk>
4874
4875         * MAINTAINERS (write after approval): Add myself.
4876
4877 2003-06-03  Jim Blandy  <jimb@redhat.com>
4878
4879         * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4880         elements of gregset_t are 64 bits each, but access registers
4881         are still 32 bits, so they're packed two per gregset_t
4882         element.  Unpack/pack them properly.
4883
4884 2003-06-02  David Carlton  <carlton@bactrian.org>
4885
4886         * linespec.c (find_methods): Break out code into
4887         add_matching_methods and add_constructors.
4888         (add_matching_methods): New.
4889         (add_constructors): Ditto.
4890
4891 2003-06-02  Andrew Cagney  <cagney@redhat.com>
4892
4893         * sparc-tdep.c (sparc_print_registers): Delete call to
4894         REGISTER_CONVERTIBLE.
4895         (sparc_gdbarch_init): Do not set register_convertible.
4896         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4897         * frv-tdep.c (frv_gdbarch_init): Ditto.
4898         * cris-tdep.c (cris_gdbarch_init): Ditto.
4899
4900 2003-06-02  Elena Zannoni  <ezannoni@redhat.com>
4901
4902         * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
4903         * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4904         (syms_from_objfile): Ditto.
4905
4906 2003-06-03  Andreas Schwab  <schwab@suse.de>
4907
4908         * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4909         (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4910
4911 2003-06-02  Richard Henderson  <rth@redhat.com>
4912
4913         * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4914         a member of all_reggroup.
4915
4916 2003-06-02  Richard Henderson  <rth@redhat.com>
4917
4918         * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4919         (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4920         (alpha_lds, alpha_sts): New.
4921         (alpha_convert_register_p): Change from _register_convertible.
4922         (alpha_register_to_value): Change from _convert_to_virtual;
4923         restructure and fail for type sizes other than 4 or 8.
4924         (alpha_value_to_register): Similarly.
4925         (alpha_extract_return_value): Use alpha_sts.
4926         (alpha_store_return_value): Use alpha_lds.
4927         (alpha_gdbarch_init): Update hooks.
4928
4929 2003-06-02  Richard Henderson  <rth@redhat.com>
4930
4931         * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4932         regnum identifiers.
4933         (alpha_sigtramp_register_address): Likewise.
4934
4935 2003-06-02  Richard Henderson  <rth@redhat.com>
4936
4937         * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4938         (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4939         * alpha-tdep.h: Declare them.
4940
4941         * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4942         Remove zerobuf.  Don't error on UNIQUE.
4943         (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4944         (ALPHA_REGSET_UNIQUE): Provide default.
4945         (supply_gregset): Use alpha_supply_int_regs.
4946         (fill_gregset): Use alpha_fill_int_regs.
4947         (supply_fpregset): Use alpha_supply_fp_regs.
4948         (fill_fpregset): Use alpha_fill_fp_regs.
4949         * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4950         (alphabsd_supply_reg): Use alpha_supply_int_regs.
4951         (alphabsd_fill_reg): Use alpha_fill_int_regs.
4952         (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4953         (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4954         * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4955
4956 2003-06-02  Richard Henderson  <rth@redhat.com>
4957
4958         * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4959
4960         * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4961         (alpha_store_return_value): Likewise.
4962
4963 2003-06-02  David Carlton  <carlton@math.stanford.edu>
4964
4965         * block.c (contained_in): Add 'const' to arguments.
4966         (block_function): Ditto.
4967         * block.h: Update declarations for block_function and
4968         contained_in.
4969
4970 2003-06-02  David Carlton  <carlton@math.stanford.edu>
4971
4972         * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4973         * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4974         * p-valprint.c (pascal_val_print): Ditto.
4975         * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4976
4977 2003-06-02  Richard Henderson  <rth@redhat.com>
4978
4979         * alpha-tdep.c (alpha_push_dummy_call): Use
4980         builtin_type_ieee_double_little instead of builtin_type_double.
4981
4982         * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
4983         sign-extension of 32-bit values.
4984         (alpha_store_return_value): Similarly.
4985
4986         * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4987         (alpha_extract_return_value): Likewise.
4988         (alpha_store_return_value): Likewise.
4989
4990         * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4991         (alpha_store_return_value): Error on IEEE Quad floats.
4992
4993         * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4994         (alpha_extract_struct_value_address): Likewise.
4995         (alpha_store_return_value): Likewise.
4996         (alpha_store_struct_return): Remove.
4997         (alpha_gdbarch_init): Update hook registration to match.
4998
4999         * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5000         deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5001         macros where appropriate.
5002         (alpha_register_convert_to_raw): Similarly.  Use unpack_long.
5003         (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
5004
5005         * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5006         for SP, GP; void_func_ptr for PC; non-language-specific types
5007         for all others.
5008         * alpha-tdep.h (ALPHA_GP_REGNUM): New.
5009
5010 2003-06-02  Richard Henderson  <rth@redhat.com>
5011
5012         * top.h (lim_at_start): Declare.
5013         * main.c (captured_main): Set it.
5014         * top.c (lim_at_start): Define.
5015         (command_loop): Use it instead of &environ.
5016         * event-top.c (command_handler): Likewise.
5017
5018 2003-06-01  Jason Thorpe  <thorpej@wasabisystems.com>
5019
5020         * mipsnbsd-tdep.c: Update copyright years.
5021         (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5022
5023 2003-06-01  Richard Henderson  <rth@redhat.com>
5024
5025         * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5026         (alpha-linux-tdep.o): Update dependencies.
5027         (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5028         * alpha-mdebug-tdep.c: Remove unneeded includes.
5029
5030 2003-06-01  Richard Henderson  <rth@redhat.com>
5031
5032         * alpha-tdep.c (alpha_register_reggroup_p): New.
5033         (alpha_gdbarch_init): Register it.
5034
5035 2003-06-02  Andrew Cagney  <cagney@redhat.com>
5036
5037         * dwarfread.c: Eliminate "register"
5038         (decode_die_type): Eliminate assignment within "if".
5039         (struct_type, decode_array_element_type): Ditto.
5040         (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5041         (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5042         (decode_modified_type, completedieinfo): Ditto.
5043         * block.c: Eliminate "register".
5044         (blockvector_for_pc_sect): Eliminate assignment within "if".
5045         * cp-support.h (struct symbol): Opaque declaration.
5046         * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5047
5048 2003-06-01  Richard Henderson  <rth@redhat.com>
5049
5050         * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5051         (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5052
5053 2003-06-01  Adam Fedor  <fedor@gnu.org>
5054
5055         * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5056         * gdbarch.[ch]: Regenerate.
5057         * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5058         (hppa_gdbarch_init): Set it in the gdbarch vector.
5059         * i386-tdep.c (i386_fetch_pointer_argument): New
5060         (i386_gdbarch_init): Set it into gdbarch.
5061         * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5062         (rs6000_gdbarch_init): Set it in gdbarch.
5063         * sparc-tdep.c (sparc_fetch_pointer_argument): New
5064         (sparc_gdbarch_init): Set it in gdbarch.
5065
5066 2003-06-01  Andrew Cagney  <cagney@redhat.com>
5067
5068         * defs.h (extract_address): Delete declaration.
5069         * findvar.c (extract_address): Delete function.
5070         * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5071         extract_address with the inline equivalent,
5072         extract_unsigned_integer.
5073         (xstormy16_extract_struct_value_address): Ditto.
5074         (xstormy16_pointer_to_address): Ditto.
5075         * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5076         * v850-tdep.c (v850_push_arguments): Ditto.
5077         (v850_extract_return_value): Ditto.
5078         (v850_extract_struct_value_address): Ditto.
5079         * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5080         (sparcnbsd_get_longjmp_target_64): Ditto.
5081         * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5082         (get_longjmp_target): Ditto.
5083         * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5084         (sh64_extract_struct_value_address): Ditto.
5085         (sh_push_arguments): Ditto.
5086         (sh64_push_arguments): Ditto.
5087         * remote-vxsparc.c (vx_read_register): Ditto.
5088         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5089         * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5090         * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5091         * mipsv4-nat.c (get_longjmp_target): Ditto.
5092         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5093         * mips-nat.c (get_longjmp_target): Ditto.
5094         * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5095         * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5096         * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5097         * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5098         * irix5-nat.c (get_longjmp_target): Ditto.
5099         * irix4-nat.c (get_longjmp_target): Ditto.
5100         * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5101         (ia64_push_arguments): Ditto.
5102         * hpux-thread.c (hpux_thread_store_registers): Ditto.
5103         * h8300-tdep.c (h8300_push_arguments): Ditto.
5104         (h8300_store_return_value): Ditto.
5105         (h8300_extract_struct_value_address): Ditto.
5106         * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5107         (frv_push_arguments): Ditto.
5108         * avr-tdep.c (avr_pointer_to_address): Ditto.
5109         (avr_push_arguments): Ditto.
5110         * arm-tdep.c (arm_push_dummy_call): Ditto.
5111         (arm_get_longjmp_target): Ditto.
5112         * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5113         * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5114         (alpha_get_longjmp_target): Ditto.
5115
5116         * solib-irix.c (extract_mips_address): Inline extract_address,
5117         replacing it with extract_signed_integer.
5118         * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5119         (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5120         (first_link_map_member, open_symbol_file_object): Ditto.
5121         (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5122         * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5123         (LM_NEXT, LM_NAME): Ditto.
5124
5125 2003-06-01  Richard Henderson  <rth@redhat.com>
5126
5127         * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5128         * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5129         (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5130         (alpha_cannot_store_register): Likewise.
5131         * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5132         * alpha-nat.c (supply_gregset): Likewise.
5133         * alphanbsd-tdep.c (fetch_core_registers): Likewise.
5134
5135 2003-06-01  Andrew Cagney  <cagney@redhat.com>
5136
5137         * infcall.c (call_function_by_hand): Update comment on
5138         DEPRECATED_DUMMY_WRITE_SP.
5139
5140         * mips-tdep.c (mips_gdbarch_init): Do not set
5141         deprecated_dummy_write_sp.
5142         (mips_eabi_push_dummy_call): Set the SP register.
5143         (mips_o64_push_dummy_call): Set the SP register.
5144         (mips_o32_push_dummy_call): Set the SP register.
5145         (mips_n32n64_push_dummy_call): Set the SP register.
5146
5147 2003-06-01  Richard Henderson  <rth@redhat.com>
5148
5149         * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5150         instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5151         (supply_gregset): Likewise.
5152         * alpha-tdep.c (alpha_store_return_value): Likewise.
5153         (alpha_get_longjmp_target): Likewise.
5154         (alpha_register_name): Constify array.
5155         (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5156         deprecated_register_size, deprecated_register_bytes,
5157         deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5158         * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5159         (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5160
5161 2003-06-01  Richard Henderson  <rth@redhat.com>
5162
5163         * alpha-tdep.c (alpha_push_dummy_call): Store sp.  Tidy copies
5164         from arg_reg_buffer to regcache to avoid double conversion.
5165
5166 2003-06-01  Mark Kettenis  <kettenis@gnu.org>
5167
5168         * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5169         SP_REGNUM.
5170         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5171         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5172
5173 2003-06-01  Richard Henderson  <rth@redhat.com>
5174
5175         * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5176         (decode_frame_entry): Set it.  Skip FDE augmentation.
5177
5178 2003-06-01  Richard Henderson  <rth@redhat.com>
5179
5180         * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5181         not overlapping PC_REGNUM.
5182
5183 2003-06-01  Richard Henderson  <rth@redhat.com>
5184
5185         * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5186         alpha_push_arguments.  Don't dump argument register data to
5187         the target stack.  Fix float and 128-bit long double semantics.
5188         Store $t12 and $ra as specified by the ABI.  Use regcache everywhere.
5189         (alpha_fix_call_dummy): Remove.
5190         (alpha_call_dummy_words): Remove.
5191         (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
5192
5193 2003-06-01  Richard Henderson  <rth@redhat.com>
5194
5195         * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5196
5197 2003-06-01  Andrew Cagney  <cagney@redhat.com>
5198
5199         * mips-tdep.c (is_mips16_addr): New function.
5200         (make_mips16_addr, unmake_mips16_addr): New functions.
5201         (pc_is_mips16, mips_fetch_instruction): Use.
5202         (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5203         (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5204         (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5205         UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5206         TARGET_MIPS.
5207         * config/mips/tm-mips.h: Update copyright.
5208         (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5209         (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5210         (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5211         * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5212         (TM_PRINT_INSN_MACH): Delete.
5213         * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5214
5215         * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5216         mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5217         mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5218         mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5219         mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*.  Delete
5220         mips*tx39*el*-elf*.  Map mips*-sony-* and mips64*-big-* onto
5221         mips64.  Map mips*-dec-*, mips*-big-*, mips*-little-*,
5222         mips*-*-riscos* and mips*-*-sysv* onto mips.
5223         * config/mips/mips64.mt: New file.
5224         * config/mips/mips.mt: New file.
5225         * config/mips/littlemips.mt: Delete file.
5226         * config/mips/decstation.mt: Delete file.
5227         * config/mips/vr4300el.mt: Delete file.
5228         * config/mips/vr5000el.mt: Delete file.
5229         * config/mips/vr5000.mt: Delete file.
5230         * config/mips/vr4100.mt: Delete file.
5231         * config/mips/vr4xxxel.mt: Delete file.
5232         * config/mips/vr4300.mt: Delete file.
5233         * config/mips/vr4xxx.mt: Delete file.
5234         * config/mips/bigmips.mt: Delete file.
5235         * config/mips/bigmips64.mt: Delete file.
5236         * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5237         * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5238         * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5239         * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5240         * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5241         "tm-bigmips.h".
5242         * config/mips/tm-irix3.h: Ditto.
5243         * config/mips/tm-mipsv4.h: Ditto.
5244         * config/mips/tm-embed.h: Ditto.
5245         * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5246         "tm-bigmips64.h".
5247         * config/mips/tm-vr5000el.h: Delete file.
5248         * config/mips/tm-tx39l.h: Delete file.
5249         * config/mips/tm-vr4300el.h: Delete file.
5250         * config/mips/tm-vr4xxxel.h: Delete file.
5251         * config/mips/tm-vr4300.h: Delete file.
5252         * config/mips/tm-vr4100.h: Delete file.
5253         * config/mips/tm-vr4xxx.h: Delete file.
5254         * config/mips/tm-vr5000.h: Delete file.
5255         * config/mips/tm-embedl64.h: Delete file.
5256         * config/mips/tm-embedl.h: Delete file.
5257         * config/mips/tm-embed64.h: Delete file.
5258         * config/mips/tm-bigmips64.h: Delete file.
5259         * config/mips/tm-bigmips.h: Delete file.
5260
5261 2003-06-01  Mark Kettenis  <kettenis@gnu.org>
5262
5263         Fix gdb/1216.
5264         * shnbsd-nat.c: Include "sh-tdep.h".
5265
5266         From Richard Henderson  <rth@redhat.com>:
5267         * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5268
5269 2003-05-31  Andrew Cagney  <cagney@redhat.com>
5270
5271         * mips-tdep.c (set_reg_offset): Add saved_regs parameter.  Add
5272         forward declaration.
5273         (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5274         (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5275         (mips_find_saved_regs): Use set_reg_offset.
5276         (mips_frame_init_saved_regs): Delete function.
5277         (mips_pop_frame): Call mips_find_saved_regs instead of
5278         DEPRECATED_FRAME_INIT_SAVED_REGS.
5279
5280 2003-05-31  Andrew Cagney  <cagney@redhat.com>
5281
5282         * mips-tdep.c (mips_gdbarch_init): Do not set
5283         deprecated_max_register_raw_size, register_virtual_size, and
5284         deprecated_max_register_virtual_size.
5285
5286 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
5287
5288         * i386-tdep.c: Include "dwarf2-frame.h".
5289         (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5290         * Makefile.in (i386-tdep.o): Update dependencies.
5291
5292         * dwarf2-frame.c, dwarf2-frame.h: New files.
5293         * Makefile.in (SFILES): Add dwarf2-frame.c.
5294         (dwarf2_frame_h): Define.
5295         (COMMON_OBS): Add dwarf2-frame.o.
5296         (dwarf2-frame.o): Add dependencies.
5297
5298 2003-05-31  Andreas Jaeger  <aj@suse.de>
5299
5300         * x86-64-linux-nat.c: Fix comment.
5301
5302 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
5303
5304         * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5305         function signature.
5306
5307         * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5308         have a sigcontext_addr handler.
5309         * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5310         sigcontext_addr handler.
5311
5312 2003-05-31  Andrew Cagney  <cagney@redhat.com>
5313
5314         * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5315         (print_fp_register_row): Replace do_fp_register_row.
5316         (mips_print_fp_register): Add "file" and "frame" parameters.
5317         (mips_print_register): Add "file" and "frame" parameters.
5318         (mips_print_registers_info): Replace mips_do_registers_info.
5319         (mips_gdbarch_init): Set print_registers_info instead of
5320         deprecated_do_registers_info.
5321         (mips_read_fp_register_single): Add "frame" parameter.
5322         (mips_read_fp_register_double): Add "frame" parameter.
5323
5324 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
5325
5326         * i386-tdep.c (i386_register_name): Check for MMX registers first.
5327         Fixes a bug where GDB would print the wrong register names for
5328         targets without SSE.
5329
5330         * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5331         (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5332         registers.
5333
5334         * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5335         (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5336         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5337         TDEP->sc_sp_offset.
5338
5339         From Michal Ludvig  <mludvig@suse.cz>:
5340         * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5341         and `sc_num_regs'.
5342         (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5343         I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5344         I386_ST0_REGNUM): Move here from...
5345         * i386-tdep.c: ... here.
5346         (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5347         (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5348         registers if possible.
5349         (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5350         * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5351         Remove variables.
5352         (i386bsd_sc_reg_offset): New variable.
5353         (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5354         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5355         TDEP->sc_sp_offset.
5356         (i386fbsd_sc_reg_offset): New variable.
5357         (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5358         TDEP->sc_num_regs.
5359         (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5360         variables.
5361         (i386fbsd4_sc_reg_offset): New variable.
5362         (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5363         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5364         TDEP->sc_sp_offset.
5365         * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5366         (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5367         * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5368         Remove variables.
5369         (i386nbsd_sc_reg_offset): New variable.
5370         (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5371         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5372         TDEP->sc_sp_offset.
5373         * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5374         Remove variables.
5375         (i386obsd_sc_reg_offset): New variable.
5376         (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5377         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5378         TDEP->sc_sp_offset.
5379         * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5380         i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c.  Add check
5381         for frame pointer offset in `struct sigcontext'.
5382
5383 2003-05-31  Andrew Cagney  <cagney@redhat.com>
5384
5385         * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5386         architecture methods call_dummy_words, sizeof_call_dummy_words,
5387         push_return_address, store_struct_return, and fix_call_dummy.  Set
5388         push_dummy_call instead of deprecated_push_arguments.
5389         (mips_store_struct_return): Delete function.
5390         (mips_fix_call_dummy): Delete function.
5391         (mips_push_return_address): Delete function.
5392         (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5393         RA_REGNUM and T9_REGNUM.
5394         (mips_n32n64_push_dummy_call): Ditto for
5395         mips_n32n64_push_arguments.
5396         (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5397         (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5398
5399 2003-05-31  Andrew Cagney  <cagney@redhat.com>
5400
5401         * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter.  Rename
5402         "dummy_addr" to "bp_addr".
5403         * infcall.c (call_function_by_hand): Pass "funaddr" to
5404         gdbarch_push_dummy_call.
5405         * gdbarch.h, gdbarch.c: Re-generate.
5406         * i386-tdep.c (i386_push_dummy_call): Update.
5407         * arm-tdep.c (arm_push_dummy_call): Update.
5408         * d10v-tdep.c (d10v_push_dummy_call): Update.
5409
5410 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
5411
5412         * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5413         variable declarations.
5414         (x86_64_register_number, x86_64_register_name): Remove prototypes.
5415         (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5416         x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5417         x86_64_init_frame_pc, x86_64_init_frame_pc,
5418         x86_64_function_has_prologue): Remove prototypes.
5419         (X86_64_NUM_GREGS): New define.
5420         (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5421         * x86-64-tdep.c: Don't include "dwarf2cfi.h".  Include
5422         "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5423         (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5424         XMM1_REGNUM): Remove defines.
5425         (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5426         X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5427         X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5428         X86_64_XMM1_REGNUM): New defines.
5429         (struct x86_64_register_info): Renamed from `struct
5430         register_info'.  Remove `size' member.
5431         (x86_64_register_info_table): Remove variable.
5432         (x86_64_register_info): New variable.
5433         (X86_64_NUM_REGS): New define.
5434         (X86_64_NUM_GREGS): Remove define.
5435         (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5436         (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5437         Remove variables.
5438         (x86_54_dwarf2_reg_to_regnum): Remove function.
5439         (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5440         (x86_64_dwarf_reg_to_regnum): New function.
5441         (x86_64_register_name): Rewrite.
5442         (x86_64_register_raw_size): Remove function.
5443         (x86_64_register_byte_table): Remove variable.
5444         (x86_64_register_byte): Remove function.
5445         (x86_64_register_virtual_type): Remove function.
5446         (x86_64_register_type): New function.
5447         (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5448         x86_64_register_convert_to_raw): Remove functions.
5449         (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5450         (x86_64_use_struct_convention): Make static.  Adjust for renamed
5451         defines.
5452         (x86_64_frame_init_saved_regs): Remove function.
5453         (x86_64_push_arguments): Make static.  Change to accept a regcache
5454         as argument.
5455         (x86_64_store_return_value, x86_64_extract_return_value): Make
5456         static.  Rewrite based on i386 counterparts.
5457         (x86_64_push_dummy_call): New function.
5458         (X86_64_NUM_SAVED_REGS): New define.
5459         (x86_64_register_number): Remove function.
5460         (x86_64_store_struct_return): Remove function.
5461         (x86_64_frameless_function_invocation,
5462         x86_64_function_has_prologue): Remove functions.
5463         (PROLOG_BUFSIZE): Remove define.
5464         (struct x86_64_frame_cache): New structure.
5465         (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5466         x86_64_frame_cache, x86_64_frame_this_id,
5467         x86_64_frame_prev_register, x86_64_frame_p,
5468         x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5469         x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5470         functions.
5471         (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5472         variables.
5473         (x86_64_skip_prologue): Rewrite in terms of
5474         x86_64_analyze_prologue.
5475         (x86_64_frame_base_address): New function.
5476         (x86_64_frame_base): New variable.
5477         (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5478         (x86_64_init_abi): Set register_type and push_dummy_call.  Don't
5479         set deprecated_fp_regnum, deprecated_register_size,
5480         deprecated_register_bytes, register_raw_size, register_byte,
5481         register_virtual_type, register_convertiable,
5482         register_convert_to_virtual, convert_to_raw,
5483         deprecated_get_saved_register, deprecated_target_read_fp,
5484         deprecated_push_arguments, deprecated_push_return_address,
5485         deprecated_pop_frame, deprecated_store_struct_return,
5486         deprecated_frame_init_saved_regs, deprecated_frame_chain,
5487         frameless_function_invocation, deprecated_frame_saved_pc,
5488         deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5489         dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5490         deprecated_init_frame_pc and virtual_frame_pointer.  Call
5491         frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5492         and x86_64_frame_p.  Call frame_base_set_default to register
5493         x86_64_frame_base.
5494         (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5495         (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5496         (_initialize_x86_64_tdep): Remove function.
5497         * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5498         (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5499         LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5500         define.
5501         (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5502         (x86_64_linux_sigcontext_addr): Rewrite.
5503         (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5504         x86_64_linux_frame_saved_pc): Remove functions.
5505         (x86_64_linux_pc_in_sigtramp): Renamed from
5506         x86_64_linux_in_sigtramp.  Try harder to recognize a signal
5507         trampoline.
5508         (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5509         Remove_functions.
5510         (x86_64_linux_init_abi): Set pc_in_sigtramp.  Initialize
5511         TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5512         * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5513         (x86_64_regmap): Rename to regmap.
5514         (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5515         x86_64_num_gregs.
5516         (supply_gregset, fill_gregset): Likewise.  Use regmap instead of
5517         x86_64_regmap.
5518         (x86_64_fxsave_offset): Remove function.
5519         (supply_fpregset): Simply call x86_64_supply_fxsave.
5520         (fill_fpregset): Simply call x86_64_fill_fxsave.
5521         (fetch_inferior_registers, store_inferior_registers): Avoid
5522         asignment in if-statement.
5523         (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5524         SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5525         LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5526         (fetch_core_registers): Remove function.
5527         (linux_elf_core_fns): Remove.
5528         (offsetoff): Don't define.
5529         (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5530         * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5531         * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5532         add core-regset.o.
5533         * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5534         protection against multiple includes instead of NM_X86_64_h.  Add
5535         various comments.  Include "config/nm-linux.h".  Don't include
5536         <signal.h>.
5537         (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5538         GET_THREAD_SIGNALS): Remove defines.
5539         (x86_64_register_u_addr, kernel_u_size,
5540         lin_thread_get_thread_signals): Remove prototypes.
5541         (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5542         [HAVE_LINK_H]: Don't include "solib.h".
5543         [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5544         * config/i386/tm-x86-64linux.h: Fix comments.
5545         * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5546         x86-64-tdep.o): Update dependencies.
5547
5548 2003-05-30  Andrew Cagney  <cagney@redhat.com>
5549
5550         * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5551         Change parameter type to a "struct regcache *".
5552
5553         * gdbarch.sh: Regardless of the multi-arch level, always define
5554         the macro when not already defined.
5555         * gdbarch.h, gdbarch.c: Re-generate.
5556
5557 2003-05-30  Richard Henderson  <rth@redhat.com>
5558
5559         * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5560         (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5561         (alpha_mdebug_frame_this_id): Likewise.
5562         (alpha_mdebug_frame_prev_register): Likewise.
5563         (alpha_mdebug_frame_base_address): Likewise.
5564         (alpha_mdebug_frame_locals_address): Likewise.
5565         (alpha_mdebug_frame_args_address): Likewise.
5566         (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5567         * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5568         (alpha_heuristic_frame_unwind_cache): Make static; add missing
5569         loop increment.
5570         (alpha_heuristic_frame_this_id): Make static.
5571         (alpha_heuristic_frame_prev_register): Likewise.
5572         (alpha_heuristic_frame_base_address): Likewise.
5573         * alpha-tdep.h: Update.
5574
5575 2003-05-30  Mark Kettenis  <kettenis@gnu.org>
5576
5577         * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5578         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5579         defenitions.
5580         (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5581         * i386-tdep.c: Mark functions that are 64-bit safe as such.
5582         (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5583         I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5584         I386_ST0_REGNUM): New defines.
5585         (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5586         codestream_get): Remove define.
5587         (codestream_next_addr, condestream_addr, condestream_buf,
5588         codestream_off, codestream_cnt): Remove variables.
5589         (codestream_fill, codestream_seek, codestream_read): Remove
5590         functions.
5591         (i386_follow_jump): Rewrite to avoid usage of removed codestream
5592         functionality.
5593         (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5594         i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5595         i386_frame_saved_pc, i386_saved_pc_after_call,
5596         i386_frame_num_args, i386_frame_init_saved_regs,
5597         i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5598         i386_push_arguments): Remove functions.
5599         (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5600         functionality.  Use i386_analyze_prologue instead of
5601         i386_get_frame_setup.
5602         (I386_NUM_SAVED_REGS): New define.
5603         (struct i386_frame_cache): New structure.
5604         (i386_alloc_frame_cache, i386_analyze_struct_return,
5605         i386_skip_probe, i386_analyze_frame_setup,
5606         i386_analyze_register_saves, i386_analyze_prologue,
5607         i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5608         i386_frame_prev_register, i386_sigtramp_frame_cache,
5609         i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5610         i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5611         i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5612         New functions.
5613         (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5614         New variables.
5615         (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5616         I386_EAX_REGNUM and I386_EDX_REGNUM.
5617         (i386_extract_return_value, i386_store_return_value): Use
5618         I386_ST0_REGNUM where appropriate.
5619         (i386_extract_struct_value_address): Rewrite to use extract_address.
5620         (i386_svr4_pc_in_sigtramp): Add comment.
5621         (i386_svr4_sigcontext_addr): Rewrite.
5622         (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5623         TDEP->sc_sp_offset.
5624         (i386_gdbarch_init): Don't set deprecated_init_frame_pc.  Set
5625         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5626         of new defines.  Set push_dummy_call, don't set
5627         deprecated_push_arguments, deprecated_push_return_address,
5628         deprecated_pop_frame.  Don't set parm_boundary.  Don't set
5629         deprecated_frame_chain, deprecated_frame_saved_pc,
5630         deprecated_saved_pc_after_call.  Set unwind_dummy_id,
5631         save_dummy_frame_tos, unwind_pc.  Call
5632         frame_unwind_append_predicate and frame_base_set_default.  Don't
5633         set deprecated_dummy_write_pc.  Don't set deprecated_fp_regnum.
5634         Don't set frameless_function_invocation.  Don't set
5635         deprecated_register_bytes, deprecated_register_size,
5636         deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5637         * i386-linux-tdep.c: Fix formatting in some comments.
5638         (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5639         LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5640         LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5641         LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5642         LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5643         redundant parentheses.
5644         (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5645         (i386_linux_sigcontext_addr): Use it.  Rewrite.
5646         (find_minsym_and_objfile): Change name of second argument.
5647         (skip_gnu_resolver): Renamed from skip_hurd_resolver.  All callers
5648         changed.  Use frame_pc_unwind instead of
5649         DEPRECATED_SAVED_PC_AFTER_CALL.
5650         (i386_linux_init_abi): Don't set deprecated_register_bytes.
5651         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5652         * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5653         unwinder.
5654         * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5655         "dummy-frame.h".
5656         (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5657         (_initialize_i386_cygwin_tdep): New prototype.
5658         (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5659         deprecated_frame_chain_valid.
5660         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5661         TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5662         Rely on the SVR4 defaults.
5663         * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5664         * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5665
5666 2003-05-30  Andrew Cagney  <cagney@redhat.com>
5667
5668         * infcall.c (call_function_by_hand): Always call
5669         DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5670
5671 2003-05-30  Richard Henderson  <rth@redhat.com>
5672
5673         * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5674         increment.
5675
5676 2003-05-29  Jim Blandy  <jimb@redhat.com>
5677
5678         Use gdbarch methods for solib stuff on PowerPC Linux.
5679         * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5680         SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5681         show through.
5682         * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5683         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5684         giving the same effect as the #definitions above.
5685
5686 2003-05-29  Adam Fedor  <fedor@gnu.org>
5687
5688         * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5689         (find_implementation_from_class): Replace it with the standard
5690         case i.e. do nothing.
5691
5692 2003-05-29  Richard Henderson  <rth@redhat.com>
5693
5694         * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5695         (alpha_linux_sigtramp_offset): Use it.  Make static.
5696         (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5697         update for new frame model.
5698         * alpha-mdebug-tdep.c: New file.
5699         * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5700         (alpha_osf1_init_abi): Install it.
5701         * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5702         (linked_proc_desc_table): Remove.
5703         (alpha_frame_past_sigtramp_frame): Remove.
5704         (alpha_dynamic_sigtramp_offset): Remove.
5705         (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5706         (alpha_proc_desc_is_dyn_sigtramp): Remove.
5707         (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5708         (push_sigtramp_desc): Remove.
5709         (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5710         (alpha_cannot_store_register): Likewise.
5711         (alpha_sigcontext_addr): Remove.
5712         (alpha_find_saved_regs): Remove.
5713         (alpha_frame_init_saved_regs): Remove.
5714         (alpha_init_frame_pc_first): Remove.
5715         (read_next_frame_reg): Remove.
5716         (alpha_frame_saved_pc): Remove.
5717         (alpha_saved_pc_after_call): Remove.
5718         (temp_proc_desc, temp_saved_regs): Remove.
5719         (alpha_about_to_return): Remove.
5720         (cached_proc_desc): Remove.
5721         (alpha_frame_chain): Remove.
5722         (alpha_print_extra_frame_info): Remove.
5723         (alpha_init_extra_frame_info): Remove.
5724         (alpha_frame_locals_address): Remove.
5725         (alpha_frame_args_address): Remove.
5726         (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5727         (alpha_push_dummy_frame): Remove.
5728         (alpha_pop_frame): Remove.
5729         (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5730         (alpha_read_insn): New.
5731         (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5732         for different insn encodings.
5733         (alpha_in_lenient_prologue): Remove.
5734         (struct alpha_sigtramp_unwind_cache): New.
5735         (alpha_sigtramp_frame_unwind_cache): New.
5736         (alpha_sigtramp_register_address): New.
5737         (alpha_sigtramp_frame_this_id): New.
5738         (alpha_sigtramp_frame_prev_register): New.
5739         (alpha_sigtramp_frame_unwind): New.
5740         (alpha_sigtramp_frame_p): New.
5741         (struct alpha_heuristic_unwind_cache): New.
5742         (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5743         don't count nop insns that occur between functions.
5744         (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5745         heuristic_proc_desc, but without the mdebug wrapping.
5746         (alpha_heuristic_frame_this_id): New.
5747         (alpha_heuristic_frame_prev_register): New.
5748         (alpha_heuristic_frame_unwind): New.
5749         (alpha_heuristic_frame_p): New.
5750         (alpha_heuristic_frame_base_address): New.
5751         (alpha_heuristic_frame_base): New.
5752         (alpha_unwind_dummy_id): New.
5753         (alpha_unwind_pc): New.
5754         (alpha_gdbarch_init): Don't set skip_sigtramp_frame.  Kill use of
5755         frame related deprecated initializations; install replacements.
5756         (alpha_dump_tdep): Remove.
5757         * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5758         (alpha_read_insn, alpha_after_prologue,
5759         alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5760         alpha_heuristic_frame_prev_register,
5761         alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5762         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5763         * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5764         * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5765
5766 2003-05-29  Andrew Cagney  <cagney@redhat.com>
5767
5768         * gdb_assert.h (gdb_assert_fail): Provide different definitions
5769         dependant on the availability of ASSERT_FUNCTION.
5770         (ASSERT_FUNCTION): Do not define when there is no function name.
5771
5772 2003-05-29  Kevin Buettner  <kevinb@redhat.com>
5773
5774         From Jimi X <jimix@watson.ibm.com>:
5775         * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5776
5777 2003-05-28  Jim Blandy  <jimb@redhat.com>
5778
5779         * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5780         argument to ptrace to int; the system headers should give it the
5781         right type, and pointers don't fit in ints on powerpc64-*-*.
5782
5783 2003-05-28  H.J. Lu <hongjiu.lu@intel.com>
5784
5785         * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5786         DW_TAG_catch_block.
5787
5788 2003-05-26  Elena Zannoni  <ezannoni@redhat.com>
5789
5790         * stabsread.c (dbx_lookup_type): Make static.
5791         (read_type): Ditto.
5792         (add_undefined_type): Ditto.
5793         * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5794         not export.
5795
5796 2003-05-26  Elena Zannoni  <ezannoni@redhat.com>
5797
5798         * hpread.c (hpread_has_name): Make static.
5799         (hpread_psymtab_to_symtab): Ditto.
5800         (file_exists): Ditto.
5801         (hpread_call_pxdb): Ditto.
5802         (hpread_pxdb_needed): Ditto.
5803         (hpread_quick_traverse): Ditto.
5804         (hpread_get_header): Ditto.
5805         (hpread_get_lntt): Ditto.
5806         (hpread_get_slt): Ditto.
5807         (class_of): Ditto.
5808
5809 2003-05-25  Andreas Schwab  <schwab@suse.de>
5810
5811         * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5812         stack_align and deprecated_extra_stack_alignment_needed.
5813         (m68k_stack_align): Delete.
5814
5815         * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5816         (m68k_register_virtual_size): Likewise.
5817         (altos_skip_prologue): Remove obsolete function.
5818         (isi_frame_num_args): Likewise.
5819         (news_frame_num_args): Likewise.
5820         (m68k_fix_call_dummy): Make static.
5821         (m68k_push_dummy_frame): Likewise.
5822         (m68k_pop_frame): Likewise.
5823         (m68k_skip_prologue): Likewise.
5824         (m68k_frame_init_saved_regs): Likewise.
5825         (m68k_saved_pc_after_call): Likewise.
5826         (m68k_get_longjmp_target): Make multi-arch.
5827         (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5828         structure.  Register m68k_get_longjmp_target if enabled.
5829         * m68k-tdep.h (struct gdbarch_tdep): Define.
5830         * config/m68k/tm-m68k.h: Don't include "regcache.h".
5831
5832         * Makefile.in (config.status): Also depend on configure.tgt
5833         and configure.host.
5834         (m68klinux-tdep.o): Update dependencies.
5835         * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5836         * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5837         (M68K_LINUX_JB_PC): Define.
5838         (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5839         and take additional parameter.
5840         (m68k_linux_sigtramp_saved_pc): Update.
5841         (m68k_linux_init_abi): Set jb_pc and jb_elt_size.  Register
5842         m68k_linux_pc_in_sigtramp, in_plt_section,
5843         find_solib_trampoline_target.
5844         * config/m68k/tm-linux.h: Don't include any tm headers.
5845         (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5846         (JB_ELEMENT_SIZE): Likewise.
5847         (JB_PC): Likewise.
5848         (GET_LONGJMP_TARGET): Likewise.
5849         (IN_SIGTRAMP): Likewise.
5850         (SVR4_SHARED_LIBS): Define this and include "solib.h".
5851
5852 2003-05-25  Mark Kettenis  <kettenis@gnu.org>
5853
5854         * sparc-tdep.c (sparc32_do_push_arguments): New function.
5855         (sparc32_push_arguments): Re-implement by calling
5856         sparc32_do_push_arguments.
5857
5858 2003-05-25  Mark Kettenis  <kettenis@gnu.org>
5859
5860         * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5861         SPARC_O1_REGNUM): New defines.
5862         (sparc32_extract_return_value): Rewrite to operate on a regcache.
5863         (sparc32_store_return_value): New function.
5864         (sparc_extract_struct_value_address): Rewrite to operate on a
5865         regcache.
5866         (sparc_gdbarch_init): Don't set
5867         deprecated_extract_struct_value_address.  Set
5868         extract_struct_value_address instead. Don't set
5869         deprecated_extract_return_value and deprecated_store_return_value
5870         for 32-bit targets.  Set extract_return_value and
5871         store_return_value instead.
5872         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5873         DEPRECTAED_EXTRACT_RETURN_VALUE,
5874         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5875         (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5876         EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5877         (sparc_store_return_value): Remove prototype.
5878         (sparc32_store_return_value): New prototype.
5879         (sparc32_extract_return_value, sparc_extract_struct_value_address):
5880         Adjust prototypes.
5881
5882 2003-05-24  Mark Kettenis  <kettenis@gnu.org>
5883
5884         * sparcnbsd-tdep.c: Include "gdb_string.h".
5885
5886 2003-05-23  Andrew Cagney  <cagney@redhat.com>
5887
5888         * p-valprint.c (pascal_val_print): Replace extract_address with
5889         the inline equivalent extract_unsigned_integer.
5890         * jv-valprint.c (java_value_print): Ditto.
5891         * ada-valprint.c (ada_val_print_1): Ditto.
5892         * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5893
5894 2003-05-23  Theodore A. Roth  <troth@openavr.org>
5895
5896         * blockframe.c (frameless_look_for_prologue): Remove unused
5897         after_prologue variable.
5898
5899 2003-05-23  Mark Kettenis  <kettenis@gnu.org>
5900
5901         * blockframe.c (get_pc_function_start): Rewrite to avoid
5902         asignments in if-statements.
5903
5904 2003-05-23  Raoul Gough  <RaoulGough@yahoo.co.uk>
5905
5906         Committed by Elena Zannoni  <ezannoni@redhat.com>.
5907         * coffread.c(coff_symtab_read): Do relocate static symbols from PE
5908         files, don't relocate absolute symbols (and do use mst_abs).
5909
5910 2003-05-23  Andrew Cagney  <cagney@redhat.com>
5911
5912         * objc-lang.c: Include "gdb_assert.h".
5913         (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5914         (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5915         (gdb_check, gdb_check_fatal): Delete functions.
5916         (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5917         gdb_assert.
5918         (parse_selector, parse_method, find_methods, find_imps): Ditto.
5919         * Makefile.in (objc-lang.o): Update dependencies.
5920
5921 2003-05-22  Ian Lance Taylor  <ian@airs.com>
5922
5923         * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5924         with fprintf_filtered, not fprintf_unfiltered.
5925
5926 2003-05-22  Andrew Cagney  <cagney@redhat.com>
5927
5928         * stack.c (frame_info): Inline extract_address, replacing it with
5929         extract_unsigned_integer.
5930         * findvar.c (unsigned_pointer_to_address): Ditto.
5931         * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5932         * dwarf2expr.c (dwarf2_read_address): Ditto.
5933         * frame.c (frame_pc_unwind): Update comment.
5934         * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5935
5936 2003-05-22  Jeff Johnston  <jjohnstn@redhat.com>
5937
5938         * infptrace.c (detach): Call print_sys_errmsg rather than
5939         perror_with_name to issue warning message when errno is non-zero
5940         after calling ptrace detach.
5941
5942 2003-05-21  J. Brobecker  <brobecker@gnat.com>
5943
5944         * config/pa/tm-hppa.h: Delete some unused macros. Move some
5945         macro definitions from here...
5946         * hppa-tdep.c: ...to there.
5947
5948 2003-05-20  Kevin Buettner  <kevinb@redhat.com>
5949
5950         * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5951         register_ptrace_addr().  Fix all callers.
5952
5953 2003-05-21  Andreas Schwab  <schwab@suse.de>
5954
5955         * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5956         dependencies.
5957         * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5958         end.
5959         * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5960         (_initialize_m68k_linux_tdep): New function.
5961         (m68k_linux_frame_saved_pc): Make static.
5962         (m68k_linux_extract_return_value): Likewise.
5963         (m68k_linux_store_return_value): Likewise.
5964         (m68k_linux_extract_struct_value_address): Likewise.
5965         * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5966         Remove.
5967         (DEPRECATED_STORE_RETURN_VALUE): Remove.
5968         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5969         (DEPRECATED_FRAME_SAVED_PC): Remove.
5970
5971 2003-05-20  Kris Warkentin  <kewarken@qnx.com>
5972
5973         * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5974         regset numbering rather than our own.
5975
5976 2003-05-19  David Carlton  <carlton@bactrian.org>
5977
5978         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5979
5980 2003-05-19  David Carlton  <carlton@bactrian.org>
5981
5982         Partial fix for PR c++/827.
5983         * cp-support.h: Include symtab.h.
5984         Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5985         * cp-namespace.c: Update contributors.
5986         (cp_lookup_symbol_nonlocal): New.
5987         (lookup_namespace_scope, cp_lookup_symbol_namespace)
5988         (lookup_symbol_file): Ditto.
5989         * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5990         * block.h: Declare block_scope, block_using, block_global_block.
5991         * block.c (block_scope): New.
5992         (block_using, block_global_block): Ditto.
5993         * Makefile.in (cp_support_h): Depend on symtab_h.
5994         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5995
5996 2003-05-19  David Carlton  <carlton@bactrian.org>
5997
5998         * language.h (struct language_defn): Add 'la_value_of_this'
5999         and 'la_lookup_symbol_nonlocal' members.
6000         * symtab.h: Declare basic_lookup_symbol_nonlocal,
6001         lookup_symbol_static, lookup_symbol_global,
6002         lookup_symbol_aux_block.
6003         * symtab.c (lookup_symbol_aux): Call language hooks to determine
6004         if we should search fields of this and how to do static/global
6005         lookup.
6006         (lookup_symbol_aux_block): Make extern.
6007         (basic_lookup_symbol_nonlocal): New.
6008         (lookup_symbol_static, lookup_symbol_global): Ditto.
6009         * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6010         'la_lookup_symbol_nonlocal' members.
6011         * c-lang.c (c_language_defn, cplus_language_defn)
6012         (asm_language_defn, minimal_language_defn): Ditto.
6013         * jv-lang.c (java_language_defn): Ditto.
6014         * language.c (unknown_language_defn, auto_language_defn)
6015         (local_language_defn): Ditto.
6016         * m2-lang.c (m2_language_defn): Ditto.
6017         * objc-lang.c (objc_language_defn): Ditto.
6018         * scm-lang.c (scm_language_defn): Ditto.
6019         * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6020         * p-lang.c (pascal_language_defn): Ditto for both.
6021         * Makefile.in (f-lang.o): Depend on value_h.
6022         (p-lang.o): Ditto.
6023
6024 2003-05-19  David Carlton  <carlton@bactrian.org>
6025
6026         * block.h: Declare block_static_block.
6027         * block.c (block_static_block): New.
6028         * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6029         lookup_symbol_aux_local, calling block_static_block instead.
6030         (lookup_symbol_aux_local): Delete 'static_block' argument.
6031
6032 2003-05-19  David Carlton  <carlton@bactrian.org>
6033
6034         * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6035
6036 2003-05-19  Michal Ludvig  <mludvig@suse.cz>
6037
6038         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6039         register numbers mapping.
6040
6041 2003-05-18  Adam Fedor  <fedor@gnu.org>
6042
6043         * symtab.c (completion_list_objc_symbol): New function.
6044         (make_symbol_completion_list): Use it to add ObjC symbols
6045         when looking though the list.
6046         (language_search_unquoted_string): New function.
6047         (make_file_symbol_completion_list): Use it.
6048
6049 2003-05-18  Andreas Schwab  <schwab@suse.de>
6050
6051         * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6052         dependencies.
6053         * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6054         as m68k_linux_extract_return_value.
6055         (DEPRECATED_STORE_RETURN_VALUE): Define as
6056         m68k_linux_store_return_value.
6057         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6058         m68k_linux_extract_struct_value_address.
6059         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6060         get_next_frame, get_frame_base, get_frame_pc.
6061         (m68k_linux_frame_saved_pc): Use get_frame_base.
6062         (m68k_linux_extract_return_value): New function.
6063         (m68k_linux_store_return_value): New function.
6064         (m68k_linux_extract_struct_value_address): New function.
6065         * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6066
6067         * c-exp.y (typebase): Remove duplicate occurence of
6068         `SIGNED_KEYWORD LONG LONG'.  Use builtin_type_long_long instead
6069         of lookup_signed_typename.
6070
6071 2003-05-18  Mark Kettenis  <kettenis@gnu.org>
6072
6073         * dwarf2loc.c (find_location_expression): Change type of second
6074         argument to `size_t *'.
6075         (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6076         for size variable.
6077
6078 2003-05-18  David Carlton  <carlton@bactrian.org>
6079
6080         * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6081         'linkage_name'.  Add comment.
6082         (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6083         'linkage_name'.
6084         (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6085         (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6086         (lookup_block_symbol): Ditto.
6087
6088 2003-05-16  Andrew Cagney  <cagney@redhat.com>
6089
6090         * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6091         * gdbarch.h, gdbarch.c: Re-generate.
6092         * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6093         * TODO (REGISTER_BYTES): Delete reference.
6094         * alpha-tdep.c (alpha_gdbarch_init): Update.
6095         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6096         * x86-64-tdep.c (x86_64_init_abi): Update.
6097         * vax-tdep.c (vax_gdbarch_init): Update.
6098         * v850-tdep.c (v850_gdbarch_init): Update.
6099         * sparc-tdep.c (sparc_gdbarch_init): Update.
6100         * sh-tdep.c (sh_gdbarch_init): Update.
6101         * s390-tdep.c (s390_gdbarch_init): Update.
6102         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6103         * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6104         (ns32k_gdbarch_init_32382): Update.
6105         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6106         * mcore-tdep.c (mcore_gdbarch_init): Update.
6107         * m68k-tdep.c (m68k_gdbarch_init): Update.
6108         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6109         * ia64-tdep.c (ia64_gdbarch_init): Update.
6110         * i386-tdep.c (i386_gdbarch_init): Update.
6111         * i386-linux-tdep.c (i386_linux_init_abi): Update.
6112         * hppa-tdep.c (hppa_gdbarch_init): Update.
6113         * h8300-tdep.c (h8300_gdbarch_init): Update.
6114         * frv-tdep.c (frv_gdbarch_init): Update.
6115         * cris-tdep.c (cris_gdbarch_init): Update.
6116         * avr-tdep.c (avr_gdbarch_init): Update.
6117         * arm-tdep.c (arm_gdbarch_init): Update.
6118         * sparc-tdep.c (sparc_pop_frame): Update.
6119         * rs6000-tdep.c (rs6000_pop_frame): Update.
6120         * remote.c (init_remote_state): Update.
6121         (remote_prepare_to_store): Update.
6122         * remote-vx.c (vx_prepare_to_store): Update.
6123         * remote-sds.c (sds_fetch_registers): Update.
6124         (sds_prepare_to_store): Update.
6125         * remote-array.c: Update.
6126         * regcache.c (init_legacy_regcache_descr): Update.
6127         (init_regcache_descr): Update.
6128         * mips-tdep.c (mips_eabi_extract_return_value): Update.
6129         (mips_o64_extract_return_value): Update.
6130         * irix5-nat.c (fetch_core_registers): Update.
6131         * irix4-nat.c (fetch_core_registers): Update.
6132         * i386-tdep.h: Update.
6133         * hppa-tdep.c (pa_do_registers_info): Update.
6134         (pa_do_strcat_registers_info): Update.
6135         * cris-tdep.c (cris_register_bytes_ok): Update.
6136         * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6137         * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6138         * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6139         * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6140         * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6141         * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6142         * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6143         * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6144         * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6145         * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6146         * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6147         * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6148         (REGISTER_BYTES_OK): Update.
6149         * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6150         * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6151
6152 2003-05-16  Ian Lance Taylor  <ian@airs.com>
6153
6154         * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6155         (vax_print_insn, print_insn_arg): Remove static functions.
6156         (vax_gdbarch_init): Call set_gdbarch_print_insn with
6157         print_insn_vax from opcodes library.
6158         (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6159
6160 2003-05-15  Andrew Cagney  <cagney@redhat.com>
6161
6162         * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6163         * target.h (memory_breakpoint_from_pc): Delete declaration.
6164         * mem-break.c (memory_breakpoint_from_pc): Delete function.
6165         * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6166         * monitor.c (monitor_insert_breakpoint): Use
6167         gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6168         * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6169         * gdbarch.h, gdbarch.c: Re-generate.
6170         * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6171         (sparc_gdbarch_init): Set breakpoint_from_pc to
6172         sparc_breakpoint_from_pc.
6173         * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6174         (BREAKPOINT_FROM_PC): Define.
6175         (sparc_breakpoint_from_pc): Declare.
6176         * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6177         * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6178         (BREAKPOINT_FROM_PC): Define.
6179         (BREAKPOINT): Delete macro.
6180         * target.h: Update comment.
6181         * s390-tdep.c (s390_gdbarch_init): Update comments.
6182         * remote.c: Update comments.
6183         * remote-mips.c: Update comments.
6184         * proc-api.c (write_with_trace): Do not check for a breakpoint.
6185         * mem-break.c: Update comment.
6186         * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6187         (ia64_memory_insert_breakpoint): Update.
6188         * config/sparc/tm-sparc.h: Update comment.
6189         * config/pa/tm-hppa64.h: Update comment.
6190         * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6191         (rs6000_breakpoint_from_pc): Update.
6192         * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6193         (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6194         (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6195         (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6196         (mips_breakpoint_from_pc): Update.
6197         (mips_dump_tdep): Update.
6198
6199         * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6200         * minsyms.c (lookup_minimal_symbol): Inline
6201         DEPRECATED_SYMBOL_MATCHES_NAME.  Replace STREQ with strcmp.
6202
6203         * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6204         * p-valprint.c (pascal_object_print_value_fields): Ditto.
6205         * p-lang.c (pascal_printstr): Ditto.
6206         * objc-lang.c (objc_printstr): Ditto.
6207         * m2-lang.c (m2_printstr): Ditto.
6208         * jv-valprint.c (java_print_value_fields): Ditto.
6209         * f-lang.c (f_printstr): Ditto.
6210         * cp-valprint.c (cp_print_value_fields): Ditto.  Include "valprint.h".
6211         * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6212         for repeat_count_threshold.
6213         * Makefile.in (cp-valprint.o): Update dependencies.
6214
6215 2003-05-15  Jeff Johnston  <jjohnstn@redhat.com>
6216
6217         * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6218         (examine_prologue): Support looking through leaf functions, knowing
6219         they start with mov r2,r12.  Support skipping over indirect stores
6220         of the input registers.  Upon hitting a non-nop branch instruction
6221         or predicated instruction, bail out by setting lim_pc to the current
6222         pc value in the loop.  At the end, if the lim_pc value is still
6223         beyond our calculated value and we have trust_limit set,
6224         use the lim_pc value.
6225
6226 2003-05-15  Andrew Cagney  <cagney@redhat.com>
6227
6228         * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6229         generic_find_dummy_frame.
6230         * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6231         (deprecated_generic_find_dummy_frame): Update.
6232         (deprecated_read_register_dummy): Update.
6233         * frame.c (deprecated_generic_get_saved_register): Update.
6234
6235 2003-05-15  Theodore A. Roth  <troth@openavr.org>
6236
6237         * avr-tdep.c (avr_breakpoint_from_pc): New function.
6238         (avr_gdbarch_init): Set breakpoint_from_pc method.
6239
6240 2003-05-15  Andrew Cagney  <cagney@redhat.com>
6241
6242         * regcache.c (build_regcache): Set deprecated_register_valid
6243         directly.
6244         (deprecated_grub_regcache_for_register_valid): Delete function.
6245         * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6246         declaration.
6247
6248 2003-05-15  David Carlton  <carlton@bactrian.org>
6249
6250         Committed by Elena Zannoni <ezannoni@redhat.com>
6251         * symtab.c (lookup_symbol_aux): Delete calls to
6252         lookup_symbol_aux_minsyms.
6253         (lookup_symbol_aux_minsyms): Comment out function and
6254         prototype. Delete lookup by mangled name.
6255
6256 2003-05-14  Kevin Buettner  <kevinb@redhat.com>
6257
6258         * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6259         correctly indicate an empty stack and ``stack_allocated'' to the
6260         indicate the number of elements initially allocated.
6261         (dwarf_expr_grow_stack): Simplify method for computing new
6262         stack size.  Don't loop infinitely if ``stack_len'' is zero.
6263         (execute_stack_op): Move ``ctx->in_reg'' initialization
6264         out of loop.  Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6265         be used in conjuction with DW_OP_piece.  Revise error message
6266         accordingly.
6267
6268 2003-05-14  Theodore A. Roth  <troth@openavr.org>
6269
6270         * MAINTAINERS: Update my email address.
6271         * avr-tdep.c: Ditto.
6272
6273 2003-05-14  Elena Zannoni  <ezannoni@redhat.com>
6274
6275         * symtab.h (enum domain_enum): Rename from namespace_enum.
6276         (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6277         VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6278         Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6279         LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6280         TYPES_NAMESPACE, METHODS_NAMESPACE.
6281         (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6282         (struct symbol, struct partial_symbol): Rename field
6283         'namespace_enum namespace' to 'domain_enum domain'.
6284         (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6285         Delete old define kludge for namespace.
6286
6287         * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6288         blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6289         dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6290         gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6291         language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6292         mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6293         p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6294         stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6295         valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6296         occurrences of the above.
6297
6298 2003-05-14  Ian Lance Taylor  <ian@airs.com>
6299
6300         * Makefile.in (install-only): Use $(SHELL) when running
6301         mkinstalldirs.
6302
6303 2003-05-13  Ian Lance Taylor  <ian@airs.com>
6304
6305         * MAINTAINERS (write after approval): Add myself.
6306
6307         * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6308         second and third arguments.
6309         * ser-tcp.c (_initialize_ser_tcp): Likewise.
6310         * ser-unix.c (_initialize_ser_hardwire): Likewise.
6311
6312 2003-05-13  Andrew Cagney  <cagney@redhat.com>
6313
6314         * defs.h (store_address): Delete declaration.
6315         findvar.c (store_address): Delete function.
6316         * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6317         store_unsigned_integer.
6318         * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6319         * v850-tdep.c (v850_push_arguments): Ditto.
6320         * sparc-tdep.c (sparc_get_saved_register): Ditto.
6321         * sh-tdep.c (sh64_get_saved_register): Ditto.
6322         * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6323         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6324         * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6325         (mips_get_saved_register): Ditto.
6326         * ia64-tdep.c (ia64_get_saved_register): Ditto.
6327         (find_func_descr, ia64_push_arguments): Ditto.
6328         * i386-tdep.c (i386_push_arguments): Ditto.
6329         * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6330         * frv-tdep.c (frv_push_arguments): Ditto.
6331         * frame.c (legacy_saved_regs_prev_register): Ditto.
6332         (deprecated_generic_get_saved_register): Ditto.
6333         * findvar.c (unsigned_address_to_pointer): Ditto.
6334         * dwarf2read.c (dwarf2_const_value): Ditto.
6335         * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6336         * alpha-tdep.c (alpha_push_arguments): Ditto.
6337
6338 2003-05-12  J. Brobecker  <brobecker@gnat.com>
6339
6340         * NEWS: Mention that the hppa-hpux port has been partially
6341         multiarched (32bit ABIT only, so far).
6342
6343 2003-05-11  Andrew Cagney  <cagney@redhat.com>
6344
6345         * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6346         * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6347         include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6348         sim/testsuite/sim/arm/misaligned2.ms, and
6349         sim/testsuite/sim/arm/misaligned3.ms.
6350         * disasm.h (struct ui_file): Add opaque struct declaration.
6351         * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6352         * frame.h (struct ui_file): Ditto.
6353
6354 2003-05-11  Mark Kettenis  <kettenis@gnu.org>
6355
6356         * value.h: Pretty print.
6357
6358 2003-05-10  Mark Kettenis  <kettenis@gnu.org>
6359
6360         * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6361
6362 2003-05-08  Andrew Cagney  <cagney@redhat.com>
6363
6364         * regcache.h (max_register_size): Delete declaration.
6365         * regcache.c (max_register_size): Delete function.
6366         (struct regcache_descr): Delete field "max_register_size".
6367         (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6368         registers fit in MAX_REGISTER_SIZE.
6369         (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6370         (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6371         * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6372         * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6373         * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6374         * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6375         * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6376         * dve3900-rom.c, hppa-tdep.c: Ditto.
6377
6378 2003-05-08  David Carlton  <carlton@math.stanford.edu>
6379
6380         * valops.c (push_word): Fix typo.
6381
6382 2003-05-08  Andrew Cagney  <cagney@redhat.com>
6383
6384         * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6385         * gdbarch.h: Re-generate.
6386         * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6387         (legacy_max_register_raw_size): Delete declaration.
6388         * regcache.c (legacy_max_register_raw_size): Delete function.
6389         * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6390         * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6391         * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6392         * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6393         * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6394         * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6395         * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6396         * findvar.c, dwarf2cfi.c: Ditto.
6397
6398 2003-05-08  Andrew Cagney  <cagney@redhat.com>
6399
6400         * mips-tdep.c (read_signed_register): New function, moved to here
6401         from "regcache.c".
6402         (read_signed_register_pid): Ditto.
6403         * regcache.c (read_signed_register_pid): Delete function, moved to
6404         "mips-tdep.c".
6405         (read_signed_register): Ditto.
6406         * regcache.h (read_signed_register): Delete declaration.
6407         (read_signed_register_pid): Delete declaration.
6408
6409 2003-05-08  Andrew Cagney  <cagney@redhat.com>
6410
6411         * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6412         * gdbarch.h: Re-generate.
6413         * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6414         (legacy_max_register_virtual_size): Delete declaration.
6415         * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6416         * d10v-tdep.c (d10v_print_registers_info): Ditto.
6417         * tracepoint.c (memrange_sortmerge): Ditto.
6418         * sparc-tdep.c (sparc_print_registers): Ditto.
6419         * regcache.c (legacy_max_register_virtual_size): Delete function.
6420
6421 2002-05-08  J. Brobecker  <brobecker@gnat.com>
6422
6423         * fork-child.c (escape_bang_in_quoted_argument): New function.
6424         (fork_inferior): Escape '!' characters in quoted arguments
6425         only when needed.
6426
6427 2003-05-08  J. Brobecker  <brobecker@gnat.com>
6428
6429         * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6430         the language of the CU is not currently supported by GDB.
6431
6432 2003-05-08  J. Brobecker  <brobecker@gnat.com>
6433
6434         * defs.h (language): Add language_minimal enum value.
6435         * c-lang.c (minimal_language_defn): New language definition.
6436         (_initialize_c_language): Add the new minimal language to the list
6437         of languages known to GDB.
6438
6439 2003-05-08  Kevin Buettner  <kevinb@redhat.com>
6440
6441         * frame.c (get_frame_type): Don't attempt to lazily initialize
6442         frame's unwinder for legacy frames.
6443
6444 2003-05-07  Andrew Cagney  <cagney@redhat.com>
6445
6446         * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6447         and "regcache" parameters.
6448         * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6449
6450 2003-05-07  Jeff Johnston  <jjohnstn@redhat.com>
6451
6452         * dwarf2read.c (dwarf_decode_lines): Only use output of
6453         check_cu_functions() when calling record_line().  Do not update
6454         the current address.
6455
6456 2003-05-07  Andrew Cagney  <cagney@redhat.com>
6457
6458         * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6459         code.
6460
6461 2003-05-07  Jim Blandy  <jimb@redhat.com>
6462
6463         Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6464         'maint info symtabs' and 'maint info psymtabs'.
6465         * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6466         Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6467         * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6468         Declarations updated.
6469         * maint.c (maintenance_list_command): Delete.
6470         (_initialize_maint_cmds): Update calls to add_cmd.
6471         * gdbcmd.h (maintenancelistlist): Delete declaration.
6472         * cli/cli-cmds.c (maintenancelistlist): Delete.
6473         (init_cmd_lists): Don't initialize it.
6474         * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6475
6476 2003-05-07  Andrew Cagney  <cagney@redhat.com>
6477
6478         * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6479         "regcache".
6480         (d10v_print_registers_info): Update.
6481         (d10v_dmap_register, d10v_imap_register): Delete functions.
6482         (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6483         and "imap_register".
6484         (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6485         (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6486         * arch-utils.c (generic_remote_translate_xfer_address): Add
6487         "regcache" and "gdbarch" parameters.
6488         * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6489         parameter.  Change class to multi-arch.
6490         * gdbarch.h, gdbarch.c: Re-generate.
6491         * remote.c (remote_xfer_memory): Use
6492         gdbarch_remote_translate_xfer_address.
6493
6494 2003-05-07  Jeff Johnston  <jjohnstn@redhat.com>
6495
6496         * infrun.c (prev_pc): Move declaration ahead of proceed().
6497         (proceed): Refresh prev_pc value before resuming.
6498         (stop_stepping): Remove code to refresh prev_pc.
6499
6500 2003-05-06  Kris Warkentin <kewarken@qnx.com>
6501
6502         * nto-tdep.c: Removed stray comment.
6503
6504 2003-05-06  Kris Warkentin <kewarken@qnx.com>
6505
6506         * i386-nto-tdep.c: Fix old K&R function definitions.
6507         * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6508         Also change add_show_from_set() call to add_setshow_cmd().
6509         * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6510
6511 2003-05-05  Andrew Cagney  <cagney@redhat.com>
6512
6513         * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6514         (fprint_dummy_frames): New function.
6515         (maintenance_print_dummy_frames): New function.
6516         (_initialize_dummy_frame): Add command "maint print dummy-frames".
6517         * frame.c (fprint_frame_id): Make global.
6518         * frame.h (fprint_frame_id): Declare.
6519         * Makefile.in (dummy-frame.o): Update dependencies.
6520
6521 2003-05-05  Andrew Cagney  <cagney@redhat.com>
6522
6523         * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6524         (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6525         SIZEOF_CALL_DUMMY_WORDS.
6526         (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6527         (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6528         (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6529         CALL_DUMMY_BREAKPOINT_OFFSET.
6530         (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6531         CALL_DUMMY_START_OFFSET.
6532         (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6533         * gdbarch.h, gdbarch.c: Re-generate.
6534         * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6535         * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6536         * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6537         * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6538         * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6539         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6540         * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6541         * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6542         * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6543         * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6544         * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6545         * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6546         * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6547         * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6548         * config/sparc/tm-sparc.h: Update.
6549
6550 2003-05-05  Kris Warkentin <kewarken@qnx.com>
6551
6552         * configure.tgt: Add i[3456]86-*-nto*.
6553         * i386-nto-tdep.c: New file.  i386 specific support for QNX Neutrino.
6554         * nto-tdep.c: New file. Neutrino target support routines.
6555         * nto-tdep.h: New file. Neutrino target header.
6556         * config/tm-qnxnto.h: New file.
6557         * config/i386/i386nto.mt: New file.
6558         * config/i386/tm-i386nto.h: New file.
6559
6560 2003-05-04  Andrew Cagney  <cagney@redhat.com>
6561
6562         * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6563         (load_infrun_state): Ditto.
6564         (struct thread_info): Drop "prev_func_name" field.
6565         * thread.c (load_infrun_state): Update.
6566         (save_infrun_state): Update.
6567         * infrun.c (prev_func_name): Delete variable.
6568         (init_wait_for_inferior): Do not clear prev_func_name.
6569         (stop_stepping, keep_going, context_switch): Do not swap
6570         prev_func_name.
6571         (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6572         instead of PC_IN_SIGTRAMP.
6573
6574 2003-05-04  Andrew Cagney  <cagney@redhat.com>
6575
6576         * sentinel-frame.c (sentinel_frame_prev_register): Replace
6577         REGISTER_BYTE with register_offset_hack.
6578         * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6579         that REGISTER_BYTE is consistent with the regcache.
6580         * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6581         * gdbarch.h, gdbarch.c: Regenerate.
6582
6583 2003-05-04  Mark Kettenis  <kettenis@gnu.org>
6584
6585         * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6586         (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6587
6588         * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6589
6590 2003-05-03  J. Brobecker  <brobecker@gnat.com>
6591
6592         From Thierry Schneider <tpschneider1@yahoo.com>
6593         * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6594         (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6595         (mi-cmd-symbol.o): Add rule.
6596
6597 2003-05-03  Andrew Cagney  <cagney@redhat.com>
6598
6599         * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6600         comments noteing that it replaces the old FIX_CALL_DUMMY code.
6601         * gdbarch.h, gdbarch.c: Re-generate.
6602         * d10v-tdep.c (d10v_push_dummy_code): New function.
6603         (d10v_gdbarch_init): Set push_dummy_code.
6604         * infcall.c (legacy_push_dummy_code): New function.
6605         (generic_push_dummy_code): New function.
6606         (push_dummy_code): New function.
6607         (call_function_by_hand): Call push_dummy_code.  Pass bp_addr,
6608         instead of dummy_addr, to push_dummy_call.  Move call to
6609         generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6610         switch.
6611         * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6612
6613 2003-05-03  Andrew Cagney  <cagney@redhat.com>
6614
6615         * disasm.h (print_insn): Declare.
6616         * disasm.c (init_gdb_disassemble_info): New function.
6617         (gdb_disassembly): Call init_gdb_disassemble_info.
6618         (gdb_print_insn): New function.
6619         * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6620         of TARGET_PRINT_INSN.  Send debug info to "gdb_stdlog".
6621         * mcore-tdep.c: Include "disasm.h"
6622         (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6623         * d10v-tdep.c: Include "disasm.h".
6624         (display_trace): Call gdb_print_insn, instead of print_insn.
6625         (print_insn): Delete function.
6626         * printcmd.c: Include "disasm.h".
6627         (print_insn): Delete function.
6628         (print_formatted): Call gdb_print_insn, instead of print_insn.
6629         * Makefile.in (printcmd.o): Update dependencies.
6630         (mcore-tdep.o, d10v-tdep.o): Ditto.
6631
6632 2003-05-02  Andrew Cagney  <cagney@redhat.com>
6633
6634         * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6635         PC_REGNUM, re-indent.
6636         * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6637         PC_REGNUM isn't set.
6638
6639         * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6640         * gdbarch.h, gdbarch.c: Re-generate.
6641         * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6642         register_virtual_size, pc_regnum, or register_bytes.
6643         (D10V_PC_REGNUM): Rename _PC_REGNUM.
6644         (d10v_register_type): Use D10V_PC_REGNUM.
6645         (d10v_print_registers_info, d10v_read_pc): Ditto.
6646         (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6647         (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6648
6649 2003-05-02  David Carlton  <carlton@bactrian.org>
6650
6651         * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6652         the name with mstrsave.
6653
6654 2003-05-02  Elena Zannoni  <ezannoni@redhat.com>
6655
6656         * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6657         GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6658         (host_charset_name, target_charset_name): New vars for use by
6659         set/show commands.
6660         (host_charset_enum, target_charset_enum): New enums for set/show
6661         commands.
6662         (set_charset_sfunc, set_host_charset_sfunc,
6663         set_target_charset_sfunc): New functions.
6664         (set_host_charset, set_target_charset): Make static.
6665         (list_charsets, set_host_charset_command,
6666         set_target_charset_command): Delete functions.
6667         (show_charset_command): Rewrite as....
6668         (show_charset): Hook this up with the set/show command mechanism.
6669         (_initialize_charset): Change names of charsets to match the
6670         set/show enums. Use host_charset_name and target_charset_name.
6671         Use set/show mechanism for charset, host-charset, target-charset
6672         commands. Do not make 'show host-charset' and 'show
6673         target-charset' be aliases of 'show charset'.
6674
6675         * charset.h (set_host_charset, set_target_charset): Don't export,
6676         they are not used outside the file.
6677
6678 2003-05-01  Andrew Cagney  <cagney@redhat.com>
6679
6680         * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6681         (gdb_disassembly): Make "di" non static, always initialize and
6682         cleanup.  Always use dis_asm_read_memory.
6683         (gdb_dis_asm_read_memory): Delete function.
6684
6685 2003-05-01  Andrew Cagney  <cagney@redhat.com>
6686
6687         * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6688         (d10v_gdbarch_init): Set frame_align instead of stack_align.
6689
6690 2003-04-30  Andrew Cagney  <cagney@redhat.com>
6691
6692         * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6693         "tm_print_insn_info".
6694         (TARGET_PRINT_INSN_INFO): Delete macro.
6695         (dis_asm_read_memory): Delete function declaration.
6696         (dis_asm_memory_error, dis_asm_print_address): Ditto.
6697         (tm_print_insn_info): Delete variable definition.
6698         (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6699         * gdbarch.h, gdbarch.c: Re-generate.
6700         * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6701         "deprecated_tm_print_insn_info".
6702         * mcore-tdep.c (mcore_dump_insn): Ditto.
6703         * mips-tdep.c (mips_gdbarch_init): Ditto.
6704         * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6705         * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6706         * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6707         * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6708         instead of TARGET_PRINT_INSN_INFO, add comment.
6709         * s390-tdep.c (s390_get_frame_info): Instead of
6710         "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6711         (s390_check_function_end, s390_is_sigreturn): Ditto.
6712         * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6713         (dis_asm_memory_error, dis_asm_print_address): Ditto.
6714         * disasm.c: Include "gdbcore.h".
6715         (_initialize_disasm): New function, initialize
6716         "deprecated_tm_print_insn_info".
6717         (deprecated_tm_print_insn_info): New variable.
6718         (dis_asm_read_memory): Moved from "corefile.c", made static.
6719         (dis_asm_print_address, dis_asm_memory_error): Ditto.
6720         * Makefile.in (disasm.o): Update dependencies.
6721
6722 2003-04-30  Andrew Cagney  <cagney@redhat.com>
6723
6724         * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6725
6726 2003-04-29  Adam Fedor  <fedor@gnu.org>
6727
6728         * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6729         * infcall.c (find_function_addr): Make non-static.
6730         * infcall.h (find_function_addr): Declare.
6731         * Makefile.in (eval.o): Update dependencies.
6732
6733 2003-04-28  Adam Fedor  <fedor@gnu.org>
6734
6735         * symtab.c (symbol_find_demangled_name): Check for and demangle
6736         ObjC symbols.
6737         (symbol_init_demangled_name): Init for language_objc as well.
6738
6739 2003-04-28  Andrew Cagney  <cagney@redhat.com>
6740
6741         * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6742         (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6743         * gdbarch.h, gdbarch.c: Re-generate.
6744         * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6745         DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6746         * inferior.h (deprecated_read_fp): Rename read_fp.
6747         (generic_target_read_fp): Delete declaration.
6748         * regcache.c (generic_target_read_fp): Delete function.
6749         (deprecated_read_fp): Replace read_fp, use
6750         DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6751         * d10v-tdep.c (d10v_read_fp): Delete function.
6752         (d10v_gdbarch_init): Do not set deprecated_read_fp.
6753
6754         * sparc-tdep.c (sparc_gdbarch_init): Do not set
6755         deprecated_target_read_fp to generic_target_read_fp.
6756         * sh-tdep.c (sh_gdbarch_init): Ditto.
6757         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6758         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6759         * frv-tdep.c (frv_gdbarch_init): Ditto.
6760
6761         * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6762         deprecated_fp_regnum.
6763         * x86-64-tdep.c (x86_64_init_abi): Ditto.
6764         * vax-tdep.c (vax_gdbarch_init): Ditto.
6765         * v850-tdep.c (v850_gdbarch_init): Ditto.
6766         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6767         * sh-tdep.c (sh_gdbarch_init): Ditto.
6768         * s390-tdep.c (s390_gdbarch_init): Ditto.
6769         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6770         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6771         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6772         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6773         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6774         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6775         * i386-tdep.c (i386_gdbarch_init): Ditto.
6776         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6777         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6778         * frv-tdep.c (frv_gdbarch_init): Ditto.
6779         * cris-tdep.c (cris_gdbarch_init): Ditto.
6780         * avr-tdep.c (avr_gdbarch_init): Ditto.
6781         * arm-tdep.c (arm_gdbarch_init): Ditto.
6782         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6783
6784         * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6785         * v850-tdep.c (v850_gdbarch_init): Ditto.
6786         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6787         * sh-tdep.c (sh_gdbarch_init): Ditto.
6788         * s390-tdep.c (s390_gdbarch_init): Ditto.
6789         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6790         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6791         * mips-tdep.c (mips_gdbarch_init): Ditto.
6792         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6793         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6794         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6795         * frv-tdep.c (frv_gdbarch_init): Ditto.
6796         * avr-tdep.c (avr_gdbarch_init): Ditto.
6797         * arm-tdep.c (arm_gdbarch_init): Ditto.
6798
6799         * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6800         DEPRECATED_FP_REGNUM.
6801         (vax_push_dummy_frame, vax_pop_frame): Ditto.
6802         * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6803         * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6804         (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6805         (sparc32_register_virtual_type): Ditto.
6806         * sh-tdep.c (sh64_frame_chain): Ditto.
6807         (sh64_get_saved_register, sh64_pop_frame): Ditto.
6808         (sh_nofp_frame_init_saved_regs): Ditto.
6809         (sh64_nofp_frame_init_saved_regs): Ditto.
6810         (sh_fp_frame_init_saved_regs): Ditto.
6811         * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6812         * remote-e7000.c (fetch_regs_from_dump): Ditto.
6813         * procfs.c (procfs_fetch_registers): Ditto.
6814         (procfs_store_registers): Ditto.
6815         * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6816         (store_inferior_registers, fetch_core_registers): Ditto.
6817         (fetch_kcore_registers, clear_regs): Ditto.
6818         * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6819         (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6820         * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6821         * nlm/i386.c (do_status): Ditto.
6822         * mipsv4-nat.c (supply_gregset): Ditto.
6823         * mips-tdep.c: Ditto for comments.
6824         * mips-nat.c (fetch_inferior_registers): Ditto.
6825         (store_inferior_registers, fetch_core_registers): Ditto.
6826         * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6827         (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6828         * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6829         (i386_do_pop_frame, i386_register_type): Ditto.
6830         * hppa-tdep.c (hppa_frame_chain): Ditto.
6831         (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6832         (hppa_pop_frame, hppa_read_fp): Ditto.
6833         (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6834         * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6835         * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6836         * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6837         * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6838         * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6839         * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6840         * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6841         * blockframe.c: Ditto for comments.
6842         * arch-utils.h: Ditto for comments.
6843         * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6844         * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6845         * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6846         * alpha-tdep.h: Ditto for comments.
6847         * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6848         (alpha_cannot_store_register): Ditto.
6849         (alpha_push_dummy_frame): Ditto.
6850         * alpha-nat.c (supply_gregset): Ditto.
6851
6852         * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6853         * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6854         * config/sparc/tm-sparc.h: Update comment.
6855
6856         * hppa-tdep.c (hppa_init_extra_frame_info): Use
6857         deprecated_read_fp instead of TARGET_READ_FP.
6858         (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6859         (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6860         * sparc-tdep.c (sparc_init_extra_frame_info): Use
6861         deprecated_read_fp instead of read_fp.
6862         * s390-tdep.c (s390_push_arguments): Ditto.
6863         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6864         * frame.h: Ditto in comments.
6865         * frame.c (legacy_get_prev_frame): Ditto.
6866         * dummy-frame.c (dummy_frame_this_id): Ditto.
6867         * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6868
6869 2003-04-28  Andrew Cagney  <cagney@redhat.com>
6870
6871         * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6872         * gdbarch.h, gdbarch.c: Re-generate.
6873         * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6874         * vax-tdep.c (_initialize_vax_tdep): Update.
6875         * v850-tdep.c (_initialize_v850_tdep): Update.
6876         * sparc-tdep.c (_initialize_sparc_tdep): Update.
6877         * s390-tdep.c (_initialize_s390_tdep): Update.
6878         * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6879         * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6880         * mips-tdep.c (_initialize_mips_tdep): Update.
6881         * mcore-tdep.c (_initialize_mcore_tdep): Update.
6882         * m68k-tdep.c (_initialize_m68k_tdep): Update.
6883         * ia64-tdep.c (_initialize_ia64_tdep): Update.
6884         * hppa-tdep.c (_initialize_hppa_tdep): Update.
6885         * h8300-tdep.c (_initialize_h8300_tdep): Update.
6886         * frv-tdep.c (_initialize_frv_tdep): Update.
6887         * cris-tdep.c (cris_delayed_get_disassembler): Update.
6888         (_initialize_cris_tdep): Update.
6889         * arch-utils.c (legacy_print_insn): Update.
6890         * alpha-tdep.c (_initialize_alpha_tdep): Update.
6891
6892 2003-04-26  Adam Fedor  <fedor@gnu.org>
6893
6894         * linespec.c (decode_objc): New function to decode ObjC calls
6895         (decode_line_1): Check for ObjC calls (using decode_objc)
6896         * Makefile (linespec.o): Update dependencies.
6897
6898 2003-04-26  Daniel Jacobowitz  <drow@mvista.com>
6899
6900         * breakpoint.h (struct breakpoint_ops): New.
6901         (struct breakpoint): Add ops member.
6902
6903         * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6904         (mention): Use new breakpoint ops member.
6905         (set_raw_breakpoint): Initialize ops field to NULL.
6906         (print_exception_catchpoint, print_one_exception_catchpoint)
6907         (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6908         (gnu_v3_exception_catchpoint_ops): New.
6909         (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6910
6911 2003-04-25  Adam Fedor  <fedor@gnu.org>
6912
6913         * Makefile.in (COMMON_OBS): Add objc-lang.o
6914
6915 2003-04-25  Andrew Cagney  <cagney@redhat.com>
6916
6917         * d10v-tdep.c (print_insn): Delete function.
6918         (display_trace): Use TARGET_PRINT_INSN.
6919         (_initialize_d10v_tdep): Do not set tm_print_insn.
6920         (d10v_gdbarch_init): Set print_insn.
6921
6922 2003-04-25  Andrew Cagney  <cagney@redhat.com>
6923
6924         * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6925         (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6926         (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6927         (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6928         (nr_dmap_regs, a0_regnum): ... new functions.
6929         (d10v_print_registers_info): Use a0_regnum, use register_size.
6930         (d10v_register_byte): Delete function.
6931         (d10v_register_raw_size): Delete function.
6932         (d10v_register_type): Use a0_regnum.
6933         (d10v_print_registers_info): Use a0_regnum.
6934         (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6935         (d10v_gdbarch_init): Do not set register_byte or
6936         register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6937         (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6938         extract_address.
6939         (trace_command): Use XCALLOC.
6940         (print_insn): Delete reference to tm_print_insn.
6941         (saved_regs_unwinder): Use store_unsigned_integer instead of
6942         store_address.
6943         * frame.h (FRAME_OBSTACK_CALLOC): Define
6944
6945 2003-04-25  David Carlton  <carlton@bactrian.org>
6946
6947         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6948
6949 2003-04-24  Adam Fedor  <fedor@gnu.org>
6950
6951         * objc-lang.c: Include "valprint.h"
6952         * Makefile.in (objc-lang.o): Update dependencies.
6953
6954 2003-04-24  Adam Fedor  <fedor@gnu.org>
6955
6956         * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
6957         architecture dependant compilation and mark as unimplemented
6958         (until they get put in the gdbarch vector).
6959
6960 2003-04-23  David Carlton  <carlton@bactrian.org>
6961
6962         * cp-support.c (cp_find_first_component): Accept 'operator' in
6963         more locations.
6964
6965 2003-04-23  Andrew Cagney  <cagney@redhat.com>
6966
6967         * infcall.c (call_function_by_hand): Eliminate redundant
6968         indentation.  Move "saved_async" and "old_cleanups" to where they
6969         are needed.
6970
6971 2003-04-23  Andrew Cagney  <cagney@redhat.com>
6972
6973         * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6974         and "buffer".  Move the "name" code to where it is needed.
6975
6976 2003-04-23  Andrew Cagney  <cagney@redhat.com>
6977
6978         * infcall.c (call_function_by_hand): Move variables "start_sp",
6979         "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6980         code to ON_STACK switch branch.
6981
6982 2003-04-23  Andrew Cagney  <cagney@redhat.com>
6983
6984         * infcall.c (call_function_by_hand): Make declaration of "i",
6985         "sal", "bpt" and "old_sp" more local to their use.  Delete #if
6986         lint.
6987
6988 2003-04-23  Andrew Cagney  <cagney@redhat.com>
6989
6990         * infcall.c (call_function_by_hand): Delete variable
6991         "n_method_args".  Localize "param_type"'s declaration to the loop
6992         that it is used.  Reinstate code assigning to said variable -
6993         deleted on 2002-06-14.  Rationalize calls to value_args_coerce.
6994         Rationalize code using "param_type".
6995
6996 2003-04-22  Andrew Cagney  <cagney@redhat.com>
6997
6998         * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6999         compute the breakpoint address.  Only call FIX_CALL_DUMMY when
7000         ON_STACK.  Eliminate the variable "addr".  Do not pass "real_pc"
7001         to DEPRECATED_PUSH_RETURN_ADDRESS.
7002
7003 2003-04-22  Kevin Buettner  <kevinb@redhat.com>
7004
7005         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7006         on the DWARF2 register number prior to fetching a register.
7007
7008 2003-04-22  J. Brobecker  <brobecker@gnat.com>
7009
7010         * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7011         Update all the tests using SOFT_FLOAT considering the fact that
7012         this macro was always set to 0.
7013         * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7014         considering the fact that this macro was always set to 0.
7015         * hppa-tdep.h (hppa_store_return_value): Likewise.
7016         (hppa_extract_return_value): Likewise.
7017
7018 2003-04-22  J. Brobecker  <brobecker@gnat.com>
7019
7020         * config/pa/tm-hppa.h: Remove obsolete code, was used by
7021         the hppa-pro target only.
7022
7023 2003-04-21  J. Brobecker  <brobecker@gnat.com>
7024
7025         Ongoing multi-arch conversion effort for HP/UX:
7026         * config/pa/tm-hppa.h: Move all macro that are no longer
7027         defined now that GDB_MULTI_ARCH is now set to 1 from here...
7028         * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7029
7030 2003-04-21  J. Brobecker  <brobecker@gnat.com>
7031
7032         * config/pa/tm-hppa.h: Obsolete a section that was only used
7033         for hppa-pro.
7034
7035 2003-04-21  J. Brobecker  <brobecker@gnat.com>
7036
7037         Ongoing multi-arch conversion for HP/UX.
7038         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7039         if already defined (allows hppa64 to stay non-multiarched for now).
7040         * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7041
7042 2003-04-21  Andrew Cagney  <cagney@redhat.com>
7043
7044         * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7045
7046 2003-04-21  Andrew Cagney  <cagney@redhat.com>
7047
7048         * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7049         "i386_num_mmx_regs".
7050
7051 2003-04-21  Andrew Cagney  <cagney@redhat.com>
7052
7053         * infcall.c: New file.
7054         * infcall.h: New file.
7055         * valarith.c: Include "infcall.h".
7056         * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7057         * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7058         * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7059         (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7060         (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7061         (SFILES): Add "infcall.c"
7062         (COMMON_OBS): Add "infcall.o".
7063         (infcall.o): Specify dependencies.
7064         * value.h (call_function_by_hand): Delete declaration.
7065         * inferior.h (run_stack_dummy): Delete declaration.
7066         * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7067         (run_stack_dummy): Move to "infcall.c", merged into
7068         call_function_by_hand.
7069         * valops.c (call_function_by_hand): Moved to "infcall.c".
7070         (find_function_addr, value_arg_coerce): Ditto.
7071         (unwindonsignal_p, coerce_float_to_double): Ditto.
7072         (_initialize_valops): Move "set/show coerce-float-to-double", and
7073         "set/show unwindonsignal" commands to "infcall.c".
7074         * v850-tdep.c, target.h: Update comments.
7075         * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7076         * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7077         (sh64_init_extra_frame_info): Update comments.
7078         * mn10300-tdep.c: Update comments.
7079         * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7080         * config/sparc/tm-sparc.h: Update comments.
7081         * breakpoint.h: Update comments.
7082         * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7083         * arm-tdep.c: Update comment.
7084
7085 2003-04-19  Mark Kettenis  <kettenis@gnu.org>
7086
7087         * i386-tdep.c (i386_num_register_names): New variable.
7088         (i386_num_mmx_regs): Renamed from mmx_num_regs.
7089         (MM0_REGNUM): Remove redundant parentheses in define.
7090         (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7091         (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7092         i386_mxcsr_regnum_p): Remove redundant parentheses.
7093         (i386_register_name): Use i386_num_register_names.
7094
7095         * i386-tdep.c (i386_extract_return_value,
7096         i386_store_return_value): Correct check for availability of
7097         floating-point registers.
7098
7099         * i386-tdep.c (i386_frame_num_args): Remove function.
7100         (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7101
7102         * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7103         mmx_regnum_to_fp_regnum.  Adjust all callers.
7104
7105         * i386-tdep.c (i386_get_longjmp_target): Use
7106         TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7107         and TARGET_CHAR_BIT.  Use extract_typed_address instead of
7108         extract_address.
7109
7110 2003-04-19  Mark Kettenis  <kettenis@gnu.org>
7111
7112         * core-regset.c: Update comments to reflect reality.  Re-order
7113         includes.
7114         (fetch_core_registers): Use switch instead of if.  Remove
7115         redundant prototype.
7116
7117 2003-04-18  Jim Blandy  <jimb@redhat.com>
7118
7119         * s390-tdep.c (s390_frame_align): New function.
7120         (s390_gdbarch_init): Register it with the gdbarch object.
7121
7122 2003-04-17  Richard Henderson  <rth@redhat.com>
7123
7124         * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7125
7126 2003-04-17  Michael Snyder  <msnyder@redhat.com>
7127             Karen Bennet  <bennet@redhat.com>
7128
7129         Committed by Elena Zannoni  <ezannoni@redhat.com>
7130         * gdb_gcore.sh: New script to create a core dump of a process.
7131
7132 2003-04-17  Elena Zannoni  <ezannoni@redhat.com>
7133
7134         * values.c (value_being_returned): Don't fetch the return
7135         value if the return type is void.
7136
7137 2003-04-17  Jeff Johnston  <jjohnstn@redhat.com>
7138
7139         * thread-db.c: Reindented.
7140
7141 2003-04-17  Jeff Johnston  <jjohnstn@redhat.com>
7142
7143         * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7144         td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
7145         as types.
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171 2003-04-16  Kevin Buettner  <kevinb@redhat.com>
7172
7173         * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
7174         the size of ``long double'' to 16, instead of 8.
7175
7176 2003-04-16  Mark Kettenis  <kettenis@gnu.org>
7177
7178         * i386-linux-nat.c: Add some whitespace to make things more
7179         readable.
7180         (fetch_register, store_register, fetch_inferior_registers,
7181         store_inferior_registers): Get rid of assignment in if-statement.
7182         (store_register): Fix typo in error message.
7183
7184 2003-04-16  Andrew Cagney  <cagney@redhat.com>
7185
7186         * utils.c (xmmalloc): Always allocate something, matches
7187         libiberty/xmalloc's semantics.
7188         (xmrealloc, xmcalloc): Ditto.
7189
7190 2003-04-16  Andrew Cagney  <cagney@redhat.com>
7191
7192         * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7193         update comments.
7194         (get_frame_type): Initialize unwind and type when needed.
7195         (get_frame_id, frame_register_unwind): Ditto.
7196
7197 2003-04-16  Andrew Cagney  <cagney@redhat.com>
7198
7199         * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7200         obsolete.
7201         * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7202         * sparcl-stub.c: Obsolete file.
7203         * config/sparc/tm-sparclet.h: Obsolete file.
7204         * sparclet-stub.c: Obsolete file.
7205         * sparclet-rom.c: Obsolete file.
7206         * sparcl-tdep.c: Obsolete file.
7207         * config/sparc/tm-sparclite.h: Obsolete file.
7208         * config/sparc/sparclite.mt: Obsolete file.
7209         * config/sparc/sparclet.mt: Obsolete file.
7210         * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7211         sparc86x-*-* obsolete.
7212
7213 2003-04-15  David Carlton  <carlton@math.stanford.edu>
7214
7215         * Makefile.in (SFILES): Add cp-namespace.c.
7216         (COMMON_OBS): Add cp-namespace.o.
7217         (block.o): Depend on gdb_obstack_h and cp_support_h.
7218         (buildsym.o): Depend on cp_support_h.
7219         (cp-namespace.o): New.
7220         (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7221         gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7222         (dwarf2read.o): Depend on cp_support_h.
7223         * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7224         * dwarf2read.c (process_die): Set processing_has_namespace_info,
7225         processing_current_namespace.
7226         (read_namespace): Update processing_current_namespace; check for
7227         anonymous namespaces.
7228         (dwarf2_name): New function.
7229         (dwarf2_extension): Ditto.
7230         * cp-support.h: Update copyright, contributors.
7231         Add inclusion guards.
7232         Add opaque declaration for structs obstack, block, symbol.
7233         (struct using_direct): New struct.
7234         Add declarations for cp_find_first_component,
7235         cp_entire_prefix_len, processing_has_namespace_info,
7236         processing_current_namespace, cp_is_anonymous,
7237         cp_add_using_directive, cp_initialize_namespace,
7238         cp_finalize_namespace, cp_set_block_scope,
7239         cp_scan_for_anonymous_namespaces.
7240         * cp-namespace.c: New file.
7241         * cp-support.c: Update copyright.
7242         Include ctype.h, gdb_assert.h, gdbcmd.h.
7243         New variable maint_cplus_cmd_list.
7244         (cp_find_first_component): New function.
7245         (cp_entire_prefix_len, maint_cplus_command)
7246         (first_component_command, _initialize_cp_support): Ditto.
7247         * buildsym.c: Include cp-support.h.
7248         New variable using_list.
7249         (add_symbol_to_list): Check for anonymous namespaces.
7250         (finish_block): Set block's scope.
7251         (start_symtab): Initialize C++ namespace support.
7252         (end_symtab): Finalize C++ namespace support.
7253         * block.h: Add opaque declarations for structs
7254         block_namespace_info, using_direct, and obstack.
7255         Add declarations for block_set_scope and block_set_using.
7256         (struct block): Add 'language_specific' member.
7257         (BLOCK_NAMESPACE): New macro.
7258         * block.c: Include gdb_obstack.h and cp-support.h.
7259         (struct block_namespace_info): New struct.
7260         (block_set_scope): New function.
7261         (block_set_using, block_initialize_namespace): Ditto.
7262
7263 2003-04-14  Kevin Buettner  <kevinb@redhat.com>
7264
7265         * solib-svr4.c (svr4_have_link_map_offsets): New function.
7266         (locate_base): Return early if there aren't any link map offsets.
7267         (svr4_solib_create_inferior_hook): Warn if shared library support
7268         is unavailable.
7269
7270 2003-04-14  David Carlton  <carlton@math.stanford.edu>
7271
7272         * symtab.c (symbol_set_names): Add prefix when storing Java names
7273         in hash table.  Fix for PR java/1039.
7274
7275 2003-04-14  David Carlton  <carlton@math.stanford.edu>
7276
7277         * symtab.c (symbol_set_names): Rename 'name' arg to
7278         'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7279         * symtab.h: Change 'name' argument in declaration of
7280         symbol_set_names to 'linkage_name'.
7281         (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7282
7283 2003-04-14  Andrew Cagney  <cagney@redhat.com>
7284
7285         * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7286         return the fully sign-extended register value.
7287         (get_frame_pointer): Ditto.
7288         (mips_pop_frame): Initialize "proc_desc" after checking for a
7289         dummy frame.
7290
7291 2003-04-14  Andrew Cagney  <cagney@redhat.com>
7292
7293         * mips-tdep.c (mips_push_dummy_frame): Delete function.
7294         (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7295         (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7296         (mips_push_register): Delete function.
7297         (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7298         PUSH_FP_REGNUM.
7299
7300 2003-04-14  Jim Blandy  <jimb@redhat.com>
7301
7302         * symmisc.c: #include "gdb_regex.h".
7303         (maintenance_list_symtabs, maintenance_list_psymtabs): New
7304         functions.
7305         * maint.c (maintenance_list_command): New function.
7306         (_initialize_maint_cmds): Register the above as commands.
7307         * symtab.h (maintenance_list_symtabs,
7308         maintenance_list_psymtabs): New declarations.
7309         * cli/cli-cmds.c (maintenancelistlist): New variable.
7310         (init_cmd_lists): Initialize it.
7311         * cli/cli-cmds.h (maintenancelistlist): New declaration.
7312         * gdbcmd.h (maintenancelistlist): New declaration.
7313         * Makefile.in (symmisc.o): Update dependencies.
7314
7315 2003-04-14  Elena Zannoni  <ezannoni@redhat.com>
7316
7317         * s390-nat.c: Include asm/types.h for addr_t.
7318
7319 2003-04-14  Corinna Vinschen  <vinschen@redhat.com>
7320
7321         * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7322         actually incoming type.
7323
7324 2003-04-13  Andrew Cagney  <cagney@redhat.com>
7325
7326         * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7327         get_next_frame and get_frame_saved_regs.
7328
7329 2003-04-13  Andrew Cagney  <cagney@redhat.com>
7330
7331         * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7332         of gdbarch_num_regs.
7333
7334 2003-04-13  Andrew Cagney  <cagney@redhat.com>
7335
7336         * frame.h: Mention what replaced what in "struct frame_info".
7337         * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7338         deprecated_update_frame_base_hack and
7339         deprecated_update_frame_pc_hack.
7340         * hppa-tdep.c: Ditto.
7341
7342 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
7343
7344         * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7345         to read_reg and update its comment.  Remove regnum member.
7346         * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7347         Don't call read_reg when setting in_reg.  Call read_reg to get
7348         the frame base if it's in a register.  Return the register number
7349         on the stack instead of in the context.  Remove extra arguments
7350         to read_reg.
7351         * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7352         (dwarf2_evaluate_loc_desc): Call value_from_register.  Expect
7353         the register number on the expression stack.
7354         (needs_frame_read_reg): Remove extra arguments.
7355
7356 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
7357
7358         * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7359         made non-static.
7360         (execute_stack_op): All callers updated.
7361         * dwarf2expr.h: Add prototype for dwarf2_read_address.
7362         * dwarf2loc.c (find_location_expression): New function.
7363         (dwarf_expr_frame_base): Call it.
7364         (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7365         (dwarf2_tracepoint_var_ref): New function, broken out from
7366         locexpr_tracepoint_var_ref.
7367         (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7368         Make static.
7369         (loclist_read_variable, loclist_read_needs_frame): New functions.
7370         (loclist_describe_location, loclist_tracepoint_var_ref): New
7371         functions.
7372         (dwarf2_loclist_funcs): New struct location_funcs.
7373         * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7374         (struct dwarf2_locexpr_baton): Add comments.
7375         (dwarf2_loclist_funcs): New extern.
7376         * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7377         base_address and base_known.
7378         (dwarf_loc_buffer): New variable.
7379         (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7380         (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7381         (dwarf2_has_info): Initialize dwarf_loc_offset.
7382         (dwarf2_build_psymtabs): Read in .debug_loc.
7383         (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7384         DWARF_LOC_SIZE.
7385         (psymtab_to_symtab_1): Likewise.  Move base address calculation
7386         here, from...
7387         (dwarf2_get_pc_bounds): ... here.  Use the base address from
7388         cu_header.
7389         (dwarf2_symbol_mark_computed): Handle location lists.
7390
7391 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
7392
7393         * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7394         if the linkage name demangled successfully.
7395
7396 2003-04-13  Mark Kettenis  <kettenis@gnu.org>
7397
7398         * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7399         disassmbly_flavour): Removed.
7400
7401         * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7402
7403 2003-04-13  Mark Kettenis  <kettenis@gnu.org>
7404
7405         * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7406
7407 2003-04-12  Andrew Cagney  <cagney@redhat.com>
7408
7409         * frame.h (struct frame_info): Move definition from here ...
7410         * frame.c (struct frame_info): ... to here.
7411
7412 2003-04-12  Andrew Cagney  <cagney@redhat.com>
7413
7414         * gdbthread.h (save_infrun_state): Delete parameter
7415         "prev_func_start".
7416         (struct thread_info): Delete field "prev_func_start".
7417         (load_infrun_state): Ditto.
7418         * thread.c (load_infrun_state, save_infrun_state): Update.
7419         * infrun.c (prev_func_start): Delete variable.
7420         (context_switch, init_wait_for_inferior): Update.
7421         (stop_stepping, keep_going): Update.
7422
7423 2003-04-12  Andrew Cagney  <cagney@redhat.com>
7424
7425         * gdbarch.sh: Add missing opaque declarations.
7426         * gdbarch.h: Regnerate.
7427         * symtab.h: Add missing opaque declarations.
7428         * value.h, target.h, symfile.h, stabsread.h: Ditto.
7429         * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7430         * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7431         * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7432         * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7433         * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7434         * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7435         * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7436         * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7437         * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7438         * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7439         * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7440         * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7441
7442 2003-04-11  Andrew Cagney  <cagney@redhat.com>
7443
7444         * frame.c (get_frame_id): Return this frame's "id".
7445         (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7446         function start.
7447         (legacy_saved_regs_this_id): Replace function body with
7448         internal-error.
7449         (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7450         FRAME_OBSTACK_ZALLOC.
7451         (create_new_frame): Mark the frame ID as valid.
7452
7453 2003-04-11  Alexandre Oliva  <aoliva@redhat.com>
7454
7455         * Makefile.in (libbfd_h): Added missing setting.
7456         * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7457         according to the selected ABI.
7458
7459 2003-04-11  Jeff Johnston  <jjohnstn@redhat.com>
7460
7461         * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7462
7463 2003-04-11  Andrew Cagney  <cagney@redhat.com>
7464
7465         * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7466         SAVED_PC_AFTER_CALL.
7467         * gdbarch.h, gdbarch.c: Regenerate.
7468         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7469         * x86-64-tdep.c (x86_64_init_abi): Update.
7470         * vax-tdep.c (vax_gdbarch_init): Update.
7471         * v850-tdep.c (v850_gdbarch_init): Update.
7472         * sparc-tdep.c (sparc_gdbarch_init): Update.
7473         * sh-tdep.c (sh_gdbarch_init): Update.
7474         * s390-tdep.c (s390_gdbarch_init): Update.
7475         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7476         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7477         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7478         * mips-tdep.c (mips_gdbarch_init): Update.
7479         * mcore-tdep.c (mcore_gdbarch_init): Update.
7480         * m68k-tdep.c (m68k_gdbarch_init): Update.
7481         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7482         * ia64-tdep.c (ia64_gdbarch_init): Update.
7483         (ia64_saved_pc_after_call): Update declaration.
7484         * i386ly-tdep.c (i386lynx_init_abi): Update.
7485         * i386-tdep.c (i386_gdbarch_init): Update.
7486         * hppa-tdep.c (hppa_gdbarch_init): Update.
7487         * h8300-tdep.c (h8300_gdbarch_init): Update.
7488         * frv-tdep.c (frv_gdbarch_init): Update.
7489         * cris-tdep.c (cris_gdbarch_init): Update.
7490         * avr-tdep.c (avr_gdbarch_init): Update.
7491         * arm-tdep.c (arm_gdbarch_init): Update.
7492         * alpha-tdep.c (alpha_gdbarch_init): Update.
7493         * ns32knbsd-nat.c (frame_num_args): Update.
7494         * ns32k-tdep.c (umax_frame_num_args): Update.
7495         * mips-tdep.c (mips_init_frame_pc_first): Update.
7496         * infrun.c (step_over_function): Update.
7497         * i386-linux-tdep.c (skip_hurd_resolver): Update.
7498         * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7499         * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7500         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7501         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7502         * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7503         * arm-linux-tdep.c (skip_hurd_resolver): Update.
7504         * arch-utils.c (init_frame_pc_default): Update.
7505         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7506         * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7507         declaration.
7508
7509 2003-04-11  Andrew Cagney  <cagney@redhat.com>
7510
7511         * i387-tdep.c: Update copyright.
7512         (i387_to_double): Delete function.
7513         (double_to_i387): Delete function.
7514
7515 2003-04-10  Andrew Cagney  <cagney@redhat.com>
7516
7517         * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7518         frame's function's address.  Simplify.
7519         (d10v_frame_unwind_cache): Check that the frame's function is
7520         non-zero.
7521
7522 2003-04-10  Jim Blandy  <jimb@redhat.com>
7523
7524         * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7525         call to set_gdbarch_deprecated_push_arguments.
7526
7527 2003-04-10  Andrew Cagney  <cagney@redhat.com>
7528
7529         * frame.c (fprint_frame_id): New function.
7530         (fprint_frame_type, fprint_frame): New function.
7531         (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7532         (create_sentinel_frame, get_frame_id): Ditto.
7533         (frame_id_p, frame_id_eq): Ditto.
7534         (frame_id_inner, create_new_frame): Ditto.
7535         (legacy_get_prev_frame, get_prev_frame): Ditto.
7536         (deprecated_update_frame_pc_hack): Ditto.
7537         (frame_register_unwind): Ditto.
7538         (deprecated_update_frame_base_hack): Ditto.
7539
7540 2003-04-10  Corinna Vinschen  <vinschen@redhat.com>
7541
7542         * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7543         (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7544         frame_chain function.
7545         * Makefile.in: Add dependencies due to above change.
7546
7547 2003-04-10  Corinna Vinschen  <vinschen@redhat.com>
7548
7549         * blockframe.c (legacy_frame_chain_valid): Move call to
7550         DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7551         inside_entry_file.
7552
7553 2003-04-09  Andrew Cagney  <cagney@redhat.com>
7554
7555         * frame.h (struct frame_id): Replace "pc" and "base" with
7556         "stack_addr" and "code_addr".  Update comments.
7557         (frame_id_build): Update parameter names and comment.
7558         (struct frame_info): Replace "id_p" and "id" with "this_id".
7559         * dummy-frame.c (dummy_frame_this_id): Update.
7560         * breakpoint.c (print_one_breakpoint): Update.
7561         * frame.c (get_frame_id): Update.
7562         (get_frame_base, frame_id_build): Update.
7563         (create_sentinel_frame, legacy_get_prev_frame): Update.
7564         (deprecated_update_frame_base_hack): Update.
7565         (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7566         (frame_id_inner): Ditto.
7567
7568 2003-04-09  Andrew Cagney  <cagney@redhat.com>
7569
7570         * defs.h (gdb_print_host_address): Make "addr" parameter a
7571         pointer constant.
7572         * utils.c (gdb_print_host_address): Update.
7573
7574 2003-04-09  Kevin Buettner  <kevinb@redhat.com>
7575
7576         * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7577         register number for R0 is 0.
7578
7579 2003-04-09  J. Brobecker  <brobecker@gnat.com>
7580
7581         * frame.h (struct gdbarch): Add opaque structure definition
7582         to avoid a compilation warning on LynxOS 4.0.
7583
7584 2003-04-09  Andrew Cagney  <cagney@redhat.com>
7585
7586         * frame.h (struct frame_info): Delete field "pc".  Replace
7587         "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7588         structure.
7589         * frame.c (frame_pc_unwind): Update.
7590         (create_sentinel_frame): Do not set "pc".
7591         (get_prev_frame): Do not set "pc".  Use frame_pc_unwind.
7592         (get_frame_pc): Call frame_pc_unwind.
7593         (deprecated_update_frame_pc_hack): Update.
7594         (create_new_frame): Use "pc" not "->pc".
7595
7596 2003-04-09  Andrew Cagney  <cagney@redhat.com>
7597
7598         * frame.c (get_frame_id): Eliminate code updating "frame".
7599         (legacy_get_prev_frame): Ditto.
7600         (get_frame_base): Return id.base directly.
7601         (deprecated_update_frame_base_hack): Update "id.base".
7602         * frame.h (struct frame_info): Delete field "frame".
7603
7604 2003-04-09  Andrew Cagney  <cagney@redhat.com>
7605
7606         * NEWS: Mention that the "Sequent family" is obsolete.
7607         * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7608         i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7609         * configure.host: Obsolete i[3456]86-sequent-bsd*,
7610         i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7611         * config/i386/tm-ptx4.h: Obsolete file.
7612         * config/i386/tm-ptx.h: Obsolete file.
7613         * symm-tdep.c: Obsolete file.
7614         * config/i386/symmetry.mt: Obsolete file.
7615         * config/i386/tm-symmetry.h: Obsolete file.
7616         * symm-nat.c: Obsolete file.
7617         * config/i386/nm-symmetry.h: Obsolete file.
7618         * config/i386/xm-symmetry.h: Obsolete file.
7619         * config/i386/symmetry.mh: Obsolete file.
7620         * config/i386/nm-ptx4.h: Obsolete file.
7621         * config/i386/ptx4.mh: Obsolete file.
7622         * config/i386/ptx.mt: Obsolete file.
7623         * config/i386/ptx.mh: Obsolete file.
7624         * config/i386/xm-ptx4.h: Obsolete file.
7625         * config/i386/xm-ptx.h: Obsolete file.
7626
7627 2003-04-09  Andrew Cagney  <cagney@redhat.com>
7628
7629         Obsolete mips*-*-mach3*.
7630         * NEWS: Mention that mips*-*-mach3* is obsolete.
7631         * m3-nat.c: Obsolete file.
7632         * config/nm-m3.h: Obsolete file.
7633         * config/mips/tm-mipsm3.h: Obsolete file.
7634         * config/mips/mipsm3.mt: Obsolete file.
7635         * config/mips/mipsm3.mh: Obsolete file.
7636         * config/mips/xm-mipsm3.h: Obsolete file.
7637         * mipsm3-nat.c: Obsolete file.
7638         * configure.host: Obsolete mips-dec-mach3*.
7639         * configure.tgt: Obsolete mips*-*-mach3*.
7640
7641 2003-04-09  Andrew Cagney  <cagney@redhat.com>
7642
7643         * doublest.h: Update copyright.
7644         (deprecated_store_floating, deprecated_extract_floating): Rename
7645         store_floating and extract_floating.  Update comments.
7646         * doublest.c: Update copyright.
7647         (extract_floating_by_length): Replace extract_floating.
7648         (store_floating_by_length): Replace store_floating.
7649         (deprecated_extract_floating): New function.
7650         (deprecated_store_floating): New function.
7651         (extract_typed_floating): Call extract_floating_by_length.
7652         (store_typed_floating): Call store_floating_by_length.
7653         * x86-64-tdep.c (x86_64_store_return_value): Update.
7654         * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7655         (sh64_extract_return_value): Update.
7656         (sh_sh4_register_convert_to_virtual): Update.
7657         (sh_sh64_register_convert_to_virtual): Update.
7658         (sh_sh4_register_convert_to_raw): Update.
7659         (sh_sh64_register_convert_to_raw): Update.
7660         * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7661         (rs6000_register_convert_to_raw): Update.
7662         * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7663         (ia64_register_convert_to_raw): Update.
7664         * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7665         (REGISTER_CONVERT_TO_VIRTUAL): Update.
7666         * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7667         * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7668         (alpha_register_convert_to_raw): Update.
7669
7670 2003-04-08  Andrew Cagney  <cagney@redhat.com>
7671
7672         * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7673         * gdbarch.h, gdbarch.c: Re-generate.
7674         * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7675         (d10v_gdbarch_init): Do not set saved_pc_after_call.
7676         * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7677         conditionally, use frame_pc_unwind as an alternative.  Add
7678         comments.
7679         * arch-utils.c (init_frame_pc_default): Only call
7680         SAVED_PC_AFTER_CALL when available.
7681
7682 2003-04-08  Elena Zannoni  <ezannoni@redhat.com>
7683
7684         * infrun.c (stop_soon): Rename from stop_soon_quietly.
7685         (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7686         (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7687         (start_remote): Ditto.
7688         (handle_inferior_event): Ditto.
7689         (save_inferior_status): Ditto.
7690         (restore_inferior_status): Ditto.
7691         * infcmd.c (attach_command): Ditto.
7692         * fork-child.c (startup_inferior): Ditto.
7693         * inferior.h (stop_soon): Rename from stop_soon_quietly.
7694         * alpha-tdep.c (heuristic_proc_start): Ditto.
7695         * mips-tdep.c (heuristic_proc_start): Ditto.
7696         * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7697         * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7698         * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7699         * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7700         * remote-vx.c (vx_create_inferior): Ditto.
7701
7702 2003-04-08  Elena Zannoni  <ezannoni@redhat.com>
7703
7704         * infrun.c (stop_soon_quietly): Make it an enum, to better
7705         override the default behavior of handle_inferior_event.
7706         (clear_proceed_status): Update uses of stop_soon_quietly to
7707         reflect that it is now an enum.
7708         (start_remote): Ditto.
7709         (handle_inferior_event): Change logic a bit if stop_soon_quietly
7710         is set to handle the new GNU/Linux kernel behavior for
7711         attach/sigstop.  Update uses of stop_soon_quietly.
7712         * inferior.h (enum stop_kind): New enum.
7713         * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7714         Reset normal handle_inferior_event behavior, afterwards.
7715         * fork-child.c (startup_inferior): Update.
7716         * alpha-tdep.c (heuristic_proc_start): Update.
7717         * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7718         * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7719         * solib-osf.c (osf_solib_create_inferior_hook): Update.
7720         * solib-irix.c (irix_solib_create_inferior_hook): Update.
7721         * remote-vx.c (vx_create_inferior): Update.
7722         * mips-tdep.c (heuristic_proc_start): Update.
7723
7724 2003-04-07  Elena Zannoni  <ezannoni@redhat.com>
7725
7726         * disasm.c (dump_insns):  Move variables inside loop, or they will
7727         be freed more than once, causing wild memory corruptions.
7728         (gdb_disassembly): Look for the substring "-thread",
7729         instead of "-threads" in the target name, to make sure to find
7730         the 'multi-thread' target.  Also, make sure we do the right thing
7731         with the "core" target.
7732
7733 2003-04-07  Kevin Buettner  <kevinb@redhat.com>
7734
7735         * mips-tdep.c (mips_print_fp_register): New function, created from
7736         do_fp_register_row().  Registers are now (also) printed as hex.
7737         Only one register is printed per row.
7738         (mips_print_register, do_fp_register_row): Print floating point
7739         registers with mips_print_fp_register().
7740
7741 2003-04-06  Andrew Cagney  <cagney@redhat.com>
7742
7743         * valprint.h (inspect_it): Add extern declaration.
7744         * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7745         (selectors_info, classes_info): Ditto.
7746         (find_objc_msgcall): Fix indentation.
7747         (objc_printstr): Delete extern declarations.
7748
7749         * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7750
7751 2003-04-06  Andrew Cagney  <cagney@redhat.com>
7752
7753         * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7754         Update comment.
7755         * frame.c (legacy_saved_regs_this_id): Update.
7756         (legacy_get_prev_frame): Update.
7757         * xstormy16-tdep.c: Update comment.
7758         * sparc-tdep.c (sparc_frame_chain): Update comment.
7759         * blockframe.c (legacy_frame_chain_valid): Update.
7760
7761 2003-04-06  Andrew Cagney  <cagney@redhat.com>
7762
7763         * valprint.c (val_print_type_code_int): Delete #ifdef
7764         PRINT_TYPELESS_INTEGER code.
7765
7766         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7767         (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7768         multi-arch definition.
7769         * gdbarch.h: Re-generate.
7770
7771 2003-04-05  Andrew Cagney  <cagney@redhat.com>
7772
7773         Eliminate FRAME_FIND_SAVED_REGS.
7774         * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7775         Change FSR parameter to a pointer.
7776         * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7777         Assume FSR parameter is a pointer.
7778         * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7779         Make fsr a pointer.
7780         * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7781         (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs.  Make
7782         saved_regs a pointer.
7783         (hppa_frame_saved_pc): Ditto.
7784         (find_dummy_frame_regs): Make frame_saved_regs a pointer
7785         (hppa_pop_frame): Call hppa_frame_init_saved_regs.  Make fsr a
7786         pointer.
7787         (restore_pc_queue): Make fsr a pointer.
7788         (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7789         (hppa_frame_chain): Make saved_regs a pointer, call
7790         hppa_frame_init_saved_regs.
7791         * sparc-tdep.c: Include "gdb_assert.h".
7792         (sparc_frame_find_saved_regs): Replace internal_error with
7793         gdb_assert.
7794         * remote-vxsparc.c (vx_read_register): Delete reference to
7795         FRAME_FIND_SAVED_REGS.
7796         * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7797         * gdbarch.h: Regenerate.
7798         * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7799         (deprecated_get_frame_saved_regs): Delete declaration.
7800         (struct frame_saved_regs): Delete definition.
7801         * frame.c (deprecated_get_frame_saved_regs): Delete function.
7802         * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7803         (hppa_frame_find_saved_regs): Delete declaration.
7804         (FRAME_FIND_SAVED_REGS): Delete macro.
7805         (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7806         * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7807         FRAME_FIND_SAVED_REGS in comment.
7808
7809 2003-04-05  Andrew Cagney  <cagney@redhat.com>
7810
7811         * frame.c (frame_func_unwind, get_frame_func): New functions.
7812         * frame.h (get_frame_func, frame_func_unwind): Declare.
7813         (struct frame_info): Add field "prev_func" for caching the
7814         previous frame's function address.
7815         * arm-tdep.c (arm_frameless_function_invocation): Combine
7816         get_pc_function_start and get_frame_pc into get_frame_func.
7817         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7818         (sh64_nofp_frame_init_saved_regs): Ditto.
7819         * s390-tdep.c (s390_function_start): Ditto.
7820         * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7821         (rs6000_frameless_function_invocation): Ditto.
7822         (rs6000_frame_saved_pc): Ditto.
7823         * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7824         * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7825         * i386-tdep.c (i386_frameless_signal_p): Ditto.
7826         (i386_frame_init_saved_regs): Ditto.
7827         * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7828         * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7829         get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7830         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7831         * blockframe.c (frameless_look_for_prologue): Ditto.
7832
7833 2003-04-05  Andrew Cagney  <cagney@redhat.com>
7834
7835         * frame.c (legacy_get_prev_frame): Link prev to next at the
7836         function start.  Update comments.
7837
7838 2003-04-05  Andrew Cagney  <cagney@redhat.com>
7839
7840         * frame.c (get_frame_id): Update comment.
7841         (legacy_get_prev_frame): Update comment.
7842         * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7843         * gdbarch.h: Regenerate.
7844         * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7845         * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7846
7847 2003-04-05  Andrew Cagney  <cagney@redhat.com>
7848
7849         * stack.c (print_frame_info): Use get_frame_pc.
7850
7851 2003-04-04  Andrew Cagney  <cagney@redhat.com>
7852
7853         * frame.c (get_prev_frame): Do not call frame_type_from_pc.  Set
7854         the frame's type from the unwinder.
7855         (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7856         (create_new_frame, legacy_get_prev_frame): When the unwinder's
7857         type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7858         (get_frame_base_address): Use get_frame_type.
7859         (get_frame_locals_address, get_frame_args_address): Ditto.
7860         (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7861         * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7862         (struct frame_info): Add comment explaining why the frame contains
7863         a "type" field.
7864         * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7865         * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7866         * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7867         NORMAL_FRAME.
7868         * frame-unwind.h: Include "frame.h".
7869         (struct frame_unwind): Add "type" field.
7870         * Makefile.in (frame_unwind_h): Add $(frame_h).
7871
7872 2003-04-04  Andrew Cagney  <cagney@redhat.com>
7873
7874         * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7875         * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7876         * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7877         get_frame_base.
7878         (d10v_unwind_dummy_id): Use frame_id_build.
7879         * frame.c (find_frame_sal): Use get_frame_pc.
7880         (create_new_frame): Use deprecated_update_frame_pc_hack and
7881         deprecated_update_frame_base_hack.
7882         (create_sentinel_frame): Add comment about ->pc going away.
7883         (get_prev_frame): Add comment about ->pc going away.
7884         (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7885         frame_id_build, deprecated_update_frame_pc_hack and
7886         deprecated_update_frame_base_hack.
7887         (select_frame): Use get_frame_pc.
7888         (legacy_saved_regs_this_id): Use frame_id_build.
7889
7890 2003-04-04  Elena Zannoni  <ezannoni@redhat.com>
7891
7892         * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7893         signed integer case.
7894         (classify_argument): Handle enumerations and references.
7895
7896 2003-04-04  Andrew Cagney  <cagney@redhat.com>
7897
7898         * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7899         ID to NULL.
7900
7901 2003-04-01  Adam Fedor  <fedor@gnu.org>
7902
7903         * gdb/objc-lang.c (selectors_info): Replace calls to
7904         SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7905         SYMBOL_NATURAL_NAME.
7906         (classes_info, find_methods): Likewise.
7907
7908 2003-04-03  Kevin Buettner  <kevinb@redhat.com>
7909
7910         * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7911         ``mach'' to the value determined by bfd_default_set_arch_mach().
7912
7913 2003-04-02  Bob Rossi  <bob_rossi@cox.net>
7914
7915         * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7916         (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7917         (mi-cmd-file.o): Update dependencies.
7918
7919 2003-04-01  Kevin Buettner  <kevinb@redhat.com>
7920
7921         * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7922         (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7923
7924 2003-04-01  Adam Fedor  <fedor@gnu.org>
7925
7926         * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7927         * language.h (struct language_defn): Add la_demangle.
7928         (language_demangle): Declare.
7929         * language.c (language_demangle): New function.
7930         (unk_lang_demangle): Likewise.
7931         (unknown_language_defn, auto_language_defn, local_language_defn):
7932         Add ukn_lang_demangle.
7933         * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
7934         * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
7935         * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7936         (cplus_language_defn): Add cplus_demangle for la_demangle element.
7937         * jv-lang.c (java_demangle): New function
7938         (java_language_defn): Use it for la_demangle element.
7939         * objc-lang.c (objc_demangle): Add options argument
7940         (objc_language_defn): Use objc_demangle for la_demangle element.
7941         * maint.c (maintenance_demangle): Replace switch with
7942         call to language_demangle.
7943         * utils.c (fprintf_symbol_filtered): Likewise.
7944
7945 2003-04-01  Andrew Cagney  <cagney@redhat.com>
7946
7947         * printcmd.c (print_frame_nameless_args): Delete #ifdef
7948         NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7949         PRINT_TYPELESS_INTEGER.
7950         * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7951         PUSH_RETURN_ADDRESS.
7952
7953 2003-04-01  Andrew Cagney  <cagney@redhat.com>
7954
7955         * Makefile.in (d10v-tdep.o): Update dependencies.
7956         * d10v-tdep.c: Include "frame-base.h".
7957         (d10v_frame_unwind): Make constant.
7958         (d10v_frame_base_address): New function.
7959         (d10v_frame_base): New variable.
7960         (d10v_gdbarch_init): Set frame_base default.
7961         (struct d10v_unwind_cache): Add the field "prev_sp".  Update
7962         comment for base.
7963         (d10v_frame_unwind_cache): Set and use "prev_sp".
7964         (d10v_frame_this_id): Use the previous frame's inner most stack
7965         address and this frame's func address for the frame ID.  Use
7966         frame_id_build.  Don't analyze beyond the current instruction.
7967
7968 2003-04-01  Andrew Cagney  <cagney@redhat.com>
7969
7970         * frame.h (get_frame_locals_address, get_frame_args_address):
7971         Refer to the base address, instead of the address of the first
7972         local or parameter.
7973
7974 2003-04-01  Andrew Cagney  <cagney@redhat.com>
7975
7976         Add frame debug info addresses:
7977         * frame-base.c: New file.
7978         * frame-base.h: New file.
7979         * frame.h (struct frame_base): Add opaque declaration.
7980         (get_frame_base): Update comment.
7981         (get_frame_base_address): Declare.
7982         (get_frame_locals_address): Declare.
7983         (get_frame_args_address): Declare.
7984         (struct frame_info): Add "base" and "base_cache".  Update
7985         comments on the unwinder.
7986         * frame.c: Include "frame-base.h".
7987         (get_frame_locals_address): New function.
7988         (get_frame_base_address): New function.
7989         (get_frame_args_address): New function.
7990         * findvar.c (read_var_value): Use get_frame_locals_address and
7991         get_frame_args_address.
7992         * stack.c (frame_info): Use get_frame_locals_address and
7993         get_frame_args_address.
7994         (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7995         moved to "frame-base.c".
7996         * printcmd.c (print_frame_nameless_args): Ditto.
7997         * symtab.h (address_class): Update comments.
7998         * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7999         get_frame_base_address.
8000         * dwarf2expr.c (execute_stack_op): Ditto.
8001         * Makefile.in (frame_base_h): Define.
8002         (frame.o): Update dependencies.
8003         (frame-base.o): Add dependencies.
8004         (SFILES): Add frame-base.c.
8005         (COMMON_OBS): Add frame-base.o.
8006
8007 2003-04-01  Andrew Cagney  <cagney@redhat.com>
8008
8009         * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8010         CALL_DUMMY_LENGTH): Ditto.
8011         * gdbarch.c: Re-generate.
8012         * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8013         (CALL_DUMMY_LENGTH): Delete macro.
8014         * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8015         * arm-tdep.c (arm_gdbarch_init): Ditto.
8016         * avr-tdep.c (avr_gdbarch_init): Ditto.
8017         * cris-tdep.c (cris_gdbarch_init): Ditto.
8018         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8019         * frv-tdep.c (frv_gdbarch_init): Ditto.
8020         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8021         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8022         * i386-tdep.c (i386_gdbarch_init): Ditto.
8023         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8024         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8025         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8026         * mips-tdep.c (mips_gdbarch_init): Ditto.
8027         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8028         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8029         * s390-tdep.c (s390_gdbarch_init): Ditto.
8030         * sh-tdep.c (sh_gdbarch_init): Ditto.
8031         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8032         * v850-tdep.c (v850_gdbarch_init): Ditto.
8033         * vax-tdep.c (vax_gdbarch_init): Ditto.
8034         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8035
8036 2003-04-01  Corinna Vinschen  <vinschen@redhat.com>
8037
8038         * frame.c (get_prev_frame): Disable call to inside_entry_file().
8039
8040 2003-04-01  Andrew Cagney  <cagney@redhat.com>
8041
8042         * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8043         (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8044         * gdbarch.h, gdbarch.c: Re-generate.
8045         * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8046         (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8047         * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8048         * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8049         (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8050         * infcmd.c (run_stack_dummy): Simplify assuming
8051         CALL_DUMMY_BREAKPOINT_OFFSET_P.
8052         * infrun.c (handle_inferior_event): Ditto.
8053         * alpha-tdep.c (alpha_gdbarch_init): Do not set
8054         call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8055         * arm-tdep.c (arm_gdbarch_init): Ditto.
8056         * avr-tdep.c (avr_gdbarch_init): Ditto.
8057         * cris-tdep.c (cris_gdbarch_init): Ditto.
8058         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8059         * frv-tdep.c (frv_gdbarch_init): Ditto.
8060         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8061         * i386-tdep.c (i386_gdbarch_init): Ditto.
8062         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8063         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8064         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8065         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8066         * mips-tdep.c (mips_gdbarch_init): Ditto.
8067         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8068         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8069         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8070         * s390-tdep.c (s390_gdbarch_init): Ditto.
8071         * sh-tdep.c (sh_gdbarch_init): Ditto.
8072         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8073         * v850-tdep.c (v850_gdbarch_init): Ditto.
8074         * vax-tdep.c (vax_gdbarch_init): Ditto.
8075         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8076
8077 2003-04-01  Daniel Jacobowitz  <drow@mvista.com>
8078
8079         * symfile.c (symfile_relocate_debug_section): Update call to
8080         bfd_simple_get_relocated_section_contents.
8081
8082 2003-03-31  Andrew Cagney  <cagney@redhat.com>
8083
8084         * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8085         * gdbarch.h, gdbarch.c: Regenerate.
8086         * inferior.h (FIX_CALL_DUMMY): Delete macro.
8087         * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8088         available.
8089         * frame.h (generic_fix_call_dummy): Delete declaration.
8090         * dummy-frame.h: Update comment.
8091         * dummy-frame.c (generic_fix_call_dummy): Delete function.
8092         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8093         fix_call_dummy.
8094         * sh-tdep.c (sh_gdbarch_init): Ditto.
8095         * s390-tdep.c (s390_gdbarch_init): Ditto.
8096         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8097         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8098         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8099         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8100         * i386-tdep.c (i386_gdbarch_init): Ditto.
8101         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8102         * frv-tdep.c (frv_gdbarch_init): Ditto.
8103         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8104         * cris-tdep.c (cris_gdbarch_init): Ditto.
8105         * avr-tdep.c (avr_gdbarch_init): Ditto.
8106         * arm-tdep.c (arm_gdbarch_init): Ditto.
8107
8108 2003-03-31  J. Brobecker  <brobecker@gnat.com>
8109
8110         * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8111         (INIT_FRAME_AP): Likewise.
8112         (EXTRA_FRAME_INFO): Likewise.
8113
8114 2003-03-31  Andrew Cagney  <cagney@redhat.com>
8115
8116         * gdbarch.sh: Include "symfile.h".
8117         (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8118         * gdbarch.h, gdbarch.c: Re-generate.
8119         * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8120         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8121         call_dummy_address, the default is at entry_point_address.
8122         * v850-tdep.c (v850_gdbarch_init): Ditto.
8123         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8124         * sh-tdep.c (sh_gdbarch_init): Ditto.
8125         * s390-tdep.c (s390_gdbarch_init): Ditto.
8126         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8127         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8128         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8129         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8130         * i386-tdep.c (i386_gdbarch_init): Ditto.
8131         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8132         * frv-tdep.c (frv_gdbarch_init): Ditto.
8133         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8134         * cris-tdep.c (cris_gdbarch_init): Ditto.
8135         * arm-tdep.c (arm_gdbarch_init): Ditto.
8136
8137 2003-03-31  Andrew Cagney  <cagney@redhat.com>
8138
8139         * gdbarch.sh (CALL_DUMMY_P): Delete.
8140         * gdbarch.h, gdbarch.c: Re-generate.
8141         * inferior.h (CALL_DUMMY_P): Delete macro.
8142         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8143         * vax-tdep.c (vax_gdbarch_init): Update.
8144         * v850-tdep.c (v850_gdbarch_init): Update.
8145         * sparc-tdep.c (sparc_gdbarch_init): Update.
8146         * sh-tdep.c (sh_gdbarch_init): Update.
8147         * s390-tdep.c (s390_gdbarch_init): Update.
8148         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8149         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8150         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8151         * mips-tdep.c (mips_gdbarch_init): Update.
8152         * mcore-tdep.c (mcore_gdbarch_init): Update.
8153         * m68k-tdep.c (m68k_gdbarch_init): Update.
8154         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8155         * ia64-tdep.c (ia64_gdbarch_init): Update.
8156         * i386-tdep.c (i386_gdbarch_init): Update.
8157         * h8300-tdep.c (h8300_gdbarch_init): Update.
8158         * frv-tdep.c (frv_gdbarch_init): Update.
8159         * d10v-tdep.c (d10v_gdbarch_init): Update.
8160         * cris-tdep.c (cris_gdbarch_init): Update.
8161         * breakpoint.c (deprecated_frame_in_dummy): Update.
8162         * avr-tdep.c (avr_gdbarch_init): Update.
8163         * alpha-tdep.c (alpha_gdbarch_init): Update.
8164         * arm-tdep.c (arm_gdbarch_init): Update.
8165         * dummy-frame.c (dummy_frame_this_id): Update comments.
8166         * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8167         * frame.c (legacy_get_prev_frame): Ditto.
8168         * valops.c (call_function_by_hand): Delete function.
8169         (hand_function_call): Rename to call_function_by_hand
8170
8171 2003-03-30  Andrew Cagney  <cagney@redhat.com>
8172
8173         2002-11-10 Klee Dienes <kdienes@apple.com>
8174         * value.h (struct value): Update comment.
8175
8176 2003-03-30  Andrew Cagney  <cagney@redhat.com>
8177
8178         * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8179         D10V_FP_REGNUM.
8180         (d10v_gdbarch_init): Do not set fp_regnum.
8181
8182         * frame.c (get_frame_base): Force ID initialization.
8183         (get_prev_frame): Move computation of the frame ID from here ...
8184         (get_frame_id): ... to here.
8185         (legacy_get_prev_frame): Mark the frame ID as valid.
8186         * frame.h (struct frame_info): Add field "id_p".
8187
8188 2003-03-30  Mark Kettenis  <kettenis@gnu.org>
8189
8190         * i386-tdep.c (i386_store_struct_return): Removed.
8191         (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8192
8193 2003-03-30  Andrew Cagney  <cagney@redhat.com>
8194
8195         * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8196         * gdbarch.h, gdbarch.c: Regenerate.
8197         * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8198         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8199         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8200         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8201         * i386-tdep.c (i386_gdbarch_init): Ditto.
8202         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8203         * cris-tdep.c (cris_gdbarch_init): Ditto.
8204         * vax-tdep.c (vax_gdbarch_init): Ditto.
8205         * s390-tdep.c (s390_gdbarch_init): Ditto.
8206         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8207         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8208         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8209         * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8210         * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8211         * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8212         * sparc-tdep.c (sparc_gdbarch_init): Update.
8213         * sh-tdep.c (sh_gdbarch_init): Update.
8214         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8215         * mips-tdep.c (mips_gdbarch_init): Update.
8216         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8217         * ia64-tdep.c (ia64_gdbarch_init): Update.
8218         * frv-tdep.c (frv_gdbarch_init): Update.
8219         * avr-tdep.c (avr_gdbarch_init): Update.
8220         * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8221         DEPRECATED_DUMMY_WRITE_SP.  Call when the method is available,
8222         instead of when push_dummy_call is not available.
8223
8224 2003-03-30  Andrew Cagney  <cagney@redhat.com>
8225
8226         * infttrace.c: Include "gdbthread.h".
8227         (parent_attach_all): Fix function signature.
8228         (call_ptrace): Update call.
8229         * Makefile.in (infttrace.o): Update dependencies.
8230
8231 2003-03-30  Andrew Cagney  <cagney@redhat.com>
8232
8233         * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8234         PUSH_RETURN_ADDRESS.
8235         * gdbarch.h, gdbarch.c: Regenerate.
8236         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8237         * x86-64-tdep.c (x86_64_init_abi): Update.
8238         * v850-tdep.c (v850_gdbarch_init): Update.
8239         * sparc-tdep.c (sparc_gdbarch_init): Update.
8240         * sh-tdep.c (sh_gdbarch_init): Update.
8241         * s390-tdep.c (s390_gdbarch_init): Update.
8242         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8243         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8244         * mips-tdep.c (mips_gdbarch_init): Update.
8245         * mcore-tdep.c (mcore_gdbarch_init): Update.
8246         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8247         * ia64-tdep.c (ia64_gdbarch_init): Update.
8248         * i386-tdep.c (i386_gdbarch_init): Update.
8249         * h8300-tdep.c (h8300_gdbarch_init): Update.
8250         * frv-tdep.c (frv_gdbarch_init): Update.
8251         * cris-tdep.c (cris_gdbarch_init): Update.
8252         * avr-tdep.c (avr_gdbarch_init): Update.
8253         * arm-tdep.c (arm_gdbarch_init): Update.
8254         * valops.c (hand_function_call): Update.
8255
8256 2003-03-29  Andrew Cagney  <cagney@redhat.com>
8257
8258         * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8259         sizeof_call_dummy_words.
8260         * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8261         define.
8262         * gdbarch.h: Regenerate.
8263
8264 2003-03-29  Andrew Cagney  <cagney@redhat.com>
8265
8266         * infttrace.h: New file.
8267         * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8268         (hpread_get_textlow): Detect an uninitialized dn_bufp.
8269         (hpread_read_doc_function_type): Detect an initialized type1.
8270         (hpread_quick_traverse): Initialize mod_name_string.
8271         * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8272         (som_solib_get_solib_by_pc): Declare.
8273         (so_lib_thread_start_addr): Declare.
8274         (no_shared_libraries): Declare.
8275         * somread.c (init_import_symbols): Make static.  Add forward
8276         declaration.
8277         * config/pa/nm-hppah.h: Include "infttrace.h" for
8278         parent_attach_all.
8279         (hppa_insert_hw_watchpoint): Declare.
8280         (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8281         * hppah-nat.c: Include "gdb_string.h".
8282         (parent_attach_all): Delete extern declaration, moved to
8283         "infttrace.h".
8284         (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8285         int.
8286         (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8287         * Makefile.in (infttrace_h): Define.
8288         (hpread.o): Update dependencies.
8289         (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8290         * hppa-hpux-tdep.c: Include "gdb_string.h".
8291         * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8292         * infrun.c (handle_inferior_event): Always initialize
8293         stepped_after_stopped_by_watchpoint.  Add default and remove
8294         fallthrough in switch statement.
8295         * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8296         parameter to int.
8297         (hppa_remove_hw_watchpoint): Ditto.
8298
8299 2003-03-29  Andrew Cagney  <cagney@redhat.com>
8300
8301         * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8302         offset.
8303
8304 2003-03-29  Richard Earnshaw  <rearnsha@arm.com>
8305
8306         * arm-tdep.c (arm_push_arguments): Delete.
8307         (struct stack_item): New type.
8308         (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8309         (arm_store_struct_return): Delte.
8310         (arm_gdbarch_init): Register arm_push_dummy_call.  Don't register
8311         arm_push_arguments or arm_store_struct_return.
8312
8313 2003-03-28  Andrew Cagney  <cagney@redhat.com>
8314
8315         * Makefile.in (d10v-tdep.o): Update dependencies.
8316         * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8317         * d10v-tdep.c: Include "remote.h".
8318         (target_resume_hook): Delete extern declaration.
8319         (target_wait_loop_hook): Ditto.
8320         (tdisassemble_command): Eliminate assignment in "if" conditional.
8321         (d10v_ts2_register_sim_regno): Eliminate call to
8322         legacy_register_sim_regno.
8323         (d10v_ts3_register_sim_regno): Ditto.
8324
8325 2003-03-28  Jeff Johnston  <jjohnstn@redhat.com>
8326
8327         * thread.c: Reindented.
8328         * lin-lwp.c: Ditto.
8329         * linux-proc.c: Ditto.
8330
8331 2003-03-28  Bob Rossi  <bob_rossi@cox.net>
8332
8333         * MAINTAINERS (write after approval): Add myself.
8334
8335 2003-03-27  Theodore A. Roth  <troth@openavr.org>
8336
8337         * objc-exp.y: Add missing semi-colons.
8338
8339 2003-03-27  Andrew Cagney  <cagney@redhat.com>
8340
8341         * regcache.c (write_sp): Delete function and references.
8342         * inferior.h (write_sp): Delete declaration.
8343         * valops.c (hand_function_call): Replace write_sp with
8344         TARGET_WRITE_SP.
8345         * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8346         (sparc_pop_frame): Ditto.
8347
8348 2003-03-27  Andrew Cagney  <cagney@redhat.com>
8349
8350         * NEWS: Mention removal of support for hppa*-*-bsd* and
8351         hppa*-*-osf* natives, and hppa*-*-pro* target.
8352         * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8353         * config/pa/xm-pa.h: Obsolete file.
8354         * config/pa/xm-hppab.h: Obsolete file.
8355         * config/pa/nm-hppab.h: Obsolete file.
8356         * config/pa/tm-hppab.h: Obsolete file.
8357         * config/pa/tm-hppao.h: Obsolete file.
8358         * config/pa/nm-hppao.h: Obsolete file.
8359         * config/pa/tm-pro.h: Obsolete file.
8360         * config/pa/hppaosf.mt: Obsolete file.
8361         * config/pa/hppaosf.mh: Obsolete file.
8362         * config/pa/hppapro.mt: Obsolete file.
8363         * config/pa/hppabsd.mt: Obsolete file.
8364         * config/pa/hppabsd.mh: Obsolete file.
8365         * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8366         * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8367         hppa*-*-osf*.
8368
8369 2003-03-27  Andrew Cagney  <cagney@redhat.com>
8370
8371         * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8372         push_arguments.  Don't set push_return_address or write_sp.
8373         (d10v_push_dummy_call): Replace d10v_push_arguments.
8374         (d10v_push_return_address, d10v_write_sp): Delete function,
8375         handled by push_dummy_call.
8376
8377 2003-03-26  Andrew Cagney  <cagney@redhat.com>
8378
8379         * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8380         (push_dummy_call): New pure multi-arch replacement with gdbarch,
8381         regcache and dummy_addr parameters.
8382         * gdbarch.h, gdbarch.c: Re-generate.
8383         * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8384         available; assume it will handle stack alignment and return
8385         address issues.  Fall back to DEPRECATED_PUSH_ARGUMENTS and
8386         legacy_push_arguments.
8387         (legacy_push_arguments): Rename default_push_arguments.
8388         * value.h (legacy_push_arguments): Rename default_push_arguments.
8389         * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8390         * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8391         * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8392         * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8393         * config/i386/tm-symmetry.h: Update.
8394         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8395         * x86-64-tdep.c (x86_64_init_abi): Update.
8396         * v850-tdep.c (v850_gdbarch_init): Update.
8397         * sparc-tdep.c (sparc_gdbarch_init): Update.
8398         * sh-tdep.c (sh_gdbarch_init): Update.
8399         * s390-tdep.c (s390_gdbarch_init): Update.
8400         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8401         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8402         * mips-tdep.c (mips_gdbarch_init): Update.
8403         * mcore-tdep.c (mcore_gdbarch_init): Update.
8404         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8405         * ia64-tdep.c (ia64_gdbarch_init): Update.
8406         * i386-tdep.c (i386_gdbarch_init): Update.
8407         * hppa-tdep.c (hppa_gdbarch_init): Update.
8408         * h8300-tdep.c (h8300_gdbarch_init): Update.
8409         * frv-tdep.c (frv_gdbarch_init): Update.
8410         * d10v-tdep.c (d10v_gdbarch_init): Update.
8411         * cris-tdep.c (cris_gdbarch_init): Update.
8412         * avr-tdep.c (avr_gdbarch_init): Update.
8413         * arm-tdep.c (arm_gdbarch_init): Update.
8414         * arm-linux-tdep.c (arm_linux_init_abi): Update.
8415         * alpha-tdep.c (alpha_gdbarch_init): Update.
8416
8417 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
8418
8419         * signals/signals.c (do_target_signal_to_host): Correct realtime
8420         signal range test.
8421
8422 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
8423
8424         * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8425         (struct sal_chain, map_catch_names): Remove.
8426         (catch_exception_command_1): Don't call
8427         handle_gnu_4_16_catch_command.
8428
8429 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
8430
8431         From Mark Dettinger <dettinge@de.ibm.com>:
8432         * dwarf2cfi.c (read_2u): Increment pointer by two.
8433
8434 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
8435
8436         * signals/signals.c: Fix typos in last change.
8437
8438 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
8439
8440         * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8441         not already defined.  Use __SIGRTMIN if available.
8442         (target_signal_from_host): Remove SIGRTMIN block.
8443         (do_target_signal_to_host): Remove SIGRTMIN block; check that
8444         the signal is within the realtime range.
8445
8446 2003-03-25  Adam Fedor  <fedor@gnu.org>
8447
8448         * Makefile.in (infrun.o): Add $(language_h)
8449         * infrun.c (handle_inferior_event): Use skip_language_trampoline
8450         for language specific trampolines.
8451         * language.h (struct language_defn): Add skip_trampoline.
8452         (skip_language_trampoline): Declare.
8453         * language.c (unk_lang_trampoline, skip_language_trampoline):
8454         New functions.
8455         (unknown_language_defn, auto_language_defn, local_language_defn):
8456         Add ukn_lang_trampoline.
8457         * ada-lang.c (ada_language_defn): Add NULL for language
8458         specific skip_trampoline.
8459         * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8460         scm-lang.c: Likewise.
8461         * objc-lang.c (objc_skip_trampoline): New function.
8462         (objc_language_defn): Add objc_skip_trampoline.
8463
8464 2003-03-25  Andrew Cagney  <cagney@redhat.com>
8465
8466         * frame.c (get_prev_frame): Delay validating a frame's ID -
8467         non-NULL, didn't go backwards - until an attempt to unwind it to
8468         the previous frame.
8469
8470 2003-03-25  Andrew Cagney  <cagney@redhat.com>
8471
8472         * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8473         EXTRA_STACK_ALIGNMENT_NEEDED.  Default to 0 not 1.
8474         * gdbarch.h, gdbarch.c: Re-generate.
8475         * config/sparc/tm-sparc.h
8476         (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8477         * sparc-tdep.c (sparc_gdbarch_init): Set
8478         deprecated_extra_stack_alignment_needed.
8479         * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8480         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8481         extra_stack_alignment_needed.
8482         * v850-tdep.c (v850_gdbarch_init): Ditto.
8483         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8484         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8485         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8486         * cris-tdep.c (cris_gdbarch_init): Ditto.
8487         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8488         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8489
8490 2003-03-25  Andrew Cagney  <cagney@redhat.com>
8491
8492         * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8493         STORE_STRUCT_RETURN.
8494         * gdbarch.h, gdbarch.c: Regenerate.
8495         * d10v-tdep.c (d10v_store_struct_return): Delete function.
8496         (d10v_push_arguments): Set the struct return register.
8497         (d10v_gdbarch_init): Update.
8498         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8499         * x86-64-tdep.c (x86_64_init_abi): Update.
8500         * vax-tdep.c (vax_gdbarch_init): Update.
8501         * v850-tdep.c (v850_gdbarch_init): Update.
8502         * sparc-tdep.c (sparc_gdbarch_init): Update.
8503         * sh-tdep.c (sh_gdbarch_init): Update.
8504         * s390-tdep.c (s390_gdbarch_init): Update.
8505         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8506         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8507         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8508         * mips-tdep.c (mips_gdbarch_init): Update.
8509         * mcore-tdep.c (mcore_gdbarch_init): Update.
8510         * m68k-tdep.c (m68k_gdbarch_init): Update.
8511         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8512         * ia64-tdep.c (ia64_gdbarch_init): Update.
8513         * i386-tdep.c (i386_gdbarch_init): Update.
8514         * hppa-tdep.c (hppa_gdbarch_init): Update.
8515         * h8300-tdep.c (h8300_gdbarch_init): Update.
8516         * frv-tdep.c (frv_gdbarch_init): Update.
8517         * cris-tdep.c (cris_gdbarch_init): Update.
8518         * avr-tdep.c (avr_gdbarch_init): Update.
8519         * arm-tdep.c (arm_gdbarch_init): Update.
8520         * alpha-tdep.c (alpha_gdbarch_init): Update.
8521
8522 2003-03-25  Andrew Cagney  <cagney@redhat.com>
8523
8524         * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8525         (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8526         CALL_DUMMY_STACK_ADJUST with a predicate variable.
8527         * gdbarch.h, gdbarch.c: Regenerate.
8528         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8529         call_dummy_stack_adjust_p.
8530         * vax-tdep.c (vax_gdbarch_init): Ditto.
8531         * v850-tdep.c (v850_gdbarch_init): Ditto.
8532         * sh-tdep.c (sh_gdbarch_init): Ditto.
8533         * s390-tdep.c (s390_gdbarch_init): Ditto.
8534         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8535         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8536         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8537         * mips-tdep.c (mips_gdbarch_init): Ditto.
8538         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8539         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8540         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8541         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8542         * i386-tdep.c (i386_gdbarch_init): Ditto.
8543         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8544         * frv-tdep.c (frv_gdbarch_init): Ditto.
8545         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8546         * cris-tdep.c (cris_gdbarch_init): Ditto.
8547         * avr-tdep.c (avr_gdbarch_init): Ditto.
8548         * arm-tdep.c (arm_gdbarch_init): Ditto.
8549         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8550         * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8551         * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8552         * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8553         * sparc-tdep.c (sparc_gdbarch_init): Update.  Do not set
8554         call_dummy_stack_adjust_p.
8555         * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8556         (CALL_DUMMY_STACK_ADJUST): Delete macro.
8557         * sparc-tdep.c (sparc32_push_arguments): Update.
8558         * valops.c (hand_function_call): Update.
8559
8560 2003-03-25  Corinna Vinschen  <vinschen@redhat.com>
8561
8562         * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8563         set_gdbarch_char_signed.
8564
8565 2003-03-25  Richard Earnshaw  <rearnsha@arm.com>
8566
8567         PR cli/548
8568         * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8569
8570 2003-03-25  Richard Earnshaw  <rearnsha@arm.com>
8571
8572         * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8573         (_initialize_arm_tdep): Don't set tm_print_insn.
8574
8575 2003-03-24  Adam Fedor  <fedor@gnu.org>
8576
8577         * Makefile.in (YYOBJ): Add objc-exp.tab.o
8578         * objc-lang.h: Add multiple inclusion protection.
8579         (start_msglist, add_msglist, end_msglist): Additional declarations.
8580
8581 2003-03-24  Richard Earnshaw  <rearnsha@arm.com>
8582
8583         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8584         value was renamed to ARM_FLOAT_SOFT_FPA.
8585
8586 2003-03-23  Andrew Cagney  <cagney@redhat.com>
8587
8588         * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8589         (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8590         * gdbarch.h, gdbarch.c: Regenerate.
8591         * valops.c (hand_function_call): Update.
8592         * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8593         * frame.c (legacy_saved_regs_this_id): Update.
8594         (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8595         * dummy-frame.h: Update.
8596         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8597         * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8598         * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8599         * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8600         * config/m68k/tm-sun3.h: Update.
8601         * blockframe.c (inside_main_func, frame_chain_valid): Update.
8602         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8603         * x86-64-tdep.c (x86_64_init_abi): Update.
8604         * vax-tdep.c (vax_gdbarch_init): Update.
8605         * v850-tdep.c (v850_gdbarch_init): Update.
8606         * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8607         * sh-tdep.c (sh_gdbarch_init): Update.
8608         * s390-tdep.c (s390_gdbarch_init): Update.
8609         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8610         (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8611         (frame_get_saved_regs): Update.
8612         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8613         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8614         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8615         * mips-tdep.c (mips_gdbarch_init): Update.
8616         * mcore-tdep.c (mcore_gdbarch_init): Update.
8617         * m68k-tdep.c (m68k_gdbarch_init): Update.
8618         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8619         * ia64-tdep.c (ia64_gdbarch_init): Update.
8620         * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8621         * i386-interix-tdep.c (i386_interix_init_abi): Update.
8622         (i386_interix_back_one_frame): Update.
8623         * hppa-tdep.c (hppa_gdbarch_init): Update.
8624         (hppa_init_extra_frame_info): Update.
8625         * h8300-tdep.c (h8300_gdbarch_init): Update.
8626         * frv-tdep.c (frv_gdbarch_init): Update.
8627         * cris-tdep.c (cris_gdbarch_init): Update.
8628         * avr-tdep.c (avr_gdbarch_init): Update.
8629         * arm-tdep.c (arm_gdbarch_init): Update.
8630         * alpha-tdep.c (alpha_gdbarch_init): Update.
8631
8632 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
8633
8634         * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8635         (arm_get_fp_model): Declare.
8636         * arm-tdep.c (fp_model_strings): New string array.
8637         (arm_fp_model, current_fp_model): New variables.
8638         (arm_get_fp_model): New function.
8639         (arm_set_fp): New function.
8640         (set_fp_model_sfunc): New function.
8641         (show_fp_model): New function.
8642         (_initialize_arm_tdep): Add new command to set/show the FPU.
8643         (arm_extract_return_value): Use arm_get_fp_model.
8644         (arm_store_return_value): Likewise.
8645         (arm_gdbarch_init): Default fpa model is softfpa.  Call arm_set_fp
8646         to initialize the floating-point data types.
8647         * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8648         model is FPA.
8649
8650 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
8651
8652         * arm-tdep.c (show_arm_command): Don't print out help.  Instead, show
8653         the current setting of each value.
8654         (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8655         new_set and new_show.  Use add_setshow_cmd_full and
8656         add_setshow_boolean_cmd as appropriate.  Deprecate "set/show apcs32"
8657         commands and add new version as subcommands of "set/show arm".
8658
8659 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
8660
8661         * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8662         (set_arm_command, show_arm_command): New functions.
8663         (_initialize_arm_tdep): Add them.
8664         (num_disassembly_options): Renamed from num_flavor_options.
8665         (valid_disassembly_styles): Renamed from valid_flavors.
8666         (disassembly_style): Renamed from disassembly_flavor.
8667         (set_disassembly_style_sfunc): Renamed from
8668         set_disassembly_flavor_sfunc.
8669         (set_disassembly_style): Renamed from set_disassembly_flavor.
8670         (arm_othernames): Updated.
8671         (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8672         command.  Add "set/show arm disassembly" commands.  Deprecate
8673         "othernames" command.
8674
8675 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
8676
8677         * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8678         (arm-tdep.o): Depend on elf_arm_h.
8679
8680 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
8681
8682         * Makefile.in (coff_internal_h): Define.
8683         (arm-tdep.o): Update dependencies.
8684
8685 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
8686
8687         * arm-tdep.c (prologue_cache): Delete.
8688         (check_prologue_cache, save_prologue_cache): Delete.
8689         (arm_scan_prologue): Don't check or update the prologue_cache.
8690         (arm_gdb_arch_init): Don't initialize it.
8691         (_initialize_arm_tdep): Likewise.
8692
8693 2003-03-21  Stephane Carrez  <stcarrez@nerim.fr>
8694
8695         * MAINTAINERS (tui): Maintainer of tui code.
8696
8697 2003-03-21  Corinna Vinschen  <vinschen@redhat.com>
8698
8699         * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8700         (i386-cygwin-tdep.o): Add dependencies.
8701         * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8702         * i386-cygwin-tdep.c: New file.
8703         * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8704         * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8705
8706 2003-03-20  Andrew Cagney  <cagney@redhat.com>
8707
8708         * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8709         (handle_inferior_event): Remove code calling
8710         DYNAMIC_TRAMPOLINE_NEXTPC.
8711
8712         * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8713         already has a full path.
8714
8715         * main.c (gdb_main): Return 1.
8716         (captured_main): Call error to report an invalid interpreter.
8717
8718         * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8719         * alpha-osf1-tdep.c: Include "gdb_string.h".
8720
8721 2003-03-19  J. Brobecker  <brobecker@gnat.com>
8722
8723         Continuing work to convert the hppa targets to multiarch partial.
8724
8725         * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8726         method, now that hppa_push_dummy_frame has a conformant prototype.
8727         * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8728         inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8729         for the switch to multiarch partial.
8730
8731 2003-03-19  Kevin Buettner  <kevinb@redhat.com>
8732
8733         * mdebugread.c (parse_symbol): For stEnd, we're done counting
8734         when iss is issNull.
8735
8736 2003-03-18  Kevin Buettner  <kevinb@redhat.com>
8737
8738         * mips-tdep.c (mips_register_name): Fix fencepost error involving
8739         NUM_REGS bounds check.
8740
8741 2003-03-18  Kevin Buettner  <kevinb@redhat.com>
8742
8743         * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8744         * mips-tdep.c (gdb_assert.h): Include.
8745         (mips_generic_reg_names, mips_processor_reg_names): Make static.
8746         (mips_register_name): Handle integer registers explicitly.  Add
8747         bounds checking.
8748         (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8749         (mips_lsi33k_reg_names): Don't list integer registers; they're
8750         handled by mips_register_name() now.
8751         * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8752         * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8753         * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8754         * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8755         * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8756
8757 2003-03-18  Andrew Cagney  <cagney@redhat.com>
8758
8759         * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8760         a void pointer.
8761         * gdbtypes.h (print_scalar_formatted): Update declaration.
8762         * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8763
8764 2003-03-18  J. Brobecker  <brobecker@gnat.com>
8765
8766         * infrun.c (observer.h): Add #include.
8767         (normal_stop): Add call to observer_notify_normal_stop.
8768         * Makefile.in (infrun.o): Add dependency on observer.h.
8769
8770 2003-03-18  J. Brobecker  <brobecker@gnat.com>
8771
8772         Continuing work to convert the hppa targets to multiarch partial.
8773         * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8774         parameter. Reformat comment.
8775         * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8776         (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8777         to match new profile.
8778
8779 2003-03-18  J. Brobecker  <brobecker@gnat.com>
8780
8781         * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8782         appear to be working in any case.
8783
8784 2003-03-18  J. Brobecker  <brobecker@gnat.com>
8785
8786         * observer.c (observer_test_first_observer): New static variable.
8787         (observer_test_second_observer): Likewise.
8788         (observer_test_third_observer): Likewise.
8789         (observer_test_first_notification_function): New static function.
8790         (observer_test_second_notification_function): Likewise.
8791         (observer_test_third_notification_function): Likewise.
8792
8793 2003-03-17  J. Brobecker  <brobecker@gnat.com>
8794
8795         * hppa-tdep.c (gdb_assert.h): Add missing #include.
8796         * somsolib.c (gdb_assert.h): Likewise.
8797         * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8798         (somsolib.o): Likewise.
8799
8800 2003-03-17  Andrew Cagney  <cagney@redhat.com>
8801
8802         * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8803         BFD.  Simplify setting of di.endian.
8804
8805 2003-03-17  Andrew Cagney  <cagney@redhat.com>
8806
8807         * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8808         * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8809
8810         From Elena Zannoni  <ezannoni@redhat.com>
8811         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8812         vector and floating-point parameters.
8813         (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8814         convention.
8815         (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8816
8817 2003-03-17  Fernando Nasser  <fnasser@redhat.com>
8818
8819         * MAINTAINERS: Remove my name from several maintainership roles.
8820
8821 2003-03-17  Andrew Cagney  <cagney@redhat.com>
8822
8823         Fix frame off-by-one bug.
8824         * frame-unwind.h (frame_this_id_ftype): Replace
8825         frame_unwind_id_ftype.
8826         (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8827         (struct frame_unwind): Replace "id" with "this_id".  Replace "reg"
8828         with "prev_register".
8829         * frame-unwind.c (frame_unwind_find_by_pc): Return
8830         legacy_saved_regs_unwind instead of trad_frame_unwind.  Update
8831         comment.
8832         * dummy-frame.c (cached_find_dummy_frame): Delete function.
8833         (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8834         (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8835         (dummy_frame_unwind): Update.
8836         * sentinel-frame.c (sentinel_frame_prev_register): Replace
8837         sentinel_frame_register_unwind.
8838         (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8839         (sentinel_frame_unwinder): Update.
8840         * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8841         (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8842         * frame.c (create_sentinel_frame): Update. Initialize
8843         "prologue_cache" instead of "unwind_cache".
8844         (frame_register_unwind): Call this frame's prev_register with the
8845         next frame and this frame's prologue cache.
8846         (get_prev_frame): Simplify.  Always call prev frame's this_id with
8847         this frame and prev frame's prologue cache.  Document that this
8848         call is shifted one to the left when compared to the
8849         frame_register_unwind call.
8850         (legacy_saved_regs_prev_register): Replace
8851         frame_saved_regs_register_unwind.
8852         (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8853         (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8854         (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8855         * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8856         (d10v_frame_unwind): Update.
8857         (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8858         (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8859         (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8860         "saved_regs" with "this_saved_regs".
8861
8862 2003-03-16  Andrew Cagney  <cagney@redhat.com>
8863
8864         * frame.c (frame_pop): Don't call target_store_registers.  Fix
8865         problem reported by Mark Kettenis.
8866
8867 2003-03-16  Mark Kettenis  <kettenis@gnu.org>
8868
8869         * i386-tdep.c (i386_register_type): Renamed from
8870         i386_register_virtual_type.  Adjust function signature.
8871         (i386_gdbarch_init): Set register_type instead of
8872         deprecated_max_register_raw_size,
8873         deprecated_max_register_virtual_size and register_virtual_type.
8874
8875 2003-03-14  Andrew Cagney  <cagney@redhat.com>
8876
8877         * frame.c (get_prev_frame): When a legacy frame, always call
8878         legacy_get_prev_frame.  Simplify unwind code using assumption that
8879         the unwinder is new.
8880         (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8881         (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8882         SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8883
8884 2003-03-14  Andrew Cagney  <cagney@redhat.com>
8885
8886         * frame.c (get_saved_register): Delete function.
8887         * frame.h (get_saved_register): Delete declaration.
8888         * xstormy16-tdep.c: Update comment.
8889         * regcache.h: Update comments.
8890         * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8891         get_saved_register and extract_address, use
8892         frame_read_unsigned_register.
8893         (sparc_frame_saved_pc): Ditto.
8894         (sparc_get_saved_register): Instead of get_saved_register, use
8895         frame_register.
8896         (sparc_pop_frame): Ditto.
8897         * findvar.c: Update comments.
8898         (value_of_register): Call frame_register instead of
8899         get_saved_register.
8900         (value_from_register): Ditto.
8901         * config/sparc/tm-sparc.h: Update comment.
8902         * breakpoint.c: Update comment.
8903
8904 2003-03-14  Andrew Cagney  <cagney@redhat.com>
8905
8906         * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8907         GET_SAVED_REGISTER.
8908         * gdbarch.h, gdbarch.c: Re-generate.
8909         * frame.h: Update comments.
8910         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8911         * x86-64-tdep.c (x86_64_init_abi): Update.
8912         * sparc-tdep.c (sparc_gdbarch_init): Update.
8913         * sh-tdep.c (sh_gdbarch_init): Update.
8914         * mips-tdep.c (mips_gdbarch_init): Update.
8915         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8916         * cris-tdep.c (cris_gdbarch_init): Update.
8917         * ia64-tdep.c (ia64_gdbarch_init): Update.
8918         * frame.c (frame_register): Update.
8919         (get_saved_register): Update.
8920         * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8921
8922 2003-03-13  Andrew Cagney  <cagney@redhat.com>
8923
8924         * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8925         * gdbarch.h, gdbarch.c: Regenerate.
8926         * valops.c (hand_function_call): Update comment.
8927         * stack.c (return_command): Update comment.
8928         * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8929         * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8930         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8931         * x86-64-tdep.c (x86_64_init_abi): Update.
8932         * vax-tdep.c (vax_gdbarch_init): Update.
8933         * v850-tdep.c (v850_gdbarch_init): Update.
8934         * sparc-tdep.c (sparc_gdbarch_init): Update.
8935         * sh-tdep.c (sh_gdbarch_init): Update.
8936         * s390-tdep.c (s390_gdbarch_init): Update.
8937         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8938         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8939         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8940         * mips-tdep.c (mips_gdbarch_init): Update.
8941         * mcore-tdep.c (mcore_gdbarch_init): Update.
8942         * m68k-tdep.c (m68k_gdbarch_init): Update.
8943         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8944         * ia64-tdep.c (ia64_gdbarch_init): Update.
8945         * i386-tdep.c (i386_gdbarch_init): Update.
8946         * hppa-tdep.c (hppa_gdbarch_init): Update.
8947         * h8300-tdep.c (h8300_gdbarch_init): Update.
8948         * frv-tdep.c (frv_gdbarch_init): Update.
8949         * cris-tdep.c (cris_gdbarch_init): Update.
8950         * avr-tdep.c (avr_gdbarch_init): Update.
8951         * arm-tdep.c (arm_gdbarch_init): Update.
8952         * alpha-tdep.c (alpha_gdbarch_init): Update.
8953
8954 2003-03-13  Andrew Cagney  <cagney@redhat.com>
8955
8956         * frame.c (legacy_frame_p): New function.
8957         (get_prev_frame): Use legacy_frame_p.
8958         * frame.h (legacy_frame_p): Declare.
8959
8960 2003-03-13  D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8961
8962         * MAINTAINERS (write after approval): Alphabetically
8963         listing corrected.
8964
8965 2003-03-13  D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8966
8967         * MAINTAINERS (write after approval): Add myself.
8968
8969 2003-03-12  Andrew Cagney  <cagney@redhat.com>
8970
8971         * frame.c (get_prev_frame): Rename the frame parameter to
8972         "this_frame".
8973         (get_next_frame, legacy_get_prev_frame): Ditto.
8974
8975 2003-03-12  Andrew Cagney  <cagney@redhat.com>
8976
8977         * frame.c (get_current_frame): Check target_has_registers before
8978         checking target_has_stack.
8979         * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8980         instead of deprecated_selected_frame.
8981         * findvar.c (value_of_register): Pass "frame", not
8982         deprecated_selected_frame, to value_of_builtin_reg.
8983
8984 2003-03-12  Andrew Cagney  <cagney@redhat.com>
8985
8986         * regcache.c (regcache_cooked_write_signed): New function.
8987         (regcache_cooked_write_unsigned): New function.
8988         (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8989         (regcache_cooked_read_signed): Fix regnum in range assertion.
8990         * regcache.h (regcache_cooked_write_signed): Declare.
8991         (regcache_cooked_write_unsigned): Declare.
8992
8993 2003-03-12  Andrew Cagney  <cagney@redhat.com>
8994
8995         * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8996         * gdbarch.h, gdbarch.c: Re-generate.
8997         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8998         * x86-64-tdep.h: Update.
8999         * x86-64-tdep.c (x86_64_init_abi): Update.
9000         * v850-tdep.c (v850_gdbarch_init): Update.
9001         * sparc-tdep.c (sparc_gdbarch_init): Update.
9002         * sh-tdep.c (sh_gdbarch_init): Update.
9003         * s390-tdep.c (s390_gdbarch_init): Update.
9004         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9005         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9006         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9007         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9008         * mips-tdep.c (mips_gdbarch_init): Update.
9009         * mcore-tdep.c (mcore_gdbarch_init): Update.
9010         * m68k-tdep.c (m68k_gdbarch_init): Update.
9011         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9012         * ia64-tdep.c (ia64_gdbarch_init): Update.
9013         * i386-tdep.c (i386_gdbarch_init): Update.
9014         * i386-interix-tdep.c (i386_interix_init_abi): Update.
9015         * hppa-tdep.c (hppa_gdbarch_init): Update.
9016         * h8300-tdep.c (h8300_gdbarch_init): Update.
9017         * frv-tdep.c (frv_gdbarch_init): Update.
9018         * cris-tdep.c (cris_gdbarch_init): Update.
9019         * avr-tdep.c (avr_gdbarch_init): Update.
9020         * arm-tdep.c (arm_gdbarch_init): Update.
9021         * alpha-tdep.c (alpha_gdbarch_init): Update.
9022         * sh-tdep.c (sh_init_extra_frame_info): Update.
9023         (sh64_init_extra_frame_info): Update.
9024         * ns32knbsd-nat.c (frame_num_args): Update.
9025         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9026         * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9027         (xstormy16_frame_chain_valid): Update.
9028         * vax-tdep.c (vax_saved_pc_after_call): Update.
9029         * v850-tdep.c (v850_frame_chain): Update.
9030         (v850_pop_frame): Update.
9031         (v850_init_extra_frame_info): Update.
9032         * sparc-tdep.c (setup_arbitrary_frame): Update.
9033         * ns32k-tdep.c (umax_frame_num_args): Update.
9034         * s390-tdep.c (s390_pop_frame_regular): Update.
9035         * mn10300-tdep.c (mn10300_frame_chain): Update.
9036         (mn10300_pop_frame_regular): Update.
9037         (mn10300_init_extra_frame_info): Update.
9038         * mips-tdep.c (mips_init_frame_pc_first): Update.
9039         (mips_frame_chain): Update.
9040         (mips_pop_frame): Update.
9041         * mcore-tdep.c (mcore_frame_chain): Update.
9042         (mcore_pop_frame): Update.
9043         (mcore_init_extra_frame_info): Update.
9044         * arch-utils.c (init_frame_pc_default): Update.
9045         * m68k-tdep.c (isi_frame_num_args): Update.
9046         (delta68_frame_num_args): Update.
9047         (news_frame_num_args): Update.
9048         * ia64-tdep.c (ia64_pop_frame_regular): Update.
9049         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9050         (alpha_frame_chain): Update.
9051         (alpha_pop_frame): Update.
9052         * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9053         (hppa_init_extra_frame_info): Update.
9054         (hppa_frame_chain): Update.
9055         (hppa_frame_chain_valid): Update.
9056         * cris-tdep.c (cris_init_extra_frame_info): Update.
9057         * avr-tdep.c (avr_init_extra_frame_info): Update.
9058         * arm-tdep.c (arm_frame_chain_valid): Update.
9059         (arm_init_extra_frame_info): Update.
9060         (arm_pop_frame): Update.
9061         * frame.c (frame_pc_unwind): Update.
9062         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9063         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9064         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9065         * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9066         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9067         * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9068
9069 2003-03-12  Andrew Cagney  <cagney@redhat.com>
9070
9071         Eliminate the need for POP_FRAME.
9072         * frame.c (do_frame_unwind_register): New function.
9073         (frame_pop): When no POP_FRAME, pop the frame using register
9074         unwind and a scratch regcache.
9075         (frame_saved_regs_pop): Delete function.
9076         (trad_frame_unwinder): Update.
9077         * d10v-tdep.c (d10v_frame_pop): Delete function.
9078         (d10v_frame_unwind): Update.
9079         * sentinel-frame.c (sentinel_frame_pop): Delete function.
9080         (sentinel_frame_unwinder): Update.
9081         * dummy-frame.c (dummy_frame_pop): Delete function.
9082         (dummy_frame_unwind): Update.
9083         * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9084         (struct frame_unwind): Update.
9085
9086 2003-03-11  Kevin Buettner  <kevinb@redhat.com>
9087
9088         * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9089         mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9090         (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9091         Do range checks on register number obtained from debugging info.
9092         (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9093         set_gdbarch_dwarf2_reg_to_regnum().  Adjust call of
9094         set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9095         mapping function.
9096         (do_fp_register_row): Fix typo which caused double type to be
9097         used when attempting to unpack a float.
9098
9099 2003-03-11  J. Brobecker  <brobecker@gnat.com>
9100
9101         * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9102
9103 2003-03-11  Andrew Cagney  <cagney@redhat.com>
9104
9105         * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9106         frame.  Problem found by Corinna Vinschen.
9107
9108 2003-03-11  Pierre Muller  <muller@ics.u-strasbg.fr>
9109
9110         * doublest.c (floatformat_from_length): Accept also
9111         the real size of 'long double' type.
9112
9113 2003-03-10  Daniel Jacobowitz  <drow@mvista.com>
9114
9115         From Klee Dienes <kdienes@apple.com>:
9116         * breakpoint.c (bpstat_copy): Copy the command lines as well
9117         as the old value, to match what is freed in bpstat_clear.
9118
9119 2003-03-10  David Carlton  <carlton@math.stanford.edu>
9120
9121         * minsyms.c (add_minsym_to_hash_table): Replace
9122         DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9123         (compare_minimal_symbols, compact_minimal_symbols)
9124         (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9125         (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9126         of DEPRECATED_SYMBOL_MATCHES_NAME.
9127         (lookup_minimal_symbol_solib_trampoline): Ditto.
9128
9129 2003-03-10  Andrew Cagney  <cagney@redhat.com>
9130
9131         * regcache.h (regcache_cooked_read_ftype): Define.
9132         (regcache_save, regcache_restore): Add a cooked_read parameter.
9133         * regcache.c (regcache_save, regcache_restore): Update.
9134         (do_cooked_read): New function.
9135         (regcache_cpy): Pass do_cooked_read to regcache_save and
9136         regcache_restore.
9137
9138 2003-03-10  Andrew Cagney  <cagney@redhat.com>
9139
9140         * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9141         * gdbarch.h, gdbarch.c: Re-generate.
9142         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9143         * x86-64-tdep.h: Update.
9144         * x86-64-tdep.c (x86_64_init_abi): Update.
9145         * v850-tdep.c (v850_gdbarch_init): Update.
9146         * sparc-tdep.c (sparc_gdbarch_init): Update.
9147         * sh-tdep.c (sh_gdbarch_init): Update.
9148         * s390-tdep.c (s390_gdbarch_init): Update.
9149         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9150         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9151         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9152         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9153         * mips-tdep.c (mips_gdbarch_init): Update.
9154         * mcore-tdep.c (mcore_gdbarch_init): Update.
9155         * m68k-tdep.c (m68k_gdbarch_init): Update.
9156         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9157         * ia64-tdep.c (ia64_gdbarch_init): Update.
9158         * i386-tdep.c (i386_gdbarch_init): Update.
9159         * i386-interix-tdep.c (i386_interix_init_abi): Update.
9160         * hppa-tdep.c (hppa_gdbarch_init): Update.
9161         * h8300-tdep.c (h8300_gdbarch_init): Update.
9162         * frv-tdep.c (frv_gdbarch_init): Update.
9163         * cris-tdep.c (cris_gdbarch_init): Update.
9164         * avr-tdep.c (avr_gdbarch_init): Update.
9165         * arm-tdep.c (arm_gdbarch_init): Update.
9166         * alpha-tdep.c (alpha_gdbarch_init): Update.
9167         * sh-tdep.c (sh_init_extra_frame_info): Update.
9168         (sh64_init_extra_frame_info): Update.
9169         * ns32knbsd-nat.c (frame_num_args): Update.
9170         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9171         * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9172         (xstormy16_frame_chain_valid): Update.
9173         * vax-tdep.c (vax_saved_pc_after_call): Update.
9174         * v850-tdep.c (v850_frame_chain): Update.
9175         (v850_pop_frame): Update.
9176         (v850_init_extra_frame_info): Update.
9177         * sparc-tdep.c (setup_arbitrary_frame): Update.
9178         * ns32k-tdep.c (umax_frame_num_args): Update.
9179         * s390-tdep.c (s390_pop_frame_regular): Update.
9180         * mn10300-tdep.c (mn10300_frame_chain): Update.
9181         (mn10300_pop_frame_regular): Update.
9182         (mn10300_init_extra_frame_info): Update.
9183         * mips-tdep.c (mips_init_frame_pc_first): Update.
9184         (mips_frame_chain): Update.
9185         (mips_pop_frame): Update.
9186         * mcore-tdep.c (mcore_frame_chain): Update.
9187         (mcore_pop_frame): Update.
9188         (mcore_init_extra_frame_info): Update.
9189         * arch-utils.c (init_frame_pc_default): Update.
9190         * m68k-tdep.c (isi_frame_num_args): Update.
9191         (delta68_frame_num_args): Update.
9192         (news_frame_num_args): Update.
9193         * ia64-tdep.c (ia64_pop_frame_regular): Update.
9194         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9195         (alpha_frame_chain): Update.
9196         (alpha_pop_frame): Update.
9197         * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9198         (hppa_init_extra_frame_info): Update.
9199         (hppa_frame_chain): Update.
9200         (hppa_frame_chain_valid): Update.
9201         * cris-tdep.c (cris_init_extra_frame_info): Update.
9202         * avr-tdep.c (avr_init_extra_frame_info): Update.
9203         * arm-tdep.c (arm_frame_chain_valid): Update.
9204         (arm_init_extra_frame_info): Update.
9205         (arm_pop_frame): Update.
9206         * frame.c (frame_pc_unwind): Update.
9207         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9208         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9209         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9210         * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9211         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9212         * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9213
9214 2003-03-10  Andrew Cagney  <cagney@redhat.com>
9215
9216         * gdbarch.sh (gdbarch_unwind_pc): New method.
9217         * gdbarch.h, gdbarch.c: Regenerate.
9218         * frame.c (frame_pc_unwind): Rewrite.  Prefer gdbarch_unwind_pc,
9219         but use read_pc and FRAME_SAVED_PC as fall backs.
9220         (frame_saved_regs_pc_unwind): Delete function.
9221         (trad_frame_unwinder): Update.
9222         * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9223         (struct frame_unwind): Update.
9224         * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9225         (dummy_frame_unwind): Update.
9226         * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9227         (sentinel_frame_unwinder): Update.
9228         * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9229         (d10v_frame_unwind): Update.
9230         (d10v_unwind_pc): New function.
9231         (d10v_gdbarch_init): Set unwind_pc.
9232
9233 2003-03-10  Andrew Cagney  <cagney@redhat.com>
9234
9235         * gdbarch.h: Re-generate.
9236
9237         * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9238         PC.
9239         (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9240         the PC register.
9241
9242 2003-03-08  Mark Kettenis  <kettenis@gnu.org>
9243
9244         * gdbarch.sh (save_dummy_frame_tos): Add comment.
9245
9246 2003-03-08  Andrew Cagney  <cagney@redhat.com>
9247
9248         * cli-out.c: Update copyright.
9249         (cli_out_data): Define typedef.  Use instead of ui_out_data.
9250
9251 2003-03-08  Andrew Cagney  <cagney@redhat.com>
9252
9253         * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9254         the result.
9255
9256 2003-03-07  Andrew Cagney  <cagney@redhat.com>
9257
9258         * gdbarch.sh: Don't generate two macro definitions when an
9259         undefined macro taking no arguments.
9260         * gdbarch.h: Regenerate.
9261
9262 2002-03-07  Michal Ludvig  <mludvig@suse.cz>
9263
9264         * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9265         (x86_64_unwind_dummy_id): New functions.
9266         (x86_64_init_abi): Register these two new functions.
9267
9268 2003-03-07  Michal Ludvig  <mludvig@suse.cz>
9269
9270         * x86-64-tdep.c (x86_64_function_has_prologue): New function.
9271         (x86_64_skip_prologue): Move prologue detection to
9272         separate function.
9273         * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9274
9275 2003-03-05  Andrew Cagney  <cagney@redhat.com>
9276
9277         * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9278         (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9279         * frame.c (get_prev_frame): Restructure the frame ID unwind code
9280         to use unwind_dummy_id when a dummy frame.
9281         * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9282         predicate.
9283         * gdbarch.h, gdbarch.c: Regneerate.
9284
9285 2003-03-05  Andrew Cagney  <cagney@redhat.com>
9286
9287         * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9288         (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9289         Do not use d10v_read_sp or d10v_read_fp when obtaining register
9290         values.
9291
9292 2003-03-05  Andrew Cagney  <cagney@redhat.com>
9293
9294         * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9295         (struct d10v_unwind_cache): Delete field "frameless".  Replace
9296         "next_addr" with "sp_offset".  Add "r11_offset".
9297         (d10v_frame_unwind_cache): Update.
9298         (prologue_find_regs): Update.  When "mv r11, sp", save the
9299         "sp_offset" in "r11_offset".  Recognize "st rn, @r11", note that
9300         RN was saved in r11_offset.
9301
9302 2003-03-05  Andrew Cagney  <cagney@redhat.com>
9303
9304         * frame.c (deprecated_update_frame_pc_hack): Also update the the
9305         cached PC value in the next frame.
9306
9307 2003-03-05  Andrew Cagney  <cagney@redhat.com>
9308
9309         * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9310         "id_unwind_cache" with "id".
9311         (frame_id_unwind): Delete declaration.
9312         * frame.c (frame_id_unwind): Delete function.
9313         (get_prev_frame): Call the frame id unwind method directly.  Store
9314         the returned next frame's ID value in NEXT_FRAME.  Note that there
9315         is a problem with the wrong unwind ID being called with the wrong
9316         unwind cache.
9317
9318 2003-03-05  Daniel Jacobowitz  <drow@mvista.com>
9319
9320         * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9321
9322 2003-03-05  James Ingham <jingham@apple.com>
9323             Daniel Jacobowitz  <drow@mvista.com>
9324
9325         * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9326         (auto_cp_abi): New variable.
9327         (current_cp_abi, num_cp_abis): Make static.
9328         (CP_ABI_MAX): Define.
9329         (cp_abis): Turn into an array.
9330         (value_virtual_fn_field): Fix formatting.
9331         (switch_to_cp_abi, register_cp_abi): Update.  register_cp_abi now
9332         takes a pointer.
9333         (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9334         (list_cp_abis, _initialize_cp_abi): New functions.
9335         * cp-abi.h: Add prototype for set_cp_abi_as_auto_default.  Remove
9336         declarations for cp_abis, num_cp_abis, current_cp_abi, and
9337         switch_to_cp_abi.  Update prototype for register_cp_abi.
9338         * Makefile.in (cp-abi.o): Update dependencies.
9339         * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9340         instead of switch_to_cp_abi.
9341         * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise.  Update call to
9342         register_cp_abi.
9343         * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9344         register_cp_abi.
9345         * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9346
9347 2003-03-05  Daniel Jacobowitz  <drow@mvista.com>
9348
9349         * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9350         * dwarf2loc.c: Include "regcache.h".
9351         (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum.  Use
9352         register_size.
9353         * Makefile.in (dwarf2loc.o): Update dependencies.
9354
9355 2003-03-04  Theodore A. Roth  <troth@openavr.org>
9356
9357         * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9358         number of io registers reported by remote target is not a multiple of
9359         step.
9360
9361 2003-03-04  David Carlton  <carlton@math.stanford.edu>
9362
9363         * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9364         (lookup_symbol_aux_psymtabs): Update call to
9365         lookup_partial_symbol.
9366         (lookup_transparent_type, find_main_psymtab)
9367         (make_symbol_overload_list): Ditto.
9368
9369 2003-03-04  Kazu Hirata  <kazu@cs.umass.edu>
9370
9371         * MAINTAINERS (Write after approval): Update my email address.
9372
9373 2003-03-03  Andrew Cagney  <cagney@redhat.com>
9374
9375         Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9376         * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9377         predicate.  Replace MAX_REGISTER_RAW_SIZE.
9378         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9379         MAX_REGISTER_VIRTUAL_SIZE.
9380         * regcache.c (legacy_max_register_raw_size): New function.
9381         (legacy_max_register_virtual_size): New function.
9382         * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9383         (MAX_REGISTER_RAW_SIZE): Define.
9384         (legacy_max_register_raw_size): Declare.
9385         (legacy_max_register_virtual_size): Declare.
9386         * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9387         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9388         * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9389         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9390         * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9391         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9392         * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9393         * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9394         * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9395         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9396         * vax-tdep.c (vax_gdbarch_init): Update.
9397         * v850-tdep.c (v850_gdbarch_init): Update.
9398         * sparc-tdep.c (sparc_gdbarch_init): Update.
9399         * sh-tdep.c (sh_gdbarch_init): Update.
9400         * s390-tdep.c (s390_gdbarch_init): Update.
9401         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9402         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9403         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9404         * mips-tdep.c (mips_gdbarch_init): Update.
9405         * mcore-tdep.c (mcore_gdbarch_init): Update.
9406         * m68k-tdep.c (m68k_gdbarch_init): Update.
9407         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9408         * ia64-tdep.c (ia64_gdbarch_init): Update.
9409         * i386-tdep.c (i386_gdbarch_init): Update.
9410         * hppa-tdep.c (hppa_gdbarch_init): Update.
9411         * h8300-tdep.c (h8300_gdbarch_init): Update.
9412         * frv-tdep.c (frv_gdbarch_init): Update.
9413         * cris-tdep.c (cris_gdbarch_init): Update.
9414         * avr-tdep.c (avr_gdbarch_init): Update.
9415         * arm-tdep.c (arm_gdbarch_init): Update.
9416         * alpha-tdep.c (alpha_gdbarch_init): Update.
9417         * d10v-tdep.c (d10v_gdbarch_init): Do not set
9418         max_register_raw_size or max_register_virtual_size.
9419
9420 2003-03-03  David Carlton  <carlton@math.stanford.edu>
9421
9422         * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9423         SYMBOL_MATCHES_NAME, add comment.
9424         (SYMBOL_MATCHES_NATURAL_NAME): New.
9425         * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9426         SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9427         (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9428         * symtab.c (lookup_partial_symbol): Use
9429         SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME.  Delete
9430         unhelpful comment.
9431         (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9432         SYMBOL_MATCHES_NAME.
9433         Fix for PR c++/33.
9434
9435 2003-03-03  David Carlton  <carlton@math.stanford.edu>
9436
9437         * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9438         * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9439         by regexp matching against SYMBOL_NATURAL_NAME.
9440
9441 2003-03-03  David Carlton  <carlton@math.stanford.edu>
9442
9443         * linespec.c (find_method): Extract code into collect_methods.
9444         (collect_methods): New.
9445
9446 2003-03-02  Mark Kettenis  <kettenis@gnu.org>
9447
9448         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9449         get_frame_base.
9450
9451         * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9452         DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9453
9454 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
9455
9456         * arch-utils.c (generic_register_byte): Fix to use the loop index
9457         and not regnum when summing the size of all registers up to regnum.
9458
9459 2003-03-01  Andrew Cagney  <cagney@redhat.com>
9460
9461         * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9462         FRAME_INIT_SAVED_REGS.
9463         * gdbarch.h, gdbarch.c: Regenerate.
9464         * stack.c (frame_info): Update.
9465         * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9466         (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9467         (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9468         * ns32k-tdep.c (ns32k_pop_frame): Update.
9469         * mips-tdep.c (mips_pop_frame): Update.
9470         * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9471         * ia64-tdep.c (ia64_frame_chain): Update.
9472         (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9473         (ia64_frameless_function_invocation): Update.
9474         (ia64_init_extra_frame_info): Update.
9475         (ia64_pop_frame_regular): Update.
9476         * frame.h (struct frame_info): Update comment.
9477         (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9478         * frame.c (frame_saved_regs_register_unwind): Update.
9479         (frame_saved_regs_register_unwind): Update.
9480         (deprecated_generic_get_saved_register): Update.
9481         * cris-tdep.c: Update comment.
9482         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9483         Rename macro.
9484         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9485         * x86-64-tdep.c (x86_64_init_abi): Update.
9486         * vax-tdep.c (vax_gdbarch_init): Update.
9487         * v850-tdep.c (v850_gdbarch_init): Update.
9488         * sparc-tdep.c (sparc_gdbarch_init): Update.
9489         * sh-tdep.c (sh_gdbarch_init): Update.
9490         * s390-tdep.c (s390_gdbarch_init): Update.
9491         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9492         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9493         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9494         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9495         * mips-tdep.c (mips_gdbarch_init): Update.
9496         * mcore-tdep.c (mcore_gdbarch_init): Update.
9497         * m68k-tdep.c (m68k_gdbarch_init): Update.
9498         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9499         * ia64-tdep.c (ia64_gdbarch_init): Update.
9500         * i386-tdep.c (i386_gdbarch_init): Update.
9501         * frv-tdep.c (frv_gdbarch_init): Update.
9502         * avr-tdep.c (avr_gdbarch_init): Update.
9503         * arm-tdep.c (arm_gdbarch_init): Update.
9504         * alpha-tdep.c (alpha_gdbarch_init): Update.
9505
9506 2003-03-01  Andrew Cagney  <cagney@redhat.com>
9507
9508         * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9509         option enum and switch.  When no windows, set the interpreter to
9510         INTERP_CONSOLE.
9511
9512 2003-03-01  Andrew Cagney  <cagney@redhat.com>
9513
9514         * main.c (captured_main): Replace magic option characters with an
9515         enum.
9516
9517 2003-03-01  Andrew Cagney  <cagney@redhat.com>
9518
9519         * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9520         INIT_EXTRA_FRAME_INFO.
9521         * gdbarch.h, gdbarch.c: Regenerate.
9522         * arm-tdep.c: Update comments.
9523         * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9524         * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9525         * frame.h, avr-tdep.c: Ditto.
9526         * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9527         (create_new_frame, legacy_get_prev_frame): Ditto.
9528         * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9529         * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9530         * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9531         deprecated_init_extra_frame_info instead of init_extra_frame_info.
9532         * x86-64-tdep.c (x86_64_init_abi): Ditto.
9533         * v850-tdep.c (v850_gdbarch_init): Ditto.
9534         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9535         * sh-tdep.c (sh_gdbarch_init): Ditto.
9536         * s390-tdep.c (s390_gdbarch_init): Ditto.
9537         * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9538         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9539         * mips-tdep.c (mips_gdbarch_init): Ditto.
9540         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9541         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9542         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9543         * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9544         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9545         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9546         * frv-tdep.c (frv_gdbarch_init): Ditto.
9547         * cris-tdep.c (cris_gdbarch_init): Ditto.
9548         * avr-tdep.c (avr_gdbarch_init): Ditto.
9549         * arm-tdep.c (arm_gdbarch_init): Ditto.
9550         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9551         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9552
9553 2003-03-01  Andrew Cagney  <cagney@redhat.com>
9554
9555         * gdbarch.sh (register_type): New function with predicate.
9556         (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9557         * gdbarch.h, gdbarch.c: Re-generate.
9558         * arch-utils.c (generic_register_byte): Use generic_register_size.
9559         (generic_register_size): When available, use
9560         gdbarch_register_type.
9561         * regcache.c (init_regcache_descr): When available, initialize the
9562         register type array using gdbarch_register_type.  If the
9563         architecture supplies gdbarch_register_type, do not use the legacy
9564         regcache layout.
9565         * d10v-tdep.c (d10v_register_type): Replace
9566         d10v_register_virtual_type.
9567         (d10v_gdbarch_init): Set register_type instead of
9568         register_virtual_type.
9569
9570 2003-03-01  Andrew Cagney  <cagney@redhat.com>
9571
9572         * Makefile.in (ax-gdb.o): Update dependencies.
9573         * ax-gdb.c: Include "regcache.h".
9574         (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9575         * findvar.c (value_of_register): Ditto.
9576         * infcmd.c (default_print_registers_info): Ditto.
9577
9578 2003-03-01  Mark Kettenis  <kettenis@gnu.org>
9579
9580         * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9581         DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9582
9583 2003-03-01  Mark Kettenis  <kettenis@gnu.org>
9584
9585         * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9586         of STREQ.
9587
9588 2003-02-28  Daniel Jacobowitz  <drow@mvista.com>
9589
9590         * Makefile.in (dwarf2loc.o): Update dependencies.
9591         * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9592         * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9593         * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9594         * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9595         (locexpr_tracepoint_var_ref): New function.
9596         (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9597
9598 2003-02-28  Andrew Cagney  <cagney@redhat.com>
9599
9600         * regcache.c (register_size): New function.
9601         * regcache.h (register_size): Declare
9602         * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9603         max_register_size instead of MAX_REGISTER_RAW_SIZE.
9604
9605 2003-02-28  David Carlton  <carlton@math.stanford.edu>
9606
9607         * linespec.c (decode_compound): Extract code into find_method.
9608         (find_method): New.
9609
9610 2003-02-28  J. Brobecker  <brobecker@gnat.com>
9611
9612         * Makefile.in: Add rules to build and link in observer.o.
9613
9614 2003-02-27  J. Brobecker  <brobecker@gnat.com>
9615
9616         * observer.c: Minor comments edits.
9617
9618 2003-02-27  J. Brobecker  <brobecker@gnat.com>
9619
9620         * observer.h, observer.c: New file.
9621
9622 2003-02-27  Andrew Cagney  <cagney@redhat.com>
9623
9624         * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9625
9626 2003-02-27  Stephane Carrez  <stcarrez@nerim.fr>
9627
9628         * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9629         (M6812_OP_STS_EXT): Likewise.
9630         (m6811_prologue): Use the above to recognize prologue.
9631         (m6812_prologue): Likewise.
9632
9633 2003-02-27  David Carlton  <carlton@math.stanford.edu>
9634
9635         * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9636         SYMBOL_PRINT_NAME.
9637         (compare_psymbols): Ditto.
9638         * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9639
9640 2003-02-27  Michael Snyder  <msnyder@redhat.com>
9641
9642         * f-lang.c (build_fortran_types): New function.
9643         (_initialize_f_language): Gdbarch-register built-in fortran types.
9644         * doublest.c (extract_floating): Fix warning text.
9645
9646 2003-02-27  Andrew Cagney  <cagney@redhat.com>
9647
9648         * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9649         predicate.  Replaces PUSH_DUMMY_FRAME.
9650         * gdbarch.h, gdbarch.c: Regnerate.
9651         * valops.c (hand_function_call): Update.  Call
9652         generic_push_dummy_frame directly.
9653         * vax-tdep.c (vax_gdbarch_init): Update.
9654         * sparc-tdep.c (sparc_gdbarch_init): Update.
9655         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9656         * m68k-tdep.c (m68k_gdbarch_init): Update.
9657         * hppa-tdep.c (hppa_gdbarch_init): Update.
9658         * alpha-tdep.c (alpha_gdbarch_init): Update.
9659         * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9660         * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9661         * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9662         * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9663         push_dummy_frame to generic_push_dummy_frame.
9664         * v850-tdep.c (v850_gdbarch_init): Ditto.
9665         * sh-tdep.c (sh_gdbarch_init): Ditto.
9666         * s390-tdep.c (s390_gdbarch_init): Ditto.
9667         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9668         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9669         * mips-tdep.c (mips_gdbarch_init): Ditto.
9670         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9671         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9672         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9673         * i386-tdep.c (i386_gdbarch_init): Ditto.
9674         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9675         * frv-tdep.c (frv_gdbarch_init): Ditto.
9676         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9677         * cris-tdep.c (cris_gdbarch_init): Ditto.
9678         * avr-tdep.c (avr_gdbarch_init): Ditto.
9679         * arm-tdep.c (arm_gdbarch_init): Ditto.
9680
9681 2003-02-26  Kevin Buettner  <kevinb@redhat.com>
9682
9683         * mips-tdep.c (show_mips_abi): New function.
9684         (_initialize_mips_tdep): Use show_mips_abi() to implement the
9685         command ``show mips abi''.
9686
9687 2003-02-26  Jeff Johnston  <jjohnstn@redhat.com>
9688
9689         From Elena Zannoni  <ezannoni@redhat.com>
9690         * dbxread.c (process_one_symbol): Only record line 0 if one or
9691         more sline entries have been seen for the function.
9692
9693 2003-02-26  Michael Chastain  <mec@shout.net>
9694
9695         * configure: Regenerate with autoconf 000227.
9696
9697 2003-02-26  Michael Chastain  <mec@shout.net>
9698
9699         Close PR build/660.
9700         * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9701         for old libc5/glibc.
9702         * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9703
9704 2003-02-26  Kris Warkentin  <kewarken@qnx.com>
9705
9706         * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9707         * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9708
9709 2003-02-26  Michael Chastain  <mec@shout.net>
9710
9711         * configure.in: New variable HAVE_UINTPTR_T.
9712         * configure, config.in: Regenerated.
9713
9714 2003-02-26  Daniel Jacobowitz  <drow@mvista.com>
9715
9716         Fix PR build/1097.
9717         * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9718
9719 2003-02-25  Andrew Cagney  <cagney@redhat.com>
9720
9721         * frame.c (get_prev_frame): Add comment on check for
9722         inside_entry_func. Only check for inside_entry_file when not a
9723         dummy and not a sentinel.  Check that the new frame is not inner
9724         to the old frame.
9725
9726 2003-02-25  Andrew Cagney  <cagney@redhat.com>
9727
9728         * frame.c (frame_debug): New variable.
9729         (_initialize_frame): Add "set/show debug frame" command.
9730         (get_prev_frame): When frame_debug, print reason why unwind
9731         failed.
9732
9733 2003-02-25  Michael Chastain  <mec@shout.net>
9734
9735         * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9736         to avoid uintptr_t definition problems.
9737
9738 2003-02-25  David Carlton  <carlton@math.stanford.edu>
9739
9740         * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9741         (SYMBOL_LINKAGE_NAME): Ditto.
9742         (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9743         SYMBOL_LINKAGE_NAME.
9744         (struct general_symbol_info): Expand comment.
9745         (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9746         (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9747         (SYMBOL_MATCHES_REGEXP): Ditto.
9748         * symtab.c (symbol_natural_name): New function.
9749         * objfiles.h: Replace all uses of SYMBOL_NAME by
9750         DEPRECATED_SYMBOL_NAME.
9751         * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9752         * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9753         * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9754         * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9755         * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9756         * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9757         * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9758         * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9759         * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9760         * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9761         * ada-exp.y: Ditto.
9762         * ada-exp.y: Update copyright.
9763         * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9764         * cp-valprint.c: Ditto.
9765
9766 2003-02-25  Jeff Johnston  <jjohnstn@redhat.com>
9767
9768         * infptrace.c (detach): Do not flag error if ptrace detach fails
9769         and errno is set to ESRCH.
9770
9771 2003-02-24  Andrew Cagney  <cagney@redhat.com>
9772
9773         * infptrace.c (udot_info): Change type of udot_off to long.  Use
9774         paddr when printing udot_off's value.
9775
9776 2003-02-24  David Carlton  <carlton@math.stanford.edu>
9777
9778         * symtab.c (make_symbol_overload_list): Only read in partial
9779         symtabs containing a matching partial symbol.
9780
9781 2003-02-24  David Carlton  <carlton@math.stanford.edu>
9782
9783         * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9784         do the comparison, not strcmp.
9785         * symfile.c (compare_psymbols): Ditto.
9786         * defs.h: Declare strcmp_iw_ordered.
9787         * utils.c (strcmp_iw_ordered): New function.
9788
9789 2003-02-24  Jim Blandy  <jimb@redhat.com>
9790
9791         * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9792         support, shared libs): Remove my name from here, to better reflect
9793         reality.
9794
9795 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
9796
9797         * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9798         (target_ops): Add to_have_continuable_watchpoint.
9799         * target.c (update_current_target): Add INHERIT line for
9800         to_have_continuable_watchpoint.
9801         * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9802         * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9803         config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9804         config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9805
9806 2003-02-24  Elena Zannoni  <ezannoni@redhat.com>
9807
9808         * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9809         maintainership.
9810
9811 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
9812
9813         * solib.c (solib_open): Call target defined search function after
9814         failing with solib-search-path.
9815         * solist.h (target_so_ops): Add find_and_open_solib function hook and
9816         create define TARGET_SO_FIND_AND_OPEN_SOLIB.
9817
9818 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
9819
9820         * MAINTAINERS: Add myself to Write After section.
9821
9822 2003-02-23  Stephane Carrez  <stcarrez@nerim.fr>
9823
9824         * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9825
9826 2003-02-22  Stephane Carrez  <stcarrez@nerim.fr>
9827
9828         * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9829         (m68hc11_add_reggroups): New function.
9830         (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9831         (m68hc11_gdbarch_init): Install the reggroups.
9832         (_initialize_m68hc11_tdep): Initialize them.
9833
9834 2003-02-21  James E Wilson  <wilson@tuliptree.org>
9835
9836         * MAINTAINERS: Update my email address.
9837
9838 2003-02-21  David Carlton  <carlton@math.stanford.edu>
9839
9840         * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9841
9842 2003-02-21  Daniel Jacobowitz  <drow@mvista.com>
9843
9844         Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9845         * symtab.h: Add opaque declarations of struct axs_value and
9846         struct agent_expr.
9847         (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9848         (struct location_funcs): New type.
9849         (struct symbol): Add "loc" to aux_value.
9850         (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9851         * dwarf2read.c: Include "dwarf2expr.h".
9852         (dwarf2_symbol_mark_computed): New function.
9853         (read_func_scope): Use it.
9854         (var_decode_location): New function.
9855         (new_symbol): Use it.
9856         * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9857
9858         * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9859         (dwarf2expr_h, dwarf2loc_h): New variables.
9860         (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9861         (dwarf2expr.o, dwarf2loc.o): New rules.
9862         (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9863         * buildsym.c (finish_block): Handle LOC_COMPUTED and
9864         LOC_COMPUTED_ARG.
9865         * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9866         * m2-exp.y (yylex): Likewise.
9867         * printcmd.c (address_info, print_frame_args): Likewise.
9868         * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9869         * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9870         * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9871         (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9872         * symtab.c (lookup_block_symbol): Likewise.
9873
9874 2003-02-20  Adam Fedor  <fedor@gnu.org>
9875
9876         * symtab.h: Remove objc_specific struct
9877         (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9878         * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9879         Have language_objc use cplus_specific struct.
9880
9881 2003-02-20  Tom Tromey  <tromey@redhat.com>
9882
9883         * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9884         TYPE_NAME, when printing a String value.  PR java/1075.
9885
9886 2003-02-20  Adam Fedor  <fedor@gnu.org>
9887
9888         * objc-lang.h (find_methods): Remove declaration.
9889         * objc-lang.c (find_methods): Make static.
9890
9891 2003-02-20  Christopher Faylor  <cgf@redhat.com>
9892
9893         * win32-nat.c (get_image_name): Check return value from
9894         ReadProcessMemory.
9895         (child_xfer_memory): Ditto.
9896
9897 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
9898
9899         * configure.in (TARGET_SYSTEM_ROOT): Set default to
9900         ${exec_prefix}/${target_alias}/sys-root.  Match explicit
9901         '${exec_prefix}' (in addition to the expansion thereof) as
9902         relocatable.
9903         * configure: Rebuilt.
9904
9905 2003-02-20  David Carlton  <carlton@math.stanford.edu>
9906
9907         * symtab.c (search_symbols): Revert the search_symbols part of my
9908         2002-12-23 patch.  Add comment.
9909
9910 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
9911
9912         * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9913         * dbxread.c (elfstab_build_psymtabs): Don't call
9914         install_minimal_symbols.
9915         (stabsect_build_psymtabs): Likewise.
9916         * elfread.c (elf_symfile_read): Call install_minimal_symbols
9917         earlier.
9918         * somread.c (som_symfile_read): Call install_minimal_symbols
9919         and do_cleanups earlier.
9920         * nlmread.c (nlm_symfile_read): Likewise.
9921         * mdebugread.c (elfmdebug_build_psymtabs): Call
9922         install_minimal_symbols and make appropriate cleanups.
9923
9924 2003-02-20  Kevin Buettner  <kevinb@redhat.com>
9925
9926         * solib.c (reload_shared_libraries): New function.
9927         (_initialize_solib): Add callbacks for ``set solib-search-path''
9928         and ``set solib-absolute-prefix''.
9929
9930 2003-02-20  David Carlton  <carlton@math.stanford.edu>
9931
9932         * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9933         expand comment.
9934         * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9935         SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9936         * ada-typeprint.c (ada_typedef_print): Ditto.
9937         * ax-gdb.c (gen_var_ref): Ditto.
9938         * breakpoint.c (print_one_breakpoint): Ditto.
9939         * buildsym.c (finish_block): Ditto.
9940         * c-valprint.c (c_val_print): Ditto.
9941         * expprint.c (print_subexp): Ditto.
9942         * findvar.c (locate_var_value): Ditto.
9943         * infcmd.c (jump_command): Ditto.
9944         * linespec.c (decode_line_2, decode_compound): Ditto.
9945         * maint.c (maintenance_translate_address): Ditto.
9946         * objc-lang.c (compare_selectors, compare_classes): Ditto.
9947         * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9948         Ditto.
9949         * p-valprint.c (pascal_val_print): Ditto.
9950         * stabsread.c (define_symbol): Ditto.
9951         * stack.c (print_frame, frame_info, print_block_frame_locals)
9952         (print_frame_arg_vars, return_command): Ditto.
9953         * symfile.c (compare_symbols, compare_psymbols): Ditto.
9954         * symmisc.c (print_symbol): Ditto.
9955         * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9956         (compare_search_syms, print_symbol_info, print_msymbol_info)
9957         (rbreak_command): Ditto.
9958         * tracepoint.c (tracepoints_info): Ditto.
9959         * typeprint.c (typedef_print): Ditto.
9960         * valops.c (value_of_variable, hand_function_call): Ditto.
9961         * cli/cli-cmds.c (edit_command, list_command): Ditto.
9962         * ada-typeprint.c: Update Copyright.
9963         * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9964         * tracepoint.c, cli/cli-cmds.c: Ditto.
9965
9966 2003-02-20  Kevin Buettner  <kevinb@redhat.com>
9967
9968         * frame.c (generic_unwind_get_saved_register): Make non-static.
9969         * frame.h (generic_unwind_get_saved_register): Declare.
9970         * mips-tdep.c (read_next_frame_reg): Fetch register from
9971         current regcache when frame is NULL.
9972         (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9973         that must be NULL.
9974         (mips_get_saved_register): Call generic_unwind_get_saved_register()
9975         instead of frame_register_unwind().
9976
9977 2003-02-20  Andrew Cagney  <ac131313@redhat.com>
9978
9979         * remote-sim.c (gdbsim_insert_breakpoint)
9980         (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9981         code.
9982
9983 2003-02-20  Andrew Cagney  <ac131313@redhat.com>
9984
9985         * remote.c (_initialize_remote): Add commands "set/show remote
9986         hardware-watchpoint-limit" and "set/show remote
9987         hardware-breakpoint-limit".
9988         (remote_hw_watchpoint_limit): Initialize to -1.
9989         (remote_hw_breakpoint_limit): Ditto.
9990         (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9991
9992 2003-02-19  Raoul Gough  <RaoulGough@yahoo.co.uk>
9993
9994         * coff-pe-read.c: New file - support reading of minimal symbols from a
9995         portable executable using the export table.
9996         * coff-pe-read.h: New file.
9997         * coffread.c: Include coff-pe-read.h.
9998         (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9999         debugging symbols found.
10000         * Makefile.in (SFILES): Add coff-pe-read.o.
10001         (coff_pe_read_h): Define.
10002         (COMMON_OBS): Add coff-pe-read.o.
10003         (coffread.o): Add coff_pe_read_h dependency.
10004         (coff-pe-read.o): New target.
10005
10006 2003-02-19  David Carlton  <carlton@math.stanford.edu>
10007
10008         * Makefile.in (SFILES): Add block.c.
10009         (block_h): New.
10010         (COMMON_OBS): Add block.o.
10011         (block.o): New.
10012         (x86-64-tdep.o): Add $(block_h).
10013         (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10014         (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10015         (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10016         (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10017         (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10018         (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10019         (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10020         * value.h: Add opaque declaration for struct block.
10021         * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10022         * ada-lang.h: Ditto.
10023         * x86-64-tdep.c: #include "block.h"
10024         * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10025         * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10026         * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10027         * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10028         * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10029         * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10030         * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10031         * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10032         * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10033         (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10034         * symtab.c (block_function): Ditto.
10035         (contained_in): Ditto.
10036         * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10037         block.h.  Add opaque declaration for struct block.
10038         * symtab.h: Move block_function and contained_in declarations to
10039         block.h.  Add opaque declarations for struct block, struct
10040         blockvector.
10041         (struct block): Move to block.h.
10042         (struct blockvector): Ditto.
10043         (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10044         (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10045         (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10046         (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10047         (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10048         Ditto.
10049         * block.c: New file.
10050         * block.h: New file.
10051
10052 2003-02-19  Theodore A. Roth  <troth@openavr.org>
10053
10054         * avr-tdep.c (avr_extract_return_value): Remove function.
10055         (avr_store_return_value): Remove function.
10056         (avr_extract_struct_value_address): Remove function.
10057         (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10058
10059 2003-02-19  Andrew Cagney  <ac131313@redhat.com>
10060
10061         * rs6000-tdep.c: Include "gdb_assert.h".
10062         (registers_e500): Add "acc" and "spefscr".
10063         (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10064         (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10065         ppc_gplast_regnum, sp_regnum and fp_regnum.  Check that gp0_regnum
10066         really is "r0".
10067         (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10068
10069 2003-02-18  Keith Seitz  <keiths@redhat.com>
10070
10071         * Makefile.in: Add gdbtk-interps.c.
10072
10073 2003-02-18  Kevin Buettner  <kevinb@redhat.com>
10074
10075         * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10076         * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10077
10078 2003-02-18  Andrew Cagney  <cagney@redhat.com>
10079
10080         * symtab.h (struct objfile): Add opaque declaration.
10081
10082 2003-02-18  Elena Zannoni  <ezannoni@redhat.com>
10083
10084         From Jim Ingham   <jingham@apple.com>:
10085         * dbxread.c (process_one_symbol): Use last_function_start rather
10086         than function_start_offset to find the real beginning of the
10087         current function.  The latter is just the text section offset on
10088         some systems, the former is always the real function start.
10089
10090 2003-02-17  Andrew Cagney  <cagney@redhat.com>
10091
10092         * configure.in: Revert ${target} != ${host}.
10093
10094 2003-02-17  Andrew Cagney  <ac131313@redhat.com>
10095
10096         * configure.in (Makefile): Use the test ${target} != ${host},
10097         instead of the absence of the "nm.h" file, to determine of the
10098         configuration non-native.
10099         * configure: Regenerate.
10100
10101 2003-02-14  Elena Zannoni  <ezannoni@redhat.com>
10102
10103         From Brian Ford  <ford@vss.fsi.com>
10104
10105         * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10106         conditionalize tui_active test.
10107         (lookup_cmd_1): Ditto.
10108
10109 2003-02-14  Mark Kettenis  <kettenis@gnu.org>
10110
10111         * configure.in: Add check for _etext.
10112         * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10113         available.
10114         * config.in, configure: regenerated.
10115
10116 2003-02-14  Daniel Jacobowitz  <drow@mvista.com>
10117
10118         * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10119
10120 2003-02-14  Andrew Cagney  <ac131313@redhat.com>
10121
10122         * main.c (tui_version): Delete variable.
10123         (captured_main): When --tui, set interpreter_p to "tui" instead of
10124         enabling tui_version.
10125         * printcmd.c (display_command) [TUI]: Test tui_active instead of
10126         tui_version.
10127         * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10128         * cli/cli-cmds.c (disassemble_command): Ditto.
10129         * defs.h (tui_version): Delete declaration.
10130         * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10131         (tui-interp.o): Add rules.
10132         (SUBDIR_TUI_OBS): Add "tui-interp.o".
10133
10134 2003-02-14  Christopher Faylor  <cgf@redhat.com>
10135
10136         * win32-nat.c (register_loaded_dll): Correctly set address range for
10137         just-loaded dll.
10138
10139 2003-02-12  Jason Molenda  (jmolenda@apple.com)
10140
10141         * symmisc.c (print_objfile_statistics): Include information about
10142         the number of psymtabs and symtabs in each object file.
10143
10144 2003-02-13  Keith R Seitz  <keiths@redhat.com>
10145
10146         * main.h (struct captured_main_args): Add interpreter_p.
10147         * main.c (captured_main): Initialize interpreter_p from context.
10148         * gdb.c (main): Set interpreter_p argument.
10149         * Makefile.in (gdb.o): Add dependency for interps.h.
10150
10151 2003-02-12  Andrew Cagney  <ac131313@redhat.com>
10152
10153         * event-top.c (cli_command_loop): Delete declaration.
10154         (_initialize_event_loop): Delete function setting event_loop_hook.
10155         * event-top.h (cli_command_loop): Declare.  Update copyright.
10156         (EVENT_TOP_H): Define.  Wrap header in #ifdef EVENT_TOP_H.
10157         * interps.c (current_interp_command_loop): When event_loop_p, call
10158         cli_command_loop.
10159
10160 2003-02-12  Andrew Cagney  <ac131313@redhat.com>
10161
10162         * interps.h (interp_command_loop_ftype): Change return type to
10163         void.
10164
10165 2003-02-12  Michal Ludvig  <mludvig@suse.cz>
10166
10167         * x86-64-tdep.c (x86_64_extract_return_value)
10168         (x86_64_store_return_value): Use regcache instead of regbuf.
10169         (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10170         * x86-64-linux-nat.c (fill_gregset): Use regcache.
10171
10172 2003-02-11  Andrew Cagney  <ac131313@redhat.com>
10173
10174         * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10175         * aclocal.m4: Regenerate.
10176         * configure: Regenerate.
10177
10178         * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10179         TCL_LD_SEARCH_FLAGS.
10180
10181 2003-02-10  Michal Ludvig  <mludvig@suse.cz>
10182
10183         * dwarf2cfi.c: Reindented.
10184
10185 2003-02-09  Andrew Cagney  <ac131313@redhat.com>
10186
10187         * interps.c (clear_interpreter_hooks): Convert function definition
10188         to ISO C.
10189
10190 2003-02-07  David Carlton  <carlton@math.stanford.edu>
10191
10192         * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10193
10194 2003-02-07  Kevin Buettner  <kevinb@redhat.com>
10195
10196         * gdbtypes.h (struct main_type): Move ``length'' field from here...
10197         (struct type): ...to here.
10198         (TYPE_LENGTH): Adjust to reflect different location of ``length''
10199         field.
10200         * gdbtypes.c (make_qualified_type): Set length on newly created type.
10201         (replace_type): Set length on all type variants for a given type.
10202
10203 2003-02-07  Andrew Cagney  <ac131313@redhat.com>
10204
10205         * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10206         <sys/stat.h>.
10207         * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
10208
10209 2003-02-06  Andrew Cagney  <ac131313@redhat.com>
10210
10211         * Makefile.in (symm-nat.o): Update dependencies.
10212         (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10213         (lynx-nat.o, ia64-linux-nat.): Ditto.
10214         * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10215         "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10216         * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10217
10218         * Makefile.in (inflow_h): Define.
10219         (procfs.o, inflow.o, procfs.o): Update dependencies.
10220         * inftarg.c (child_stop): Delete extern declaration of
10221         inferior_process_group.  Include "inflow.h".
10222         * procfs.c (procfs_stop): Ditto.  Include "inflow.h".
10223         * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10224         * inflow.h (PROCESS_GROUP_TYPE): ... to here.  New file.
10225         (our_process_group, inferior_process_group): Extern declarations.
10226
10227         * procfs.c: Include "gdb_assert.h".
10228
10229         * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10230         * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10231         * jv-typeprint.c (java_type_print_base): Ditto.
10232         * typeprint.c (typedef_print): Eliminate STREQ.
10233         * cli/cli-script.c (define_command, define_command): Ditto.
10234         * main.c (captured_main): Ditto.
10235         * values.c (lookup_internalvar): Ditto.
10236         * utils.c (safe_strerror, parse_escape): Eliminate assignment
10237         within `if' conditional.
10238         * linespec.c (decode_line_2): Ditto.
10239         * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10240         (bfd_openw_with_cleanup): Ditto.
10241
10242 2003-02-07  Mark Kettenis  <kettenis@gnu.org>
10243
10244         * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10245         legacy_extract_return_value and store_return_value to
10246         legacy_return_value.
10247
10248 2003-02-06  Raoul Gough  <RaoulGough@yahoo.co.uk>
10249
10250         * win32-nat.c (get_relocated_section_addrs): New function.  Find
10251         section load addresses for symbol handling in relocated DLLs.
10252         (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10253
10254 2003-02-05  Fred Fish  <fnf@intrinsity.com>
10255
10256         * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10257         '=' and '!='.
10258         * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10259         with '&' and '=='.
10260         (angel_RDI_info): Ditto.
10261         * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10262         with '&' and '!='.
10263         (threads_continue_all_with_signals): Ditto.
10264
10265 2003-02-05  Jim Ingham <jingham@apple.com>
10266             Keith Seitz  <keiths@redhat.com>
10267             Elena Zannoni  <ezannoni@redhat.com>
10268             Andrew Cagney  <ac131313@redhat.com>
10269
10270         * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10271         (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10272         (SUBDIR_MI_OBS): Add "mi-interp.o".
10273         (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10274         (SFILES): Add "interps.c".
10275         (COMMON_OBS): Add "interps.o".
10276         (interps_h, mi_main_h): Define.
10277         (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10278         (mi-main.o, main.o, event-top.o): Update dependencies.
10279         * cli/cli-interp.c: New file.
10280         * interps.h, interps.c: New files.
10281         * top.c: (gdb_init): Don't install the default interpreter, handed
10282         by captured_main.
10283         * main.c: Include "interps.h".
10284         (interpreter_p): Note that it should malloc'ed.
10285         (captured_command_loop): Call current_interp_command_loop.
10286         (captured_main): Initialize interpreter_p to INTERP_CONSOLE.  Use
10287         xfree and xstrdup when updating interpreter_p.  Install the
10288         default interpreter.  Add hack to stop mi1's copyright notice
10289         being encoded.
10290         * event-top.h (gdb_setup_readline): Declare.
10291         (gdb_disable_readline): Declare.
10292         * event-top.c: Include "interps.h".
10293         (display_gdb_prompt): Call current_interp_display_prompt_p.
10294         (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10295         gdb_stdlog, and gdb_stdtarg.
10296         (_initialize_event_loop): Don't call gdb_setup_readline.
10297         * cli-out.c (cli_out_set_stream): New function.
10298         * cli-out.h (cli_out_set_stream): Declare.
10299
10300 2003-02-06  Mark Kettenis  <kettenis@gnu.org>
10301
10302         * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10303         i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove.  These are all
10304         handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10305         * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10306         config/i386/i386v42mp.mt: Removed.
10307
10308 2003-02-05  Mark Kettenis  <kettenis@gnu.org>
10309
10310         * configure.tgt (*-*-solaris*): Set gdb_osabi to
10311         GDB_OSABI_SOLARIS.
10312
10313 2003-02-05  Michael Chastain  <mec@shout.net>
10314
10315         * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10316         2.12.1 and earlier versions.
10317
10318 2003-02-05  Andrew Cagney  <ac131313@redhat.com>
10319
10320         Remove orphaned hosts, targets and files.
10321         * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10322         * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10323         * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10324         * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10325         * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10326         * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10327         * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10328         * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10329         * config/sparc/tm-sp64sim.h: Delete.
10330         * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10331         hosts.
10332         * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10333         mips*-dec-mach3* targets.
10334
10335 2003-02-04  Michael Chastain  <mec@shout.net>
10336
10337         * NEWS: Fix typo: sepcifying -> specifying.
10338
10339 2003-02-04  Michael Chastain  <mec@shout.net>
10340
10341         * dwarfread.c: Add documentation on the state of dwarf-1,
10342         looking towards obsoletion.
10343
10344 2003-02-03  Michael Chastain  <mec@shout.net>
10345
10346         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10347         gdb/testsuite/gdb.c++/pr-1023.exp.
10348
10349 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
10350
10351         * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10352         * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10353
10354         * utils.c (init_page_info): Delete reference to MPW in comments.
10355         * main.c (captured_main): Delete #ifdef MPW.
10356
10357 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
10358
10359         * NEWS: Note that the m32r-*-elf* is obsolete.
10360         * monitor.c (monitor_expect): Obsolete reference to m32r.
10361         * configure.tgt: Mark m32r-*-elf* as obsolete.
10362         * MAINTAINERS: Mark m32k as obsolete.
10363         * m32r-rom.c: Obsolete file.
10364         * config/m32r/m32r.mt: Obsolete file.
10365         * config/m32r/tm-m32r.h: Obsolete file.
10366         * m32r-stub.c: Obsolete file.
10367         * m32r-tdep.c: Obsolete file.
10368
10369 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
10370
10371         * NEWS: Mention that the z8k-zilog-none is obsolete.
10372         * MAINTAINERS: Mark z8k as obsolete.
10373         * configure.tgt: Obsolete the z8k-*-coff* target.
10374         * config/z8k/z8k.mt: Obsolete file.
10375         * config/z8k/tm-z8k.h: Obsolete file.
10376         * z8k-tdep.c: Obsolete file.
10377
10378 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
10379
10380         * NEWS: Mention that the mn10200-elf is obsolete.
10381         * configure.tgt: Obsolete mn10200-*-* target.
10382         * breakpoint.c (update_breakpoints_after_exec): Update comment to
10383         mention that the mn10200 is obsolete.
10384         * breakpoint.h: Ditto.
10385         * MAINTAINERS: Mark the mn10200-elf as obsolete.
10386         * config/mn10200/mn10200.mt: Obsolete file.
10387         * config/mn10200/tm-mn10200.h: Obsolete file.
10388         * mn10200-tdep.c: Obsolete file.
10389
10390 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
10391
10392         * MAINTAINERS: Mark h8500 as obsolete.
10393         * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10394         * findvar.c (value_from_register): Ditto.
10395         * h8500-tdep.c: Mark file as obsolete.
10396         * config/h8500/h8500.mt: Ditto.
10397         * config/h8500/tm-h8500.h: Ditto.
10398         * NEWS: Mention that h8500 is obsolete.
10399
10400 2003-02-04  David Carlton  <carlton@math.stanford.edu>
10401
10402         * objfiles.c (allocate_objfile): Always set name.  Add comment at
10403         start of function.
10404         * jv-lang.c (get_dynamics_objfile): Add comment.
10405
10406 2003-02-04  David Carlton  <carlton@math.stanford.edu>
10407
10408         * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10409         * printcmd.c (build_address_symbolic): Replace uses of
10410         SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10411         SYMBOL_NAME, and asm_demangle.
10412         Update copyright.
10413
10414 2003-02-04  David Carlton  <carlton@math.stanford.edu>
10415
10416         * linespec.c (decode_compound): Extract code into
10417         lookup_prefix_sym.
10418         (lookup_prefix_sym): New function.
10419
10420 2003-02-04  David Carlton  <carlton@math.stanford.edu>
10421
10422         * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10423         FLOAT_COERCION_BADNESS.
10424         * gdbtypes.c (rank_one_type): Replace all uses of
10425         INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10426
10427 2003-02-04  Jim Blandy  <jimb@redhat.com>
10428
10429         * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10430         section, let dwarf_macinfo_section point to it, not
10431         dwarf_loc_section.
10432
10433 2003-02-04  Daniel Jacobowitz  <drow@mvista.com>
10434
10435         Pointed out by Anton Blanchard <anton@samba.org>.
10436         * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10437         (ppc_linux_at_sigtramp_return_path): Use it.
10438
10439 2003-02-04  Daniel Jacobowitz  <drow@mvista.com>
10440
10441         * defs.h (streq): Add prototype.
10442         * utils.c (streq): New function.
10443
10444         * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10445         SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10446         * mdebugread.c (new_symbol): Likewise.
10447         * stabsread.c (define_symbol): Likewise.
10448         * coffread.c (process_coff_symbol): Likewise.
10449         * dwarfread.c (new_symbol): Likewise.
10450
10451         * minsyms.c (prim_record_minimal_symbol_and_info): Use
10452         SYMBOL_SET_NAMES instead of setting SYMBOL_NAME.  Set the language
10453         here.
10454         (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10455         SYMBOL_INIT_DEMANGLED_NAME.
10456         * objfiles.c: Include "hashtab.h".
10457         (allocate_objfile): Call htab_set_functions_ex for the
10458         demangled_names_hash.
10459         (free_objfile): Call htab_delete for the demangled_names_hash.
10460         * objfiles.h (struct htab): Add declaration.
10461         (struct objfile): Add demangled_names_hash.
10462         * symfile.c: Include "hashtab.h".
10463         (reread_symbols): Call htab_delete for the demangled_names_hash.
10464         (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10465         SYMBOL_NAME in the bcache.
10466         * symtab.c: Include "hashtab.h".  Update comments.
10467         (create_demangled_names_hash, symbol_set_names): New functions.
10468         (symbol_find_demangled_name): New function, broken out from
10469         symbol_init_demangled_names.
10470         (symbol_init_demangled_names): Use it.
10471         * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10472         (SYMBOL_SET_NAMES): New macro.
10473         (symbol_set_names): Add prototype.
10474
10475 2003-02-03  Jim Blandy  <jimb@redhat.com>
10476
10477         Use a single, consistent representation for an empty minimal
10478         symbol table in an objfile.
10479         * objfiles.c (terminate_minimal_symbol_table): New function.
10480         (allocate_objfile): Call it.
10481         * objfiles.h (terminate_minimal_symbol_table): New declaration.
10482         (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
10483         non-NULL.
10484         * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10485         objfile has minimal symbols, compare minimal_symbol_count to zero,
10486         instead of comparing msymbols with NULL.
10487         * objfiles.c (have_minimal_symbols): Same.
10488         * solib-sunos.c (solib_add_common_symbols): Call
10489         terminate_minimal_symbol_table.
10490         * symfile.c (reread_symbols): Same.
10491
10492 2003-02-03  Kevin Buettner  <kevinb@redhat.com>
10493
10494         * s390-tdep.c (s390_address_class_type_flags)
10495         (s390_address_class_type_flags_to_name)
10496         (s390_address_class_name_to_type_flags): New functions.
10497         (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10498         ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10499
10500 2003-02-03  Michael Snyder  <msnyder@redhat.com>
10501
10502         * arm-tdep.c: Fix spell-o in comment.
10503
10504 2003-02-03  Michal Ludvig  <mludvig@suse.cz>
10505
10506         * dwarf2cfi.c (pointer_encoding): Added new parameter.
10507         * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
10508         error messages to contain BFD filename.
10509
10510 2003-02-02  Elena Zannoni  <ezannoni@redhat.com>
10511
10512         Fix PR gdb/742 gdb/743 gdb/877
10513         * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10514         (do_mixed_source_and_assembly): Use
10515         make_cleanup_ui_out_tuple_begin_end and
10516         make_cleanup_ui_out_tuple_begin_end.
10517         (do_mixed_source_and_assembly): Ditto.
10518         * thread.c (do_captured_list_thread_ids): Ditto.
10519         * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10520         ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10521         ui_out_tuple_end): Delete prototypes.
10522         * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10523         ui_out_list_end, ui_out_tuple_end): Delete.
10524
10525         From Kevin Buettner  <kevinb@redhat.com>:
10526         * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
10527         * ui-out.c (make_cleanup_ui_out_table_begin_end)
10528         (do_cleanup_table_end):  New functions.
10529         * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10530         Use cleanups to invoke_ui_out_tuple_end().
10531         (breakpoint_1): Use cleanup to invoke ui_out_table_end().
10532         * cli/cli-setshow.c (cmd_show_list): Use
10533         make_cleanup_ui_out_tuple_begin_end.
10534
10535 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
10536
10537         * frame.c (frame_unwind_register): New function.
10538         (frame_unwind_unsigned_register): Use.
10539         (frame_unwind_signed_register): Use.
10540         (frame_read_register): New function.
10541         * frame.h (frame_unwind_register): Declare.
10542         (frame_read_register): Declare.
10543
10544         * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10545         and frame_unwind_register instead of read_memory, write_register
10546         and deprecated_write_register_bytes.
10547
10548 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
10549
10550         * frame.h: Note that namelen can be negative.
10551         * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10552         NAME's length.
10553
10554         * NEWS: Mention that the d10v's `regs' command is deprecated.
10555         * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10556         (d10v_print_registers_info): New function.
10557         (show_regs): Call d10v_print_registers_info.
10558         (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10559
10560 2003-02-02  Mark Kettenis  <kettenis@gnu.org>
10561
10562         * stack.c (print_frame_info): Restore call to annotate_frame_begin
10563         lost in the previous patch.
10564
10565 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
10566
10567         From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
10568         * stack.c (print_frame_info_base): Output complete FRAME tuple
10569         for synthesized frames.
10570
10571 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
10572
10573         * mips-nat.c (zerobuf): Delete.
10574         (fetch_inferior_registers): Alloc local zerobuf.
10575         (fetch_core_registers): Alloc local zerobuf.
10576         * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10577         MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10578         * thread-db.c (thread_db_store_registers): Ditto.
10579         * sh-tdep.c (sh_do_register): Ditto.
10580         * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10581         * remote-sim.c (gdbsim_store_register): Ditto.
10582         * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10583         * remote-e7000.c (fetch_regs_from_dump): Ditto.
10584         * monitor.c (monitor_supply_register): Ditto.
10585         * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10586         * mips-nat.c (fetch_inferior_registers): Ditto.
10587         * m68klinux-nat.c (fetch_register): Ditto.
10588         * lynx-nat.c (fetch_inferior_registers): Ditto.
10589         (fetch_inferior_registers): Ditto.
10590         * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10591         * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10592         (hpux_thread_store_registers): Ditto.
10593         * hppah-nat.c (fetch_register): Ditto.
10594         * hppab-nat.c (fetch_register): Ditto.
10595         * hppa-tdep.c (pa_register_look_aside): Ditto.
10596         (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10597         * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10598
10599 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
10600
10601         * gdbarch.sh: Explictly specify all method levels.  When a
10602         variable with an empty level, provide a non-multi-arch default.
10603         (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10604         * gdbarch.h: Re-generate.
10605         * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete.  Always defined.
10606         * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10607
10608 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
10609
10610         * defs.h (host_pointer_to_address): Delete declaration.
10611         (address_to_host_pointer): Delete declaration.
10612         * utils.c (host_pointer_to_address): Delete function.
10613         (address_to_host_pointer): Delete function.
10614         * procfs.c (procfs_address_to_host_pointer): New function.
10615         * procfs.c (proc_set_watchpoint): Use.
10616         (procfs_can_use_hw_breakpoint): Update comments.
10617         * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10618         (som_solib_add): Use.
10619         * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10620         * hppa-tdep.c (unwind_command): Use.
10621
10622 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
10623
10624         * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10625         strlen d_name.
10626
10627         * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10628         ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10629         (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10630         * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10631         (define_symbol): Update.
10632         * symfile.c (generic_load): Remove references to nindy.
10633         * symtab.c: Remove references to nindy.
10634
10635 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
10636
10637         * infcmd.c (print_float_info): Delete code conditional on
10638         FLOAT_INFO.
10639         * config/nm-lynx.h: Delete #undef FLOAT_INFO.  Update copyright.
10640         * config/m68k/nm-apollo68b.h: Ditto.
10641         * config/i386/tm-ptx.h (FLOAT_INFO): Delete.  Update copyright.
10642         * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10643         * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10644
10645 2003-02-01  Mark Kettenis  <kettenis@gnu.org>
10646
10647         * config/i386/tm-i386os9k.h: Removed.
10648
10649         * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10650         Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10651         they're identical to i[3456]86-*-sysv* now.
10652         * config/i386/i386v32.mh: Removed.
10653         * config/i386/xm-i386v32.h: Removed.
10654         * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10655
10656         * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10657
10658         * config/i386/i386dgux.mh: Removed.
10659         * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10660
10661         * configure.in: Fix typo.
10662         * configure: Regenerated.
10663
10664 2003-01-31  David Carlton  <carlton@math.stanford.edu>
10665
10666         * dwarf2read.c (dwarf2_locate_sections): Set
10667         dwarf_ranges_section.
10668
10669 2003-01-31  Andrew Cagney  <ac131313@redhat.com>
10670
10671         * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10672         * utils.c: Update comments documenting legitimate uses of PTR.
10673
10674         * utils.c: Re-indent.
10675
10676         * config/djgpp/fnchange.lst: Delete nindy files.
10677         * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10678         * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10679         * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10680         * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10681         * nindy-share/README, nindy-share/Onindy.c: Delete files.
10682         * nindy-tdep.c, nindy-share/Makefile: Delete files.
10683         * Makefile.in (init.c): Remove nindy references.
10684         (saber_gdb): Delete rule.
10685         (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10686         nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10687         and a68v-nat.c.
10688         (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10689         (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10690         (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10691         nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10692         nindy-share/stop.h.
10693         * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10694         * saber.suppress: Delete file.
10695
10696 2003-01-31  Daniel Jacobowitz  <drow@mvista.com>
10697
10698         * dbxread.c (stabs_data): New static variable.
10699         (fill_symbuf): Support an in-memory buffer for stabs data.
10700         (stabs_seek): New function.
10701         (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10702         (read_ofile_symtab): Use stabs_seek.
10703         (elfstab_build_psymtabs): Take an asection* instead of
10704         an offset and size.  Relocate the stabs data if necessary.
10705         Save the section* for dbx_psymtab_to_symtab.
10706         * dwarf2read.c: Add section variables for each debug section.
10707         (dwarf2_locate_sections): Fill them in.
10708         (dwarf2_read_section): Take an asection* argument.
10709         Relocate the section contents if necessary.
10710         (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10711         * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10712         it to dwarf2_read_section.
10713         (dwarf2_build_frame_info): Update callers.
10714         * elfread.c (elf_symfile_read): Update call to
10715         elfstab_build_psymtabs.
10716         * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10717         (DBX_STAB_SECTION): New macro.
10718         * stabsread.h (elfstab_build_psymtabs): Update prototype.
10719         * symfile.c (symfile_dummy_outputs): New function.
10720         (symfile_relocate_debug_section): New function.
10721         * symfile.h (symfile_relocate_debug_section): Add prototype.
10722
10723 2003-01-31  Richard Henderson  <rth@redhat.com>
10724
10725         * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10726         (register_addr): ... here.  Support ALPHA_UNIQUE_REGNUM.
10727         (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10728         * alpha-tdep.c (alpha_register_name): Add "unique".
10729         * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10730         (ALPHA_UNIQUE_REGNUM): New.
10731         * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10732
10733 2003-01-31  Andrew Cagney  <ac131313@redhat.com>
10734
10735         * README: Remove reference to Ericsson 1800 monitor.
10736         * Makefile.in (remote-es.o): Delete rule.
10737         (ALLDEPFILES): Delete remote-es.c.
10738         * remote-es.c: Delete file.
10739         * config/m68k/es1800.mt: Delete file.
10740         * config/djgpp/fnchange.lst: Update.
10741         * configure.tgt: Delete m68*-ericsson-* target.
10742
10743 2003-01-31  Adam Fedor  <fedor@gnu.org>
10744
10745         * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10746         Remove duplicate/shadowing variable of same name.
10747
10748 2003-01-30  Jim Blandy  <jimb@redhat.com>
10749
10750         * symfile.c (find_separate_debug_file): Assert that the objfile's
10751         directory name we compute ends with a slash, and then assume that
10752         that's so everywhere we use it.
10753
10754 2003-01-30  Daniel Jacobowitz  <drow@mvista.com>
10755
10756         * valops.c (value_assign): Flush frame cache after stores to memory
10757         also.
10758
10759 2003-01-30  Andrew Cagney  <ac131313@redhat.com>
10760
10761         * Makefile.in (mon960-rom.o): Delete rule.
10762         * mon960-rom.c: Delete file.
10763
10764 2003-01-30  Andrew Cagney  <ac131313@redhat.com>
10765
10766         * d10v-tdep.c: Include "frame-unwind.h".
10767         (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10768         list.
10769         (next_addr, uses_frame): Delete.
10770         (struct d10v_unwind_cache): Define.
10771         (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10772         Use info instead of next_addr and uses_frame globals.
10773         (d10v_frame_init_saved_regs): Delete function.
10774         (d10v_init_extra_frame_info): Delete function.
10775         (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10776         frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10777         init_frame_pc or frame_saved_pc.
10778         (d10v_pop_frame): Delete function.
10779         (do_d10v_pop_frame): Delete function.
10780         (d10v_frame_chain): Delete function.
10781         (d10v_frame_chain_valid): Delete function.
10782         (d10v_frame_pc_unwind): New function.
10783         (d10v_frame_id_unwind): New function.
10784         (saved_regs_unwinder): New function.
10785         (d10v_frame_register_unwind): New function.
10786         (d10v_frame_pop): New function.
10787         (d10v_frame_unwind): New variable.
10788         (d10v_frame_p): New function.
10789         (d10v_frame_saved_pc): Delete function.
10790         * Makefile.in (d10v-tdep.o): Update dependencies.
10791
10792 2003-01-30  J. Brobecker  <brobecker@gnat.com>
10793
10794         * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10795         causing some regressions due to a change in the default value
10796         for this macro.
10797
10798 2003-01-29  Richard Henderson  <rth@redhat.com>
10799             Elena Zannoni  <ezannoni@redhat.com>
10800             Daniel Jacobowitz  <drow@mvista.com>
10801
10802         Fix PR gdb/961.
10803         * dwarf2read.c  (dwarf_ranges_offset, dwarf_ranges_size): New
10804         variables.
10805         (RANGES_SECTION): New.
10806         (dwarf_ranges_buffer): New variable.
10807         (struct comp_unit_head): Add member "die".
10808         (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10809         (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10810         (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10811         (dwarf2_locate_sections): Likewise.
10812         (dwarf2_build_psymtabs): Read .debug_ranges.
10813         (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10814         (psymtab_to_symtab_1): Swap dwarf_ranges in.  Set cu_header.die.
10815         (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10816         Look for DW_AT_ranges and return the bounding box.
10817
10818 2003-01-29  Brian Ford <ford@vss.fsi.com>
10819
10820         * win32-nat.c (cygwin_pid): Removed as unused.
10821         (child_attach): Try fall back to Cygwin pid.
10822
10823 2003-01-29  Jim Blandy  <jimb@redhat.com>
10824
10825         * objfiles.h (struct objfile): Doc fix.
10826
10827 2003-01-29  Andrew Cagney  <ac131313@redhat.com>
10828
10829         * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10830         (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10831         (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10832         (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10833         * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10834         (FRAME_SAVED_PC): Change to a function with predicate.
10835         * gdbarch.h, gdbarch.c: Re-generate.
10836
10837 2003-01-28  Andrew Cagney  <ac131313@redhat.com>
10838
10839         * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10840
10841         * complaints.c (complain): Delete function.
10842         * complaints.h (struct deprecated_complaint): Delete definition.
10843         (complain): Delete declaration.
10844
10845 2003-01-28  Kevin Buettner  <kevinb@redhat.com>
10846
10847         * mips-tdep.c (mips_init_extra_frame_info): Return early for
10848         dummy frames.
10849
10850 2003-01-27  Andrew Cagney  <ac131313@redhat.com>
10851
10852         * sentinel-frame.h, sentinel-frame.c: New files.
10853         * Makefile.in (frame.o): Update dependencies.
10854         (SFILES): Add sentinel-frame.c.
10855         (sentinel_frame_h): Define.
10856         (COMMON_OBS): Add sentinel-frame.o.
10857         (sentinel-frame.o): Specify dependencies.
10858         * frame.c: Include "sentinel-frame.h".
10859         (frame_register_unwind): Rewrite assuming that there is always a a
10860         ->next frame.
10861         (frame_register, generic_unwind_get_saved_register): Ditto.
10862         (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10863         (create_sentinel_frame, unwind_to_current_frame): New functions.
10864         (get_current_frame): Rewrite using create_sentinel_frame and
10865         unwind_to_current_frame.  When possible, always create a frame.
10866         (create_new_frame): Set next to the sentinel frame.
10867         (get_next_frame): Rewrite.  Don't go below the level 0 frame.
10868         (deprecated_update_frame_pc_hack): Update the next frame's PC and
10869         ID cache when necessary.
10870         (frame_saved_regs_id_unwind): Use frame_relative_level.
10871         (deprecated_generic_get_saved_register): Use frame_relative_level,
10872         get_frame_saved_regs, get_frame_pc, get_frame_base and
10873         get_next_frame.
10874         (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10875         frame_register.
10876
10877 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
10878
10879         * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10880
10881 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
10882
10883         * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10884         (maintenance_set_profile_cmd): Use error () instead of warning ().
10885
10886 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
10887
10888         * configure.in: Check that -pg works if using --enable-profiling.
10889         Check for monstartup and _mcleanup regardless of --enable-profiling.
10890         * maint.c: Check for monstartup and _mcleanup before using them.
10891         * config.in: Regenerated.
10892         * configure: Regenerated.
10893
10894 2003-01-24  Nick Clifton  <nickc@redhat.com>
10895
10896         * Add sh2e support:
10897
10898         2002-04-02  Elena Zannoni  <ezannoni@redhat.com>
10899
10900                 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10901                 (sh2e_show_regs): New.
10902                 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10903                 * config/sh/tm-sh.h: Added sh2e to comments.
10904
10905 2003-01-23  Jim Blandy  <jimb@redhat.com>
10906
10907         * symfile.c (syms_from_objfile): Don't print the "(no debugging
10908         symbols found)" message here; we haven't checked for a separate
10909         debug info file yet, so we don't know yet.
10910         (symbol_file_add_with_addrs_or_offsets): Print it here, after
10911         we've looked everywhere.  Also, there's no need to print a special
10912         message when we're loading the separate debug info file: the one
10913         symbol_file_add prints is fine.
10914
10915 2003-01-23  Alexander Larsson <alexl@redhat.com>
10916             Jim Blandy  <jimb@redhat.com>
10917
10918         Add support for executables whose debug info has been separated
10919         out into a separate file, leaving only a link behind.
10920         * objfiles.h (struct objfile): New fields: separate_debug_objfile
10921         and separate_debug_objfile_backlink.
10922         (put_objfile_before): New declaration.
10923         * symfile.c: #include "filenames.h".
10924         (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10925         debug info in a separate file, read that, too. Save the addrs
10926         argument, so we can use it again to read the separated debug info;
10927         syms_from_objfile modifies the table we pass it.
10928         (reread_symbols): After re-reading an objfile, call
10929         reread_separate_symbols to refresh its separate debug info
10930         objfile, if it has one.
10931         (reread_separate_symbols, find_separate_debug_file,
10932         get_debug_link_info, separate_debug_file_exists): New functions.
10933         (debug_file_directory): New global var.
10934         (_initialize_symfile): Initialize debug_file_directory, and
10935         provide the new `set debug-file-directory' command to let the user
10936         change it.
10937         * objfiles.c (free_objfile): If this objfile has its debug info in
10938         a separate objfile, free that one too.  If this is itself a
10939         separate debug info objfile, clear our parent's backlink.
10940         (put_objfile_before): New function.
10941         * utils.c (gnu_debuglink_crc32): New function.
10942         * defs.h (gnu_debuglink_crc32): New declaration.
10943         * Makefile.in (symfile.o): Note dependency on "filenames.h".
10944         * configure.in: Handle --with-separate-debug-dir config option.
10945         * acinclude.m4 (AC_DEFINE_DIR): New macro.
10946         * acconfig.h (DEBUGDIR): New macro.
10947         * configure, aclocal.m4, config.in: Regenerated.
10948
10949 2003-01-22  Jim Blandy  <jimb@redhat.com>
10950
10951         * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10952         like the old symbol_file_add, but taking new arguments: you can
10953         now pass in either a `struct section_addr_info' list to say where
10954         each section is loaded, or a `struct section_offsets' table.  Pass
10955         these new arguments through to syms_from_objfile as appropriate.
10956         (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
10957         with the appropriate quiescent values for the new arguments.
10958
10959         * symfile.c: #include "gdb_assert.h".
10960         (syms_from_objfile): Add the ability to pass in a section offset
10961         table directly, as an alternative to the section_addr_info table.
10962         Document arguments better.
10963         (symbol_file_add): Pass extra arguments to syms_from_objfile.
10964         * symfile.h (syms_from_objfile): Update declaration.
10965         * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10966         syms_from_objfile.
10967         * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10968
10969 2003-01-22  Daniel Jacobowitz  <drow@mvista.com>
10970
10971         Original patch by Tom Tromey <tromey@cygnus.com> and
10972         Jason Molenda <jmolenda@apple.com>.
10973         * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10974         (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10975         * NEWS: Mention profiling.
10976         * configure.in (--enable-gdbtk): Fix typo.
10977         (--enable-profiling): New.  Set PROFILE_CFLAGS.
10978         * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10979         Fill in function.
10980         (profiling_state): New variable.
10981         (mcleanup_wrapper): New function.
10982         (_initialize_maint): Remove NOTYET, fix call to
10983         add_setshow_boolean_cmd for "maint set profile".
10984         * configure: Regenerated.
10985
10986 2003-01-21  Martin M. Hunt  <hunt@redhat.com>
10987
10988         * Makefile.in (install-gdbtk): Install PNG images too.
10989
10990 2003-01-21  Andrew Cagney  <ac131313@redhat.com>
10991
10992         * exec.c (text_start): Delete global variable.
10993         (exec_file_attach): Make text_start local to the function.
10994         * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10995         * valops.c (hand_function_call): Delete code that handles
10996         BEFORE_TEXT_END and AFTER_TEXT_END.
10997         * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10998         of CALL_DUMMY_LOCATION.
10999         * gdbarch.c: Regenerate.
11000         * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11001         (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11002         * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11003         (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11004         (text_end): Delete extern declaration.
11005
11006 2003-01-21  Andrew Cagney  <ac131313@redhat.com>
11007
11008         * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11009         * blockframe.c (backtrace_below_main): Move to "frame.c".
11010         (frame_chain_valid): Delete check for backtrace_below_main.
11011         (_initialize_blockframe): Delete initialization, move ``set
11012         backtrace-below-main'' command to "frame.c".
11013         (do_flush_frames_sfunc): Delete function.
11014         * frame.c: Include "command.h" and "gdbcmd.h".
11015         (frame_type_from_pc): New function.
11016         (create_new_frame): Use frame_type_from_pc.
11017         (legacy_get_prev_frame): New function.
11018         (get_prev_frame): Rewrite.  When an old style frame, call
11019         legacy_get_prev_frame.  Otherwize, unwind the PC first.
11020         (_initialize_frame): Add ``set backtrace-below-main'' command.
11021         * Makefile.in (frame.o): Update dependencies.
11022
11023 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
11024
11025         * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11026         DEPRECATED_REGISTERS_INFO.
11027
11028 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
11029
11030         * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11031         Maintainers'.  Update `Various Maintainers'.
11032
11033 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
11034
11035         * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11036         * gdbarch.sh (POP_FRAME): Change to function with predicate.
11037         Suppress actual parameters when `-'.
11038         * gdbarch.h, gdbarch.c: Regenerate.
11039
11040 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
11041
11042         * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11043         code handling dummy frames.
11044
11045 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
11046
11047         * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11048         (struct frame_unwind): Add field pop.
11049         * frame.h (frame_pop): Declare.
11050         * frame.c (frame_saved_regs_pop): New function.
11051         (trad_frame_unwinder): Add frame_saved_regs_pop.
11052         (frame_pop): New function.
11053         * dummy-frame.c (dummy_frame_pop): New function.
11054         (discard_innermost_dummy): New function.
11055         (generic_pop_dummy_frame): Use discard_innermost_dummy.
11056         (dummy_frame_unwind): Add dummy_frame_pop.
11057         * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11058         * valops.c (hand_function_call): Ditto.
11059         * stack.c (return_command): Ditto.
11060
11061 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
11062
11063         * cris-tdep.c: Fix function declaration indentation.
11064         * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11065         * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11066         * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11067         * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11068         * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11069         * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11070
11071 2003-01-18  Michael Chastain  <mec@shout.net>
11072
11073         * README (Unpacking and Installation -- quick overview):
11074         Warn against ".../gdb-5.3/gdb/configure".
11075
11076 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
11077
11078         * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11079         (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11080         (struct frame_unwind): Declare opaque.
11081         (dummy_frame_p): Declare function.
11082         * dummy-frame.c (dummy_frame_id_unwind): Make static.
11083         (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11084         * dummy-frame.c: Include "frame-unwind.h".
11085         (dummy_frame_p): New function.
11086         (dummy_frame_unwind): New variable.
11087         * frame.c: Include "frame-unwind.h".
11088         (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11089         to use the new unwind field.
11090         (set_unwind_by_pc): Delete function.
11091         (create_new_frame, get_prev_frame): Set unwind field using
11092         frame_unwind_find_by_pc.
11093         (trad_frame_unwind, trad_frame_unwinder): New variables.
11094         * frame.h (trad_frame_unwind): Declare variable.
11095         (frame_id_unwind_ftype): Delete declaration.
11096         (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11097         (struct frame_unwind): Declare opaque.
11098         (struct frame_info): Replace the fields id_unwind, pc_unwind and
11099         register_unwind with a single unwind pointer.
11100         * frame-unwind.h, frame-unwind.c: New files.
11101         * Makefile.in (SFILES): Add frame-unwind.c.
11102         (frame_unwind_h): Define.
11103         (COMMON_OBS): Add frame-unwind.o.
11104         (frame-unwind.o): Specify dependencies.
11105         (frame.o, dummy-frame.o): Update dependencies.
11106
11107 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
11108
11109         * ada-valprint.c: Eliminate PTR.
11110         * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11111         * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11112         * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11113         * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11114         * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11115         * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11116         * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
11117
11118 2003-01-17  Andrew Cagney  <ac131313@redhat.com>
11119
11120         * main.c (captured_main): Don't use PTR.
11121         * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11122         * gdbtypes.c (lookup_primitive_typename): Ditto.
11123         (lookup_struct_elt_type): Ditto.
11124         * f-valprint.c (info_common_command): Ditto.
11125         (list_all_visible_commons): Ditto.
11126         * jv-typeprint.c (java_type_print_base): Ditto.
11127
11128         * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11129         mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11130         Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c.  Rename
11131         i386-interix-nat.c and i386-interix-tdep.c.  Rename
11132         m68klinux-nat.c and m68klinux-tdep.c.  Rename
11133         config/mips/tm-linux.h and config/mips/tm-linux64.h.  Rename
11134         bfd/po/.cvsignore and opcodes/po/.cvsignore.  Rename
11135         gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11136         * main.c (captured_main): Use xfree, not free.
11137
11138 2003-01-16  Andrew Cagney  <ac131313@redhat.com>
11139
11140         * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11141         ID back using a parameter.
11142         * frame.c (frame_id_unwind): Update call.
11143         (frame_saved_regs_id_unwind): Update.
11144         * dummy-frame.c (dummy_frame_id_unwind): Update function.
11145         * dummy-frame.h (struct frame_id): Add opaque declaration.
11146         (dummy_frame_id_unwind): Update declaration.
11147
11148 2003-01-15  Andrew Cagney  <ac131313@redhat.com>
11149
11150         * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11151
11152 2003-01-15  Stephen P. Smith <ischis2@cox.net>
11153
11154         * MAINTAINERS (Stephen P. Smith): Updated email address.
11155
11156 2003-01-14  Elena Zannoni  <ezannoni@redhat.com>
11157
11158         Fix PR gdb/898
11159         * breakpoint.c (until_break_command): Add new argument.  Use it to
11160         decide whether to stop only at the current frame or not.
11161         * breakpoint.h (until_break_command): Update prototype.
11162         * infcmd.c (until_command): Add new argument to until_break_command
11163         call.
11164         (advance_command): New function.
11165         (_initialize_infcmd): Update help string for 'until' command.
11166         Add new 'advance' command.
11167
11168 2003-01-14  David Carlton  <carlton@math.stanford.edu>
11169
11170         * linespec.c (decode_line_1): Normalize comments.
11171         (set_flags): Ditto.
11172         (locate_first_half): Ditto.
11173         (decode_compound): Ditto.
11174         (symtab_from_filename): Ditto.
11175         (decode_all_digits): Ditto.
11176         (decode_dollar): Ditto.
11177         (find_methods): Ditto.
11178         (find_toplevel_char): Ditto.
11179
11180 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
11181
11182         * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11183         * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11184         * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11185         * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11186         * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11187         * language.c, language.h, m32r-tdep.c: Update copyright.
11188         * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11189         * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11190         * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11191         * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11192         * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11193         * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11194
11195 2003-01-13  Elena Zannoni  <ezannoni@redhat.com>
11196
11197         * stabsread.h (process_later, resolve_cfront_continuation):
11198         Obsolete.
11199         Update copyright years.
11200         * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11201         Update copyright year.
11202         * dbxread.c(struct cont_elem): Obsolete.
11203         (process_later, process_now): Obsolete functions.
11204         (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11205         Update copyright year.
11206         * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11207         (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11208         * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11209         (parse_partial_symbols): Obsolete cfront support.
11210         * stabsread.c
11211         (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11212         macros.
11213         (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11214         read_cfront_baseclasses, read_cfront_member_functions,
11215         resolve_cfront_continuation,read_cfront_static_fields,
11216         copy_cfront_struct_fields): Obsolete functions.
11217         (define_symbol, read_one_struct_field): Obsolete cfront support.
11218         * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11219         Update Copyright year.
11220
11221 2003-01-13  Elena Zannoni  <ezannoni@redhat.com>
11222
11223         * stack.c (print_frame_info, print_stack_frame_base_stub,
11224         print_stack_frame_base, show_and_print_stack_frame_stub,
11225         show_and_print_stack_frame, print_only_stack_frame_stub,
11226         print_only_stack_frame): Delete functions.
11227         (print_stack_frame_stub): Call print_frame_info instead of
11228         print_frame_info_base.
11229         (print_frame_info_base): Rename to print_frame_info.
11230         (backtrace_command_1): Call print_frame_info, instead of
11231         print_frame_info_base.
11232         (current_frame_command): Call print_stack_frame, instead of
11233         print_only_stack_frame.
11234         (frame_command): Call print_stack_frame, instead of
11235         show_and_print_stack_frame.
11236         (up_command): Ditto.
11237         (down_command): Ditto.
11238         * frame.h (print_only_stack_frame): Delete prototype.
11239         * infrun.c (normal_stop): Call print_stack_frame, instead of
11240         show_and_print_stack_frame.
11241         * thread.c (info_threads_command): Call print_stack_frame, instead
11242         of print_only_stack_frame.
11243
11244 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
11245
11246         * README (Graphical interface to GDB): Update URL.  Point at
11247         gdb/links/.
11248
11249         * gdb_indent.sh: Update to version 2.2.9.  Warn when not exact
11250         version match.
11251
11252 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
11253
11254         * symtab.c (find_pc_sect_line): Don't consider end-of-function
11255         lines.
11256
11257 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
11258
11259         * thread-db.c (attach_thread): Prototype.
11260         (struct private_thread_info): Remove lwpid.  Add thread handle (th),
11261         thread information (ti), and valid flags (th_valid, ti_valid).
11262         (attach_thread): Move target_pid_to_str call to after the thread
11263         is added to GDB's list.  Initialize the cache.
11264         (thread_get_info_callback, thread_db_map_id2thr)
11265         (thread_db_get_info): New functions.
11266         (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11267         (thread_db_store_registers, thread_db_thread_alive)
11268         (thread_db_get_thread_local_address): Use them.
11269         (thread_db_pid_to_str): Likewise.  Return "Missing" instead
11270         of calling error() for threads in unknown state.
11271
11272         (clear_lwpid_callback): New function.
11273         (thread_db_resume): Use it to clear the cache.
11274
11275 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
11276
11277         * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11278         (resume_callback): Remove dead code.
11279
11280 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
11281
11282         * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11283         predicate.
11284         * gdbarch.h, gdbarch.c: Regenerate.
11285         * stack.c (frame_info): Only initialize the saved registers when
11286         FRAME_INIT_SAVED_REGS_P.
11287         * frame.c (frame_saved_regs_register_unwind): Assert
11288         FRAME_INIT_SAVED_REGS_P.
11289         (deprecated_generic_get_saved_register): Ditto.
11290
11291 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
11292
11293         * source.c (openp): Squelch warning about "filename".
11294
11295 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
11296
11297         * source.c (openp): If the file does not exist don't necessarily
11298         search the path.
11299
11300 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
11301
11302         Fix PR gdb/872.
11303         * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11304         (integer_types_same_name_p): New function.
11305         (rank_one_type): Use it.
11306         * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11307
11308 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
11309
11310         * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11311         variables.
11312         (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11313         * configure.in: Add --with-sysroot.
11314         * configure: Regenerated.
11315         * main.c (gdb_sysroot): New variable.
11316         (captured_main): Initialize gdb_sysroot.
11317         * defs.h (gdb_sysroot): New extern declaration.
11318         * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11319
11320 2003-01-12  Michael Chastain  <mec@shout.net>
11321
11322         * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11323
11324 2003-01-12  Michael Chastain  <mec@shout.net>
11325
11326         * top.c (print_gdb_version): Bump copyright year to 2003.
11327
11328 2003-01-12  David Carlton  <carlton@bactrian.org>
11329
11330         * linespec.c (symtab_from_filename): Rename variable 's' to
11331         'file_symtab'.
11332
11333 2003-01-12  Andrew Cagney  <ac131313@redhat.com>
11334
11335         * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11336         dummy frame.
11337         (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11338
11339 2003-01-12  Andrew Cagney  <ac131313@redhat.com>
11340
11341         * d10v-tdep.c: Include "gdb_assert.h".
11342         (d10v_store_return_value): Rewrite to match current interface.
11343         (d10v_extract_struct_value_address): Ditto.
11344         (d10v_extract_return_value): Ditto.
11345         (d10v_gdbarch_init): Set store_restore_value,
11346         extract_struct_value_address and extract_return_value.
11347
11348 2003-01-12  J. Brobecker  <brobecker@gnat.com>
11349
11350         * hpread.c (set_namestring): New procedure replacing the
11351         SET_NAMESTRING macro.
11352         (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11353         by calls to set_namestring.
11354
11355 2003-01-11  J. Brobecker  <brobecker@gnat.com>
11356
11357         * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11358         a compilation warning.
11359         (hpread_process_one_debug_symbol): Likewise.
11360
11361 2003-01-10  David Carlton  <carlton@math.stanford.edu>
11362
11363         * linespec.c (decode_line_1): Rename variable 's' to
11364         'file_symtab'.
11365         (decode_all_digits): Rename argument 's' to 'file_symtab'.
11366         (decode_dollar): Ditto.
11367         (decode_variable): Ditto.
11368         (symbol_found): Ditto.
11369
11370 2003-01-09  Michael Chastain  <mec@shout.net>
11371
11372         * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11373
11374 2003-01-07  Corinna Vinschen  <vinschen@redhat.com>
11375
11376         * win32-nat.c (set_process_privilege): New function.
11377         (child_attach): Call set_process_privilege() to enable the
11378         SE_DEBUG_NAME user privilege if available in process token.
11379
11380 2003-01-10  J. Brobecker  <brobecker@gnat.com>
11381
11382         * hpread.c (hpread_process_one_debug_symbol): Fix a small
11383         compilation error in the previous revision.
11384
11385 2003-01-09  David Carlton  <carlton@math.stanford.edu>
11386
11387         * linespec.c: Update copyright.
11388
11389 2003-01-09  Daniel Jacobowitz  <drow@mvista.com>
11390
11391         * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11392         than inferior_ptid.
11393         (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11394
11395 2003-01-09  Andrew Cagney  <ac131313@redhat.com>
11396
11397         * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11398         Update comments.
11399         * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11400         (frame_saved_regs_zalloc): Update.
11401         (frame_saved_regs_register_unwind): Update.
11402         (create_new_frame): Update.
11403         (get_prev_frame): Update.
11404         (frame_extra_info_zalloc): Update.
11405         (deprecated_get_frame_saved_regs): Update.
11406         * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11407         * cris-tdep.c: Update comment.
11408
11409         * somsolib.h: Fix function indentation.
11410         * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11411         * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11412         * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11413         * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11414         * somsolib.c, inftarg.c: Remove assignment in if conditional.
11415
11416         * infrun.c (follow_fork): Use ISO C definition.
11417         * expprint.c (print_subexp): Use xfree instead of free.
11418         * charset.c: Include "gdb_string.h" instead of <string.h>.
11419         (register_iconv_charsets): Use ISO C definition.
11420         (host_charset, target_charset): Ditto.
11421         * Makefile.in (charset.o): Update dependencies.
11422         (mi-cmd-env.o): Update dependencies.
11423
11424 2003-01-08  Andrew Cagney  <cagney@redhat.com>
11425
11426         * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11427         get_frame_base.
11428
11429 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
11430
11431         * gdb_mbuild.sh: Add --keep option.  When specified, keep the
11432         build directories.  Save edited gdb output in Mbuild.log.  If a
11433         build fails, remove any final GDB executable.
11434
11435 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
11436
11437         * gdb_mbuild.sh: Edit the output of `maint print architecture'
11438         replacing hex constants with function names and stripping leading
11439         file name directory prefixes.
11440
11441 2003-01-08  Andrew Cagney  <cagney@redhat.com>
11442
11443         * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11444         get_frame_base.
11445
11446 2003-01-08  David Carlton  <carlton@math.stanford.edu>
11447
11448         * linespec.c (decode_line_1): Move code into decode_variable.
11449         (decode_variable): New function.
11450
11451 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
11452
11453         * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11454
11455 2003-01-08  Andrew Cagney  <cagney@redhat.com>
11456
11457         * cris-tdep.c (cris_frame_init_saved_regs): Use
11458         get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11459         saved_regs buffer.
11460         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11461         (sh64_nofp_frame_init_saved_regs): Ditto.
11462         (sh_fp_frame_init_saved_regs): Ditto.
11463         * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11464         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11465         * mcore-tdep.c (analyze_dummy_frame): Ditto.
11466         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11467
11468 2003-01-08  Daniel Jacobowitz  <drow@mvista.com>
11469
11470         * minsyms.c (lookup_minimal_symbol): Update comment.
11471         (lookup_minimal_symbol_text): Update comment.  Use the hash table.
11472         (lookup_minimal_symbol_solib_trampoline): Likewise.
11473
11474 2003-01-08  Andrew Cagney  <cagney@redhat.com>
11475
11476         * d10v-tdep.c (d10v_init_extra_frame_info): Use
11477         frame_relative_level.
11478
11479         * alpha-tdep.c: Use get_frame_extra_info.
11480         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11481         * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11482         * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11483         * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11484
11485         * alpha-tdep.c: Use get_next_frame.
11486         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11487         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11488         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11489         * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11490         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11491         * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11492         * xstormy16-tdep.c: Ditto.
11493
11494 2003-01-07  Andrew Cagney  <cagney@redhat.com>
11495
11496         * alpha-tdep.c: Use get_frame_base.
11497         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11498         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11499         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11500         * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11501         * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11502         * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11503         * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11504         * config/sparc/tm-sparc.h: Ditto.
11505
11506 2003-01-07  Andrew Cagney  <cagney@redhat.com>
11507
11508         * frame.c (deprecated_get_frame_context): New function.
11509         (deprecated_set_frame_context): New function.
11510         * frame.h (deprecated_get_frame_context): Declare.
11511         (deprecated_set_frame_context): Declare.
11512         * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11513         (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
11514
11515 2003-01-07  Andrew Cagney  <cagney@redhat.com>
11516
11517         * frame.c (deprecated_set_frame_next_hack): New function.
11518         (deprecated_set_frame_prev_hack): New function.
11519         * frame.h (deprecated_set_frame_next_hack): Declare.
11520         (deprecated_set_frame_prev_hack): Declare.
11521         * mcore-tdep.c (analyze_dummy_frame): Use
11522         deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11523         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11524
11525 2003-01-07  David Carlton  <carlton@math.stanford.edu>
11526
11527         * linespec.c (decode_line_1): Move code into decode_dollar.
11528         (decode_dollar): New function.
11529
11530 2003-01-07  Andrew Cagney  <cagney@redhat.com>
11531
11532         * arm-tdep.c (arm_init_extra_frame_info): Use
11533         deprecated_update_frame_base_hack.
11534         * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11535         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11536         (fix_frame_pointer): Ditto.
11537         (mn10300_analyze_prologue): Ditto.
11538
11539 2003-01-07  Andrew Cagney  <cagney@redhat.com>
11540
11541         * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11542         extra_info using frame_extra_info_zalloc.
11543         * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11544         * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11545         (sh64_init_extra_frame_info): Ditto.
11546         * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11547         * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11548         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11549         * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11550         * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11551         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11552         * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11553         * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11554         * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11555         * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11556         * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11557         * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11558
11559         * mn10300-tdep.c (analyze_dummy_frame): Use
11560         deprecated_set_frame_extra_info_hack.
11561         * mcore-tdep.c (analyze_dummy_frame): Ditto.
11562
11563 2003-01-07  J. Brobecker  <brobecker@gnat.com>
11564
11565         * mdebugread.c (parse_symbol): Skip stProc entries which storage
11566         class is not scText. These do not define "real" procedures.
11567         (parse_partial_symbols): Likewise.
11568
11569 2003-01-06  Michael Snyder  <msnyder@redhat.com>
11570
11571         * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11572
11573 2003-01-06  Andrew Cagney  <ac131313@redhat.com>
11574
11575         * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11576         * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11577         * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11578         deprecated_frame_xmalloc_with_cleanup.
11579         * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11580         deprecated_frame_xmalloc.
11581         * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11582         * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11583
11584 2003-01-06  Andrew Cagney  <cagney@redhat.com>
11585
11586         * x86-64-linux-tdep.c: Include "osabi.h".
11587         * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11588
11589         * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11590
11591 2003-01-06  Andrew Cagney  <cagney@redhat.com>
11592
11593         * MAINTAINERS (Target Instruction Set Architectures): Update
11594         arm-elf.  Can be built with -Werror, has been multiarched.
11595
11596         * value.h (unpack_long): Make buffer parameter constant.
11597         (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11598         * scm-lang.h (scm_parse): Ditto.
11599         * defs.h (extract_typed_address, extract_address): Ditto.
11600         (extract_long_unsigned_integer): Ditto.
11601         * inferior.h (unsigned_pointer_to_address): Ditto.
11602         (signed_pointer_to_address): Ditto.
11603         * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11604         * gdbarch.h, gdbarch.c: Regenerate.
11605         * findvar.c (extract_long_unsigned_integer): Update.
11606         (extract_address): Update.
11607         (extract_typed_address): Update.
11608         (unsigned_pointer_to_address): Update.
11609         * values.c (unpack_long): Update.
11610         (unpack_double): Update.
11611         (unpack_pointer): Update.
11612         (unpack_field_as_long): Update.
11613         * d10v-tdep.c (d10v_pointer_to_address): Update.
11614         * avr-tdep.c (avr_pointer_to_address): Update.
11615         * scm-lang.c (scm_unpack): Update.
11616         * findvar.c (signed_pointer_to_address): Update.
11617
11618 2003-01-06  Michal Ludvig  <mludvig@suse.cz>
11619
11620         * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
11621         since it is in i386-tdep.c.
11622
11623 2003-01-06  J. Brobecker  <brobecker@gnat.com>
11624
11625         * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11626         failure introduced in the previous change.
11627
11628 2003-01-05  Michael Chastain  <mec@shout.net>
11629
11630         * README: Remove references to deleted remote-*.c files:
11631         remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11632         remote-nrom.c, remote-os9k.c, remote-udi.c.
11633
11634 2003-01-05  Mark Kettenis  <kettenis@gnu.org>
11635
11636         * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11637         * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11638         i386_get_longjmp_target.
11639
11640 2003-01-05  Andrew Cagney  <ac131313@redhat.com>
11641
11642         * arm-tdep.c (prologue_cache): Change to a pointer.
11643         (_initialize_arm_tdep): Allocate prologue_cache.
11644         (check_prologue_cache): Update.
11645         (save_prologue_cache): Update.
11646         (arm_gdbarch_init): Update.
11647
11648 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
11649
11650         * stabsread.c (update_method_name_from_physname): Call complaint()
11651         instead of error.
11652
11653 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
11654
11655         * arm-tdep.c (arm_frame_chain_valid):  Remove unnecessary test.
11656         * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11657         * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11658
11659         * blockframe.c: Include "gdbcmd.h" and "command.h".
11660         (backtrace_below_main): New variable.
11661         (file_frame_chain_valid, func_frame_chain_valid)
11662         (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11663         (generic_func_frame_chain_valid): Remove functions.
11664         (frame_chain_valid, do_flush_frames_sfunc): New functions.
11665         (_initialize_blockframe): New function.
11666         * Makefile.in (blockframe.o): Update dependencies.
11667         * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11668         comment.  Call frame_chain_valid ().
11669         * frame.h: Remove old prototypes.  Add prototype for
11670         frame_chain_valid and update comments to match.
11671         * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11672         Remove old comment.
11673         * gdbarch.h: Regenerated.
11674         * gdbarch.c: Regenerated.
11675
11676         * alpha-tdep.c (alpha_gdbarch_init): Don't call
11677         set_gdbarch_frame_chain_valid.
11678         * avr-tdep.c (avr_gdbarch_init): Likewise.
11679         * cris-tdep.c (cris_gdbarch_init): Likewise.
11680         * frv-tdep.c (frv_gdbarch_init): Likewise.
11681         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11682         * i386-tdep.c (i386_svr4_init_abi): Likewise.
11683         (i386_nw_init_abi): Likewise.
11684         (i386_gdbarch_init): Likewise.
11685         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11686         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11687         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11688         * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11689         * mips-tdep.c (mips_gdbarch_init): Likewise.
11690         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11691         * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11692         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11693         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11694         * s390-tdep.c (s390_gdbarch_init): Likewise.
11695         * sh-tdep.c (sh_gdbarch_init): Likewise.
11696         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11697         * v850-tdep.c (v850_gdbarch_init): Likewise.
11698         * vax-tdep.c (vax_gdbarch_init): Likewise.
11699         * x86-64-tdep.c (x86_64_init_abi): Likewise.
11700
11701         * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11702         * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11703         * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11704         * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11705         * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11706         * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11707         * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11708         * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11709
11710 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
11711
11712         * Makefile.in (acconfig_h): Remove incorrect macro.
11713         (config_h): Define.
11714         (osabi.o): Update dependencies.
11715         * configure.tgt: Set gdb_osabi based on target triplet.
11716         * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11717         * configure: Regenerated.
11718         * config.in: Regenerated.
11719         * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11720         (GDB_OSABI_DEFAULT): Define if not already defined.
11721         (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11722         (set_osabi_string): New variables.
11723         (gdbarch_register_osabi): Add new OS ABI to
11724         gdb_osabi_available_names.
11725         (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11726         (set_osabi, show_osabi): New functions.
11727         (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11728
11729 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
11730
11731         * arch-utils.c (gdbarch_info_init): Set osabi to
11732         GDB_OSABI_UNINITIALIZED.
11733         * gdbarch.sh: Add osabi to struct gdbarch and to struct
11734         gdbarch_info.  Include "osabi.h" in gdbarch.c.  Check osabi
11735         in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11736         * gdbarch.c: Regenerated.
11737         * gdbarch.h: Regenerated.
11738         * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11739         there's no BFD.
11740         (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11741         * osabi.h (enum gdb_osabi): Move to defs.h.
11742         (gdbarch_init_osabi): Update prototype.
11743         * defs.h (enum gdb_osabi): Moved here.
11744         * Makefile.in: Update dependencies.
11745
11746         * alpha-tdep.h: Don't include "osabi.h".
11747         (struct gdbarch_tdep): Remove osabi member.
11748         * alpha-tdep.c: Include "osabi.h".
11749         (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
11750         iterate over arches.  Update call to gdbarch_init_osabi.
11751         (alpha_dump_tdep): Don't dump osabi.
11752         * alpha-linux-tdep.c: Include "osabi.h".
11753         * alpha-osf1-tdep.c: Include "osabi.h".
11754         * alphafbsd-tdep.c: Include "osabi.h".
11755         * alphanbsd-tdep.c: Include "osabi.h".
11756
11757         * arm-tdep.h: Don't include "osabi.h".
11758         (struct gdbarch_tdep): Remove osabi member.
11759         * arm-tdep.c: Include "osabi.h".
11760         (arm_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
11761         iterate over arches.  Update call to gdbarch_init_osabi.
11762         (arm_dump_tdep): Don't dump osabi.
11763         * arm-linux-tdep.c: Include "osabi.h".
11764         * armnbsd-tdep.c: Include "osabi.h".
11765
11766         * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11767         Update call to gdbarch_init_osabi.
11768
11769         * i386-tdep.h: Don't include "osabi.h".
11770         (struct gdbarch_tdep): Remove osabi member.
11771         * i386-tdep.c: Include "osabi.h".
11772         (i386_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
11773         iterate over arches.  Update call to gdbarch_init_osabi.
11774         (i386_dump_tdep): Don't dump osabi.
11775         * i386-linux-tdep.c: Include "osabi.h".
11776         * i386-sol2-tdep.c: Include "osabi.h".
11777         * i386bsd-tdep.c: Include "osabi.h".
11778         * i386gnu-tdep.c: Include "osabi.h".
11779         * i386ly-tdep.c: Include "osabi.h".
11780         * i386nbsd-tdep.c: Include "osabi.h".
11781         * i386obsd-tdep.c: Include "osabi.h".
11782
11783         * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11784         (mips_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
11785         check osabi when iterating over arches.  Update call to
11786         gdbarch_init_osabi.
11787         (mips_dump_tdep): Don't dump osabi.
11788
11789         * ns32k-tdep.h: Don't include "osabi.h".
11790         (struct gdbarch_tdep): Remove.
11791         * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11792         gdbarch_lookup_osabi.  Don't iterate over arches.  Don't
11793         allocate tdep.  Update call to gdbarch_init_osabi.
11794         (ns32k_dump_tdep): Remove.
11795         (_initialize_ns32k_tdep): Update call to gdbarch_register.
11796         * ns32knbsd-tdep.c: Include "osabi.h".
11797
11798         * ppc-tdep.h: Don't include "osabi.h".
11799         (struct gdbarch_tdep): Remove osabi member.
11800         * rs6000-tdep.c: Include "osabi.h".
11801         (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't check
11802         osabi when iterating over arches.  Update call to
11803         gdbarch_init_osabi.
11804         (rs6000_dump_tdep): Don't dump osabi.
11805         * ppc-linux-tdep.c: Include "osabi.h".
11806         * ppcnbsd-tdep.c: Include "osabi.h".
11807
11808         * sh-tdep.h: Don't include "osabi.h".
11809         (struct gdbarch_tdep): Remove osabi member.
11810         * sh-tdep.c: Include "osabi.h".
11811         (sh_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
11812         iterate over arches.  Update call to gdbarch_init_osabi.
11813         (sh_dump_tdep): Don't dump osabi.
11814         * shnbsd-tdep.c: Include "osabi.h".
11815
11816         * sparc-tdep.c: Include "osabi.h".
11817         (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
11818         iterate over arches.  Update call to gdbarch_init_osabi.
11819         (sparc_dump_tdep): Don't dump osabi.  Do dump the rest of the
11820         tdep structure.
11821
11822         * vax-tdep.h: Don't include "osabi.h".
11823         (struct gdbarch_tdep): Remove.
11824         * vax-tdep.c: Include "osabi.h".
11825         (vax_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
11826         iterate over arches.  Don't allocate tdep.  Update call
11827         to gdbarch_init_osabi.
11828         (vax_dump_tdep): Remove.
11829         (_initialize_vax_tdep): Update call to gdbarch_register.
11830
11831 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
11832
11833         * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11834         entirely.
11835         (breakpoint_re_set_one): Don't fetch the value for a disabled
11836         watchpoint.
11837
11838 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
11839
11840         * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11841         * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11842         (COERCE_FLOAT_TO_DOUBLE): Remove.
11843         * gdbarch.c: Regenerate.
11844         * gdbarch.h: Regenerate.
11845         * Makefile.in: Remove value_h from gdbarch_h.
11846         * valops.c (coerce_float_to_double): New variable.
11847         (default_coerce_float_to_double): Remove.
11848         (standard_coerce_float_to_double): Remove.
11849         (value_arg_coerce): Use coerce_float_to_double.
11850         (_initialize_valops): Add "set coerce-float-to-double".
11851         * value.h (default_coerce_float_to_double): Remove prototype.
11852         (standard_coerce_float_to_double): Remove prototype.
11853
11854         * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11855         prototyped.
11856         * mdebugread.c (parse_symbol): Likewise.
11857         * stabsread.c (define_symbol): Mark all functions as prototyped.
11858
11859         * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11860         * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11861         set_gdbarch_coerce_float_to_double.
11862         * arm-tdep.c (arm_gdbarch_init): Likewise.
11863         * frv-tdep.c (frv_gdbarch_init): Likewise.
11864         * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11865         * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11866         * mips-tdep.c (mips_gdbarch_init): Likewise.
11867         (mips_coerce_float_to_double): Remove.
11868         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11869         (rs6000_coerce_float_to_double): Remove.
11870         * s390-tdep.c (s390_gdbarch_init): Likewise.
11871         * sh-tdep.c (sh_gdbarch_init): Likewise.
11872         (sh_coerce_float_to_double): Remove.
11873         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11874         (sparc_coerce_float_to_double): Remove.
11875         * v850-tdep.c (v850_gdbarch_init): Likewise.
11876         * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11877         * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11878         * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11879         (hppa_coerce_float_to_double): Remove prototype.
11880         * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11881
11882 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
11883
11884         * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11885
11886 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
11887
11888         Suggested by Stewart Brown <sb24@avaya.com>:
11889         * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11890         in recursive calls.  Handle TYPE_CODE_TYPEDEF.
11891         (c_type_print_varspec_suffix): Likewise.
11892
11893 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
11894
11895         * configure.in: Don't set and AC_SUBST SUBDIRS.
11896         * configure: Regenerated.
11897
11898         * configure.in: Remove code dealing with shared libraries.
11899         * Makefile.in: Remove HLDFLAGS and HLDENV.
11900         * configure: Regenerated.
11901
11902 2003-01-04  Andrew Cagney  <ac131313@redhat.com>
11903
11904         * frame.c (deprecated_frame_xmalloc): New function.
11905         (deprecated_set_frame_saved_regs_hack): New function.
11906         (deprecated_set_frame_extra_info_hack): New function.
11907         * frame.h (deprecated_frame_xmalloc): Declare.
11908         (deprecated_set_frame_saved_regs_hack): Declare.
11909         (deprecated_set_frame_extra_info_hack): Declare.
11910
11911 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
11912
11913         * configure.in: Move code that provides the --enable-gdbtk option
11914         right after the code that handles the --enable-tui option, and
11915         polish it somewhat.
11916         * configure: Regenerated.
11917
11918         * configure.in: Call AC_GNU_SOURCE.  Check for pread64 using
11919         AC_CHECK_FUNCS and remove the old check for pread64.
11920         * acinclude.m4 (AC_GNU_SOURCE): New macro.
11921         * acconfig.h (_GNU_SOURCE): Add.
11922         (HAVE_PREAD64): Remove.
11923         * configure, aclocal.m4, config.in: Regenerated.
11924
11925 2003-01-03  Andrew Cagney  <ac131313@redhat.com>
11926
11927         * alpha-tdep.c: Use get_frame_saved_regs.
11928         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11929         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11930         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11931         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11932         * vax-tdep.c, xstormy16-tdep.c: Ditto.
11933
11934 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
11935
11936         * configure.in: Remove all use of the SUBDIRS variable; add
11937         directories using the AC_CONFIG_SUBDIRS macro instead.  Polish
11938         code providing the --enable-multi-ice option, and move it right in
11939         front of the code that checks whether gdbserver is supported.
11940         Polish that too.
11941         * configure: Regenerated.
11942         * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11943         @SUBDIRS@.
11944
11945 2003-01-03  Andrew Cagney  <cagney@redhat.com>
11946
11947         * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11948         * avr-tdep.c, cris-tdep.c: Ditto.
11949         * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11950         * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11951
11952 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
11953
11954         * configure.in: Remove --enable-netrom option.
11955         * configure: Regenerated.
11956
11957 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
11958
11959         * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11960         declaration for `struct re_pattern_buffer' instead.
11961         * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11962
11963 2003-01-03  J. Brobecker  <brobecker@gnat.com>
11964
11965         * mdebugread.c (parse_symbol): Count until the stEnd matching
11966         the structure name.
11967
11968 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
11969
11970         * configure.in: Remove --with-cpu option.
11971         subscripts.  Remove evil changequotes here.
11972         * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11973         * config.in, configure: Regenerated.
11974
11975         * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11976         * configure.in: Cleanup section that sources GDB and BFD configure
11977         subscripts.  Remove evil changequotes here.
11978         * config.in, configure: Regenerated.
11979
11980 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
11981
11982         * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11983         frame accessor methods.
11984         * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11985         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11986         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11987         * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11988         * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11989         * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11990         * z8k-tdep.c: Ditto.
11991
11992 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
11993
11994         * configure.in: Remove UI_OUT configuration code.
11995         * ada-lang.c: Update assuming UI_OUT is always true.
11996         * Makefile.in (UIOUT_CFLAGS): Remove.
11997         * configure: Regenerated.
11998         * TODO: Remove blurb about elimination of -DUI_OUT.
11999
12000         * configure.in: Move code that provides the --enable-gdbcli,
12001         --enable-gdbmi options right before the code that handles the
12002         --enable-tui option.  Polish a bit.
12003         * configure: Regenerated.
12004
12005         * configure.in: Rewrite check for GNU regex and the
12006         --without-included regex option, and move it into the "Checks for
12007         library functions" section.  This makes us use the system regex
12008         again by default on systems with version 2 of the GNU C library.
12009         This was apparently broken.
12010         * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12011         * acconfig.h (USE_INCLUDED_REGEX): Remove.
12012         * config.in, configure: Regenerated.
12013
12014         * configure.in: Move code that provides the --enable-tui option
12015         before the "Checks for libraries" section.  Polish the code
12016         somewhat and set need_curses to yes if we build the TUI.  Rewrite
12017         code that looks for a library providing termcap functionality to
12018         match more closely what's done in the Readline library, and move
12019         it into to the "Checks for libraries" section.
12020         * configure: Regenerated.
12021         * Makefile.in (TERMCAP): Remove variable.
12022         * config/i386/go32.mh (TERMCAP): Remove variable.
12023
12024 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
12025
12026         * MAINTAINERS: Mention gdb_mbuild.sh.
12027         * gdb_mbuild.sh: Rewrite.
12028
12029 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
12030
12031         * configure.in: Fix typo in last change.
12032         * config.in, configure: Regenerated.
12033
12034 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
12035
12036         * valarith.c (value_binop): Delete obsolete code and comments.
12037         * configure.host: Ditto.
12038         * buildsym.h (make_blockvector): Ditto.
12039         * buildsym.c (make_blockvector): Ditto.
12040         * defs.h (enum language): Ditto.
12041         (chill_demangle): Ditto.
12042         * elfread.c (elf_symtab_read): Ditto.
12043         * dwarfread.c (CHILL_PRODUCER): Ditto.
12044         (set_cu_language): Ditto.
12045         (handle_producer): Ditto.
12046         * expprint.c (print_subexp): Ditto.
12047         * gdbtypes.c (chill_varying_type): Ditto.
12048         * gdbtypes.h (builtin_type_chill_bool): Ditto.
12049         (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12050         (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12051         (chill_varying_type): Ditto.
12052         * language.h (_LANG_chill): Ditto.
12053         * language.c (binop_result_type, integral_type): Ditto.
12054         (character_type, string_type, structured_type): Ditto.
12055         (lang_bool_type, binop_type_check): Ditto.
12056         * stabsread.h (os9k_stabs): Ditto.
12057         * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12058         (define_symbol, read_type, read_struct_fields): Ditto.
12059         (read_array_type, read_enum_type, read_huge_number): Ditto.
12060         (read_range_type, start_stabs): Ditto.
12061         * symfile.c (init_filename_language_table): Ditto.
12062         (add_psymbol_with_dem_name_to_list): Ditto.
12063         * symtab.c (symbol_init_language_specific): Ditto.
12064         (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12065         * symtab.h (struct general_symbol_info): Ditto.
12066         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12067         * typeprint.c (typedef_print): Ditto.
12068         * utils.c (fprintf_symbol_filtered): Ditto.
12069         * valops.c (value_cast, search_struct_field, value_slice): Delete
12070         obsolete code.
12071         (varying_to_slice): Delete function.
12072         * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12073         (varying_to_slice): Delete declaration.
12074         * MAINTAINERS: Update.
12075
12076 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
12077
12078         * configure.in: Reorganize "Checks for library functions section"
12079         a bit.  Remove check for `btowc' and `isascii' functions.
12080         * configure: Regenerated.
12081
12082         * acconfig.h (_MSE_INT_H): Remove.
12083         * configure.in: Create "Checks for header files" section, and move
12084         appropriate tests there.  Don't check for objlist.h, wchar.h,
12085         wctype.h and asm/debugreg.h.  Rewrite Solaris 2.[78] <curses.h>
12086         misdetection fix.  Also add "Checks for types", "Checks for
12087         compiler characteristics" and "Checks for library functions"
12088         sections.
12089         * config.in, configure: Regenerated.
12090
12091         * configure.in: Create "Checks for programs" section, and move
12092         appropriate tests there.
12093
12094 2003-01-01  Mark Kettenis  <kettenis@gnu.org>
12095
12096         * configure.in: Create "Checks for libraries" section, and move
12097         appropriate tests there.  Cleanup check for wctype in libw.  Use
12098         AC_SEARCH_LIBS to see whether we need libsocket.
12099         * configure: Regenerated.
12100
12101 For older changes see ChangeLog-2002
12102 \f
12103 Local Variables:
12104 mode: change-log
12105 left-margin: 8
12106 fill-column: 74
12107 version-control: never
12108 End: