0d5e155bff96b17db62e8e4da8cb294799eeb2ec
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2003-10-13  Kevin Buettner  <kevinb@redhat.com>
2
3         * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
4         * gdbarch.h, gdbarch.c: Regenerate.
5
6 2003-10-11  Mark Kettenis  <kettenis@gnu.org>
7
8         * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
9         TDEP->sc_num_regs.
10
11         * i386fbsd-tdep.c: New file.
12         (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
13         i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
14         i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
15         i386bsd-tdep.c.
16         (_initialize_i386fbsd_tdep): New function.
17         (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
18         (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
19         TDEP->gregset_num_regs, TDEP->sizeof_gregset and
20         TDEP->sizeof_fpregset.  Use ARRAY_SIZE to initialize
21         TDEP->sc_num_regs.
22         (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
23         TDEP->gregset_num_regs and TDEP->sizeof_gregset.  Use ARRAY_SIZE
24         to initialize TDEP->sc_num_regs.
25         * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
26         i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
27         i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
28         (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
29         FreeBSD ELF OS/ABI's here.
30         * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
31         (i386fbsd-tdep.o): New target.
32         * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
33         * config/i386/fbsd64.mt (TDEPFILES):  Add i386fbsd-tdep.o.
34
35         * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
36         (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
37         TDEP->gregset_num_regs and TDEP->sizeof_gregset.  Use ARRAY_SIZE
38         in initialization of TDEP->sc_num_regs.
39
40         * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
41         (x86_64_init_abi): Initialize regset_from_core_section if
42         appropriate.
43
44         * i386-tdep.c (i386_regset_from_core_section): New function.
45         (i386_gdbarch_init): Initialize regset_from_core_section if
46         appropriate.
47         * i386-tdep.h (i386_regset_from_core_section): New declaration.
48
49         * i386-tdep.h (struct regset): Declare opaque.
50
51         * gdbarch.sh (regset_from_core_section): New method.
52         (struct regset): Declare opaque.
53         * gdbarch.c, gdbarch.h: Regenerated.
54
55 2003-10-11  Alan Modra  <amodra@bigpond.net.au>
56
57         * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
58         _cooked_size and vma;  Use bfd_section_size and bfd_get_section_vma.
59         Correct test for pc within section.
60
61 2003-10-11  Mark Kettenis  <kettenis@gnu.org>
62
63         * gdbarch.sh: Remove trailing whitepsace from comments.
64
65 2003-10-08  Roland McGrath  <roland@redhat.com>
66
67         * gcore.c (make_mem_sec): Function removed, folded into ...
68         (gcore_create_callback): ... here.  To omit a section, clear its
69         SEC_LOAD bit rather than zeroing its size.
70         Omit read-only sections only if they correspond to a known disk file.
71         (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
72
73 2003-10-10  Michael Snyder  <msnyder@redhat.com>
74
75         * d10v-tdep.c: Fix typo in comment.
76
77 2003-10-10  Andrew Cagney  <cagney@redhat.com>
78
79         * rs6000-tdep.c (e500_store_return_value): Delete function.
80         (e500_extract_return_value): Delete function.
81         (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
82         "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
83         "ppc_sysv_abi_restore_return_value" where applicable.
84         * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
85         (ppc_sysv_abi_extract_return_value): Declare.
86         (ppc_sysv_abi_broken_store_return_value): Declare.
87         (ppc_sysv_abi_broken_extract_return_value): Declare.
88         (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
89         * ppc-sysv-tdep.c (return_value_convention): Move definition to
90         start of file.
91         (do_ppc_sysv_return_value): New function.
92         (ppc_sysv_abi_extract_return_value): New function.
93         (ppc_sysv_abi_store_return_value): New function.
94         (ppc_sysv_abi_broken_extract_return_value): New function.
95         (ppc_sysv_abi_broken_store_return_value): New function.
96         (ppc_sysv_abi_use_struct_convention): Call
97         do_ppc_sysv_return_value.
98
99 2003-10-10  J. Brobecker  <brobecker@gnat.com>
100
101         * blockframe.c (inside_main_func): No longer use symbol_lookup()
102         to lookup the main function symbol.
103
104 2003-10-10  Corinna Vinschen  <vinschen@redhat.com>
105
106         * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
107         types correctly.
108         (sh_push_dummy_call_fpu): Fix argument passing rules.
109         (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
110         float types.
111         (sh3e_sh4_store_return_value): Ditto.
112
113 2003-10-10  Elena Zannoni  <ezannoni@redhat.com>
114
115         * sh-tdep.c (sh_use_struct_convention): Clarify one case in
116         comment.
117
118 2003-10-10  Corinna Vinschen  <vinschen@redhat.com>
119
120         * sh-tdep.c (sh_use_struct_convention): Clean up to have a
121         more readable code.  Accomodate passing of bitfields.
122
123 2003-10-10  Andrew Cagney  <cagney@redhat.com>
124
125         * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
126         * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
127         push_dummy_call to ppc64_sysv_abi_push_dummy_call.
128         * ppc-sysv-tdep.c: Include "gdb_assert.h".
129         (ppc64_sysv_abi_push_dummy_call): New function.
130         (ppc64_sysv_abi_broken_push_dummy_call): New function.
131         * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
132         (ppc64_sysv_abi_broken_push_dummy_call): Declare.
133
134 2003-10-10  Kei Sakamoto  <sakamoto.kei@renesas.com>
135
136         * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
137         * README: Ditto.
138         * d10v-tdep.c: Ditto.
139         * h8300-tdep.c: Ditto.
140         * remote-e7000.c: Ditto.
141         * remote-hms.c: Ditto.
142         * ser-e7kpc.c: Ditto.
143         * sh-stub.c: Ditto.
144         * sh-tdep.c: Ditto.
145         * sh-tdep.h: Ditto.
146         * sh3-rom.c: Ditto.
147         * sh64-tdep.c: Ditto.
148         * top.c: Ditto.
149         * wince.c: Ditto.
150         * config/d10v/d10v.mt: Ditto.
151         * config/sh/embed.mt: Ditto.
152         * config/sh/linux.mt: Ditto.
153         * config/sh/tm-linux.h: Ditto.
154         * config/sh/tm-sh.h: Ditto.
155         * config/sh/wince.mt: Ditto.
156
157 2003-10-09  Andrew Cagney  <cagney@redhat.com>
158
159         * ppc-tdep.h (struct type): Declare opaque.
160         * x86-64-tdep.h (struct regcache): Declare opaque.
161         * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
162         coding style.
163
164 2003-10-09  Andrew Cagney  <cagney@redhat.com>
165
166         Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
167         * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
168         (SOFTWARE_SINGLE_STEP_P): Ditto.
169         * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
170         * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
171         (SOFTWARE_SINGLE_STEP_P): Ditto.
172         * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
173         software_single_step to rs6000_software_single_step.
174
175 2003-10-09  Andrew Cagney  <cagney@redhat.com>
176
177         * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
178
179 2003-10-09  Michael Snyder  <msnyder@redhat.com>
180
181         * frame.h: Fix typo in comment.
182         * dummy-frame.c: Fix typo in comment.
183         * d10v-tdep.c: Random whitespace/comment tweaks.
184
185 2003-10-09  Elena Zannoni  <ezannoni@redhat.com>
186
187         * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
188         (sh_push_dummy_code): Delete function, it's only used for dummy calls
189         on stack.
190
191         Based on input by Stephen Clarke (stephen.clarke@superh.com):
192         * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
193         in detail.
194
195 2003-10-09  Daniel Jacobowitz  <drow@mvista.com>
196
197         * remote-mips.c (mips_initialize): Remove unneeded call to
198         get_selected_frame.  Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
199
200 2003-10-09  Daniel Jacobowitz  <drow@mvista.com>
201
202         * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
203         a memory pointer.
204
205 2003-10-08  Jeff Johnston  <jjohnstn@redhat.com>
206
207         * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
208         for any lwp we resume.
209         (running_callback): Add lwps that have pending status events
210         against them to be considered running.
211
212 2003-10-08  Kei Sakamoto  <sakamoto.kei@renesas.com>
213
214         * m32r-tdep.c : Include "dis-asm.h".
215         * Makefile.in (m32r-tdep.o): Update dependencies.
216
217 2003-10-06  J. Brobecker  <brobecker@gnat.com>
218
219         * completer.h (get_gdb_completer_word_break_characters): Delete.
220         * completer.c: include language.h.
221         (gdb_completer_word_break_characters): Delete.
222         (get_gdb_completer_word_break_characters): Delete.
223         (location_completer): Use the word break characters of the current
224         language.
225         (complete_line): Likewise.
226         (line_completion_function): Likewise.
227         (skip_quoted_chars): Likewise.
228         * Makefile.in (completer.o): Add dependency on language.h.
229         * top.c (init_main): Set the readline word break characters
230         to GDB's default word break characters.
231
232 2003-10-06  J. Brobecker  <brobecker@gnat.com>
233
234         * language.h (language_defn): new field, la_word_break_characters.
235         * language.c (unknown_language_defn): Set new field to
236         default_word_break_characters.
237         (auto_language_defn): Likewise.
238         (local_language_defn): Likewise.
239         * ada-lang.c (ada_language_defn): Likewise.
240         * c-lang.c (c_language_defn): Likewise.
241         (cplus_language_defn): Likewise.
242         (asm_language_defn): Likewise.
243         (minimal_language_defn): Likewise.
244         * f-lang.c (f_language_defn): Likewise.
245         * jv-lang.c (java_language_defn): Likewise.
246         * m2-lang.c (m2_language_defn): Likewise.
247         * objc-lang.c (objc_language_defn): Likewise.
248         * p-lang.c (pascal_language_defn): Likewise.
249         * scm-lang.c (scm_language_defn): Likewise.
250
251 2003-10-06  Andrew Cagney  <cagney@redhat.com>
252
253         * ppc-sysv-tdep.c: Re-indent.
254
255 2003-10-06  J. Brobecker  <brobecker@gnat.com>
256
257         * language.h (default_word_break_characters): Add prototype.
258         * language.c (default_word_break_characters): New function.
259
260 2003-10-06  Andreas Schwab  <schwab@suse.de>
261
262         * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
263         with %eax.
264
265 2003-10-06  Andrew Cagney  <cagney@redhat.com>
266
267         * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
268         "h8500-tdep.c".
269         (z8k-tdep.o): Delete custom build rule.
270
271 2003-10-06  Andrew Cagney  <cagney@redhat.com>
272
273         * Makefile.in: Update all dependencies.
274
275         * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
276         No longer list PA as as obsolete candidate.  List m32r as
277         broken instead of obsolete.
278
279         * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
280         * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
281         * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
282         * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
283         * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
284         * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
285         * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
286         * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
287         * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
288         * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
289         * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
290         * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
291         * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
292         * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
293         * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
294         * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
295         * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
296         * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
297         * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
298         * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
299         * config/z8k/z8k.mt: Ditto.
300
301         * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
302         h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
303         mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
304         i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
305         sparclite were removed.
306         * configure.host, configure.tgt: Remove corresponding tuples.
307
308         * breakpoint.c, breakpoint.h: Remove obsolete code.
309         * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
310         * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
311         * stabsread.h, xcoffread.c: Ditto.
312
313         * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
314         * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
315         * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
316         * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
317
318 2003-10-06  David Lecomber  <dsl@sources.redhat.com>
319
320         * f-valprint.c: Reformatting
321
322 2003-10-06  Mark Kettenis  <kettenis@gnu.org>
323
324         * x86-64-tdep.c: Remove duplicate comment.
325
326         * x86-64-tdep.c (x86_64_store_return_value): Don't use
327         DEPRECATED_REGISTER_RAW_SIZE.  Use symbolic names for register
328         names for return values.  This fixes a bug since we looked at %rbx
329         instead of %rdx.
330
331 2003-10-05  Mark Kettenis  <kettenis@gnu.org>
332
333         * x86-64-tdep.c: Include "regset.h".
334
335         * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
336         gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
337         sizeof_fpregset.
338         * i386-tdep.c: Include "regset.h".
339         (i386_supply_gregset): New function.
340         (i386_supply_fpregset): New function.
341         (i386_gdbarch_init): Initialze register set-related members of
342         TDEP.
343         * x86-64-tdep.c (x86_64_supply_fpregset): New function.
344         (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
345
346 2003-10-03  Andrew Cagney  <cagney@redhat.com>
347
348         * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
349         set extract_return_value, store_return_value and
350         use_struct_convention to ppc64_sysv_abi_extract_return_value,
351         ppc64_sysv_abi_store_return_value and
352         ppc64_sysv_abi_use_struct_convention.
353         * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
354         (ppc64_sysv_abi_store_return_value): Declare.
355         (ppc64_sysv_abi_use_struct_convention): Declare.
356         * ppc-sysv-tdep.c (enum return_value_convention): Define.
357         (ppc64_sysv_abi_extract_return_value): New function.
358         (ppc64_sysv_abi_store_return_value): New function.
359         (ppc64_sysv_abi_use_struct_convention): New function.
360         (ppc64_sysv_abi_return_value): New function.
361
362 2003-10-03  Andrew Cagney  <cagney@redhat.com>
363
364         * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
365         convert a descriptor to a function when it's in the ".opd"
366         section.
367
368 2003-10-03  Corinna Vinschen  <vinschen@redhat.com>
369
370         * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
371         reg_size to keep GCC silent.
372
373 2003-10-03  Corinna Vinschen  <vinschen@redhat.com>
374
375         * dwarf2-frame.c (struct comp_unit): Add tbase member to store
376         base for DW_EH_PE_textrel encodings.
377         (read_encoded_value): Add a DW_EH_PE_textrel case.
378         (dwarf2_build_frame_info): Set unit.tbase to beginning of text
379         section.
380
381 2003-10-03  Mark Kettenis  <kettenis@gnu.org>
382
383         * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
384
385 2003-10-02  Andrew Cagney  <cagney@redhat.com>
386
387         * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
388         REGISTER_RAW_SIZE.
389         * gdbarch.h, gdbarch.c: Re-generate.
390         * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
391         * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
392         * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
393         * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
394         * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
395         * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
396         * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
397         * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
398         * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
399         * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
400         * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
401         * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
402         * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
403         * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
404         * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
405         * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
406
407 2003-10-02  Jim Blandy  <jimb@redhat.com>
408
409         * dwarf2read.c (struct die_info): Doc fix.
410
411 2003-10-02  Corinna Vinschen  <vinschen@redhat.com>
412
413         * sh-tdep.c: Running thru gdb_indent.sh.
414
415 2003-10-02  Corinna Vinschen  <vinschen@redhat.com>
416
417         * sh-tdep.c (sh_justify_value_in_reg): New function.
418         (sh_stack_allocsize): Ditto.
419         (flt_argreg_array): New array used for floating point argument
420         passing.
421         (sh_init_flt_argreg): New function.
422         (sh_next_flt_argreg): Ditto.
423         (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
424         "pass_on_stack". Use new helper functions.  Accomodate Renesas ABI.
425         Fix argument passing strategy.
426         (sh_push_dummy_call_nofpu): Ditto.
427
428 2003-10-01  Andrew Cagney  <cagney@redhat.com>
429
430         * value.h (register_value_being_returned): Declare.  Replace
431         "value_being_returned".
432         * infcall.c (call_function_by_hand): Use
433         register_value_being_returned.
434         * infcmd.c (print_return_value): Call
435         "register_value_being_returned", handle struct return locally.
436         * values.c (register_value_being_returned): New function.  Replace
437         "value_being_returned".
438
439 2003-09-30  Elena Zannoni  <ezannoni@redhat.com>
440
441         * linux-proc.c (linux_do_registers): New function.
442         (linux_make_note_section): Use linux_do_registers in case of
443         single threaded inferior programs.
444
445 2003-10-01  Andrew Cagney  <cagney@redhat.com>
446
447         * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
448         use STRUCT_ADDR.  When not using "struct return convention", pass
449         "0" to "value_being_returned".  Add FIXMEs.
450         * infcmd.c (print_return_value): Pass an explicit 0/1 to
451         value_being_returned.  Add comments.
452         * values.c (value_being_returned): Add fixme.
453         * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
454         (hppa_value_returned_from_stack): Add FIXME.
455
456 2003-09-30  David Carlton  <carlton@kealia.com>
457
458         * dwarf2read.c (struct die_info): Add 'parent' field; replace
459         'has_children' and 'next' by 'child' and 'sibling'.
460         (read_comp_unit): Rework algorithm, breaking body into
461         read_die_and_children and read_die_and_siblings.
462         (read_die_and_children, read_die_and_siblings): New.
463         (read_full_die): Add 'has_children' argument; set it instead of
464         the die's 'has_children' field.  Minor formatting cleanup.
465         (free_die_list): Use die->child and die->sibling instead of
466         die->next.
467         (dump_die_list): Ditto.
468         (sibling_die): Use die->sibling.
469         (psymtab_to_symtab_1): Use die's 'child' field in place of its
470         'has_children' and 'next' fields.
471         (process_die, read_file_scope, read_func_scope)
472         (read_lexical_block_scope, read_structure_scope)
473         (read_enumeration, read_array_type, read_common_block)
474         (read_namespace, read_subroutine_type, dump_die): Ditto.
475
476 2003-09-30  Andrew Cagney  <cagney@redhat.com>
477
478         * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
479         to 224, not 220.
480
481 2003-09-30  Andrew Cagney  <cagney@redhat.com>
482
483         * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
484         REGISTER_VIRTUAL_SIZE.
485         * gdbarch.h, gdbarch.c: Regenerate.
486         * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
487         * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
488         * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
489
490 2003-09-29  Andrew Cagney  <cagney@redhat.com>
491
492         * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
493         DEPRECATED_REGISTER_VIRTUAL_TYPE.
494         * gdbarch.h, gdbarch.c: Regenerate.
495         * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
496         * sh64-tdep.c, sparc-tdep.c: Update.
497
498         * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
499         * remote-vxmips.c (vx_read_register): Ditto.
500         * remote-vx68.c (vx_read_register): Ditto.
501         * gnu-nat.c (inf_validate_procs): Ditto.
502
503 2003-09-29  J. Brobecker  <brobecker@gnat.com>
504
505         * infcall.c (call_function_by_hand): Fix build failure
506         introduced in the previous change to this file.
507
508 2003-09-29  Andrew Cagney  <cagney@redhat.com>
509
510         * NEWS: Mention Objective-C.
511
512 2003-09-29  Jerome Guitton  <guitton@act-europe.fr>
513
514         * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
515         test if the register has been saved on the stack.
516         (arm_scan_prologue_cache): When analysing the instruction
517         "str lr, [sp, #-4]", save the address where lr has been stored.
518
519 2003-09-28  Andrew Cagney  <cagney@redhat.com>
520
521         * frame.c (frame_read_unsigned_register): Delete function.
522         * frame.h (frame_read_unsigned_register): Delete declaration.
523         * sparc-tdep.c (sparc_init_extra_frame_info): Use
524         get_frame_register_unsigned.
525         (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
526         * m68hc11-tdep.c (m68hc11_print_register): Ditto.
527         * d10v-tdep.c (d10v_print_registers_info): Ditto.
528
529         * frame.h (frame_read_register): Delete declaration.
530         * frame.c (frame_read_register): Delete function.
531         * arch-utils.c (legacy_register_to_value): Use get_frame_register.
532         * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
533         * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
534         * mips-tdep.c (mips_register_to_value): Ditto.
535         * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
536         * d10v-tdep.c (d10v_print_registers_info): Ditto.
537
538         * frame.c (frame_read_signed_register): Delete function.
539         (frame_read_unsigned_register): Update comments.
540         * frame.h (frame_read_signed_register): Delete declaration.
541         * h8300-tdep.c (h8300_print_register): Use
542         get_frame_register_signed.
543         * m68hc11-tdep.c (m68hc11_print_register): Ditto.
544
545         * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
546         Rename VALUE_RETURNED_FROM_STACK.
547         * infcmd.c (print_return_value): Update.
548         * infcall.c (call_function_by_hand): Update.
549
550 2003-09-28  Mark Kettenis  <kettenis@gnu.org>
551
552         * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
553         regcache argument and reverse the order of the other two
554         arguments.  Remove local regcache variable.  Determine
555         architecture from REGCACHE.  Update comments.
556         * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
557         reverse the order of the other two arguments.  Remove local
558         regcache variable.  Determine architecture from REGCACHE.  Update
559         comments.
560         * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
561         prototypes.  Update comments.
562         * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype.  Adjust
563         comment.
564         * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
565         Update.
566         * go32-nat.c (fetch_register, go32_fetch_registers): Update.
567         * i386-interix-nat.c (supply_fpregset): Update.
568         * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
569         * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
570         * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
571         * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
572         * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
573         Update.
574         * i386obsd-tdep.c (fetch_core_registers): Update.
575         * i386v4-nat.c (supply_fpregset): Update.
576         * x86-64-linux-nat.c (supply_fpregset): Update.
577         * x86-64-linux-tdep.c (fetch_core_registers): Update.
578
579 2003-09-27  Mark Kettenis  <kettenis@gnu.org>
580
581         * i386-tdep.h: Put opaque declarations in alphabetical
582         order.  Remove spurious whitespace.
583         (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
584         (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
585         * i386-tdep.c (MM0_REGNUM): Remove define.
586         (i386_mmx_regnum_p): Add gdbarch argument.
587         (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
588         Rewrite using new macro definitions for FPU/SSE registers.
589         (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
590         definitions from i387-tdep.h.
591         (i386_register_name): Update.
592         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
593         new macro definitions for FPU/SSE registers.
594         (i386_extract_return_value): Determine whether floating-point
595         registers are present by examining REGCACHE's architecture.
596         (i386_store_return_value): Likewise.  Use I386_MAX_REGISTER_SIZE
597         instead of FPU_REG_RAW_SIZE.  Use new macro definitions for
598         FPU/SSE registers.
599         (i386_register_type): Update.
600         (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
601         definitions for FPU registers.  Use REGCACHE's architecture to
602         determine the appropriate register numbers.
603         (i386_pseudo_register_read, i386_pseudo_register_write,
604         i386_register_reggroup_p): Update.
605         (i386_gdbarch_init): Initialize TDEP->st0_regnum and
606         TDEP->mm0_regnum.
607         * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
608         I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
609         I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
610         I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
611         (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
612         i387_fill_fxsave): Change type of fsave/fxsave argument from `char
613         *' to `void *'.
614         * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
615         i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
616         i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
617         definitions for FPU/SSE registers.
618         (FXSAVE_MXCSR_ADDR): New define.
619         * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
620         TDEP->mm0_regnum.
621         (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
622         (I387_ST0_REGNUM): Define.
623
624         * regcache.h (get_regcache_arch): New prototype.
625         * regcache.c (get_regcache_arch): New function.
626
627         * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
628         whitespace.
629
630         * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
631         Initialize using ARRAY_SIZE.
632
633 2003-09-27  Andrew Cagney  <cagney@redhat.com>
634
635         * arch-utils.c (deprecated_init_frame_pc_default): Rename
636         "init_frame_pc_default".
637         * arch-utils.h (deprecated_init_frame_pc_default): Update.
638         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
639         * vax-tdep.c (vax_gdbarch_init): Update.
640         * v850-tdep.c (v850_gdbarch_init): Update.
641         * sh64-tdep.c (sh64_gdbarch_init): Update.
642         * s390-tdep.c (s390_gdbarch_init): Update.
643         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
644         * mcore-tdep.c (mcore_gdbarch_init): Update.
645         * h8300-tdep.c (h8300_gdbarch_init): Update.
646         * cris-tdep.c (cris_gdbarch_init): Update.
647         * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
648
649 2003-09-26  Mark Kettenis  <kettenis@gnu.org>
650
651         * regset.h: New file.
652         * Makefile.in (regset_h): Add.
653
654 2003-09-25  Andrew Cagney  <cagney@redhat.com>
655
656         * frame.h (deprecated_frame_saved_regs): Rename
657         get_frame_saved_regs.
658         * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
659         * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
660         * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
661         * s390-tdep.c, sh64-tdep.c, stack.c: Update.
662         * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
663
664 2003-09-25  Andrew Cagney  <cagney@redhat.com>
665
666         * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
667         file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
668         and Java.
669         * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
670         arm*-*-* do not use the new frame code.
671
672 2003-09-25  David Carlton  <carlton@kealia.com>
673
674         * c-exp.y: Remove 'register' declarations.
675         * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
676
677 2003-09-25  David Carlton  <carlton@kealia.com>
678
679         * c-exp.y: Include cp-support.h.  Add qualified_type.
680         (yylex): Delete nested type hack; add comments.
681         * cp-namespace.c (cp_lookup_nested_type): New function.
682         * cp-support.h: Declare cp_lookup_nested_type.
683         * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
684         instead of value_struct_elt_for_reference.
685         * valops.c: Include cp-support.h.
686         (value_aggregate_elt): New function.
687         (value_namespace_elt): Ditto.
688         (value_struct_elt_for_reference): Make static.
689         * value.h: Delete declaration of value_struct_elt_for_reference;
690         add declaration for value_aggregate_elt.
691         * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
692         (valops.o): Ditto.
693
694 2003-09-25  Daniel Jacobowitz  <drow@mvista.com>
695
696         * stack.c: Include "reggroups.h".
697         (frame_info): Only display registers in all_reggroup.
698         * Makefile.in (stack.o): Update dependencies.
699
700 2003-09-25  Jerome Guitton  <guitton@act-europe.fr>
701
702         * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
703         "add ip, sp #n" in the prologue.
704         (arm_scan_prologue): Ditto.
705
706 2003-09-25  Jerome Guitton  <guitton@act-europe.fr>
707
708         * MAINTAINERS (write after approval): Add myself.
709
710 2003-09-25  Andreas Schwab  <schwab@suse.de>
711
712         * m68k-tdep.c: Include "dwarf2-frame.h".
713         (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
714         * Makefile.in (m68k-tdep.o): Update dependencies.
715
716 2003-09-25  Corinna Vinschen  <vinschen@redhat.com>
717
718         * sh-tdep.c (struct frame_extra_info): Remove.
719         (struct sh_frame_cache): New structure.
720         (GET_SOURCE_REG): New macro extracting source register of an opcode.
721         (GET_TARGET_REG): Ditto but target register.
722         (GET_PUSHED_REG): Remove.
723         (IS_MOV_ARG_TO_REG): New macro.
724         (IS_MOV_ARG_TO_IND_R14): New macro.
725         (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
726         (IS_MOVW_PCREL_TO_REG): New macro.
727         (IS_MOVL_PCREL_TO_REG): New macro.
728         (IS_SUB_REG_FROM_SP): New macro.
729         (IS_ARG_MOV): Remove.
730         (IS_MOV_TO_R14): Remove.
731         (IS_RESTORE_FP): New macro.
732         (IS_RTS): New macro.
733         (IS_LDS): New macro.
734         (IS_MOV_FP_SP): New macro.
735         (IS_ADD_REG_TO_FP): New macro.
736         (IS_ADD_IMM_FP): New macro.
737         (sh_skip_prologue_hard_way): Remove.
738         (sh_saved_pc_after_call): Remove.
739         (sh_frame_chain): Remove.
740         (sh_find_callers_reg): Remove.
741         (sh_nofp_frame_init_saved_regs): Remove.
742         (sh_fp_frame_init_saved_regs): Remove.
743         (sh_init_extra_frame_info): Remove.
744         (sh_analyze_prologue): New function.
745         (sh_skip_prologue): Remove deprecated code.  Rely on new function
746         sh_analyze_prologue when after_prologue fails.
747         (sh_frame_saved_pc): Remove.
748         (sh_alloc_frame_cache): New function.
749         (sh_frame_cache): Ditto.
750         (sh_frame_prev_register): Ditto.
751         (sh_frame_this_id): Ditto.
752         (sh_frame_unwind): New structure defining the heuristic frame
753         sniffer interface.
754         (sh_frame_sniffer): New function.
755         (sh_unwind_sp): Ditto.
756         (sh_unwind_pc): Ditto.
757         (sh_unwind_dummy_id): Ditto.
758         (sh_frame_base_address): Ditto.
759         (sh_frame_base): New structure defining new frame base code.
760         (sh_in_function_epilogue_p): New function.
761         (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
762         code and to call all new code instead.  Initialize dwarf2 and
763         heuristic frame sniffer.
764
765 2003-09-24  Paul N. Hilfinger  <hilfingr@nile.gnat.com>
766
767         * parser-defs.h (struct exp_descriptor): New definition, containing
768         language-specific info for printing, prefixifying, dumping, and
769         evaluating expressions.
770         (exp_descriptor_standard): Declare new variable.
771         (print_subexp): Make global and declare here (from expprint.c).
772         (dump_subexp): Ditto.
773         (dump_subexp_body_standard): Declare.
774         (operator_length_standard): Declare.
775         (op_name_standard): Declare.
776         (print_subexp): Declare.
777         (print_subexp_standard): Declare.
778
779         * language.h (struct language_defn): Add la_exp_desc field to hold
780         pointer to table for language-specific operators.
781         Remove evaluate_exp field, which is now in struct exp_descriptor.
782
783         * parse.c (operator_length): Move most code to new
784         operator_length_standard function.  Use language-specific information.
785         (operator_length_standard): New function taking most code from
786         operator_length.
787         (exp_descriptor_standard): New constant.
788
789         * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
790         and OP_EXTENDED_LAST.
791
792         * expprint.c (print_subexp): Use language-specific print_subexp.
793         Make global; remove static declaration.
794         Move most code to print_subexp_standard.
795         (print_subexp_standard): New function, containing code formerly in
796         print_subexp.
797         (op_name): Add expression to argument signature.
798         Use langauge-specific op_name.
799         Move most code to op_name_standard.
800         (op_name_standard): New function, containing code formerly in op_name.
801         (dump_subexp):  Use new version of op_name function.
802         Use language-specific dump_subexp_body, and move most existing code to
803         dump_subexp_body_standard.
804         (dump_raw_expression): Use new op_name interface.
805         (dump_subexp_body): Move most code to dump_subexp_body_standard.
806         (dump_subexp_body_standard): New function, containing code formerly
807         in dump_subexp_body.
808
809         * language.c (unknown_language): Add default la_exp_desc field and
810         remove evaluate_exp field.
811         (auto_language): Ditto.
812         (local_language): Ditto.
813         * f-lang.c (f_language_defn): Ditto.
814         * c-lang.c (c_language_defn): Ditto.
815         (cplus_language_defn): Ditto.
816         (asm_language_defn): Ditto.
817         (minimal_language_defn): Ditto.
818         * p-lang.c (pascal_language_defn): Ditto.
819         * m2-lang.c (m2_language_defn): Ditto.
820         * objc-lang.c (objc_language_defn): Ditto.
821
822         * jv-lang.c (exp_descriptor_java): New variable, containing
823         Java-specific expression evaluator.
824         (java_language_defn): Add la_exp_desc field and remove evaluate_exp
825         field.
826         * scm-lang.c (exp_descriptor_scm): New variable, containing
827         Scheme-specific expression evaluator.
828         (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
829         field.
830         * objc-lang.c (print_object_command): Take evaluate_exp from the
831         la_exp_desc field.
832
833         * Makefile.in (eval.o): Add dependency on parser-defs.h.
834
835         * eval.c: Include parser-defs.h for the full declaration of
836         la_exp_desc's type.
837         (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
838
839 2003-09-23  Paul N. Hilfinger  <hilfingr@nile.gnat.com>
840
841         * parser-defs.h (operator_length): Declare.
842
843         * parse.c (length_of_subexp): Use operator_length to get operator
844         lengths and arities for operators.
845         Move most code to new operator_length function.
846         (operator_length): New function absorbing most code from
847         length_of_subexp.
848         (prefixify_subexp): Remove large case and use operator_length instead.
849         (parse_exp_1): Use renamings:
850         dump_prefix_expression => dump_raw_expression and
851         dump_postfix_expression => dump_prefix_expression.
852
853         * expression.h (dump_prefix_expression): Rename to ...
854         (dump_raw_expression): New name.
855         (dump_postfix_expression): Rename to ...
856         (dump_prefix_expression): New name.
857
858         * expprint.c (dump_subexp): Make global.  Add comment.
859         Move most existing code to dump_subexp_body.
860         (dump_subexp_body): New function.
861         (dump_prefix_expression): Rename to dump_raw_expression.
862         Remove attempt to print the expression via print_expression: it can't
863         work before the expression is prefixified.
864         (dump_raw_expression): Renamed from dump_prefix_expression.
865         (dump_postfix_expression): Rename to dump_prefix_expression, since
866         that's what it does.
867         Remove 'note' parameter, since this routine must be used on
868         prefixified expression.
869         (dump_prefix_expression): Renamed from dump_postfix_expression.
870
871 2003-09-22  Jim Blandy  <jimb@redhat.com>
872
873         * dwarf2read.c (read_array_type): When building the type for an
874         array of unspecified length, make sure to choose the upper bound
875         so that the array's total length comes out to be zero --- that's
876         how we represent such arrays.
877
878 2003-09-22  Michael Chastain  <mec@shout.net>
879
880         * MAINTAINERS: Rename gdb.c++ to gdb.cp.
881
882 2003-09-22  Jeff Johnston  <jjohnstn@redhat.com>
883
884         * top.c (quit_force): Fix indirect call to quit_target so
885         a struct qt_args pointer is passed.
886
887 2003-09-22  Andrew Cagney  <cagney@redhat.com>
888
889         * arch-utils.h (init_frame_pc_noop): Delete declaration.
890         * arch-utils.c (init_frame_pc_noop): Delete function.
891         * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
892         "init_frame_pc".
893         * mips-tdep.c (mips_gdbarch_init): Ditto.
894         * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
895         * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
896         declaration.
897         (DEPRECATED_INIT_FRAME_PC): Delete macro.
898         * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
899         declaration.
900         (DEPRECATED_INIT_FRAME_PC): Delete macro.
901
902 2003-09-22  Anthony Green  <green@redhat.com>
903
904         * monitor.c (monitor_expect): Delete unused conflicting targ_ops
905         declaration.
906
907 2003-09-20  Andrew Cagney  <cagney@redhat.com>
908
909         * breakpoint.c: Eliminate ARGSUSED.
910         * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
911         * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
912         * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
913         * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
914         * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
915         * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
916         * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
917         * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
918         * wince.c, remote-vx.c: Ditto.
919
920         * cli/cli-script.c: Remove "register" attributes.
921         * config/pa/tm-hppa.h: Ditto.
922         * cli/cli-decode.c: Ditto.
923         * cli/cli-cmds.c: Ditto.
924
925 2003-09-19  Andrew Cagney  <cagney@redhat.com>
926
927         * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
928         DEPRECATED_NPC_REGNUM.
929         * sparc64nbsd-nat.c (getregs_supplies): Ditto.
930
931 2003-09-19  Christopher Faylor  <cgf@redhat.com>
932
933         * win32-nat.c (mappings): Remove HAVE_SSE conditional.
934
935 2003-09-19  Jim Blandy  <jimb@redhat.com>
936
937         * macrotab.c (macro_include): Use the correct comparison to find
938         the appropriate place for this inclusion in the list.
939
940 2003-09-19  Andrew Cagney  <cagney@redhat.com>
941
942         * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
943         (DEPRECATED_HPUX_TEXT_END): Define.
944         (deprecated_hpux_text_end): Declare.
945         (struct target_ops): Declare opaque.
946         * hppah-nat.c (text_end): Make static.
947         (deprecated_hpux_text_end): New function.
948         * exec.c (text_end): Delete global variable.
949         (NEED_TEXT_START_END): Do not define.
950         (exec_file_attach): Replace code computing "text_end" code with
951         call to DEPRECATED_HPUX_TEXT_END.
952
953 2003-09-19  Andrew Cagney  <cagney@redhat.com>
954
955         * utils.c (align_up, align_down): New functions.
956         * defs.h (align_up, align_down): Declare.
957         * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
958         * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
959         and "align_down".
960         (round_up, round_down): Delete functions.
961         * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
962         "align_down".
963         (ROUND_DOWN, ROUND_UP): Delete macros.
964         (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
965         * h8300-tdep.c: Replace "round_up" and "round_down" with
966         "align_up" and "align_down".
967         (round_up, round_down): Delete macros.
968         * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
969         "align_down".
970         (ROUND_UP, ROUND_DOWN): Delete macros.
971
972 2003-09-18  J. Brobecker  <brobecker@gnat.com>
973
974         * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
975         hard-coded constant. Use the proper machine name instead.
976
977 2003-09-17  Andrew Cagney  <cagney@redhat.com>
978
979         * sparc-tdep.c (legacy_register_name): Delete function.
980         * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
981         (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
982         * infcmd.c (gdb_register_name): Delete variable.
983         * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
984         REGISTER_NAME and "tm.h".
985         * gdbarch.h, gdbarch.c: Regenerate.
986         * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
987         REGISTER_NAMES in comments.
988         * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
989         * m68klinux-nat.c (regmap): Ditto.
990
991 2003-09-17  Jim Blandy  <jimb@redhat.com>
992
993         * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
994
995 2003-09-17  Andrew Cagney  <cagney@redhat.com>
996
997         * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
998         (ppcnbsd_init_abi): Set "use_struct_convention" to
999         "ppcnbsd_use_struct_convention".
1000
1001 2003-09-17  Mark Kettenis  <kettenis@gnu.org>
1002
1003         * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
1004         * gdbarch.h, gdbarch.c: Regenerate.
1005         (stabs_argument_has_addr): New architecture method.
1006         * arch-utils.h (default_stabs_argument_has_addr): New prototype.
1007         * arch-utils.c: Include "buildsym.h".
1008         (default_stabs_argument_has_addr): New function.
1009         * stabsread.c (define_symbol): Use stabs_argument_has_addr
1010         instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1011
1012 2003-09-17  Andrew Cagney  <cagney@redhat.com>
1013
1014         * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
1015         * gdbarch.h, gdbarch.c: Regenerate.
1016         * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
1017         * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
1018         * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
1019         * sparcnbsd-tdep.c: Update.
1020
1021 2003-09-17  Andrew Cagney  <cagney@redhat.com>
1022
1023         * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
1024         * gdbarch.h, gdbarch.c: Regenerate.
1025         * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
1026         * d10v-tdep.c, frame.c: Update.
1027         * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
1028         * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
1029         * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
1030         * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
1031         * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
1032         * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
1033         * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
1034         * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
1035         * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
1036         * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
1037         * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
1038         * config/pa/nm-hppah.h: Update.
1039
1040 2003-09-16  Andrew Cagney  <cagney@redhat.com>
1041
1042         * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
1043         "use_struct_convention" to "ppc_linux_use_struct_convention".
1044         (ppc_linux_use_struct_convention): New function.
1045         * rs6000-tdep.c (rs6000_use_struct_convention): New function.
1046         (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
1047         "rs6000_use_struct_convention".
1048         * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
1049         declaration.
1050         * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
1051         Delete function.
1052
1053 2003-09-16  Andrew Cagney  <cagney@redhat.com>
1054
1055         * buildsym.c: Remove more occurances of "register".
1056         * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
1057         * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
1058         * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
1059         * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
1060         * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
1061         * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
1062         * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
1063         * utils.c, valops.c, values.c, xcoffread.c: Ditto.
1064
1065 2003-09-16  Corinna Vinschen  <vinschen@redhat.com>
1066
1067         * sh-tdep.h (struct gdbarch_tdep): Remove.  Change all register
1068         numbers to enumeration values.
1069         * sh-tdep.c: Accomodate above change.
1070         (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
1071         (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
1072         (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
1073         (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
1074         (IS_FPUSH): Rename from IS_FMOV.
1075         (sh_extract_struct_value_address): Remove useless comment.
1076         (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
1077         instead of own local values.
1078         (sh_dump_tdep): Remove.
1079         (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
1080         * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
1081
1082 2003-09-15  Andrew Cagney  <cagney@redhat.com>
1083
1084         * doublest.c (convert_floatformat_to_doublest): No longer need to
1085         cast "exp_bias" to an int.  Reverts 2002-12-04 change.
1086
1087 2003-09-15  Daniel Jacobowitz  <drow@mvista.com>
1088
1089         * values.c (unpack_double): Call floatformat_is_valid.
1090
1091 2003-09-15  Mark Kettenis  <kettenis@gnu.org>
1092
1093         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
1094         ps_strings into a long.
1095
1096         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
1097         _initialize_am64fbsd_nat.
1098
1099 2003-09-15  Kevin Buettner  <kevinb@redhat.com>
1100
1101         * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
1102         associated with DW_AT_ranges attribute is out of bounds.
1103
1104 2003-09-15  David Lecomber  <dsl@sources.redhat.com>
1105
1106         * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
1107
1108 2003-09-14  Michael Chastain  <mec@shout.net>
1109
1110         * config/m68k/nm-apollo68v.h: Delete.
1111         * config/m68k/xm-apollo68v.h: Delete.
1112
1113 2003-09-14  Andrew Cagney  <cagney@redhat.com>
1114
1115         * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
1116         * dcache.c: Update copyrights and descriptions.
1117         * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
1118
1119 2003-09-14  Andrew Cagney  <cagney@redhat.com>
1120
1121         * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
1122         "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
1123
1124 2003-09-14  Andrew Cagney  <cagney@redhat.com>
1125
1126         * alpha-nat.c: Remove some occurances of "register".
1127         * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
1128         * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
1129         * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
1130         * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
1131         * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
1132         * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
1133         * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
1134         * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
1135         * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
1136         * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
1137         * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
1138         * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
1139         * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
1140         * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
1141         * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
1142         * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
1143         * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
1144         * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
1145         * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
1146         * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
1147         * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
1148         * values.c, vax-tdep.c, xcoffread.c: Ditto.
1149
1150 2003-09-13  Andrew Cagney  <cagney@redhat.com>
1151
1152         * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
1153         * ppc-tdep.h (struct regcache): Declare opaque.
1154         * objfiles.h (struct objfile_data): Declare opaque.
1155         * cp-support.h (struct objfile): Declare opaque.
1156         * linux-nat.h (target_waitstatus): Declare opaque.
1157
1158 2003-09-14  Mark Kettenis  <kettenis@gnu.org>
1159
1160         * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
1161         (stabs_argument_has_addr): New architecture method.
1162         * arch-utils.h (default_stabs_argument_has_addr): New prototype.
1163         * arch-utils.c: Include "buildsym.h".
1164         (default_stabs_argument_has_addr): New function.
1165         * stabsread.c (define_symbol): Use stabs_argument_has_addr
1166         instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1167
1168         * cris-tdep.c (cris_gdbarch_init): Set
1169         deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
1170         * hppa-tdep.c (hppa_gdbarch_init): Likewise.
1171         * mcore-tdep.c (mcore_gdbarch_init): Likewise.
1172         * mips-tdep.c (mips_gdbarch_init): Likewise.
1173         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
1174         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
1175
1176 2003-09-13  Andrew Cagney  <cagney@redhat.com>
1177
1178         * values.c (using_struct_return): Delete "function" and "funcaddr"
1179         parameters.
1180         * value.h (using_struct_return): Update declaration.
1181         * infcmd.c (finish_command_continuation): Update.
1182         (finish_command): Update.
1183         * infcall.c (call_function_by_hand): Update.
1184         * eval.c (evaluate_subexp_standard): Update.
1185
1186 2003-09-13  Christopher Faylor  <cgf@redhat.com>
1187
1188         * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
1189         SSE registers since gdb will not operate correctly without this.
1190         Restore include file ordering munged in previous change.
1191         * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
1192
1193 2003-09-13  Mark Kettenis  <kettenis@gnu.org>
1194
1195         * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
1196         REG_STRUCT_HAS_ADDR.
1197         * gdbarch.c, gdbarch.h: Updated.
1198         * infcall.c (call_function_by_hand): Update.
1199         * stabsread.c (define_symbol): Updated.
1200
1201         * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
1202
1203 2003-09-12  Christopher Faylor  <cgf@redhat.com>
1204
1205         * win32-nat.c: Reorganize so that defines used by target headers are
1206         actually defined by the system headers.
1207         * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
1208         than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
1209
1210 2003-09-12  Jim Blandy  <jimb@redhat.com>
1211
1212         * dbxread.c (read_dbx_symtab): Don't report an internal error if
1213         the file has no .data, .bss, or .rodata sections.  Instead wait
1214         until we see a variable alleged to live in one of those sections.
1215
1216         * dbxread.c (read_dbx_symtab): If we have no .data section and no
1217         .bss section, presume that any variables we find live in the
1218         .rodata section.
1219
1220         * dbxread.c (read_dbx_symtab): Add FIXME about finding section
1221         offsets for global and static variables.
1222
1223         * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
1224         symbol types are, by definition, in the .data section, so it is
1225         correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
1226         If there is no .data section, there should be no N_DATA or N_DATA
1227         | N_EXT symbols.
1228
1229 2003-09-12  Mark Kettenis  <kettenis@gnu.org>
1230
1231         * amd64fbsd-tdep.c: Fix sigtramp recognition.
1232         (amd64fbsd_sigcontext_addr): Rewrite.
1233         (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
1234         with correct values.
1235         (amd64fbsd_sc_reg_offset): Initialize with correct values.
1236         (amd64fbsd_init_abi): Fix typo.
1237
1238 2003-09-12  Andrew Cagney  <cagney@redhat.com>
1239
1240         * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
1241         (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
1242
1243 2003-09-12  Andrew Cagney  <cagney@redhat.com>
1244
1245         * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
1246         "entry_file_highpc".  Update comments.
1247         * defs.h (deprecated_inside_entry_file): Rename
1248         "inside_entry_file".
1249         * blockframe.c (deprecated_inside_entry_file): Rename
1250         "inside_entry_file".
1251         * frame.c (get_prev_frame): Update.  Use if 0 instead of #if 0.
1252         * vax-tdep.c (vax_frame_chain): Update.
1253         * sh64-tdep.c (sh64_frame_chain): Update.
1254         * sh-tdep.c (sh_frame_chain): Update.
1255         * rs6000-tdep.c (rs6000_frame_chain): Update.
1256         * ns32k-tdep.c (ns32k_frame_chain): Update.
1257         * mips-tdep.c (mips_frame_chain): Update.
1258         * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
1259         * m32r-tdep.c (m32r_frame_this_id): Update.
1260         * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
1261         * frv-tdep.c (frv_frame_this_id): Update.
1262         * d10v-tdep.c (d10v_frame_this_id): Update.
1263         * cris-tdep.c (cris_frame_chain): Update.
1264         * blockframe.c (legacy_frame_chain_valid): Update.
1265         * avr-tdep.c (avr_frame_this_id): Update.
1266         * arm-tdep.c (arm_prologue_this_id): Update.
1267         * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
1268         * objfiles.c (objfile_relocate): Update.
1269         * mipsread.c (mipscoff_symfile_read): Update.
1270         (mipscoff_symfile_read): Update.
1271         * mdebugread.c (parse_partial_symbols): Update.
1272         * dwarfread.c (read_file_scope): Update.
1273         * dwarf2read.c (read_file_scope): Update.
1274         * dbxread.c (read_dbx_symtab): Update.
1275         (read_dbx_symtab): Update.
1276         * coffread.c (complete_symtab): Update.
1277
1278 2003-09-12  Jeff Johnston  <jjohnstn@redhat.com>
1279
1280         * top.c (quit_target): New static helper function.
1281         (quit_force): Moved code to quit_target().  Call quit_target()
1282         via catch_errors() to catch errors during quit.
1283
1284 2003-09-11  David Carlton  <carlton@kealia.com>
1285
1286         * buildsym.c (finish_block): Use allocate_block to allocate the
1287         block.
1288         * mdebugread.c (new_block): Add FIXME.
1289
1290 2003-09-11  David Carlton  <carlton@kealia.com>
1291
1292         * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
1293         * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
1294         (recursive_dump_type): Ditto.
1295         * printcmd.c (print_formatted): Ditto.
1296         * typeprint.c (print_type_scalar): Ditto.
1297         * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
1298         (c_type_print_varspec_suffix, c_type_print_base): Ditto.
1299         * cp-support.h: Declare cp_check_possible_namespace_symbols,
1300         maint_cplus_cmd_list.
1301         * cp-support.c: Make maint_cplus_cmd_list extern.
1302         * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
1303         command.h.
1304         (lookup_symbol_file): Look in possible namespace blocks when
1305         appropriate.
1306         (initialize_namespace_symtab): New.
1307         (get_possible_namespace_block, free_namespace_block)
1308         (check_possible_namespace_symbols)
1309         (check_possible_namespace_symbols_loop)
1310         (check_one_possible_namespace_symbol)
1311         (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
1312         (_initialize_cp_namespace): Ditto.
1313         * block.h: Declare allocate_block.
1314         * block.c (allocate_block): New.
1315         * jv-lang.c (get_java_class_symtab): Allocate blocks via
1316         allocate_block.
1317         * symfile.h: Update declaration of add_psymbol_to_list.
1318         * symfile.c (add_psymbol_to_list): Return the partial symbol in
1319         question.
1320         * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
1321         scan_partial_symbols_call.
1322         (scan_partial_symbols): Add NAMESPACE argument; update calls to
1323         helper functions.
1324         (add_partial_symbol): If necessary, scan mangled names for names
1325         of namespaces.
1326         (add_partial_namespace): Add NAMESPACE argument; generate partial
1327         symbols associated  to namespaces.
1328         (add_partial_enumeration): Add NAMESPACE argument.
1329         (new_symbol): Allow namespace syms.
1330         (read_namespace): Generate namespace syms.
1331         * objfiles.h: Add opaque declaration of struct symtab.
1332         (struct objfile): Add cp_namespace_symtab member.
1333         * objfiles.c (allocate_objfile): Set
1334         objfile->cp_namespace_symtab.
1335         * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
1336         dictionary_h, command_h.
1337
1338 2003-09-11  Andrew Cagney  <cagney@redhat.com>
1339
1340         * rs6000-tdep.c (rs6000_push_dummy_call): Use
1341         regcache_raw_write_signed to set SP_REGNUM, move the operation to
1342         near the function's end.
1343         (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
1344         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
1345         regcache_raw_write_signed to set SP_REGNUM.
1346
1347 2003-09-11  Elena Zannoni  <ezannoni@redhat.com>
1348
1349         * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
1350         orig_addrs is set up properly.
1351
1352 2003-09-11  Andrew Cagney  <cagney@redhat.com>
1353
1354         * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
1355         * gdbarch.h, gdbarch.c: Re-generate.
1356         * infcall.c (call_function_by_hand): Update.
1357         * hppa-tdep.c (hppa_push_arguments): Update.
1358         * ada-lang.c (place_on_stack): Update.
1359         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1360         * sparc-tdep.c (sparc_gdbarch_init): Update.
1361         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1362         * hppa-tdep.c (hppa_gdbarch_init): Update.
1363         * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
1364         stack_align.
1365
1366 2003-09-11  Daniel Jacobowitz  <drow@mvista.com>
1367
1368         * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
1369         register do need a frame.
1370
1371 2003-09-11  Andrew Cagney  <cagney@redhat.com>
1372
1373         Since the IRIX 4 configuration was forcing K&R mode it hasn't been
1374         buildable since GDB 5.0.
1375         * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
1376         * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
1377         * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
1378         * irix4-nat.c: Delete file.
1379         * config/mips/irix4.mh: Delete file.
1380         * config/mips/irix3.mh: Delete file.
1381         * config/mips/irix3.mt: Delete file.
1382         * config/mips/tm-irix3.h: Delete file.
1383         * config/mips/nm-irix3.h: Delete file.
1384         * config/mips/xm-irix3.h: Delete file.
1385         * config/mips/nm-irix4.h: Delete file.
1386         * config/mips/xm-irix4.h: Delete file.
1387         * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
1388
1389 2003-09-10  J. Brobecker  <brobecker@gnat.com>
1390
1391         * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
1392         * Makefile.in (hppa-tdep.o): Update dependencies.
1393
1394 2003-09-10  James E Wilson  <wilson@specifixinc.com>
1395
1396         * MAINTAINERS: Change my e-mail address.  Move to paper trail
1397         section.
1398
1399 2003-09-10  Kevin Buettner  <kevinb@redhat.com>
1400
1401         * MAINTAINERS (frv): New ISA entry.
1402
1403 2003-09-10  Kevin Buettner  <kevinb@redhat.com>
1404
1405         * frv-tdep.c (dis-asm.h): Include.
1406         * Makefile.in (frv-tdep.o): Update dependencies.
1407
1408 2003-09-09  Jeff Johnston  <jjohnstn@redhat.com>
1409
1410         * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
1411         Fix typo for high range of floating registers.
1412
1413 2003-09-09  David Carlton  <carlton@kealia.com>
1414
1415         * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
1416         highpc initialization here out of scan_partial_symbols.
1417         (scan_partial_symbols): Restructure into a recursive version,
1418         calling add_partial_namespace and add_partial_enumeration when
1419         appropriate.
1420         (add_partial_namespace): New.
1421         (add_partial_enumeration, locate_pdi_sibling): Ditto.
1422
1423 2003-09-09  Andrew Cagney  <cagney@redhat.com>
1424
1425         * rs6000-tdep.c (ppc_push_return_address): Delete function.
1426         (rs6000_push_dummy_call): Set LR to BP_ADDR.
1427         (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
1428         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1429
1430         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
1431         (rs6000_push_dummy_call): Set the "TOC" register.
1432
1433         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
1434         methods "max_register_raw_size", "max_register_virtual_size" or
1435         "register_virtual_size".
1436
1437 2003-09-09  Ian Lance Taylor  <ian@wasabisystems.com>
1438
1439         * MAINTAINERS: Update my e-mail address.
1440
1441 2003-09-09  Andrew Cagney  <cagney@redhat.com>
1442
1443         * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
1444         (rs6000_push_dummy_call): Store the struct return address.
1445         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1446
1447 2003-09-09  Andrew Cagney  <cagney@redhat.com>
1448
1449         * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
1450         "ppc_sysv_abi_push_arguments".
1451         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
1452         "ppc_sysv_abi_push_arguments".
1453         * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
1454         instead of "push_arguments".
1455         (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
1456
1457 2003-09-09  Andrew Cagney  <cagney@redhat.com>
1458
1459         * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
1460         instead of CALL_DUMMY_ADDRESS.
1461
1462 2003-09-09  Paul N. Hilfinger  <hilfingr@gnat.com>
1463
1464         * p-lang.c: Eliminate "register".
1465         * c-lang.c: Ditto.
1466         * expprint.c: Ditto.
1467         * f-lang.c: Ditto.
1468         * jv-lang.c: Ditto.
1469         * language.c: Ditto.
1470         * m2-lang.c: Ditto.
1471         * parse.c: Ditto.
1472         * scm-lang.c: Ditto.
1473         * objc-lang.c: Ditto.
1474
1475 2003-09-09  Nick Clifton  <nickc@redhat.com>
1476
1477         * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
1478
1479 2003-09-04  Andrew Cagney  <cagney@redhat.com>
1480
1481         * avr-tdep.c: Include "dis-asm.h".
1482         * cris-tdep.c: Include "dis-asm.h".
1483         (cris_delayed_get_disassembler): Use "struct disassemble_info"
1484         instead of corresponding typedef.
1485         * h8300-tdep.c: Include "dis-asm.h".
1486         * ia64-tdep.c: Include "dis-asm.h".
1487         * i386-tdep.c: Include "dis-asm.h".
1488         (i386_print_insn): Use "struct disassemble_info" instead of
1489         corresponding typedef.
1490         * m68k-tdep.c: Include "dis-asm.h".
1491         * mcore-tdep.c: Include "dis-asm.h".
1492         * mips-tdep.c: Include "dis-asm.h".
1493         (gdb_print_insn_mips): Make static, use "struct disassemble_info"
1494         instead of corresponding typedef.
1495         * ns32k-tdep.c: Include "dis-asm.h".
1496         * s390-tdep.c: Include "dis-asm.h".
1497         * sparc-tdep.c: Include "dis-asm.h".
1498         * vax-tdep.c: Include "dis-asm.h".
1499         * v850-tdep.c: Include "dis-asm.h".
1500         * mn10300-tdep.c: Include "dis-asm.h".
1501         * rs6000-tdep.c: Include "dis-asm.h".
1502         * xstormy16-tdep.c: Include "dis-asm.h".
1503         (_initialize_xstormy16_tdep): Delete "extern" declaration of
1504         print_insn_xstormy16.
1505         * Makefile.in (v850-tdep.o): Update dependencies.
1506         (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
1507         (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
1508         (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
1509         (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
1510         (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
1511         (gdbarch_h): Remove $(dis_asm_h).
1512         * disasm.c: Include "dis-asm.h".
1513         (dis_asm_read_memory): Use "struct disassemble_info" instead of
1514         corresponding typedef.
1515         (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
1516         (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
1517         * gdbarch.sh: Do not include "dis-asm.h".
1518         (struct disassemble_info): Declare opaque.
1519         (TARGET_PRINT_INSN): Update declaration.
1520         * gdbarch.h, gdbarch.c: Re-generate.
1521
1522 2003-09-08  Andrew Cagney  <cagney@redhat.com>
1523
1524         * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
1525         CALL_DUMMY_ADDRESS, change to a predicate.
1526         * gdbarch.h, gdbarch.c: Re-generate.
1527         * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
1528         Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
1529         * infcall.c (call_function_by_hand): Ditto.
1530         * sparc-tdep.c (sparc_push_return_address): Ditto.
1531         (sparc_gdbarch_init): Set deprecated_call_dummy_address.
1532         * xstormy16-tdep.c (xstormy16_push_return_address): Replace
1533         CALL_DUMMY_ADDRESS with entry_point_address.
1534         * v850-tdep.c (v850_push_return_address): Ditto.
1535         * s390-tdep.c (s390_push_return_address): Ditto.
1536         * rs6000-tdep.c (ppc_push_return_address): Ditto.
1537         * mn10300-tdep.c (mn10300_push_return_address): Ditto.
1538         * mcore-tdep.c (mcore_push_return_address): Ditto.
1539         * cris-tdep.c (cris_push_return_address): Ditto.
1540         * arm-tdep.c (arm_push_return_address): Ditto.
1541
1542 2003-09-08  Andrew Cagney  <cagney@redhat.com>
1543
1544         * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
1545         enum.  Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
1546         and REG_UNMODIFIED to REG_SAME_VALUE.
1547         (execute_cfa_program): Update.
1548         (dwarf2_frame_cache): Update.  Initialize table to
1549         REG_UNSPECIFIED, complain if CFI fails to specify a register's
1550         location.
1551         (dwarf2_frame_prev_register): Update.  Handle REG_UNSPECIFIED.
1552
1553 2003-09-08  Andrew Cagney  <cagney@redhat.com>
1554
1555         * gnu-nat.c: Remove "inline" function attribute.
1556         * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
1557
1558 2003-09-08  Kevin Buettner  <kevinb@redhat.com>
1559
1560         * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
1561         target.
1562
1563 2003-09-08  Kevin Buettner  <kevinb@redhat.com>
1564
1565         * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
1566         (frame_extra_info): Rename this struct to frv_unwind_cache.
1567         Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
1568         Add fields ``prev_sp'' and ``base''.
1569         (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
1570         (frv_saved_pc_after_call, frv_init_extra_frame_info)
1571         (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
1572         Delete.
1573         (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
1574         Revise all callers.  Fill in the unwind cache argument and make
1575         other adjustments to account for new frame mechanisms.
1576         (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
1577         (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
1578         (frv_frame_base_address, frv_unwind_dummy_id): New functions.
1579         (frv_frame_unwind, frv_frame_base): New structs.
1580         (frv_push_arguments): Change name to frv_push_dummy_call().  Add
1581         additional arguments expected by this method and adjust function
1582         body accordingly.
1583         (frv_gdbarch_init): Remove calls to the following functions:
1584         set_gdbarch_deprecated_init_frame_pc(),
1585         set_gdbarch_deprecated_saved_pc_after_call(),
1586         set_gdbarch_deprecated_frame_chain(),
1587         set_gdbarch_deprecated_frame_saved_pc(),
1588         set_gdbarch_deprecated_frame_init_saved_regs(),
1589         set_gdbarch_deprecated_push_arguments(),
1590         set_gdbarch_deprecated_push_return_address(),
1591         set_gdbarch_deprecated_pop_frame(),
1592         set_gdbarch_deprecated_call_dummy_words(),
1593         set_gdbarch_deprecated_sizeof_call_dummy_words(),
1594         set_gdbarch_deprecated_init_extra_frame_info(),
1595         set_gdbarch_deprecated_dummy_write_sp(), and
1596         set_gdbarch_deprecated_pc_in_call_dummy().
1597         Add calls to the following functions:
1598         set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
1599         set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
1600         frame_base_set_default().
1601         * Makefile.in (frv-tdep.o): Update dependencies.
1602
1603 2003-09-09  Mark Kettenis  <kettenis@gnu.org>
1604
1605         * dwarf2-frame.c (read_encoded_value): Add support for
1606         DW_EH_PE_aligned encoding.
1607
1608 2003-09-08  Daniel Jacobowitz  <drow@mvista.com>
1609
1610         * infrun.c (normal_stop): Don't print a message if the inferior
1611         has exited.
1612
1613 2003-09-08  Jim Blandy  <jimb@redhat.com>
1614
1615         * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
1616         * dbxread.c: #include "gdb_assert.h".
1617         (read_dbx_symtab): If the objfile has no .data section, use the
1618         section index for the .bss section instead.
1619
1620 2003-09-08  Daniel Jacobowitz  <drow@mvista.com>
1621
1622         * frame.c (deprecated_safe_get_selected_frame): New function.
1623         * frame.h (deprecated_safe_get_selected_frame): Add prototype.
1624         * findvar.c (read_var_value): Call it.
1625
1626 2003-09-08  Corinna Vinschen  <vinschen@redhat.com>
1627
1628         * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
1629         (sh64-tdep.o): Add dependencies.
1630         * configure.tgt: Add FIXME to sh-*-linux*.
1631         * sh-tdep.c: Move sh64 support to sh64-tdep.c.
1632         (sh_gdbarch_init): Always set correct sh_show_regs function
1633         pointer.  Call sh64_gdbarch_init() if machine type is sh5.
1634         * sh-tdep.h: Move sh64 support to sh64-tdep.c.
1635         * sh64-tdep.c: New file, containing all sh64 related code from
1636         sh-tdep.c.
1637         * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
1638         * config/sh/linux.mt (TDEPFILES): Ditto.
1639         * config/sh/nbsd.mt (TDEPFILES): Ditto.
1640         * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
1641         * config/sh/wince.mt (TDEPFILES): Ditto.
1642
1643 2003-09-07  Daniel Jacobowitz  <drow@mvista.com>
1644
1645         * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
1646         (stop_wait_callback): Handle !lp->signalled also.
1647         (lin_lwp_has_pending, flush_callback): New functions.
1648         (lin_lwp_wait): Call flush_callback.
1649         * linux-proc.c (linux_proc_add_line_to_sigset): New function.
1650         (linux_proc_pending_signals): New function.
1651         * linux-nat.h (linux_proc_pending_signals): Add prototype.
1652
1653 2003-09-07  Daniel Jacobowitz  <drow@mvista.com>
1654
1655         From Nick Kelsey <nickk@ubicom.com>:
1656         * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
1657         when the stop PC is at the beginning of a function also.
1658
1659 2003-09-06  Daniel Jacobowitz  <drow@mvista.com>
1660
1661         * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
1662         (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
1663
1664 2003-09-06  Mark Kettenis  <kettenis@gnu.org>
1665
1666         * sol-thread.c: Include "gdb_string.h".
1667
1668 2003-09-03  Mark Kettenis  <m.kettenis@osp.nl>
1669
1670         * gcore.c: Reorder include files in alphabetical order.  Include
1671         "gdb_assert.h".  Various coding style fixes.
1672         (derive_stack_segment, derive_heap_segment): Replace check for
1673         non-null BOTTOM and TOP with gdb_assert.
1674         (derive_heap_segment): Replace check for successful creation of
1675         ZERO with gdb_assert.
1676         (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
1677
1678 2003-09-04  Andrew Cagney  <cagney@redhat.com>
1679
1680         * thread-db.c (verbose_dlsym): New function.
1681         (thread_db_load): Use verbose_dlsym
1682         (thread_db_new_objfile): Print that libthread_db was loaded, and
1683         that thread debugging was enabled.
1684
1685 2003-09-04  Andrew Cagney  <cagney@redhat.com>
1686
1687         * configure.tgt: Add "mips64*-*-*" target.  Delete
1688         mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
1689         mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
1690         mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
1691         mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
1692         mips*-sony-*, and mips64*-*-elf* targets.
1693         * config/mips/embedl.mt: Delete file.
1694         * config/mips/embedl64.mt: Delete file.
1695         * config/mips/mips.mt: Delete file.
1696         * config/mips/mips64.mt: Delete file.
1697         * config/mips/tm-embed.h: Delete file.
1698         * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
1699         * config/mips/embed64.mt: Delete out-of-date comment.
1700
1701 2003-09-04  Andrew Cagney  <cagney@redhat.com>
1702
1703         * hppa-tdep.c (hppa_gdbarch_init): Set
1704         "have_nonsteppable_watchpoint".
1705         * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1706         * mips-tdep.c (mips_dump_tdep): Do not print
1707         HAVE_NONSTEPPABLE_WATCHPOINT.
1708         (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
1709         * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1710         * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1711         * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1712
1713 2003-09-04  Corinna Vinschen  <vinschen@redhat.com>
1714
1715         * breakpoint.c (watchpoint_check): Remove accidentally checked in
1716         unused code.  Add comment.
1717
1718 2003-09-04  Corinna Vinschen  <vinschen@redhat.com>
1719
1720         * breakpoint.c (watchpoint_check): Check for pc being in an
1721         epilogue if watchpoint frame couldn't be found.
1722
1723 2003-09-04  Andrew Cagney  <cagney@redhat.com>
1724
1725         * Makefile.in: Re-generate all dependencies.
1726
1727 2003-09-03  Andrew Cagney  <cagney@redhat.com>
1728
1729         * arch-utils.h (legacy_print_insn): Delete declaration.
1730         * arch-utils.c (legacy_print_insn): Delete function.
1731         * disasm.c (deprecated_tm_print_insn_info): Delete.
1732         (_initialize_disasm): Delete function, contained code initializing
1733         deprecated_tm_print_insn_info.
1734         * gdbarch.sh (deprecated_tm_print_insn): Delete.
1735         (deprecated_tm_print_insn_info): Delete.
1736         (TARGET_PRINT_INSN): Do not provide a default.
1737         * gdbarch.h, gdbarch.c: Re-generate.
1738
1739 2003-09-03  Andrew Cagney  <cagney@redhat.com>
1740
1741         * disasm.c (fprintf_disasm): New function.
1742         (gdb_disassemble_info): Call "init_disassemble_info", instead of
1743         INIT_DISASSEMBLE_INFO_NO_ARCH.  Do not initialize "insn_sets",
1744         reverts 2003-08-14 change.
1745         (_initialize_disasm): Call "init_disassemble_info", instead of
1746         INIT_DISASSEMBLE_INFO_NO_ARCH.
1747
1748 2003-09-03  Michael Snyder  <msnyder@redhat.com>
1749
1750         * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
1751
1752 2003-09-03  Andrew Cagney  <cagney@redhat.com>
1753
1754         * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
1755         * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
1756         * symfile.c (syms_from_objfile): Update.
1757         (reread_symbols): `Update
1758         * exec.c (exec_file_attach): Update.
1759         (exec_file_attach): Update.
1760         * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
1761         2003-08-29 change.
1762         * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
1763
1764 2003-09-03  Daniel Jacobowitz  <drow@mvista.com>
1765
1766         * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
1767         trad-frame.h.
1768         (arm_get_cache): Delete macro.
1769         (struct arm_prologue_cache): Update comments.  Make saved_regs into
1770         a trad_frame_saved_reg pointer.  Remove unwound_pc; rename unwound_sp
1771         to prev_sp.
1772         (thumb_scan_prologue): Update for cache changes.  Don't call
1773         DEPRECATED_PC_IN_CALL_DUMMY.
1774         (arm_scan_prologue): Update for cache changes.  Take NEXT_FRAME
1775         argument and use it in desperation search for our prologue.  Do not
1776         search past the specified PC.
1777         (arm_make_prologue_cache): Simplify.
1778
1779         (arm_prologue_this_id, arm_prologue_prev_register)
1780         (arm_prologue_unwind, arm_prologue_unwind_sniffer)
1781         (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
1782         (arm_sigtramp_this_id, arm_sigtramp_prev_register)
1783         (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
1784         (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
1785
1786         (arm_frame_chain_valid, arm_find_callers_reg)
1787         (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
1788         (arm_pop_frame): Delete obsolete methods.
1789         (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
1790
1791         (arm_gdbarch_init): Update for new frame methods.  Register prologue
1792         and sigtramp unwinders.  Set the default frame base method.
1793
1794         * Makefile.in (arm-tdep.o): Update dependencies.
1795         * varobj.c (find_frame_addr_in_frame_chain): Call
1796         get_frame_base_address.
1797         * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1798
1799 2003-09-03  Daniel Jacobowitz  <drow@mvista.com>
1800
1801         * arm-tdep.c (arm_minimal_frame_chain): Renamed from
1802         arm_frame_chain.  Take NEXT_FRAME and CACHE arguments.
1803         Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
1804         (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
1805         Take NEXT_FRAME and CACHE arguments.  Call
1806         FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
1807         Set unwound_pc in CACHE instead of modifying the frame argument.
1808         Don't bother checking the frame type when looking for sigtramp
1809         frames.
1810         (arm_make_prologue_cache, arm_frame_chain)
1811         (arm_init_extra_frame_info): New functions.
1812
1813 2003-09-03  Daniel Jacobowitz  <drow@mvista.com>
1814
1815         * arm-tdep.c (arm_get_cache): Define.
1816         (struct arm_prologue_cache): Renamed from frame_extra_info.  Add
1817         unwound_sp, unwound_pc, and saved_regs.
1818         (thumb_scan_prologue): Take a cache instead of the frame.
1819         (arm_scan_prologue): Likewise.
1820         (arm_frame_chain): Create a temporary cache for arm_scan_prologue
1821         instead of a temporary frame.
1822         (arm_init_extra_frame_info): Allocate and use a cache.
1823         (arm_frame_saved_pc, arm_pop_frame): Use the cache.
1824
1825 2003-09-03  Andrew Cagney  <cagney@redhat.com>
1826
1827         * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
1828         * config/mips/wince.mt (TM_CLIBS): Ditto.
1829         * config/sh/wince.mt (TM_CLIBS): Ditto.
1830         * config/pa/hppa64.mt (TM_CLIBS): Delete.
1831         * config/sparc/sp64.mt (CC): Delete.
1832
1833 2003-09-03  Andrew Cagney  <cagney@redhat.com>
1834
1835         * defs.h: Do not include "arch-utils.h".
1836         (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
1837         GDB_MULTI_ARCH_PURE.
1838         * configure.in (GDB_MULTI_ARCH): Do not define.
1839         * configure, config.in: Regenerate.
1840         * configure.tgt: Do not set variable "gdb_multi_arch".
1841         * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
1842         * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
1843         * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
1844         * config/v850/v850.mt (TM_FILE): Delete disabled definition.
1845         * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
1846         * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
1847         * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
1848         * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
1849         * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
1850         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
1851         * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
1852         * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
1853         * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
1854         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
1855         * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
1856         * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
1857         * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
1858         * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
1859
1860 2003-08-30  Michael Chastain  <mec@shout.net>
1861
1862         * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
1863         * config/m68k/nm-hp300hpux.h: Delete.
1864         * config/m68k/tm-hp300hpux.h: Delete.
1865         * config/m68k/xm-hp300hpux.h: Delete.
1866         * config/m68k/xm-hp300bsd.h: Delete.
1867         * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
1868         tm-hp300hpux.h, xm-hp300hpux.h.
1869         * somsolib.c: Remove comment about hp300 shared libraries.
1870
1871 2003-08-31  Mark Kettenis  <kettenis@gnu.org>
1872
1873         * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
1874         Only define PTRACE_GET_THREAD_AREA is not already defined.
1875         Various style fixes in code and comments and some additional
1876         spelling fixes in comments.  Move after functions dealing with
1877         debug registers.
1878         * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
1879         Fix coding-style.
1880
1881         * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
1882         frame_unwind_register_unsigned instead of
1883         frame_unwind_unsigned_register.
1884
1885 2003-08-30  Mark Kettenis  <kettenis@gnu.org>
1886
1887         * configure.in: Search for gethostbyname in libnsl.
1888         * configure: Regenerated.
1889
1890 2003-08-29  Mark Kettenis  <kettenis@gnu.org>
1891
1892         * configure.in: Remove redundant AC_MSG_RESULT in check for
1893         uintptr_t in stdint.h.
1894         * configure: Regenerated.
1895
1896         * amd64-nat.h (struct regcache): Add opaque declaration.
1897
1898         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
1899         * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
1900         Change "register array" to "register cache" in comments.
1901         (x86_64_linux_gregset64_reg_offset): New variable.
1902         (GETREGS_SUPPLIES): Remove macro.
1903         (supply_gregset): Call amd64_supply_native_gregset instead of
1904         x86_64_linux_supply_gregset.
1905         (fill_gregset): Rename `regno' to `regnum'.  Call
1906         amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
1907         (store_regs): Rename `regno' to `regnum'.
1908         (store_fpregs): Rename `regno' to `regnum'.
1909         (fetch_inferior_registers): Rename `regno' to `regnum'.  Use
1910         amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1911         Reorganize function a bit.
1912         (store_inferior_registers): Rename `regno' to `regnum'.  Use
1913         amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1914         Reorganize function a bit.
1915         (_initialize_x86_64_linux_nat): New function.
1916         * config/i386/x86-64linux.mh.
1917
1918 2003-08-29  Andrew Cagney  <cagney@redhat.com>
1919
1920         * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
1921         (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
1922         (target_remove_watchpoint): Delete macro.
1923         (target_insert_watchpoint): Delete macro.
1924         (remote_mips_can_use_hardware_watchpoint): Delete declaration.
1925         (remote_mips_stopped_by_watchpoint): Delete declaration.
1926         (remote_mips_remove_watchpoint): Delete declaration.
1927         (remote_mips_set_watchpoint): Delete declaration.
1928         (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
1929         * remote-mips.c (_initialize_remote_mips): Set
1930         "to_insert_watchpoint", "to_stopped_by_watchpoint",
1931         "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1932         (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1933         (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1934         (mips_stopped_by_watchpoint): Rename
1935         remote_mips_stopped_by_watchpoint.
1936         (mips_can_hardware_watchpoint): Rename
1937         remote_mips_can_use_hardware_watchpoint, update function
1938         signature.
1939
1940 2003-08-29  Mark Kettenis  <kettenis@gnu.org>
1941
1942         * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1943         USER_DS.  We haven't given them a register number yet.
1944
1945         * amd64-nat.h: New file.
1946         * amd64-nat.c: New file.
1947         * amd64fbsd-nat.c: Include "amd64-nat.h".
1948         (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1949         (amd64fbsd32_r_reg_offset): New variable.
1950         (supply_gregset): Simply call amd64_supply_native_gregset.
1951         (fill_gregset): Rename `regno' to `regnum'.  Simply call
1952         amd64_collect_native_gregset.
1953         (fill_fpregset): Rename `regno' to `regnum'.
1954         (fetch_inferior_registers): Rename `regno' to `regnum'.  Replace
1955         usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1956         Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1957         `fpregset_t'.  Call amd64_supply_native_gregset instead of
1958         supply_gregset.  Call x86_64_supply_fxsave instead of
1959         supply_fpregset.
1960         (store_inferior_registers): Rename `regno' to `regnum'.  Replace
1961         usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1962         Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1963         `fpregset_t'.  Call amd64_collect_native_gregset instead of
1964         fill_gregset.  Call x86_64_collect_fxsave instead of
1965         fill_fpregset.
1966         (_initialize_am64fbsd_nat): Initialize
1967         amd64_native_gregset32_reg_offset and
1968         amd64_native_gregset64_reg_offset.
1969         * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1970
1971         * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1972         null pointer.  Fix typo in comment.
1973
1974         * regcache.c (supply_register): Reimplement to call
1975         regcache_raw_supply.
1976         (regcache_collect): Reimplement by calling regcache_raw_collect.
1977
1978 2003-08-28  Mark Kettenis  <kettenis@gnu.org>
1979
1980         * regcache.c (register_buffer): Consitify first argument.
1981         (regcache_raw_supply, regcache_raw_collect): New
1982         functions.
1983
1984 2003-08-28  Daniel Jacobowitz  <drow@mvista.com>
1985
1986         * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET.  Suggested
1987         by Nathan J. Williams.
1988
1989 2003-08-28  Daniel Jacobowitz  <drow@mvista.com>
1990
1991         * lin-lwp.c (wait_lwp): New function, copied from
1992         stop_wait_callback.  Clean up.
1993         (stop_wait_callback): Use wait_lwp.
1994
1995 2003-08-28  Andrew Cagney  <cagney@redhat.com>
1996
1997         * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1998         flavour and disassembler options.
1999         (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
2000         (mips_gdbarch_init): Set "print_insn".  Delete initialization of
2001         deprecated_tm_print_insn_info.
2002
2003 2003-08-27  Andrew Cagney  <cagney@redhat.com>
2004
2005         * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
2006         Use target_read_memory.
2007         (s390_get_frame_info): Update.  Do not reference
2008         deprecated_tm_print_insn_info.
2009         (s390_check_function_end, s390_is_sigreturn): Ditto.
2010
2011 2003-08-27  Andrew Cagney  <cagney@redhat.com>
2012
2013         * Makefile.in (cris-tdep.o): Update dependencies.
2014         * cris-tdep.c: Include "gdb_assert.h".
2015         (cris_gdbarch_init): Set print_insn.
2016         (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
2017         (cris_delayed_get_disassembler): Simplify, directly call the
2018         disassembler returned by cris_get_disassembler.
2019         * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
2020         (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
2021         * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
2022         (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
2023         * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
2024         (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
2025         * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
2026         (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
2027         * frv-tdep.c (frv_gdbarch_init): Set print_insn.
2028         (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
2029         * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
2030         (gdb_print_insn_sparc): Delete function.
2031         (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
2032         deprecated_tm_print_insn_info.
2033         * v850-tdep.c (v850_gdbarch_init): Set print_insn.
2034         (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
2035         (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
2036         * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
2037         (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
2038         * s390-tdep.c (gdb_print_insn_s390): Delete function.
2039         (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
2040         (s390_gdbarch_init): Set print_insn.
2041
2042 2003-08-27  Andrew Cagney  <cagney@redhat.com>
2043
2044         * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
2045         (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
2046         * infcall.c (call_function_by_hand): Convert the entry point
2047         address into a code address.
2048
2049 2003-08-27  Andrew Cagney  <cagney@redhat.com>
2050
2051         * dsrec.c: Include "gdb_string.h".
2052         * Makefile.in (dsrec.o): Update dependencies.
2053
2054 2003-08-27  Michael Chastain  <mec@shout.net>
2055
2056         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
2057
2058 2003-08-27  Andrew Cagney  <cagney@redhat.com>
2059
2060         * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
2061         (alpha_osf1_init_abi): Do not set call_dummy_address.
2062
2063 2003-08-27  David Carlton  <carlton@kealia.com>
2064
2065         From Randolph Chung  <tausq@debian.org>:
2066         * linux-proc.c (linux_info_proc_cmd): rework the code so that it
2067         compiles with -Wformat-nonliteral -Werror.
2068
2069 2003-08-26  Jim Blandy  <jimb@redhat.com>
2070
2071         * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
2072         (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
2073         bfd_lookup_symbol, since we only want symbols in code sections.
2074         (look_for_base): Pass zero as the SECT_FLAGS argument to
2075         bfd_lookup_symbol, since we're not concerned about which section
2076         the symbol is in.
2077
2078 2003-08-26  Jeff Johnston  <jjohnstn@redhat.com>
2079
2080         * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
2081         we are frameless or the return address register is already known.
2082
2083 2003-08-26  Andrew Cagney  <cagney@redhat.com>
2084
2085         * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
2086         in size.  Add comments.
2087
2088 2003-08-26  Jeff Johnston  <jjohnstn@redhat.com>
2089
2090         * ia64-tdep.c (ia64_convert_from_func_addr): New function.
2091         (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
2092
2093 2003-08-26  Jason Merrill  <jason@redhat.com>
2094
2095         * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
2096         case out of #ifdef MIPS block.
2097
2098 2003-08-25  Daniel Jacobowitz  <drow@mvista.com>
2099
2100         PR java/1322
2101         * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
2102         available before calling SECT_OFF_TEXT.
2103         * PROBLEMS: Remove description of java/1322.
2104
2105 2003-08-25  Jeff Johnston  <jjohnstn@redhat.com>
2106
2107         * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
2108         bof, and nat0-nat127 as pseudo-registers.
2109         (ia64_frame_cache): New struct used to cache frame info.
2110         (ia64_register_reggroup_p): New routine used to override default
2111         register grouping so registers without names are still saved and
2112         restored.
2113         (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
2114         pseudo values.
2115         (ia64_pseudo_register_read): New routine to read pseudo-registers.
2116         (ia64_pseudo_register_write): New routine to write pseudo-registers.
2117         (ia64_alloc_frame_cache): New routine to create a new
2118         ia64_frame_cache.
2119         (examine_prologue): Change prototype to add next_frame pointer.
2120         Assume frameless until otherwise proven.  Verify that the cfm for
2121         current frame matches the cfm that should occur for the prologues
2122         alloc insn and if equal, mark as not frameless.  At end of routine,
2123         if not frameless, calculate registers for the previous frame and store
2124         in the cache, if a cache is provided.
2125         (ia64_skip_prologue):  Use new prototype when calling examine_prologue
2126         and pass 0 for next_frame.
2127         (ia64_store_return_value): Change to use convert_typed_floating()
2128         instead of calling ia64_convert_to_raw().
2129         (ia64_extract_return_value): Change to use convert_typed_floating()
2130         instead of calling ia64_convert_to_virtual().
2131         (ia64_frame_cache): New routine to support new frame model.
2132         (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
2133         (ia64_frame_sniffer): Ditto.
2134         (ia64_sigtramp_frame_init_saved_regs): Ditto.
2135         (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
2136         (ia64_sigtramp_frame_prev_register): Ditto.
2137         (ia64_sigtramp_frame_sniffer): Ditto.
2138         (ia64_frame_base_address): Ditto.
2139         (ia64_extract_struct_value_address): Change to issue error message.
2140         (ia64_frame_align): New routine to align sp.
2141         (ia64_push_dummy_call): New routine based on ia64_push_arguments().
2142         (ia64_push_arguments): Removed.  Logic moved to
2143         ia64_push_dummy_call().
2144         (ia64_push_return_address): Ditto.
2145         (ia64_unwind_dummy_id): New function.
2146         (ia64_unwind_pc): Ditto.
2147         (ia64_convert_register_p): Ditto.
2148         (ia64_register_to_value): Ditto.
2149         (ia64_value_to_register): Ditto.
2150         (ia64_pop_frame, ia64_pop_frame_regular): Removed.
2151         (ia64_register_byte, ia64_register_raw_size): Ditto.
2152         (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
2153         (ia64_saved_pc_after_call): Ditto.
2154         (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
2155         (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
2156         (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
2157         (ia64_register_convert_to_raw): Ditto.
2158         (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
2159         (ia64_init_extra_frame_info): Ditto.
2160         (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
2161         (ia64_gdbarch_init): Remove registering of deprecated functions that
2162         are no longer used.  Add registration of new gdbarch functions.
2163         Remove registering deprecated_write_sp.  Replace
2164         set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
2165         Delete set_gdbarch_deprecated_register_convertible(),
2166         set_gdbarch_deprecated_register_convert_to_virtual(), and
2167         set_gdbarch_deprecated_register_convert_to_raw() calls.  Remove
2168         set_gdbarch_deprecated_register_size(),
2169         set_gdbarch_deprecated_register_bytes(),
2170         set_gdbarch_pcregnum(),
2171         set_gdbarch_deprecated_register_byte(),
2172         set_gdbarch_deprecated_register_raw_size(),
2173         set_gdbarch_deprecated_max_register_raw_size(),
2174         set_gdbarch_deprecated_register_virtual_size(),
2175         and set_gdbarch_deprecated_max_register_virtual_size() calls.
2176         Replace set_gdbarch_deprecated_extract_return_value() with
2177         set_gdbarch_extract_return_value().  Remove calls to:
2178         set_gdbarch_deprecated_saved_pc_after_call();
2179         set_gdbarch_deprecated_frame_chain(),
2180         set_gdbarch_deprecated_frame_saved_pc(),
2181         set_gdbarch_deprecated_frame_init_saved_regs(),
2182         set_gdbarch_deprecated_get_saved_register(),
2183         set_gdbarch_deprecated_call_dummy_words(),
2184         set_gdbarch_deprecated_sizeof_call_dummy_words(),
2185         set_gdbarch_deprecated_init_extra_frame_info(),
2186         set_gdbarch_deprecated_frame_args_address(),
2187         set_gdbarch_deprecated_frame_locals_address(),
2188         and set_gdbarch_deprecated_dummy_write_sp().
2189         Add set_gdbarch_convert_register_p(),
2190         set_gdbarch_register_to_value(),
2191         set_gdbarch_value_to_register(),
2192         set_gdbarch_push_dummy_call(),
2193         set_gdbarch_frame_align(),
2194         set_gdbarch_unwind_dummy_id(),
2195         set_gdbarch_unwind_pc(),
2196         frame_unwind_append_sniffer(),
2197         frame_unwind_append_sniffer(),
2198         and frame_base_set_default().
2199
2200 2003-08-25  Chris Demetriou  <cgd@broadcom.com>
2201
2202         * configure.tgt: Document need for special "mipsisa64" handling.
2203         (mipsisa64*-*-linux64): Handle as target linux64.
2204         (mipsisa64*-*-*): Handle as target embed64.
2205
2206 2003-08-18  Michael Chastain  <mec@shout.net>
2207
2208         * PROBLEMS: Document pr gdb/1322, the Java anonymous
2209         objfile bug.
2210
2211 2003-08-24  Mark Kettenis  <kettenis@gnu.org>
2212
2213         * i387-tdep.h: Update copyright date.
2214         (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
2215
2216         * linux-proc.c (linux_proc_xfer_memory): Remove comment about
2217         CFLAGS games to reflect reality.
2218
2219 2003-08-24  Andrew Cagney  <cagney@redhat.com>
2220
2221         * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
2222         GDB_MULTI_ARCH is always non-zero.
2223         * osabi.c (_initialize_gdb_osabi): Ditto.
2224         (gdbarch_init_osabi): Ditto.
2225         * sparc-tdep.c: Ditto for #if code.
2226
2227 2003-08-23  Mark Kettenis  <kettenis@gnu.org>
2228
2229         * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
2230         Update comments.
2231         * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype.  Update
2232         comments.
2233         * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
2234         x86_64_supply_fxsave.
2235         * x86-64-linux-nat.c (supply_fpregset): Adjust call to
2236         x86_64_supply_fxsave.
2237         * amd64fbsd-nat.c (supply_fpregset): Adjust call to
2238         x86_64_supply_fxsave.
2239
2240 2003-08-23  Andreas Jaeger  <aj@suse.de>
2241
2242         * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
2243         i387_supply_fxsave.
2244
2245 2003-08-23  Mark Kettenis  <kettenis@gnu.org>
2246
2247         * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
2248         i387_supply_register.
2249         (go32_fetch_registers): Adjust call to i387_supply_fsave.
2250         * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
2251         i387_supply_fsave.
2252         (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
2253         i387_supply_fxsave.
2254         * i386obsd-tdep.c (fetch_core_registers): Adjust call to
2255         i387_supply_fsave.
2256         * i386bsd-nat.c (supply_fpregset): Adjust call to
2257         i387_supply_fsave.
2258         (fetch_inferior_registers): Remove extraneous whitespace.  Adjust
2259         call to i387_supply_fxsave.  Call i387_supply_fsave instead of
2260         supply_fpregset.
2261         (store_inferior_registers): Remove extraneous whitespace.  Call
2262         i387_fill_fsave instead of fill_fpregset.
2263         * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
2264         (supply_fpregset): Likewise.
2265         * i386v4-nat.c (supply_fpregset): Adjust call to
2266         i387_supply_fsave.
2267         * i386-interix-nat.c (supply_fpregset): Adjust call to
2268         i387_supply_fsave.
2269         * i386-linux-nat.c (supply_fpregset): Adjust call to
2270         i387_supply_fsave.
2271         (supply_fpxregset): Adjust call to i387_adjust_fxsave.
2272         * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
2273         i387supply_fsave and i387_supply_fxsave.
2274         * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
2275         Incorporate code from `i387_supply_register.
2276         (i387_supply_register): Remove.
2277         (i387_supply_fxsave): Add `regnum' argument.
2278         Update comments.
2279         * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
2280         prototype.
2281         (i387_supply_register): remove prototype.
2282         Update comments.
2283
2284 2003-08-22  Michael Chastain  <mec@shout.net>
2285
2286         * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
2287         Add lines for files in gdb/testsuite/gdb.cp/* that are
2288         still not 8.3 unique.
2289
2290 2003-08-22  Daniel Jacobowitz  <drow@mvista.com>
2291
2292         * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
2293         TYPE_VPTR_FIELDNO is valid.
2294
2295 2003-08-19  Mark Kettenis  <kettenis@gnu.org>
2296
2297         * utils.c (set_width_command): Remove prototypes.
2298         (set_screen_size): New prototype.
2299         (init_page_info): Simplify by fetching the screen size from
2300         Readline.  Call set_screen_size.
2301         (set_screen_size): New function.
2302         (set_width): Add missing whitespace in comment.
2303         (set_width_command): Call set_screen_size.
2304         (set_height_command): New function.
2305         (initialize_utils): Fix formatting.  Make "set height" command
2306         call set_height_command.  Remove redundant code that turns off
2307         pagination if output isn't a terminal.  Remove redundant call to
2308         set_width_command.
2309
2310 2003-08-22  Mark Kettenis  <kettenis@gnu.org>
2311
2312         * sparc64-tdep.h (sparc64_regnum): Fix comment.
2313         (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
2314         (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
2315         * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
2316         `case' keyword.
2317         (sparc64_register_info): Give the reister with number
2318         SPARC64_STATE_REGNUM a name.
2319         (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
2320         %asi and %ccr.
2321         (sparc64_push_dummy_call): Take BIAS into account when checking
2322         stcak alignment.
2323         (sparc_software_single_step): Remove assertions that check whether
2324         NPC and NNPC were zero.
2325         (sparc_supply_rwindow): Make public.  Merge functionality with
2326         sparc64_supply_rwindow.
2327         (sparc_fill_rwindow): Make public.  Merge functionality with
2328         sparc64_fill_rwindow.
2329         (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
2330         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
2331         SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
2332         * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
2333         sparc_supply_rwindow instead of sparc64_supply_rwindow.
2334
2335         * reggroups.c: Add whitespace after declarations of local
2336         variables in functions.
2337
2338 2003-08-21  Michael Chastain  <mec@shout.net>
2339
2340         * gdbtypes.h: Change array bound type from an int to enum.
2341
2342 2003-08-21  Andrew Cagney  <cagney@redhat.com>
2343
2344         * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
2345         * config/sparc/tm-sparc.h: Ditto.
2346         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
2347         unconditionally.
2348         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
2349
2350 2003-07-13  Mark Kettenis  <kettenis@gnu.org>
2351
2352         * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
2353         (register_objfile_data, set_objfile_data, objfile_data): New
2354         prototypes.
2355         * objfiles.c (objfile_alloc_data, objfile_free_data): New
2356         prototypes.
2357         (allocate_objfile): Call objfile_alloc_data.
2358         (free_objfile): Call objfile_free_data.
2359         (struct objfile_data): New.
2360         (struct objfile_data_registration): New.
2361         (struct objfile_data_registry): New.
2362         (objfile_data_registry): New variable.
2363         (register_objfile_data): New function.
2364         (objfile_alloc_data, objfile_free_data): New functions.
2365         (set_objfile_data, objfile_data): New functions.
2366         * dwarf2-frame.c (dwarf2_frame_data): New variable.
2367         (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
2368         (_initialize_dwarf2_frame): New function and prototype.
2369
2370 2003-08-21  Andrew Cagney  <cagney@redhat.com>
2371
2372         * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
2373         a specific architecture.
2374         * arch-utils.h (set_architecture_from_arch_mach): Delete
2375         declaration.
2376         (target_architecture_hook): Delete declaration.
2377         * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
2378         (default_float_format): Assume GDB_MULTI_ARCH.
2379         (default_double_format): Assume GDB_MULTI_ARCH.
2380         (set_endian_from_file): Delete function.
2381         (arch_ok): Delete function.
2382         (set_arch): Delete function.
2383         (set_architecture_from_arch_mach): Delete function.
2384         (set_architecture_from_file): Delete function.
2385         (set_architecture): Assume GDB_MULTI_ARCH.
2386         (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
2387
2388 2003-08-21  Mark Kettenis  <kettenis@gnu.org>
2389
2390         Rewrite FreeBSD/sparc64 native configuration.
2391         * sparcbsd-nat.c, sparcbsd-nat.h: New files.
2392         * sparc64fbsd-nat.c: New file.
2393         * sparc64fbsd-tdep.c: New file.
2394         * sparc64-tdep.c sparc64-tdep.h: New files.
2395         * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
2396         sparc64fbsd-tdep.o): New dependencies.
2397         (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
2398         and sparc64fbsd-tdep.c.
2399         (sparc64_tdep_h, sparcbsd_nat_h): New variables.
2400         * config/sparc/fbsd.mh: Remove copyright notice.
2401         (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
2402         sparcbsd-nat.o.
2403         * config/sparc/fbsd.mt: Remove copyright notice.
2404         (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
2405         solib-legacy.o.  Add sparc64-tdep.o and sparc64fbsd-tdep.o.
2406         * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
2407         (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
2408         PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
2409         regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
2410         fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
2411         * config/sparc/tm-fbsd.h: Don't include "solib.h" and
2412         "sparc/tm-sp64.h".
2413         (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
2414         (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
2415
2416 2003-08-21  Michael Chastain  <mec@shout.net>
2417
2418         * symtab.h: Add doco on the space critical structures and
2419         some measurements of space usage.
2420
2421 2003-08-21  Michael Snyder  <msnyder@redhat.com>
2422
2423         * tracepoint.c (trace_dump_command): Trace break address
2424         is subject to DECR_PC_AFTER_BREAK.
2425         (set_traceframe_context): Make "trace_line" an int.
2426         Fixes suggested by Mark Newman  <mark.newman@lmco.com>
2427
2428 2003-08-20  Michael Snyder  <msnyder@redhat.com>
2429
2430         * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
2431         * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
2432         FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
2433         argument passing.
2434         (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
2435         functions, replace sh_push_dummy_call.
2436         (sh_gdbarch_init): Set push_dummy_call to one of new methods.
2437
2438 2003-08-20  Michael Chastain  <mec@shout.net>
2439
2440         * gdbtypes.h (struct main_type): Rearrange to save space.
2441
2442 2003-08-20  Michael Snyder  <msnyder@redhat.com>
2443
2444         * trad-frame.c: Comment typo fix.
2445
2446 2003-08-20  Michael Snyder  <msnyder@redhat.com>
2447             Kevin Buettner  <kevinb@redhat.com>
2448
2449         * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
2450         (frv_frame_init_saved_regs): Add declaration.
2451         (frame_extra_info): Add new field ``saved_regs''.
2452         (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
2453         (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
2454         Update frame related code.
2455         (frv_extract_struct_value_address): Adjust formatting.
2456         * Makefile.in (frv-tdep.o): Update dependencies.
2457         * config/frv/tm-frv.h (target_insert_watchpoint)
2458         (target_remove_watchpoint, target_insert_hw_breakpoint)
2459         (target_remove_hw_breakpoint): Delete these macros.
2460         (remote_insert_watchpoint, remote_remove_watchpoint)
2461         (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
2462         these declarations.
2463
2464 2003-08-20  Michael Chastain  <mec@shout.net>
2465
2466         * defs.h (ENUM_BITFIELD): New macro.
2467         * symtab.h (ENUM_BITFIELD): Use it.
2468         (BYTE_BITFIELD): Remove old macro, which was already disabled.
2469
2470 2003-08-19  Shrinivas Atre <shrinivasa@kpitcummins.com>
2471
2472         * MAINTAINERS (write after approval): Add myself.
2473
2474 2003-08-18  Andrew Cagney  <cagney@redhat.com>
2475
2476         * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
2477         * gdbarch.h, gdbarch.c: Re-generate.
2478         * infcall.c (call_function_by_hand): Adjust the SP by
2479         frame_red_zone_size before allocating any stack space.
2480         * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
2481         * x86-64-tdep.c (x86_64_frame_align): New function.
2482         (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
2483
2484         * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
2485         Remove code adjusting SP so that it skips over the Red Zone.
2486
2487 2003-08-18  Mark Kettenis  <kettenis@gnu.org>
2488
2489         * NEWS (New native configurations): Mention FreeBSD/amd64.
2490
2491 2003-08-18  Andrew Cagney  <cagney@redhat.com>
2492
2493         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
2494         "dwarf2_build_frame_info".  Append "m68k_frame_sniffer" instead of
2495         "m68k_frame_p".
2496         (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
2497
2498 2003-08-18  Mark Kettenis  <kettenis@gnu.org>
2499
2500         * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
2501
2502 2003-08-18  Michal Ludvig  <mludvig@suse.cz>
2503
2504         * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
2505         Define.
2506         * i386-linux-nat.c: Include "linux-nat.h".
2507         (child_post_startup_inferior): New function.
2508
2509 2003-08-18  Mark Kettenis  <kettenis@gnu.org>
2510
2511         * i386-tdep.c (i386_analyze_register_saves): Handle register saves
2512         at the start of a frameless function.  This probably fixes PR
2513         backtrace/1338.
2514
2515 2003-08-17  Michael Chastain  <mec@shout.net>
2516
2517         * symfile.c (find_sym_fns): Remove special case for apollo target.
2518
2519 2003-08-17  Daniel Jacobowitz  <drow@mvista.com>
2520
2521         * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
2522         (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
2523         (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
2524         (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
2525         (linux_supports_tracevforkdone): New function.
2526         (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
2527         TRACEVFORKDONE.
2528         (child_follow_fork): Handle vfork.
2529         (linux_handle_extended_wait): Likewise.  Also handle exec.
2530         (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
2531         * NEWS: Mention fork tracing.
2532
2533 2003-08-17  Daniel Jacobowitz  <drow@mvista.com>
2534
2535         * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2536
2537 2003-08-17  Daniel Jacobowitz  <drow@mvista.com>
2538
2539         * Makefile.in (i386-linux-nat.o): Update dependencies.
2540         * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
2541         * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
2542         (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
2543         * i386-linux-nat.c: Include "linux-nat.h".
2544         (child_post_startup_inferior): New function.
2545         * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
2546         * infptrace.c (kill_inferior): Wrap in #ifdef.
2547         * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
2548         attaching to each LWP.
2549         (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
2550         (init_lin_lwp_ops): Fill in some more operations.
2551         * linux-nat.h (linux_enable_event_reporting)
2552         (linux_handle_extended_wait, linux_child_post_startup_inferior): New
2553         prototypes.
2554         * linux-nat.c (linux_enable_event_reporting): New function.
2555         (child_post_attach, linux_child_post_startup_inferior)
2556         (child_post_startup_inferior, child_follow_fork)
2557         (linux_handle_extended_wait, kill_inferior): New functions.
2558
2559 2003-08-16  Andrew Cagney  <cagney@redhat.com>
2560
2561         * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
2562         * gdbarch.h, gdbarch.c: Re-generate.
2563
2564 2003-08-16  Mark Kettenis  <kettenis@gnu.org>
2565
2566         * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
2567
2568 2003-08-16  Andrew Cagney  <cagney@redhat.com>
2569
2570         * NEWS: Mention that "set prompt-escape-char" was deleted.
2571         * top.c (get_prompt_1): Delete function.
2572         (gdb_prompt_escape):
2573         (init_main): Do not clear "gdb_prompt_escape".  Delete "set
2574         prompt-escape-char" command.
2575         (MAX_PROMPT_SIZE): Delete macro.
2576         (get_prompt): Simplify, do not call get_prompt_1.
2577
2578 2003-08-16  Andrew Cagney  <cagney@redhat.com>
2579
2580         * Makefile.in (printcmd.o, valprint.o): Do not try to build with
2581         -Werror.  -Wformat-nonliteral problems.
2582
2583 2003-08-15  J. Brobecker  <brobecker@gnat.com>
2584
2585         Further multiarching work mostly for hppa64-*-hpux11:
2586         * hppa-tdep.h: New file.
2587         * hppa-tdep.c: #include hppa-tdep.c.
2588         (hppa32_num_regs): Renamed from hppa_num_regs.
2589         (hppa64_num_regs): New constant.
2590         (hppa64_call_dummy_breakpoint_offset): New constant.
2591         (hppa32_call_dummy_length): New constant.
2592         (hppa64_call_dummy_length): New constant.
2593         (hppa32_stack_align): Make name 32bit explicit.
2594         (hppa32_register_virtual_type): Likewise.
2595         (hppa32_extract_return_value): Likewise.
2596         (hppa32_use_struct_convention): Likewise.
2597         (hppa32_store_return_value): Likewise.
2598         (hppa64_register_virtual_type): New function.
2599         (hppa64_extract_return_value): New function.
2600         (hppa64_use_struct_convention): New function.
2601         (hppa64_store_return_value): New function.
2602         (hppa_frame_locals_address): Remove declaration, function does
2603         not exist anymore.
2604         (hppa_register_byte): Add support for PA64 ABI.
2605         (hppa_gdbarch_init): Add support for PA64 ABI.
2606         * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
2607         Make name 32bit explicit.
2608         (hppa32_hpux_frame_base_before_sigtramp): Likewise.
2609         (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
2610         (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
2611         (hppa64_hpux_frame_base_before_sigtramp): New function.
2612         (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
2613         * config/pa/tm-hppa64.h: Remove macros that are no longer
2614         necessary now that the gdbarch vector is properly setup.
2615         Transform some macros into function calls. Some minor cleanup.
2616         * config/pa/tm-hppah.h: Update function calls in macros
2617         following the function renaming in hppa-hpux-tdep.c.
2618         * Makefile.in (hppa_tdep_h): New variable.
2619         (hppa-tdep.o): Add dependency over hppa_tdep_h.
2620
2621 2003-08-14  Michael Snyder  <msnyder@redhat.com>
2622
2623         * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
2624
2625 2003-08-13  J. Brobecker  <brobecker@gnat.com>
2626
2627         * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
2628         bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
2629         routine.
2630
2631 2003-08-13  Michael Snyder  <msnyder@redhat.com>
2632
2633         * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
2634         (frv_saved_pc_after_call): Use deprecated ftype.
2635         (stupid_useless_init_extra_frame_info): Remove orphan prototype.
2636         (frv_remote_translate_xfer_address): Remove.
2637         (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
2638
2639 2003-08-13  J. Brobecker  <brobecker@gnat.com>
2640
2641         * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
2642         initialization after the common gdbarch initialization, not before.
2643
2644 2003-08-13  J. Brobecker  <brobecker@gnat.com>
2645
2646         * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
2647         (ADDR_BITS_REMOVE): Remove, redundant.
2648
2649 2003-08-13  J. Brobecker  <brobecker@gnat.com>
2650
2651         * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
2652         gdbarch method to clear the 2 low bits of text addresses.
2653
2654 2003-08-12  Andrew Cagney  <cagney@redhat.com>
2655
2656         * Makefile.in (dsrec.o): Update dependencies.
2657         * dsrec.c: Include "gdb_assert.h".
2658         (make_srec): Use snprintf instead of sprintf, use a literal format
2659         string.
2660
2661 2003-08-12  Andrew Cagney  <cagney@redhat.com>
2662
2663         * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
2664         FRAME_OBSTACK_ZALLOC.
2665
2666 2003-08-12  Kevin Buettner  <kevinb@redhat.com>
2667
2668         * i386-tdep.c (i386_gdbarch_init): Enable default support for
2669         SSE registers.
2670
2671 2003-08-10  Mark Kettenis  <kettenis@gnu.org>
2672
2673         * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
2674         amd64fbsd_sc_reg_offset): Add extern declarations.
2675         * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
2676         declarations.
2677
2678 2003-08-11  Ben Elliston  <bje@wasabisystems.com>
2679
2680         * MAINTAINERS (write after approval): Update my mail address.
2681
2682 2003-08-10  Andrew Cagney  <cagney@redhat.com>
2683
2684         * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
2685
2686 2003-08-10  Mark Kettenis  <kettenis@gnu.org>
2687
2688         * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2689         i386obsd_sigtramp_start, i386obsd_sigtramp_end,
2690         i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
2691         i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
2692         i386bsd_sc_reg_offset): Add extern declarations.
2693         * i386obsd-nat.c: Include "i386-tdep.h"
2694         (_initialize_i386obsd_nat): Remove extern declarations.
2695         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
2696         declarations.
2697         * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
2698         declarations.
2699
2700         * i386-tdep.c (i386_register_to_value): Use get_frame_register
2701         instead of frame_read_register.
2702         (i386_fetch_pointer_argument): Use get_frame_register_unsigned
2703         instead of frame_read_register.  Use I386_ESP_REGNUM instead of
2704         SP_REGNUM.
2705         (i386_frame_prev_register): Use frame_unwind_register_unsigned
2706         instead of frame_unwind_unsigned_register.  Use
2707         I386_EFLAGS_REGISTER instead of PS_REGNUM.
2708         (i386_get_longjmp_target): Use regcache_read_unsigned_register
2709         instead of read_register.  Use builtin_type_void_data_ptr instead
2710         of builtin_type_void_func_ptr when extracting the address of the
2711         jmp_buf.
2712         (i386_extract_return_value, i386_store_return_value,
2713         i386_pseudo_register_read, i386_pseudo_register_write): Use
2714         register_size instead REGISTER_RAW_SIZE.
2715
2716 2003-08-10  Andrew Cagney  <cagney@redhat.com>
2717
2718         * infcall.c (call_function_by_hand): Use xstrprintf instead of
2719         sprintf.  Make "name" constant.
2720
2721 2003-08-10  Mark Kettenis  <kettenis@gnu.org>
2722
2723         * i387-tdep.c (i387_register_to_value): Use get_frame_register
2724         instead of frame_read_register.
2725         (i387_print_float_info): Use get_frame_register and
2726         get_frame_register_unsigned instead of frame_register_read.
2727
2728         * i386fbsd-nat.c: Include "i386-tdep.h".
2729         (child_resume): Make `eflags' an ULONGEST.  Use
2730         regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
2731         instead of register_read and register_write.
2732
2733         * i386bsd-nat.c (fetch_inferior_registers,
2734         store_inferior_registers): Don't use && at the end of a line.
2735         (_initialize_i386bsd_nat): Fix typo.
2736
2737         * frame.c (_initialize_frame): Add missing backslash.
2738
2739         From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2740         * sol-thread.c (sol_thread_store_registers): Use regcache_collect
2741         and supply_register instead of manipulating the register buffer
2742         directly.
2743
2744         From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2745         * config/i386/nm-i386sol2.h
2746         (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
2747
2748         Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
2749         * i386-tdep.c (i386_analyze_frame_setup): Recognize more
2750         instructions that GCC likes to mingle into the prologue.  Fixes
2751         gdb/1253 and gdb/1255.
2752
2753 2003-08-09  Andrew Cagney  <cagney@redhat.com>
2754
2755         Fix GDB PR cli/926.
2756         * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
2757         * command.h (add_setshow_uinteger_cmd): Declare.
2758         * frame.c (set_backtrace_cmd): New function.
2759         (show_backtrace_cmd): New function.
2760         * frame.c (_initialize_frame): Replace "set/show
2761         backtrace-below-main" with "set/show backtrace past-main".  Add
2762         command "set/show backtrace limit".
2763         (backtrace_past_main): Rename "backtrace_below_main".
2764         (backtrace_limit): New variable.
2765         (get_prev_frame): Update.  Check the backtrace_limit.
2766
2767 2003-08-09  Andrew Cagney  <cagney@redhat.com>
2768
2769         * defs.h (xstrprintf): Declare.
2770         * utils.c (xstrprintf): New function.
2771         * breakpoint.c (insert_breakpoints): Replace sprintf and
2772         non-literal format strings, with xstrprintf and cleanups.
2773         (delete_breakpoint,breakpoint_re_set): Ditto.
2774         (commands_command, insert_breakpoints): Ditto.
2775         (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
2776         (break_at_finish_command_1): Ditto.
2777
2778 2003-08-09  Andrew Cagney  <cagney@redhat.com>
2779
2780         * MAINTAINERS (language support): List Adam Fedor as Objective C
2781         maintainer.
2782
2783 2003-08-08  J. Brobecker  <brobecker@gnat.com>
2784
2785         * NEWS (Multi-arched targets): Document that all hppa-hpux targets
2786         are now multiarched.
2787
2788 2003-08-08  J. Brobecker  <brobecker@gnat.com>
2789
2790         * config/pa/tm-hppa64.h: Remove lots of macros that are no
2791         longer necessary now that hppa64 is partially multiarch'ed.
2792
2793 2003-08-08  Andrew Cagney  <cagney@redhat.com>
2794
2795         * interps.c (interp_set): Check for a NULL "old_interp".
2796
2797 2003-08-08  H.J. Lu  <hongjiu.lu@intel.com>
2798
2799         * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
2800         (install-only): Support DESTDIR.
2801         (uninstall): Likewise.
2802         (install-gdbtk): Likewise.
2803
2804 2003-08-08  Elena Zannoni  <ezannoni@redhat.com>
2805
2806         * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
2807         contains something meaningful at all times.
2808
2809 Fri Aug  8 00:28:46 UTC 2003  Brendan Conoboy  <blc@redhat.com>
2810
2811         * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
2812
2813 Fri Aug  8 00:28:38 UTC 2003  Brendan Conoboy  <blc@redhat.com>
2814
2815         * MAINTAINERS (write after approval): Added self.
2816
2817 2003-08-07  Andrew Cagney  <cagney@redhat.com>
2818
2819         * inferior.h (AT_SYMBOL): Define.
2820         * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
2821         * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
2822         * mips-tdep.c (mips_call_dummy_address): Delete function.
2823         (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
2824         set call_dummy_address.
2825
2826 2003-08-07  Andrew Cagney  <cagney@redhat.com>
2827
2828         * language.c (op_error): Delete function.
2829         (binop_type_check): Delete function.
2830         * language.h (type_op_error, range_op_error): Delete macros.
2831         (op_error): Delete declaration.
2832
2833 2003-08-07  Andrew Cagney  <cagney@redhat.com>
2834
2835         * interps.h (INTERP_MI2, INTERP_MI3): Define.
2836
2837 2003-08-07  Michal Ludvig  <mludvig@suse.cz>
2838
2839         * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
2840         (x86_64_push_arguments): Skip the red zone.
2841
2842 2003-08-05  Andrew Cagney  <cagney@redhat.com>
2843
2844         * reggroups.c (reggroup_next): Check for the final entry.
2845
2846 2003-08-04  Andrew Cagney  <cagney@redhat.com>
2847
2848         * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
2849         * cli/cli-script.c (define_command): Call query directly, instead
2850         of passing it a buffer.
2851         * ocd.c (ocd_error): Pass error a constant format string.
2852         * remote-mips.c (mips_error): Use fputs_filtered.
2853
2854         * solib-svr4.c (_initialize_svr4_solib): Update
2855         register_gdbarch_data call.
2856         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
2857
2858         * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
2859         (register_gdbarch_data): Delete "free" parameter.  Update
2860         comments.
2861         * gdbarch.h, gdbarch.c: Re-generate.
2862         * reggroups.c (_initialize_reggroup): Update.
2863         * gnu-v3-abi.c (init_gnuv3_ops): Update.
2864         * frame-base.c (_initialize_frame_base): Update.
2865         * frame-unwind.c (_initialize_frame_unwind): Update.
2866         * user-regs.c (_initialize_user_regs): Update.
2867         * remote.c (_initialize_remote): Update.
2868         * regcache.c (_initialize_regcache): Update.
2869
2870         * regcache.c (xfree_regcache_descr): Delete function.
2871         (_initialize_regcache): Update call to register_gdbarch_data.
2872         (init_regcache_descr, init_legacy_regcache_descr): Use
2873         GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
2874
2875         * remote.c (free_remote_state): Delete function.
2876         (_initialize_remote): Update register_gdbarch_data.
2877         (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
2878         GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
2879
2880 2003-08-04  Andrew Cagney  <cagney@redhat.com>
2881
2882         * reggroups.c (struct reggroup_el): Define.
2883         (struct reggroups): Delete field "nr_group".  Replace array
2884         "group" with a "first" to "last" linked list.
2885         (reggroups_init): Update.  Allocate using gdbarch's obstack.
2886         (reggroups_free): Delete function.
2887         (add_group): Update.  Add "el" parameter.
2888         (reggroup_add): Pass gdbarch obstack allocated space to add_group.
2889         (default_groups): Update.
2890         (reggroup_next): Replace reggroups.
2891         (reggroups_dump): Update.
2892         (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
2893         * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
2894         * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
2895
2896 2003-08-04  Daniel Jacobowitz  <drow@mvista.com>
2897
2898         * Makefile.in (tui-interp.o): Update dependencies.
2899
2900 2003-08-04  David Carlton  <carlton@kealia.com>
2901
2902         * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
2903         to internal_error call.
2904         * source.c (forward_search_command): Add "%s" format argument.
2905         (reverse_search_command): Ditto.
2906         * top.c (quit_confirm): Ditto.
2907         * cli/cli-setshow.c (do_setshow_command): Ditto.
2908         * cp-valprint.c (cp_print_class_method): Replace
2909         {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
2910         (cp_print_class_member): Ditto.
2911         * event-top.c (command_line_handler): Ditto.
2912         * linux-proc.c (linux_info_proc_cmd): Ditto.
2913         * p-typeprint.c (pascal_type_print_base): Ditto.
2914         * p-valprint.c (pascal_object_print_class_method): Ditto.
2915         (pascal_object_print_class_member): Ditto.
2916         * printcmd.c (print_scalar_formatted,printf_command): Ditto.
2917         * remote.c (remote_cisco_section_offsets): Ditto.
2918         * top.c (command_line_input): Ditto.
2919         * utils.c (vwarning,error_stream,quit): Ditto.
2920         * valprint.c (print_floating,print_binary_chars)
2921         (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
2922
2923 2003-08-04  Andrew Cagney  <cagney@redhat.com>
2924
2925         * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2926
2927 2003-08-02  Andrew Cagney  <cagney@redhat.com>
2928
2929         * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2930         gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2931         amd64fbsd-nat.c.
2932
2933 2003-08-02  Andrew Cagney  <cagney@redhat.com>
2934
2935         * Makefile.in: Update all dependencies and definitions.
2936
2937 2003-08-02  Adam Fedor  <fedor@gnu.org>
2938
2939         * linespec.c (is_objc_method_format): New function
2940         (decode_line_1, locate_first_half): Use it.
2941         Fixes PR objc/1298
2942
2943 2003-08-01  Andrew Cagney  <cagney@redhat.com>
2944
2945         * NEWS: Mention that m32r is multi-arch.
2946         From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2947         * configure.tgt: Recognize m32r-*-*.
2948         * config/m32r/tm-m32r.h: Delete file.
2949         * config/m32r/m32r.mt: New file.
2950         * m32r-rom.c (m32r_upload_command): Use hostent only when
2951         gethostname succeeds, in order to avoid a compilation
2952         warning.
2953         * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2954         compiler warning.
2955
2956 2003-08-01  Michael Snyder  <msnyder@redhat.com>
2957
2958         * sh-tdep.c (sh_frame_align): New gdbarch method.
2959         (sh_gdbarch_init): Set up frame_align method.
2960
2961 2003-07-31  Michael Snyder  <msnyder@redhat.com>
2962
2963         * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2964         which is already covered by the new frames infrastructure.
2965
2966 2003-07-31  Andrew Cagney  <cagney@redhat.com>
2967
2968         * user-regs.c (struct user_reg): Add "next" link.
2969         (struct user_regs): Replace "user" with "first" and "last" links.
2970         (append_user_reg): Add pre-allocated "reg" parameter.
2971         (builtin_user_regs): Provide initial value for "last".
2972         (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2973         (user_regs_init): Allocate memory from the gdbarch obstack.
2974         (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2975         (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2976         linked list.
2977         (usernum_to_user_reg): New function.
2978         (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2979         (value_of_user_reg): Use usernum_to_user_reg.
2980         (user_regs_free): Delete function.
2981         (_initialize_user_regs): Update register_gdbarch_data call.
2982
2983 2003-07-31  Daniel Jacobowitz  <drow@mvista.com>
2984
2985         * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2986
2987 2003-07-30  Michael Snyder  <msnyder@redhat.com>
2988
2989         * value.h (value_being_returned): Add a struct_addr argument.
2990         * infcall.c (call_function_by_hand): Pass struct_addr to
2991         value_being_returned.
2992         * infcmd.c (print_return_value): Pass zero as struct_addr.
2993         * values.c (value_being_returned): If struct_addr is passed,
2994         use it instead of trying to recover it from the inferior.
2995
2996 2003-07-30  Kevin Buettner  <kevinb@redhat.com>
2997
2998         * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2999         the prologue analyzer won't need to attempt to extract the pc
3000         value from the woefully incomplete dummy frame.
3001         (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
3002         possible.  Disable code which modifies the frame.
3003
3004 2003-07-28  Andrew Cagney  <cagney@redhat.com>
3005
3006         * annotate.c (annotate_breakpoints_headers): Restrict annotation
3007         to level 2.
3008         (annotate_breakpoints_table, annotate_record): Ditto.
3009         (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
3010         (annotate_field_name_end, annotate_field_value): Ditto.
3011         (annotate_field_end, annotate_frame_source_begin): Ditto.
3012         (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
3013         (annotate_frame_source_line, annotate_frame_source_end): Ditto.
3014         (annotate_frame_begin, annotate_frame_function_name): Ditto.
3015         (annotate_frame_address_end, annotate_frame_address): Ditto.
3016         (annotate_frame_args, annotate_frame_end): Ditto.
3017         (annotate_frame_where, annotate_arg_begin): Ditto.
3018         (annotate_arg_name_end, annotate_arg_value): Ditto.
3019         (annotate_arg_end, annotate_signal_handler_caller): Ditto.
3020         (annotate_function_call, annotate_signal_name): Ditto.
3021         (annotate_signal_string, annotate_signal_name_end): Ditto.
3022         (annotate_signal_string_end, annotate_value_history_begin): Ditto.
3023         (annotate_value_begin, annotate_value_history_value): Ditto.
3024         (annotate_value_history_end, annotate_value_end): Ditto.
3025         (annotate_display_begin, annotate_display_number_end): Ditto.
3026         (annotate_display_format, annotate_display_expression): Ditto.
3027         (annotate_display_expression_end, annotate_display_value): Ditto.
3028         (annotate_display_end, annotate_array_section_begin): Ditto.
3029         (annotate_elt_rep, annotate_elt_rep_end): Ditto.
3030         (annotate_elt, annotate_array_section_end): Ditto.
3031
3032 2003-07-28  Andrew Cagney  <cagney@redhat.com>
3033
3034         * regcache.c (struct regcache_descr): Update comments on
3035         nr_raw_registers.
3036         (init_legacy_regcache_descr): Don't set nr_raw_registers or
3037         sizeof_raw_register_valid_p.
3038         (init_regcache_descr): Set nr_raw_registers and
3039         sizeof_raw_register_valid_p before calling
3040         init_legacy_regcache_descr.
3041
3042 2003-07-28  Andrew Cagney  <cagney@redhat.com>
3043
3044         * mips-tdep.c (print_gp_register_row): Print the GPR's register
3045         MOD NUM_REGS.
3046
3047 2003-07-28  Daniel Jacobowitz  <drow@mvista.com>
3048
3049         * thread.c (info_threads_command): Use get_selected_frame ().
3050         Check that there is at least one non-sentinel frame.
3051
3052 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
3053
3054         * m68hc11-tdep.c (struct frame_extra_info): Remove.
3055         (m68hc11_pop_frame): Remove.
3056         (m68hc11_frame_saved_pc): Remove.
3057         (m68hc11_frame_chain): Remove.
3058         (m68hc11_frame_init_saved_regs): Remove.
3059         (m68hc11_init_extra_frame_info): Remove.
3060         (m68hc11_store_struct_return): Remove.
3061         (m68hc11_saved_pc_after_call): Remove.
3062
3063 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
3064
3065         * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
3066         frame unwind information.
3067         (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
3068         and adapted for frame unwinding.
3069         (m68hc11_skip_prologue): Update to scan prologue in temporary object.
3070         (m68hc11_unwind_pc): New function.
3071         (m68hc11_frame_unwind_cache): New function to analyze frames.
3072         (m68hc11_frame_this_id): New function to create new frame struct.
3073         (m68hc11_frame_prev_register): New function to unwind a register from
3074         the frame.
3075         (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
3076         (m68hc11_frame_p): New function for the above.
3077         (m68hc11_frame_base_address): New function to return fp of frame.
3078         (m68hc11_frame_args_address): Update for frame.
3079         (m68hc11_frame_base): Default 68hc11/68hc12 frame.
3080         (m68hc11_unwind_sp): New function.
3081         (m68hc11_unwind_dummy_id): New function.
3082         (m68hc11_gdbarch_init): Install the above frames; remove deprecated
3083         calls.
3084
3085 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
3086
3087         * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
3088         (m68hc11_guess_from_prologue): Advance the pc and frame size only
3089         when we are beyond the current pc.
3090
3091 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
3092
3093         * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
3094         from m68hc11_push_arguments.
3095         (m68hc11_push_arguments): Remove.
3096         (m68hc11_push_return_address): Remove.
3097         (m68hc11_gdbarch_init): Install the above; remove above deprecated
3098         handlers; remove deprecated_extra_stack_alignment_needed.
3099
3100 2003-07-27  Andrew Cagney  <cagney@redhat.com>
3101
3102         * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
3103         * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
3104         REAL_PC and not the pointer.
3105         * hppa-hpux-tdep.c: Include frame.h
3106
3107 2003-07-27  Andrew Cagney  <cagney@redhat.com>
3108
3109         * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
3110         GDB_MULTI_ACH_PARTIAL.
3111
3112 2003-07-27  Andrew Cagney  <cagney@redhat.com>
3113
3114         Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
3115         * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
3116         operator at start and not end of line.
3117         (decode_prologue): Ditto.
3118         (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
3119         frame_unwind_register_unsigned instead of
3120         frame_unwind_unsigned_register.
3121         (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
3122         read_register.
3123         (m32r_push_dummy_call): Use register_size instead of
3124         REGISTER_RAW_SIZE.
3125         (m32r_frame_sniffer): Replace m32r_frame_p.
3126         (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
3127         * m32r-rom.c (report_transfer_performance): Delete extern
3128         declaration.
3129         (m32r_load, m32r_upload_command): Use print_transfer_performance
3130         instead of report_transfer_performance.
3131         (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
3132         / add_show_from_set.
3133
3134 2003-07-26  Andrew Cagney  <cagney@redhat.com>
3135
3136         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
3137         store_return_value and extract_struct_value_address.
3138
3139 2003-07-26  Daniel Jacobowitz  <drow@mvista.com>
3140
3141         PR c++/1267
3142         * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
3143         NULL, default to the section containing PC.
3144
3145 2003-07-24  Stephane Carrez  <stcarrez@nerim.fr>
3146
3147         * NEWS: Mention "regs" deprecated for m68hc11 too.
3148
3149         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
3150         (m68hc11_print_register): New function to print out one register.
3151         (m68hc11_print_registers_info): New function to print registers.
3152         (show_regs): Deprecate and use the above.
3153         (m68hc11_gdbarch_init): Install the print_registers_info.
3154
3155 2003-07-24  Jeff Johnston  <jjohnstn@redhat.com>
3156
3157         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
3158         that we have a SIGTRAP before returning non-zero.
3159
3160 2003-07-23  Michal Ludvig  <mludvig@suse.cz>
3161             Elena Zannoni  <ezannoni@redhat.com>
3162
3163         * linespec.c (decode_line_2): Avoid crash if
3164         find_function_start_sal() returns empty record.
3165
3166 2003-07-23  Andreas Schwab  <schwab@suse.de>
3167
3168         * ia64-tdep.c (ia64_print_insn): New function.
3169         (ia64_gdbarch_init): Set print_insn to it.
3170         (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
3171         deprecated_tm_print_insn_info.
3172
3173 2003-07-22  Michael Snyder  <msnyder@redhat.com>
3174
3175         * h8300-tdep.c (h8300_extract_return_value): Teach it how to
3176         handle 8-bit returns (long long).
3177         (h8300h_extract_return_value): Ditto.
3178         (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
3179
3180 2003-07-22  Andrew Cagney  <cagney@redhat.com>
3181
3182         * gdbarch.c Include "gdb_obstack.h".
3183         (struct gdbarch): Add an "obstack".
3184         (alloc_gdbarch_data): Allocate the gdbarch data using
3185         GDBARCH_OBSTACK_CALLOC.
3186         (free_gdbarch_data): Delete function.
3187         (gdbarch_obstack_zalloc): New function.
3188         (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
3189         Assert that the architecture is not initialized.
3190         (gdbarch_alloc): Allocate an obstack, allocate the architecture
3191         vector from the obstack.
3192         (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
3193         architecture obstack.
3194         (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
3195         (set_gdbarch_data): Assert that the data is not initialized.
3196         (struct gdbarch_data): Delete member "free".
3197         (register_gdbarch_data): Do not initialize "free".
3198         * gdbarch.h, gdbarch.c: Re-generate.
3199
3200 2003-07-22  Andrew Cagney  <cagney@redhat.com>
3201
3202         * configure.in (build_warnings): Add -Wformat-nonliteral.
3203         * configure: Re-generate.
3204
3205 2003-07-22  Elena Zannoni  <ezannoni@redhat.com>
3206
3207         * dwarf2loc.c (locexpr_describe_location): Fix typos.
3208
3209 2003-07-22  Elena Zannoni  <ezannoni@redhat.com>
3210
3211         * findvar.c (read_var_value): Remove case for thread local storage
3212         variables.  It is now entirely handled by the dwarf2 location
3213         expression code.
3214         * printcmd.c (address_info): Ditto.
3215         * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
3216         enumeration value.
3217         (struct symbol): Remove objfile field, which was used by
3218         LOC_THREAD_LOCAL_STATIC only.
3219         * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
3220         * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
3221         usage of objfile pointer.
3222         * dwarf2loc.c (locexpr_describe_location): Add case to handle
3223         thread local variables.
3224         Add include of objfiles.h.
3225         * dwarf2expr.c (execute_stack_op): Add comments about thread local
3226         storage variables.
3227         * Makefile.in (dwarf2loc.o): Update dependencies.
3228
3229 2003-07-22  Andrew Cagney  <cagney@redhat.com>
3230
3231         * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
3232         get_frame_base.
3233         (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
3234         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
3235         (struct value): Add opaque declaration.
3236         (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
3237
3238 2003-07-21  Andrew Cagney  <cagney@redhat.com>
3239
3240         From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3241         * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
3242
3243 2003-07-20  Stephane Carrez  <stcarrez@nerim.fr>
3244
3245         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
3246         regcache_cooked_read_unsigned instead of read_register.
3247         (m68hc11_saved_pc_after_call): Likewise.
3248         (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
3249         instead of write_register.
3250         (m68hc11_register_type): New function.
3251         (m68hc11_register_virtual_type): Remove.
3252         (m68hc11_store_return_value): Convert to use the regcache.
3253         (m68hc11_extract_struct_value_address): Likewise.
3254         (m68hc11_gdbarch_init): Remove deprecated ops for register to use
3255         m68hc11_register_type; undeprecate store_return_value and
3256         extract_struct_value_address.
3257
3258 2003-07-20  Stephane Carrez  <stcarrez@nerim.fr>
3259
3260         * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
3261         and translate to use regcache.
3262         (m68hc11_gdbarch_init): Undeprecate extract_return_value.
3263
3264 2003-07-18  Andrew Cagney  <cagney@redhat.com>
3265
3266         * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
3267         * gdbarch.h, gdbarch.c: Re-generate.
3268         * i386-tdep.c (i386_gdbarch_init): Do not set
3269         DWARF2_BUILD_FRAME_INFO.
3270         * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
3271         unconditionally.
3272         * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
3273         DWARF2_BUILD_FRAME_INFO.
3274
3275 2003-07-18  Andrew Cagney  <cagney@redhat.com>
3276
3277         From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3278         * disasm.c (gdb_disassemble_info): Initilize di.arch.
3279
3280 2003-07-18  Andrew Cagney  <cagney@redhat.com>
3281
3282         * dwarf2-frame.c (dwarf2_frame_sniffer): Use
3283         frame_unwind_address_in_block, instead of frame_pc_unwind.
3284         (dwarf2_frame_cache): Ditto.
3285
3286 2003-07-18  Andrew Cagney  <cagney@redhat.com>
3287
3288         * user-regs.h (struct gdbarch): Declare opaque.
3289         * ui-out.h (struct ui_file): Declare opaque.
3290         * dwarf2-frame.h (struct frame_info): Declare opaque.
3291
3292 2003-07-18  Kris Warkentin  <kewarken@qnx.com>
3293
3294         * nto-procfs.c: Clean ARI hits.  Change #include <..> to
3295         #include "...".
3296         (procfs_meminfo): Change strerror to safe_strerror.
3297         (procfs_can_run): Remove K&R badness.
3298
3299 2003-07-17  Michael Snyder  <msnyder@redhat.com>
3300
3301         * remote-sim.c: Comment typo fix.
3302
3303 2003-07-17  Andrew Cagney  <cagney@redhat.com>
3304
3305         * defs.h (GDB_MULTI_ARCH): Delete conditional define.  Handled by
3306         configure.
3307         * sparc-tdep.c (sparc_intreg_size): Make non-static.
3308         * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
3309         GDB_MULTI_ARCH_PARTIAL.
3310
3311 2003-07-17  Elena Zannoni  <ezannoni@redhat.com>
3312
3313         * Makefile.in (x86-64-linux-nat.o): Update dependencies.
3314         * x86-64-linux-nat.c (ps_get_thread_area): New function.  Add
3315         include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
3316
3317 2003-07-16  Theodore A. Roth  <troth@openavr.org>
3318
3319         * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
3320         found.
3321         (avr_frame_unwind_cache): Don't unwind FP for main.
3322         Update a comment.
3323         Save the computed prev_sp.
3324         (avr_saved_regs_unwinder): Remove function.
3325         (avr_frame_prev_register): Use PC unwind logic from
3326         avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
3327
3328 2003-07-16  Andrew Cagney  <cagney@redhat.com>
3329
3330         * frame-base.h (frame_base_p_ftype): Delete definition.
3331         (frame_base_append_predicate): Delete declaration.
3332         * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
3333         (frame_unwind_append_predicate): Delete declaration.
3334         * frame-unwind.c (struct frame_unwind_table): Delete field "p".
3335         (append_predicate): Delete parameter "p".
3336         (frame_unwind_append_predicate): Delete function.
3337         (frame_unwind_append_sniffer): Update call to append_predicate.
3338         (frame_unwind_free): Delete function.
3339         (_initialize_frame_unwind): Pass NULL as "free" to
3340         register_gdbarch_data.
3341         (frame_unwind_init): Append the dummy_frame_sniffer.
3342         (frame_unwind_find_by_frame): Simplify.
3343         * frame-base.c (struct frame_base_table): Delete field "p".
3344         (append_predicate): Delete parameter "p".
3345         (frame_base_append_predicate): Delete function.
3346         (frame_base_append_sniffer): Update call to append_predicate.
3347         (frame_base_free): Delete function.
3348         (frame_base_find_by_frame): Simplify.
3349         (_initialize_frame_base): Pass NULL as "free" to
3350         register_gdbarch_data.
3351         * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
3352         (x86_64_sigtramp_frame_sniffer): Replace
3353         "x86_64_sigtramp_frame_p".
3354         (x86_64_init_abi): Set the frame unwind sniffers.
3355         * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
3356         (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
3357         (m68k_gdbarch_init): Set the frame unwind sniffers.
3358         * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
3359         "i386_sigtramp_frame_p".
3360         (i386_frame_sniffer): Replace "i386_frame_p".
3361         (i386_gdbarch_init): Set the frame unwind sniffers.
3362         * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
3363         (avr_gdbarch_init): Set the frame unwind sniffers.
3364         * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
3365         "alpha_sigtramp_frame_p"
3366         (alpha_heuristic_frame_sniffer): Replace
3367         "alpha_heuristic_frame_p".
3368         (alpha_gdbarch_init): Set the frame unwind sniffers.
3369         (alpha_dwarf2_init_abi): Ditto.
3370         * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
3371         "alpha_debug_frame_p".
3372         (alpha_mdebug_frame_base_sniffer): Replace
3373         "alpha_mdebug_frame_base_p".
3374         (alpha_mdebug_init_abi): Set the frame unwind sniffers.
3375         * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
3376         (d10v_gdbarch_init): Set the frame unwind sniffer.
3377         * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3378         (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3379         * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3380         (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3381         * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
3382         * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
3383
3384 2003-07-16  Michael Snyder  <msnyder@redhat.com>
3385
3386         * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
3387         should go thru sh_dsp_register_sim_regno, else the dsp regs
3388         will not get the right values.
3389
3390 2003-07-16  Corinna Vinschen  <vinschen@redhat.com>
3391
3392         * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
3393         deprecated_store_floating by call to store_typed_floating.
3394         (sh_sh4_register_convert_to_raw): Substitute call to
3395         deprecated_extract_floating by call to extract_typed_floating.
3396
3397 2003-07-16  Corinna Vinschen  <vinschen@redhat.com>
3398
3399         * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
3400
3401 2003-07-16  Corinna Vinschen  <vinschen@redhat.com>
3402
3403         * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
3404         register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
3405         gdbarch_register_type in 32 bit code throughout.  Avoid current_gdbarch
3406         as possible.
3407         (do_pseudo_register): Remove.
3408         (sh_push_dummy_code): New function.
3409         (sh64_store_struct_return): Rename from sh_store_struct_return.
3410         Only called for sh64 now.
3411         (sh_extract_struct_value_address): Regcache'ify.
3412         (sh_push_dummy_call): Rename from sh_push_arguments.  Regcache'ify
3413         and accomodate new tasks.
3414         (sh64_push_return_address): Rename from sh_push_return_address.
3415         Only called for sh64 now.
3416         (sh_default_extract_return_value): Rename from sh_extract_return_value.
3417         Regcache'ify.
3418         (sh3e_sh4_extract_return_value): Regcache'ify.
3419         (sh_default_store_return_value): Ditto.
3420         (sh3e_sh4_store_return_value): Ditto.
3421         (sh_default_register_byte): Remove.
3422         (sh_sh4_register_byte): Remove.
3423         (sh_default_register_raw_size): Remove.
3424         (sh_sh4_register_raw_size): Remove.
3425         (sh_register_virtual_size): Remove.
3426         (sh_sh3e_register_virtual_type): Remove.
3427         (sh_sh3e_register_type): New function.
3428         (sh_sh4_register_virtual_type): Remove.
3429         (sh_sh4_register_type): New function.
3430         (sh_default_register_virtual_type): Remove.
3431         (sh_default_register_type): New function.
3432         (do_fv_register_info): Add parameters to accomodate call from
3433         sh_print_registers_info.
3434         (do_dr_register_info): Ditto.
3435         (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
3436         Add parameters to accomodate call from sh_print_registers_info.
3437         (sh_do_fp_register): Ditto.
3438         (sh64_do_pseudo_register): Call do_dr_register_info,
3439         do_fv_register_info and sh_do_fp_register with default parameters.
3440         (sh_do_register): Add parameters to accomodate call from
3441         sh_print_registers_info.
3442         (sh_print_register): Ditto.
3443         (sh_print_registers_info): Rename from sh_do_registers_info.
3444         Add parameters to be used as gdbarch_print_registers_info
3445         implementation.  Accomodate removed do_pseudo_register function
3446         pointer.
3447         (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
3448         function pointer. Call sh_print_register with default parameters.
3449         (sh64_do_registers_info): Call sh_print_registers_info instead of
3450         sh_do_registers_info.
3451         (sh_gdbarch_init): Rearrange to cleanup and to allow easier
3452         detection of deprecated vs. non-deprecated functionality.
3453         Rename sh_call_dummy_words to sh64_call_dummy_words.  Remove
3454         function pointer assignments by direct function calls.
3455
3456 2003-07-15  Andrew Cagney  <cagney@redhat.com>
3457
3458         * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
3459         (frame_register_unwind, create_new_frame): Ditto.
3460         (legacy_get_prev_frame, get_frame_type): Ditto.
3461         (get_frame_base_address): Use frame_base_find_by_frame.
3462         (get_frame_locals_address): Use frame_base_find_by_frame.
3463         (get_frame_args_address): Use frame_base_find_by_frame.
3464         * frame-base.h (frame_base_sniffer_ftype): Declare.
3465         (frame_base_append_sniffer): Declare.
3466         (frame_base_find_by_frame): Replace frame_base_find_by_pc.
3467         * frame-base.c (append_predicate): Add a "sniffer" parameter.
3468         (frame_base_append_sniffer): New function.
3469         (frame_base_append_predicate): Add a NULL sniffer.
3470         (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
3471         (struct frame_base_table): Add "sniffer".
3472         (frame_base_free): Free the "sniffer" table.
3473         * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
3474         (frame_unwind_append_sniffer): Declare.
3475         (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3476         * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
3477         (struct frame_unwind_table): Add "sniffer", delete "middle".
3478         (append_predicate): Add "sniffer" parameter, append the sniffer.
3479         (frame_unwind_init): Update append_predicate call.
3480         (frame_unwind_append_sniffer): New function.
3481         (frame_unwind_append_predicate): Update append_predicate call.
3482         (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3483
3484 2003-07-15  Andrew Cagney  <cagney@redhat.com>
3485
3486         * frame.c (get_prev_frame): Move disabled inside_entry_func to
3487         before code inhibiting repeated unwind attempts.  Add to
3488         commentary on that test's problems.
3489         * blockframe.c (inside_main_func): Look for "main" in the minimal
3490         symbol table.
3491         * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
3492         identical.
3493
3494 2003-07-15  Andrew Cagney  <cagney@redhat.com>
3495
3496         * complaints.c (struct explanation): Define.
3497         (struct complaints): Change type of "explanation" to "struct
3498         explanation".
3499         (symfile_explanations): Convert to a "struct explanation" table.
3500         (vcomplaint): Update.
3501
3502 2003-07-15  Michal Ludvig  <mludvig@suse.cz>
3503
3504         * x86-64-linux-nat.c (regmap): Removed.
3505         (supply_gregset, fill_gregset): Call
3506         x86_64_linux_(fill,supply)_gregset functions.
3507         * x86-64-linux-tdep.c (USER_*): New defines.
3508         (user_to_gdb_regmap, x86_64_core_fns): New structure.
3509         (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
3510         New functions.
3511         (fetch_core_registers): Ditto.
3512         (_initialize_x86_64_linux_tdep): Call add_core_fns().
3513         * x86-64-linux-tdep.h: New file.
3514         * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
3515         and core-regset.o.
3516         * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
3517
3518 2003-07-13  Mark Kettenis  <kettenis@gnu.org>
3519
3520         * x86-64-tdep.c (x86_64_store_return_value): Use
3521         regcache_cooked_write_part instead of regcache_cooked_write.
3522
3523         * configure.host: Add x86_64-*-freebsd*.
3524         * configure.tgt: Add x86_64-*-freebsd*.
3525         * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
3526         * amd64fbsd-nat.c: New file.
3527         * amd64fbsd-tdep.c: New file.
3528         * config/i386/nm-fbsd64.h: New file.
3529         * config/i386/fbsd64.mh: New file.
3530         * config/i386/fbsd64.mt: New file.
3531
3532 2003-07-11  Mark Kettenis  <kettenis@gnu.org>
3533
3534         * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
3535         `sc_regs_offset' and `sc_fpregs_offset'.
3536         * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
3537         SIGFRAME_FPREGSAVE_OFF): Remove defines.
3538         (alpha_sigtramp_register_address): Rewrite to use new members of
3539         `struct gdbarch_tdep'.
3540         (alpha_gdbarch_init): Initialize new members of struct
3541         gdbarch_tdep'.
3542         * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
3543         ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
3544         (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
3545         (alphafbsd_pc_in_sigtramp): Implement.
3546         (alphafbsd_sigtramp_offset): New function.
3547         (alphafbsd_sigcontext_addr): New function.
3548         (alphafbsd_init_abi): Initialize signal trampoline related members
3549         of `struct gdbarch_tdep'.
3550         (_initialize_alphafbsd_tdep): Add prototype.
3551
3552 2003-07-11  Theodore A. Roth  <troth@openavr.org>
3553
3554         * Makefile.in (install-only): Quote sed expression when generating
3555         transformed_name.
3556
3557 2003-07-11  Richard Henderson  <rth@redhat.com>
3558
3559         * Makefile.in (dwarf2-frame.o): Add complaints_h.
3560         * dwarf2-frame.c: Include complaints.h.
3561         (decode_frame_entry_1): Rename from decode_frame_entry; tidy
3562         variable initialization; return NULL on error.
3563         (decode_frame_entry): New.
3564
3565 2003-07-11  Andrew Cagney  <cagney@redhat.com>
3566
3567         * frame.h (frame_address_in_block): Delete declaration.
3568         * blockframe.c (frame_address_in_block): Delete function.
3569         (get_frame_block): Use get_frame_address_in_block.
3570         (block_innermost_frame): Ditto.
3571         * stack.c (print_frame, backtrace_command_1): Ditto.
3572
3573         * frame.h (get_frame_address_in_block): Declare.
3574         (frame_unwind_address_in_block): Declare.
3575         * frame.c (frame_unwind_address_in_block): New function.
3576         (get_frame_address_in_block): New function.
3577
3578 2003-07-10  Andrew Cagney  <cagney@redhat.com>
3579
3580         * gdbarch.sh: Simplify predicate methods.  Remove need to provide
3581         pre-default.   Note: re-generate has no effect.
3582
3583 2003-07-10  Andrew Cagney  <cagney@redhat.com>
3584
3585         * gdbarch.sh: When a variable, but not a function, compare against
3586         0.  Fix problem in previous patch.
3587         * gdbarch.c: Re-generate.
3588
3589 2003-07-10  Andrew Cagney  <cagney@redhat.com>
3590
3591         * gdbarch.sh: Use gdb_assert instead of internal_error.  Compare
3592         functions against NULL, not 0.
3593         * gdbarch.c: Re-generate.
3594
3595 2003-07-10  Fred Fish  <fnf@ninemoons.com>
3596
3597         * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
3598         null string instead of a null pointer.
3599         * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
3600
3601 2003-07-09  Michael Snyder  <msnyder@redhat.com>
3602
3603         * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
3604
3605 2003-07-09  Mark Kettenis  <kettenis@gnu.org>
3606
3607         * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
3608         X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
3609         X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
3610         X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
3611         * x86-64-tdep.c: ... from here.
3612
3613 2003-07-09  Andreas Schwab  <schwab@suse.de>
3614
3615         * m68k-tdep.h (enum struct_return): Define.
3616         (struct gdbarch_tdep): Add struct_return.
3617         * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
3618         bytes are padded to the right, not to the left.  Pass struct value
3619         address in register %a1, not on stack.
3620         (m68k_use_struct_convention): New function.
3621         (m68k_gdbarch_init): Set use_struct_convention.  Initialize
3622         struct_return in tdep to pcc_struct_return.
3623         * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
3624         reg_struct_return.
3625
3626 2003-07-09  Joel Brobecker  <brobecker@gnat.com>
3627
3628         * somread.c (som_symfile_offsets): Fix compilation error.
3629
3630 2003-07-09  Andrew Cagney  <cagney@redhat.com>
3631
3632         * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
3633         Add comments about the checks.
3634
3635 2003-07-08  Andrew Cagney  <cagney@redhat.com>
3636
3637         * Makefile.in: Make dependency section headers consistent.
3638         (config_h): Move to $BUILD headers section.
3639         (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
3640         (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
3641         (ada-exp.tab.c): Move to YACC/LEX section.
3642         (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
3643         (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
3644
3645 2003-07-08  Kris Warkentin  <kewarken@qnx.com>
3646
3647         * nto-procfs.c: Cleaned up a bunch of ARI hits.
3648         Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
3649         of strerror with safe_strerror, use ISO C function definitions,
3650         and replace instances of sprintf with snprintf.
3651
3652 2003-07-07  Andrew Cagney  <cagney@redhat.com>
3653
3654         * frame.c (get_prev_frame): Enable check for identical frames.
3655         Update comments.  Update error messages.
3656
3657 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
3658
3659         * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
3660
3661 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
3662
3663         * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
3664         sort_symtab_syms, no longer necessary.
3665
3666 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
3667
3668         * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
3669
3670 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
3671
3672         * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
3673         (mips_register_byte): Likewise.
3674
3675 2003-07-07  Daniel Jacobowitz  <drow@mvista.com>
3676
3677         * Makefile.in (sparc_tdep_h): New.
3678         (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
3679         (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
3680         * sparc-linux-nat.c: Include "sparc-tdep.h".
3681         * sparc-nat.c: Likewise.
3682         * sparc-tdep.c: Likewise.
3683         * sparc64nbsd-nat.c: Likewise.
3684         * sparcnbsd-nat.c: Likewise.
3685         * sparcnbsd-tdep.c: Likewise.
3686         * sparc-tdep.h: New file.
3687         * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
3688         and sparc_npc_regnum.
3689
3690 2003-07-07  Daniel Jacobowitz  <drow@mvista.com>
3691
3692         * mips-linux-nat.c (mips_linux_cannot_fetch_register)
3693         (mips_linux_cannot_store_register): List supported instead of
3694         unsupported registers.
3695
3696 2003-07-07  Daniel Jacobowitz  <drow@mvista.com>
3697
3698         * disasm.c (dump_insns): Separate instructions from addresses.
3699
3700 2003-07-07  Andreas Schwab  <schwab@suse.de>
3701
3702         * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3703         dependencies.
3704         * m68k-tdep.c (NUM_FREGS): Delete.
3705         (SIG_PC_FP_OFFSET): Delete.
3706         (TARGET_M68K): Delete.
3707         (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
3708         P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
3709         P_MOVEL_SP, P_MOVEML_SP): Define.
3710         (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
3711         P_TRAP): Delete.
3712         (m68k_register_raw_size): Delete.
3713         (m68k_register_virtual_size): Delete.
3714         (m68k_register_type): Renamed from m68k_register_virtual_type and
3715         add gdbarch argument.
3716         (m68k_store_struct_return): Delete.
3717         (m68k_deprecated_extract_return_value): Delete.
3718         (m68k_deprecated_extract_struct_value_address): Delete.
3719         (m68k_frame_chain): Delete.
3720         (m68k_frame_saved_pc): Delete.
3721         (m68k_fix_call_dummy): Delete.
3722         (m68k_push_dummy_frame): Delete.
3723         (m68k_pop_frame): Delete.
3724         (m68k_extract_return_value): New function.
3725         (m68k_store_return_value): Rewrite using regcache.
3726         (m68k_extract_struct_value_address): Rewrite using regcache.
3727         (m68k_push_dummy_call): New function.
3728         (struct m68k_frame_cache): Define.
3729         (m68k_alloc_frame_cache): New function.
3730         (m68k_analyze_frame_setup): New function.
3731         (m68k_analyze_register_saves): New function.
3732         (m68k_analyze_prologue): New function.
3733         (m68k_skip_prologue): Rewrite using above functions.
3734         (m68k_unwind_pc): New function.
3735         (m68k_frame_cache): New function.
3736         (m68k_frame_this_id): New function.
3737         (m68k_frame_prev_register): New function.
3738         (m68k_frame_unwind): New variable.
3739         (m68k_frame_p): New function.
3740         (m68k_sigtramp_frame_cache): New function.
3741         (m68k_sigtramp_frame_this_id): New function.
3742         (m68k_sigtramp_frame_prev_register): New function.
3743         (m68k_sigtramp_frame_unwind): New variable.
3744         (m68k_sigtramp_frame_p): New function.
3745         (m68k_frame_base_address): New function.
3746         (m68k_frame_base): New function.
3747         (m68k_unwind_dummy_id): New function.
3748         (fill_gregset): Use regcache_collect.
3749         (fill_fpregset): Likewise.
3750         (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
3751         defined.
3752         (m68k_gdbarch_init): Don't define call_dummy_words.  Don't set
3753         deprecated_init_frame_pc, deprecated_store_struct_return,
3754         deprecated_extract_return_value, deprecated_store_return_value,
3755         deprecated_frame_chain, deprecated_frame_saved_pc,
3756         deprecated_frame_init_saved_regs, deprecated_register_raw_size,
3757         deprecated_register_virtual_size,
3758         deprecated_max_register_raw_size,
3759         deprecated_max_register_virtual_size,
3760         deprecated_register_virtual_type, deprecated_register_size,
3761         deprecated_register_byte, deprecated_register_bytes,
3762         deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
3763         call_dummy_location, deprecated_call_dummy_breakpoint_offset,
3764         deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
3765         deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
3766         deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
3767         deprecated_push_dummy_frame, deprecated_pop_frame,
3768         deprecated_dummy_write_sp.  Set deprecated_saved_pc_after_call
3769         only if SYSCALL_TRAP is defined.  Set extract_return_value,
3770         store_return_value, extract_struct_value_address, register_type,
3771         push_dummy_call, unwind_dummy_id, unwind_pc.  Add two frame unwind
3772         predicates.
3773         * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
3774         M68K_MAX_REGISTER_SIZE): Define.
3775         (struct m68k_sigtramp_info): Define.
3776         (struct gdbarch_tdep): Add get_sigtramp_info.
3777         * m68klinux-nat.c (fetch_register): Use register_size instead of
3778         REGISTER_RAW_SIZE.  Don't put assignment in if.
3779         (store_register): Likewise.
3780         (fetch_inferior_registers): Likewise.
3781         (store_inferior_registers): Likewise.
3782         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
3783         (m68k_linux_frame_saved_pc): Delete.
3784         (m68k_linux_sigcontext_reg_offset,
3785         m68k_linux_ucontext_reg_offset): Define.
3786         (m68k_linux_get_sigtramp_info): New function.
3787         (m68k_linux_extract_return_value): Rewrite using regcache.
3788         (m68k_linux_store_return_value): Likewise.
3789         (m68k_linux_extract_struct_value_address): Likewise.
3790         (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
3791         Don't set deprecated_frame_saved_pc,
3792         deprecated_extract_return_value, deprecated_store_return_value,
3793         deprecated_extract_struct_value_address.  Set
3794         extract_return_value, store_return_value,
3795         extract_struct_value_address.
3796
3797 2003-07-07  Andrew Cagney  <cagney@redhat.com>
3798
3799         * expprint.c: Include "user-regs.h" instead of "frame.h".
3800         (print_subexp): Use user_reg_map_regnum_to_name, instead of
3801         frame_map_regnum_to_name.
3802         * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
3803         (frame_map_name_to_regnum): Simplify, call
3804         user_reg_map_name_to_regnum.
3805         (frame_map_regnum_to_name): Simplify, call
3806         user_reg_map_regnum_to_name.
3807         (frame_register_unwind): Update.
3808         * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
3809         (_initialize_frame_reg): Call user_reg_add_builtin.
3810         * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
3811         (value_of_register): Use value_of_user_reg.
3812         * eval.c (evaluate_subexp_standard): Update.
3813         * parse.c (write_dollar_variable): Update.
3814         * d10v-tdep.c (d10v_print_registers_info): Update.
3815         * infcmd.c (registers_info): Update.
3816         * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
3817         (builtin_regs_h): Delete macro.
3818         (user_regs_h): Define.
3819         (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
3820         (builtin-regs.o): Delete target.
3821         (user-regs.o): Specify dependencies.
3822         (expprint.o): Update dependencies.
3823         (findvar.o): Update dependencies.
3824         (frame.o): Update dependencies.
3825         (std-regs.o): Update dependencies.
3826
3827 2003-07-06  Christopher Faylor  <cgf@redhat.com>
3828
3829         * win32-nat.c (solib_symbols_add): Use one variable for all section
3830         address stuff.  Pass variable rather than address of variable to
3831         safe_symbol_file_add.
3832
3833 2003-07-06  Andreas Schwab  <schwab@suse.de>
3834
3835         * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
3836
3837 2003-07-04  Joel Brobecker  <brobecker@gnat.com>
3838
3839         * rs6000-nat.c (vmap_symtab): Fix compilation error.
3840
3841 2003-07-04  Kris Warkentin  <kewarken@qnx.com>
3842
3843         * config/i386/nto.mh: Set XM_FILE to xm-i386.h
3844
3845 2003-07-04  Kris Warkentin  <kewarken@qnx.com>
3846
3847         * nto-procfs.c: New file.  Native procfs support for QNX Neutrino.
3848         * config/i386/nto.mh: New file.
3849         * config/i386/nm-nto.h: New file.
3850         * configure.host: Add i[3456]86-*-nto*.
3851
3852 2003-07-03  Joel Brobecker  <brobecker@gnat.com>
3853
3854         * remote-vx.c (vx_add_symbols): Fix compilation error.
3855
3856 2003-07-03  Andrew Cagney  <cagney@redhat.com>
3857
3858         * gdbarch.sh (REGISTER_NAME): Do not supply a default.
3859         * gdbarch.h, gdbarch.c: Re-generate.
3860         * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
3861         (legacy_register_name): Declare.
3862         * config/sparc/tm-sp64.h (legacy_register_name): Declare.
3863         (REGISTER_NAME): Define.
3864         * sparc-tdep.c (legacy_register_name): New function.
3865         * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
3866         (REGISTER_NAME): Define.
3867         (hppa64_register_name): Declare.
3868         * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
3869         * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
3870         (hppa64_register_name): New function.
3871         (hppa_register_name): New function.
3872         * arch-utils.c (legacy_register_name): Delete.
3873         * arch-utils.h (legacy_register_name): Delete.
3874
3875 2003-07-03  Daniel Jacobowitz  <drow@mvista.com>
3876
3877         * cli/cli-interp.c (cli_interpreter_resume): Update the
3878         cli_uiout's stream to gdb_stdout.
3879
3880 2003-07-03  Andrew Cagney  <cagney@redhat.com>
3881
3882         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
3883         predicate.
3884         * gdbarch.h, gdbarch.c: Re-generate.
3885         * regcache.c (init_regcache_descr): Use legacy code when either
3886         REGISTER_BYTE or REGISTER_RAW_SIZE is set.
3887
3888 2003-07-02  Daniel Jacobowitz  <drow@mvista.com>
3889
3890         * NEWS: Move "set logging" entry into GDB 6.0 section.
3891
3892 2003-07-02  Jim Blandy  <jimb@redhat.com>
3893
3894         * s390-tdep.c (struct frame_extra_info): new member:
3895         'stack_bought_valid'.
3896         (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
3897         initialize fextra_info->stack_bought.
3898         (s390_frameless_function_invocation): Don't trust the value of
3899         fextra_info_ptr->stack_bought unless
3900         fextra_info->stack_bought_valid is set.
3901
3902         New S390 prologue analyzer.
3903         * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
3904         (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
3905         pv_constant_last, pv_add, pv_add_constant, pv_subtract,
3906         pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
3907         compute_x_addr, s390_on_stack, s390_store,
3908         s390_get_signal_frame_info): New functions.
3909         (S390_NUM_SPILL_SLOTS): New macro.
3910         (s390_get_frame_info): Rewritten.
3911         (is_arg_reg): Deleted.
3912
3913         Break out the decoding of S/390 instructions into separate
3914         functions, to make it more legible, and easier to check
3915         against the spec.
3916         * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
3917         is_rx, is_rxe): New functions.
3918         (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
3919         op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
3920         op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
3921         op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
3922         enums for opcode values.  (Is this an improvement?)
3923
3924 2003-07-02  Andrew Cagney  <cagney@redhat.com>
3925
3926         * i386-tdep.c: Revert change committed as part of trad-frame code
3927         below.
3928
3929 2003-07-02  Daniel Jacobowitz  <drow@mvista.com>
3930
3931         * breakpoint.c (insert_catchpoint): Make static.
3932
3933 2003-07-02  Andreas Schwab  <schwab@suse.de>
3934
3935         * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3936         former ia64_push_arguments and ia64_push_return_address, and use
3937         regcache functions instead of read/write_register.
3938         (ia64_gdbarch_init): Set push_dummy_call instead of
3939         deprecated_push_arguments and deprecated_push_return_address.
3940
3941 2003-07-01  Andreas Jaeger  <aj@suse.de>
3942
3943         * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3944         before the call.
3945         Set %rax only to number of SSE registers used.
3946
3947 2003-07-01  Andrew Cagney  <cagney@redhat.com>
3948
3949         * trad-frame.h: Update comments, a -1 .addr is reserved.
3950         (trad_frame_value_p, trad_frame_addr_p): Declare.
3951         (trad_frame_reg_p): Declare.
3952         (trad_frame_set_value): Rename trad_frame_register_value.
3953         (trad_frame_set_unknown): Declare.
3954         * trad-frame.c (trad_frame_realreg_p): New function.
3955         (trad_frame_addr_p, trad_frame_value_p): New function.
3956         (trad_frame_set_unknown): New function.
3957         (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3958         (trad_frame_prev_register): Use trad_frame_realreg_p,
3959         trad_frame_addr_p and trad_frame_value_p.
3960         (trad_frame_set_value): Rename trad_frame_register_value.
3961         * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3962         and trad_frame_set_value.
3963
3964 2003-06-30  Jim Blandy  <jimb@redhat.com>
3965
3966         Patch from IBM (authors unspecified, probably Ulrich Weigand and
3967         Gerhard Tonn) for argument passing on the S/390 and S/390x:
3968         * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3969         for 16 registers, and then 32 more bytes.
3970         (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3971         New macros.
3972         (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3973         Move up in the file, since it's now used by is_simple_arg.
3974         (is_simple_arg): Don't assume registers are four bytes long.
3975         Exclude all double arguments.  Extended floats are not simple
3976         args.
3977         (is_power_of_two): New function.
3978         (pass_by_copy_ref): Call is_power_of_two, and check that the
3979         length fits in a register, rather than listing all the acceptable
3980         sizes.  Extended floats are not passed by reference.
3981         (s390_push_arguments): Don't assume registers are four bytes long.
3982         Reserve an argument register to point to the buffer for structures
3983         returned by value.  Use S390_NUM_FP_PARAMETER_REGISTERS and
3984         S390_STACK_FRAME_OVERHEAD.
3985
3986 2003-06-30  Andreas Schwab  <schwab@suse.de>
3987
3988         * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3989         format error message.
3990
3991 2003-06-30  Joel Brobecker  <brobecker@gnat.com>
3992
3993         * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3994
3995 2003-06-30  David Carlton  <carlton@kealia.com>
3996
3997         Band-aid for PR c++/1245.
3998         * Makefile.in (cp-support.o): Depend on complaints_h.
3999         * cp-support.c: Include complaints.h.  Add declaration for
4000         find_last_component.
4001         (cp_find_first_component): Separate code into
4002         cp_find_first_component_aux.
4003         (cp_find_first_component_aux): Call demangled_name_complaint.
4004         (demangled_name_complaint): New.
4005
4006 2003-06-30  Andrew Cagney  <cagney@redhat.com>
4007
4008         * remote.c (remote_write_bytes): Explicitly compute and then use
4009         the payload size.  Update comments to reflect.  Fixes problem of
4010         GDB not sending small packets as found by Fred Fish.
4011
4012 2003-06-30  Andrew Cagney  <cagney@redhat.com>
4013
4014         * remote.c (remote_async_wait): Fix -Wformat problem.
4015
4016 2003-06-29  Andrew Cagney  <cagney@redhat.com>
4017
4018         * remote.c (remote_wait): Call error, and not warning, when the
4019         packet is corrupt.
4020         (remote_async_wait): Ditto.
4021
4022 2003-06-29  Daniel Jacobowitz  <drow@mvista.com>
4023
4024         * sparc-tdep.c (sparc_y_regnum): Make external again.
4025
4026 2003-06-29  Daniel Jacobowitz  <drow@mvista.com>
4027
4028         * cli/cli-logging.c (pop_output_files): Add void to function
4029         definition.
4030
4031 2003-06-29  Andrew Cagney  <cagney@redhat.com>
4032
4033         * frame.c (frame_register_unwind): Use unsigned char when dumping
4034         the buffer contents.
4035
4036 2003-06-28  Daniel Jacobowitz  <drow@mvista.com>
4037
4038         * cli/cli-logging.c: New file.
4039         * cli-out.c (struct ui_out_data): Add original_stream.
4040         (cli_redirect): New function.
4041         (cli_ui_out_impl): Add cli_redirect.
4042         (cli_out_new): Initialize original_stream.
4043         * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
4044         (uo_redirect, ui_out_redirect): New.
4045         * ui-out.h (struct ui_out_impl): Add redirect member.
4046         (redirect_ftype): New.
4047         (ui_out_redirect): Add prototype.
4048         * Makefile.in: Add rules for cli-logging.c.
4049         * NEWS: Mention "set logging".
4050
4051 2003-06-27  Elena Zannoni  <ezannoni@redhat.com>
4052
4053         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
4054
4055 2003-06-27  Andrew Cagney  <cagney@redhat.com>
4056
4057         * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
4058         (m68hc11_gdbarch_init): Do not set call_dummy_address.
4059         * avr-tdep.c (avr_call_dummy_address): Delete function.
4060         (avr_gdbarch_init): Do not set call_dummy_address.
4061
4062 2003-06-27  Elena Zannoni  <ezannoni@redhat.com>
4063
4064         * symfile.c (syms_from_objfile): Move variables to inner block.
4065         Move the checks for the non-mainline case a bit earlier to avoid
4066         doing some useless computations.
4067
4068 2003-06-27  Elena Zannoni  <ezannoni@redhat.com>
4069
4070         * dwarfread.c (decode_modified_type): Gag new compiler warning.
4071
4072 2003-06-26  Elena Zannoni  <ezannoni@redhat.com>
4073
4074         * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
4075         sections.
4076
4077 2003-06-26  Michael Chastain  <mec@shout.net>
4078
4079         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
4080         gdb/testsuite/gdb.c++/pr-1210.exp.
4081
4082 2003-06-26  Andrew Cagney  <cagney@redhat.com>
4083
4084         * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
4085         altivec_expression.h and altivec_registers.h.
4086
4087 2003-06-26  Andrew Cagney  <cagney@redhat.com>
4088
4089         * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
4090         info->mach when MIPS16.  Patch suggested by Fred Fish.
4091
4092 2003-06-26  Andrew Cagney  <cagney@redhat.com>
4093
4094         * utils.c (internal_vproblem): Print the problem to a reason
4095         buffer and then pass to query.  Make the msg variable more local.
4096
4097 2003-06-26  Andrew Cagney  <cagney@redhat.com>
4098
4099         * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate.  Deprecate.
4100         (FRAME_LOCALS_ADDRESS): Add predicate.  Deprecate.
4101         * gdbarch.h, gdbarch.c: Re-generate.
4102         * frame-base.c (default_frame_args_address): Update.  Use
4103         default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
4104         not available.
4105         (default_frame_locals_address): Ditto for
4106         DEPRECATED_FRAME_LOCALS_ADDRESS.
4107         * vax-tdep.c (vax_sigtramp_saved_pc): Update.
4108         (vax_frame_num_args): Update.
4109         (vax_gdbarch_init): Update.
4110         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4111         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4112         * mcore-tdep.c (mcore_gdbarch_init): Update.
4113         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4114         * ia64-tdep.c (ia64_gdbarch_init): Update.
4115         * symtab.h (address_class): Update comments.
4116         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
4117         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4118         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4119         * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4120         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4121         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4122         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4123         * alpha-mdebug-tdep.c: Update.
4124         * ada-lang.c (add_symbols_from_enclosing_procs): Update.
4125
4126 2003-06-26  Andreas Jaeger  <aj@suse.de>
4127
4128         * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
4129         of SSE registers so that varargs functions work.  Rework handling
4130         of passing arguments on the stack.
4131         (x86_64_store_return_value): Return double and float values in SSE
4132         register.
4133
4134 2003-06-24  Michael Chastain  <mec@shout.net>
4135
4136         * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
4137         the "constructor breakpoints ignored" bug.
4138
4139 2003-06-25  David Carlton  <carlton@kealia.com>
4140
4141         * MAINTAINERS: Update e-mail address.
4142
4143 2003-06-24  Jim Blandy  <jimb@redhat.com>
4144
4145         * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
4146
4147         * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
4148         function.
4149         (ppc_linux_init_abi): Register it as the
4150         CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
4151
4152         * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
4153         (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
4154         method.
4155
4156         * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
4157         (ppc64_standard_linkage_target): Use it.
4158
4159 2003-06-23  Andrew Cagney  <cagney@redhat.com>
4160
4161         * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
4162         for 0 "int0" and 4 "int32" sized registers.
4163         * gdbtypes.c (builtin_type_int0): Define.
4164         (build_gdbtypes): Initialize builtin_type_int0.
4165         * gdbtypes.h (builtin_type_int0): Declare.
4166
4167 2003-06-23  Stephane Carrez  <stcarrez@nerim.fr>
4168
4169         * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
4170         as characters are unsigned.
4171
4172 2003-06-22  Daniel Jacobowitz  <drow@mvista.com>
4173
4174         PR gdb/1179
4175         * dwarfread.c (struct_type): Skip static fields without crashing.
4176
4177 2003-06-22  Andrew Cagney  <cagney@redhat.com>
4178
4179         GDB 6.0 branch created.
4180         * README: Update.
4181         * PROBLEMS: Update.  Empty.
4182         * NEWS: Update.
4183
4184 2003-06-22  Daniel Jacobowitz  <drow@mvista.com>
4185
4186         * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
4187         Suggested by Nick Hibma <n_hibma@webweaving.org>.
4188
4189 2003-06-22  Andrew Cagney  <cagney@redhat.com>
4190
4191         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
4192         GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD.  Suggested by Momchil
4193         Velikov.
4194
4195 2003-06-22  Daniel Jacobowitz  <drow@mvista.com>
4196
4197         * cli/cli-cmds.c (shell_escape): Silence warnings from old
4198         compilers.
4199
4200 2003-06-21  Daniel Jacobowitz  <drow@mvista.com>
4201
4202         * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
4203         argument of val_print.
4204         * cp-valprint.c (cp_print_value): Don't add the offset parameter
4205         to the address argument of baseclass_offset or target_read_memory.
4206         Do add it to the argument of cp_print_value_fields.
4207
4208 2003-06-21  Andrew Cagney  <cagney@redhat.com>
4209
4210         * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
4211         (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
4212         instead of 0..NUM_REGS.
4213         (mips_register_reggroup_p): New function.
4214         (mips_pseudo_register_write): New function.
4215         (mips_pseudo_register_read): New function.
4216         (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
4217         based on the register's type.
4218         (read_next_frame_reg): Simplify.  Assert that REGNO is a pseudo /
4219         cooked.
4220         (mips_get_saved_register): Simplify.  Assert that REGNO is a
4221         pseudo / cooked.
4222         (mips_register_byte): New function.  Use MIPS_REGISTER_BYTE.
4223         (mips_register_type): Replace mips_register_virtual_type.  Map
4224         NUM_REGS..2*NUM_REGS onto 0..NUM_REGS.  Use MIPS_REGISTER_TYPE
4225         when available.
4226         (read_next_frame_reg): Simplify, but handle SP_REGNUM.  Assert
4227         that the register is cooked / virtual.
4228         (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
4229         Only get the extra info when needed.
4230         (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
4231         (mips32_heuristic_proc_desc): Fetch the cooked register.
4232         (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
4233         (mips_init_extra_frame_info, get_frame_pointer): Ditto.
4234         (mips_print_register): Use gdbarch_register_type, instead of
4235         REGISTER_VIRTUAL_TYPE.
4236         (print_gp_register_row): Use gdbarch_register_type, instead of
4237         REGISTER_VIRTUAL_TYPE.  Allow for a pseudo / cooked REGNUM.
4238         (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4239         Print the pseudo / cooked registers.
4240         (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4241         Print the pseudo / cooked registers.
4242         (mips_xfer_register): Use regcache_cooked_read_part.  Assert that
4243         REG_NUM is pseudo / cooked.
4244         (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
4245         (mips_n32n64_xfer_return_value): Ditto.
4246         (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
4247         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
4248         (mips_register_sim_regno): New function.
4249         (mips_gdbarch_init): Set deprecated_register_byte,
4250         register_group_p, pseudo_register_write, pseudo_register_read,
4251         register_sim_regno, and num_pseudo_regs.  Set register_type,
4252         instead of register_virtual_type.
4253         * Makefile.in (mips-tdep.o): Update dependencies.
4254         * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
4255         REGISTER_VIRTUAL_TYPE.
4256         * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
4257         * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
4258         * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
4259         * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
4260         * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
4261
4262 2003-06-21  Daniel Jacobowitz  <drow@mvista.com>
4263
4264         * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
4265         * cli/cli-cmds.c: Include "gdb_vfork.h".
4266         (shell_escape): Use vfork.
4267
4268 2003-06-21  Andrew Cagney  <cagney@redhat.com>
4269
4270         * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
4271         32 bit floating-point register saves.
4272
4273         * frame.h (deprecated_unwind_get_saved_register): Delete.
4274         * frame.c (deprecated_unwind_get_saved_register): Delete function.
4275         * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
4276         and deprecated_get_next_frame_hack instead of
4277         deprecated_unwind_get_saved_register.
4278
4279         * mips-tdep.c (mips_dump_tdep): Do not print
4280         REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
4281
4282         * frame.c (get_frame_register): New function.
4283         (frame_unwind_register_signed): New function.
4284         (get_frame_register_signed): New function.
4285         (frame_unwind_register_unsigned): New function.
4286         (get_frame_register_unsigned): New function.
4287         * frame.h: Add comments on naming schema.
4288         (get_frame_register, frame_unwind_register_signed): Declare.
4289         (get_frame_register_signed, get_frame_register_signed): Declare.
4290         (frame_unwind_register_unsigned): Declare.
4291         (get_frame_register_unsigned): Declare.
4292
4293 2003-06-20  Theodore A. Roth  <troth@openavr.org>
4294
4295         * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
4296
4297 2003-06-20  Theodore A. Roth  <troth@openavr.org>
4298
4299         * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
4300         (avr_read_sp): Ditto.
4301
4302 2003-06-20  Daniel Jacobowitz  <drow@mvista.com>
4303
4304         * config/arm/linux.mt: Remove code protected by GDBSERVER define.
4305         * config/arm/nm-linux.h: Likewise.
4306         * config/arm/tm-linux.h: Likewise.
4307         * config/ia64/nm-linux.h: Likewise.
4308         * config/ia64/tm-ia64.h: Likewise.
4309         * config/s390/tm-linux.h: Likewise.
4310         * config/s390/tm-s390.h: Likewise.
4311         * s390-nat.c: Likewise.
4312         * s390-tdep.c: Likewise.
4313
4314         * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
4315         * config/ia64/linux.mt: Likewise.
4316         * config/m68k/linux.mh: Likewise.
4317         * config/mips/linux.mt: Likewise.
4318         * config/powerpc/linux.mh: Likewise.
4319         * config/sh/linux.mt: Likewise.
4320
4321 2003-06-19  Kris Warkentin  <kewarken@qnx.com>
4322
4323         * solib.c (solib_open): Change tests for whether to search
4324         LD_LIBRARY_PATH and PATH to better deal with remotes.  Update
4325         comments.
4326
4327 2003-06-19  Theodore A. Roth  <troth@openavr.org>
4328
4329         * avr-tdep.c (avr_frame_address): Delete function.
4330         (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
4331         set_gdbarch_frame_args_address.
4332
4333 2003-06-19  Andrew Cagney  <cagney@redhat.com>
4334
4335         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
4336         (REGISTER_CONVERT_FROM_TYPE): Delete.
4337         (mips_register_convert_to_type): Delete declaration.
4338         (mips_register_convert_from_type): Delete declaration.
4339         * linux-nat.h (struct target_ops): Declare opaque.  s/Linux/Linux
4340         kernel/.
4341
4342 2003-06-19  Michael Snyder  <msnyder@redhat.com>
4343
4344         * linux-nat.h: New file.
4345         * linux-nat.c: Include linux-nat.h.
4346         * lin-lwp.c: Include linux-nat.h.
4347         Move struct lwp_info def to linux-nat.h.
4348         * linux-proc.c: Include linux-nat.h.
4349         (linux_make_note_section): Iterate over lwps instead of threads.
4350         (linux_do_thread_registers): Use lwp instead of merged pid.
4351         * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
4352         * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
4353         Add dependency on linux_nat_h.
4354
4355 2003-06-19  Theodore A. Roth  <troth@openavr.org>
4356
4357         * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
4358
4359 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
4360
4361         * varobj.c (get_type, get_target_type): Use check_typedef.
4362
4363 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
4364
4365         * breakpoint.c (insert_catchpoint): Call internal_error.
4366
4367 2003-06-19  Theodore A. Roth  <troth@openavr.org>
4368
4369         * avr-tdep.c (avr_push_dummy_code): Delete function.
4370         (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
4371
4372 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
4373
4374         * arch-utils.c (default_prepare_to_proceed): Remove.
4375         (generic_prepare_to_proceed): Remove.
4376         * arch-utils.h (default_prepare_to_proceed): Remove prototype.
4377         (generic_prepare_to_proceed): Remove prototype.
4378         * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
4379         * gdbarch.c: Regenerate.
4380         * gdbarch.h: Regenerate.
4381         * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
4382         * hppah-nat.c (hppa_switched_threads): Remove.
4383         * infrun.c (prepare_to_proceed): New static function, copied from
4384         generic_prepare_to_proceed.  Remove select_it argument.
4385         (proceed): Call prepare_to_proceed.
4386         * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
4387         variables.
4388         (ptrace_wait): Don't set the removed variables.
4389         (hppa_switched_threads): Remove.
4390         * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
4391         * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
4392         (lin_lwp_prepare_to_proceed): Remove prototype.
4393         * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
4394         * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
4395
4396 2003-06-18  Theodore A. Roth  <troth@openavr.org>
4397
4398         * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
4399         trad-frame.h.
4400         (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
4401         (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
4402         (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
4403         (AVR_PROLOGUE_*): Enumerate prologue types.
4404         (struct frame_extra_info): Remove.
4405         (struct avr_unwind_cache): Define.
4406         (avr_write_sp): Delete function.
4407         (avr_read_fp): Ditto.
4408         (avr_init_extra_frame_info): Ditto.
4409         (avr_pop_frame): Ditto.
4410         (avr_frame_saved_pc): Ditto.
4411         (avr_saved_pc_after_call): Ditto.
4412         (avr_push_return_address): Ditto.
4413         (avr_frame_chain): Ditto.
4414         (avr_store_struct_return): Ditto.
4415         (avr_push_arguments): Ditto.
4416         (avr_scan_prologue): Update comments. Changed to set up the info for
4417         cache unwinding. Now returns end of prologue PC.
4418         (avr_skip_prologue): Better handling of functions lacking a prologue
4419         by using avr_scan_prologue.
4420         (avr_scan_arg_moves): New function.
4421         (avr_saved_regs_unwinder): Ditto.
4422         (avr_frame_unwind_cache): Ditto.
4423         (avr_unwind_pc): Ditto.
4424         (avr_frame_this_id): Ditto.
4425         (avr_frame_prev_register): Ditto.
4426         (avr_frame_p): Ditto.
4427         (avr_frame_base_address ): Ditto.
4428         (avr_unwind_dummy_id): Ditto.
4429         (avr_push_dummy_code): Ditto.
4430         (push_stack_item): Ditto.
4431         (pop_stack_item): Ditto.
4432         (avr_push_dummy_call): Ditto.
4433         (struct stack_item): Define.
4434         (avr_frame_unwind): Declare structure.
4435         (avr_frame_base): Ditto.
4436         (avr_gdbarch_init): Remove calls to
4437         set_gdbarch_deprecated_init_frame_pc,
4438         set_gdbarch_deprecated_target_read_fp,
4439         set_gdbarch_deprecated_dummy_write_sp,
4440         set_gdbarch_deprecated_fp_regnum,
4441         set_gdbarch_deprecated_push_arguments,
4442         set_gdbarch_deprecated_push_return_address,
4443         set_gdbarch_deprecated_pop_frame,
4444         set_gdbarch_deprecated_store_struct_return,
4445         set_gdbarch_deprecated_frame_init_saved_regs,
4446         set_gdbarch_deprecated_init_extra_frame_info,
4447         set_gdbarch_deprecated_frame_chain,
4448         set_gdbarch_deprecated_frame_saved_pc,
4449         set_gdbarch_deprecated_saved_pc_after_call.
4450         Add calls to set_gdbarch_push_dummy_call,
4451         set_gdbarch_push_dummy_code,
4452         frame_unwind_append_predicate,
4453         frame_base_set_default,
4454         set_gdbarch_unwind_dummy_id,
4455         set_gdbarch_unwind_pc.
4456         Wrap a long line.
4457
4458 2003-06-18  Corinna Vinschen  <vinschen@redhat.com>
4459
4460         * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
4461         registers for H8/300S.
4462         (h8300_print_registers_info): Ditto.
4463         (h8300_gdbarch_init): Accommodate register count for H8/300S.
4464
4465 2003-06-18  Daniel Jacobowitz  <drow@mvista.com>
4466
4467         * config/nm-linux.h (linux_record_stopped_pid): New prototype.
4468         * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4469         (lin_lwp_wait): Likewise.  Update comments.
4470         * linux-nat.c (struct simple_pid_list, add_to_pid_list)
4471         (pull_pid_from_list, linux_record_stopped_pid): New.
4472
4473 2003-06-17  Stephane Carrez  <stcarrez@nerim.fr>
4474
4475         * ada-lang.c (scan_discrim_bound): Name first argument.
4476         (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
4477         declared by ALL_BLOCK_SYMBOLS.
4478
4479 2003-06-17  Stephane Carrez  <stcarrez@nerim.fr>
4480
4481         * ada-tasks.c (find_function_in_inferior): Don't declare it.
4482         ("regcache.h"): Include it.
4483         * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
4484
4485 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
4486
4487         * NEWS: Mention gdbserver detach change and "disconnect" command.
4488         * infcmd.c (disconnect_command): New function.
4489         (_initialize_infcmd): Add ``disconnect'' command.
4490         * remote.c (remote_async_detach): Delete.
4491         (remote_detach): Merge remote_async_detach.
4492         (remote_disconnect): New.
4493         (init_remote_ops): Set to_disconnect.
4494         (init_remote_cisco_ops): Likewise.
4495         (init_remote_async_ops): Likewise.  Use remote_detach.
4496         * target.c (cleanup_target): Default to_disconnect.
4497         (update_current_target): Inherit to_disconnect.
4498         (target_disconnect, debug_to_disconnect): New functions.
4499         (setup_target_debug): Set to_disconnect.
4500         * target.h (struct target_ops): Add to_disconnect.
4501         (target_disconnect): Add prototype.
4502
4503 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
4504
4505         * breakpoint.c (insert_catchpoint): New function.
4506         (insert_breakpoints): Use catch_exceptions to call
4507         insert_catchpoint.  Disable catchpoints if they fail to insert.
4508
4509 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
4510
4511         * symfile.c (reread_symbols): Clear sym_private.
4512
4513 2003-06-17  Andrew Cagney  <cagney@redhat.com>
4514
4515         * trad-frame.h (struct frame_info): Add opaque declaration.
4516         * remote-fileio.h (struct cmd_list_element): Add opaque
4517         declaration.
4518         * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
4519         comments.
4520
4521 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
4522
4523         * remote.c (remote_prepare_to_store): Replace call to
4524         deprecated_read_register_bytes with multiple regcache_raw_read
4525         calls.
4526
4527 2003-06-17  Kris Warkentin  <kewarken@qnx.com>
4528
4529         * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
4530         (nto_find_and_open_solib): Likewise.
4531         (nto_init_solib_absolute_prefix): Likewise.
4532         (_initialize_nto_tdep): Fix indentation.
4533
4534 2003-06-17  Kris Warkentin  <kewarken@qnx.com>
4535
4536         * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
4537
4538 2003-06-17  Kris Warkentin  <kewarken@qnx.com>
4539
4540         * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
4541
4542 2003-06-17  Jim Blandy  <jimb@redhat.com>
4543
4544         * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
4545
4546 2003-06-16  Theodore A. Roth  <troth@openavr.org>
4547
4548         * avr-tdep.c (avr_extract_return_value): New function.
4549         (avr_gdbarch_init): Set extract_return_value method.
4550
4551 2003-06-16  Andrew Cagney  <cagney@redhat.com>
4552
4553         * frame.h (deprecated_get_next_frame_hack): Declare.
4554         * frame.c (legacy_saved_regs_prev_register): Only require
4555         DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed.  Assert that
4556         there are always saved regs.
4557         (deprecated_generic_get_saved_register): Do not require
4558         DEPRECATED_FRAME_INIT_SAVED_REGS.
4559         (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
4560         use frame ID unwind instead.
4561         (deprecated_get_next_frame_hack): New function.
4562
4563 2003-06-16  Corinna Vinschen  <vinschen@redhat.com>
4564
4565         * h8300-tdep.c (h8300_push_arguments): Remove.  Substitute by...
4566         (h8300_push_dummy_call): ...this function.  Some minor optimization.
4567         (h8300_push_return_address): Remove.
4568         (h8300_gdbarch_init): Remove calls to
4569         set_gdbarch_deprecated_dummy_write_sp,
4570         set_gdbarch_deprecated_push_arguments and
4571         set_gdbarch_deprecated_push_return_address.
4572         Add call to set_gdbarch_push_dummy_call.
4573
4574 2003-06-16  Corinna Vinschen  <vinschen@redhat.com>
4575
4576         * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
4577         (E_PSEUDO_EXR_REGNUM): Ditto.
4578         (h8300_is_argument_spill): Check for instructions moving argument
4579         registers into safe registers.
4580         (h8300_skip_prologue): Check for stm instruction to push registers
4581         used for register variables onto stack.
4582         (gdb_print_insn_h8300): Remove.
4583         (h8300_examine_prologue): Add a comment.
4584         (h8300_register_name): Take pseudo registers into account.
4585         (h8300s_register_name): Ditto.
4586         (h8300sx_register_name): Ditto.
4587         (h8300_print_register): Ditto.
4588         (h8300_print_registers_info): Define "nice" printing order.
4589         (h8300_saved_pc_after_call): Take pseudo registers into account.
4590         (h8300_register_type): Ditto.  Return type used for remote connection
4591         when requesting real CCR or EXR register, return actual type when
4592         requesting pseudo CCR or EXR.
4593         (h8300_pseudo_register_read): New function.
4594         (h8300_pseudo_register_write): Ditto.
4595         (h8300_dbg_reg_to_regnum): Ditto.
4596         (h8300s_dbg_reg_to_regnum): Ditto.
4597         (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
4598         set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
4599         set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
4600         set_gdbarch_print_insn architecture dependent.
4601         Call set_gdbarch_pseudo_register_read and
4602         set_gdbarch_pseudo_register_write.
4603         (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
4604
4605 2003-06-16  Andrew Cagney  <cagney@redhat.com>
4606
4607         * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
4608         * gdbarch.h, gdbarch.c: Re-generate.
4609         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4610         * s390-tdep.c (s390_gdbarch_init): Update.
4611         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4612         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4613         * mips-tdep.c (mips_gdbarch_init): Update.
4614         * mcore-tdep.c (mcore_gdbarch_init): Update.
4615         * cris-tdep.c (cris_gdbarch_init): Update.
4616         * infcall.c (call_function_by_hand): Update.
4617         * ia64-tdep.c (ia64_push_arguments): Update comment.
4618         * frame.c (legacy_get_prev_frame): Do not assume
4619         SAVE_DUMMY_FRAME_TOS_P.
4620         * dummy-frame.c (find_dummy_frame): Update comment.
4621
4622 2003-06-16  Andrew Cagney  <cagney@redhat.com>
4623
4624         * regcache.c (do_cooked_read): Do not use register_valid_p.
4625
4626 2003-06-15  Theodore A. Roth  <troth@openavr.org>
4627
4628         * avr-tdep.c (avr_register_type): Remove a blank line.
4629         (avr_scan_prologue): Correct some comments.
4630
4631 2003-06-15  Theodore A. Roth  <troth@openavr.org>
4632
4633         * avr-tdep.c (avr_scan_prologue): Update comment describing the various
4634         prologue types.
4635         Properly scan prologues generated by gcc with the -mcall-prologues
4636         option.
4637         Add code to scan -mcall-prologues for mega devices.
4638
4639 2003-06-15  Theodore A. Roth  <troth@openavr.org>
4640
4641         * avr-tdep.c (avr_register_byte): Delete function.
4642         (avr_register_raw_size): Delete function.
4643         (avr_register_virtual_size): Delete function.
4644         (avr_register_virtual_type): Delete function.
4645         (avr_register_type): New function.
4646         (avr_address_to_pointer): Remove unused code.
4647         (avr_read_fp): Need to read FP as two separate bytes due to change to
4648         avr_register_type() usage.
4649         (avr_gdbarch_init): Don't set deprecated_register_size.
4650         Don't set deprecated_register_bytes.
4651         Don't set deprecated_register_byte.
4652         Don't set deprecated_register_raw_size.
4653         Don't set deprecated_max_register_raw_size.
4654         Don't set deprecated_register_virtual_size.
4655         Don't set deprecated_max_register_virtual_size.
4656         Don't set deprecated_register_virtual_type.
4657         Set register_type method.
4658
4659 2003-06-15  Daniel Jacobowitz  <drow@mvista.com>
4660
4661         * Makefile.in (linux-nat.o): Add rule.
4662         * linux-nat.c: New file.
4663         * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
4664         (CHILD_INSERT_VFORK_CATCHPOINT): Define.
4665         (CHILD_INSERT_EXEC_CATCHPOINT): Define.
4666         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
4667         * config/arm/linux.mh (NATDEPFILES): Likewise.
4668         * config/i386/linux.mh (NATDEPFILES): Likewise.
4669         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4670         * config/ia64/linux.mh (NATDEPFILES): Likewise.
4671         * config/m68k/linux.mh (NATDEPFILES): Likewise.
4672         * config/mips/linux.mh (NATDEPFILES): Likewise.
4673         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4674         * config/s390/s390.mh (NATDEPFILES): Likewise.
4675         * config/sparc/linux.mh (NATDEPFILES): Likewise.
4676
4677 2003-06-15  Mark Kettenis  <kettenis@gnu.org>
4678
4679         * i387-tdep.c: Reorder includes, fix some whitespace issues and
4680         replace out-of-date comment.
4681
4682 2003-06-15  Andrew Cagney  <cagney@redhat.com>
4683
4684         * rdi-share/host.h (Fail): Change to a varargs function.
4685         * remote-rdi.c (Fail): Update.
4686
4687 2003-06-15  Mark Kettenis  <kettenis@gnu.org>
4688
4689         * i386-tdep.c (i386_next_regnum): Fix bounds checking.
4690         (i386_convert_register_p, i386_register_to_value,
4691         i386_register_from_value): Handle types longer than 8 bytes.
4692
4693 2003-06-15  Mark Kettenis  <kettenis@gnu.org>
4694
4695         * i386-tdep.c (i386_register_to_value, i386_value_to_register):
4696         Move floating-point code to new function in i387-tdep.c.
4697         * i387-tdep.c (i387_register_to_value, i387_value_to_register):
4698         New functions containing code moved here from i386-tdep.c.
4699         * i387-tdep.h: Add opaque declaration for `struct type'.
4700         (i387_register_to_value, i387_value_to_register): New prototypes.
4701         * x86-64-tdep.c (x86_64_convert_register_p): New function.
4702         (x86_64_init_abi): Set convert_register_p, register_to_value and
4703         value_to_register here.
4704
4705 2003-06-14  Andrew Cagney  <cagney@redhat.com>
4706
4707         * mips-tdep.c (mips_register_to_value): Make static.
4708         (mips_value_to_register): Make static.
4709         * i386-tdep.c (i386_fetch_pointer_argument): Make static.
4710         * ia64-tdep.c (ia64_register_raw_size): Make static.
4711         (ia64_register_virtual_size): Make static.
4712         (ia64_register_byte): Make static.
4713         * i387-tdep.c: Include "i387-tdep.h".
4714         (print_387_control_word): Delete function.
4715         (print_387_status_word): Delete function.
4716         (print_387_status_bits): Delete function.
4717         (print_387_control_bits): Delete function.
4718         * Makefile.in (i387-tdep.o): Update dependencies.
4719         * rdi-share/host.h (Fail): Declare.
4720         * remote-rdi.c (Fail): Update to match declaration.
4721
4722 2003-06-14  Andrew Cagney  <cagney@redhat.com>
4723
4724         * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
4725         * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
4726         * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
4727         * config/djgpp/fnchange.lst: Delete "remote-array.c".
4728         * README: Delete reference to remote-array.
4729         * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
4730         (remote-array.o): Delete target.
4731         * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
4732         * remote-array.c: Delete file.
4733
4734 2003-06-14  Andrew Cagney  <cagney@redhat.com>
4735             Mark Kettenis  <kettenis@gnu.org>
4736
4737         * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
4738         (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
4739         parameter with "frame".
4740         * gdbarch.h, gdbarch.c: Re-generate.
4741         * frame.h (put_frame_register): Declare.
4742         * frame.c (put_frame_register): New function.
4743         * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
4744         (legacy_register_to_value): Rewrite, use "frame" to get the
4745         register value.
4746         (legacy_value_to_register): Rewrite, use "frame" to find the
4747         register's location before storing.
4748         * arch-utils.h (legacy_convert_register_p): Update.
4749         (legacy_register_to_value, legacy_value_to_register): Update.
4750         * findvar.c (value_from_register): Rewrite, eliminate use of
4751         REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
4752         "frame" to REGISTER_TO_VALUE.
4753         * valops.c (value_assign): Move the CONVERT_REGISTER code to the
4754         lval_reg_frame_relative + lval_register branch of the switch.  Do
4755         not use REGISTER_CONVERT_FROM_TYPE.  Use put_frame_register.
4756         * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
4757         I386_EDI_REGNUM): New defines.
4758         (i386_next_regnum, i386_convert_register_p,
4759         i386_register_to_value, i386_value_to_register): New functions.
4760         (i386_register_convertible, i386_register_convert_to_virtual,
4761         i386_convert_to_raw): Remove functions.
4762         (i386_gdbarch_init): Set convert_register_p, register_to_value and
4763         value_to_register instead of register_convertible,
4764         register_convert_to_virtual and register_convert_to_raw.
4765         * mips-tdep.c (mips_convert_register_p): New function.
4766         (mips_value_to_register): Replace mips_register_convert_from_type.
4767         (mips_register_to_value): Replace mips_register_convert_to_type.
4768         (mips_gdbarch_init): Set conver_register_p, value_to_register and
4769         register_to_value.
4770         * alpha-tdep.c (alpha_convert_register_p): Update.
4771         (alpha_value_to_register): Update, store the register.
4772         (alpha_register_to_value): Update, fetch the register.
4773
4774 2003-06-14  Theodore A. Roth  <troth@openavr.org>
4775
4776         * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
4777         (avr_gdbarch_init): Remove avr_call_dummy_words variable.
4778         Don't set deprecated_call_dummy_words.
4779         Remove commented out set_gdbarch_believe_pcc_promotion() call.
4780         Don't set remote_translate_xfer_address.
4781         (avr_io_reg_read_command): Remove commented out debug printf.
4782         Wrap a long line.
4783
4784 2003-06-14  Theodore A. Roth  <troth@openavr.org>
4785
4786         * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
4787         causes gdb to seg fault.
4788
4789 2003-06-14  Daniel Jacobowitz  <drow@mvista.com>
4790
4791         * sparc-nat.c (fetch_inferior_registers): Correct
4792         a reference to "registers".
4793
4794 2003-06-14  Jeroen Dekkers  <jeroen@dekkers.cx>
4795
4796         * Makefile.in (exc_request_U_h): Define
4797         (exc_request_S_h): Likewise.
4798         (msg_reply_S_h): Likewise.
4799         (msg_U_h): Likewise.
4800         (notify_S_h): Likewise.
4801         (process_reply_S_h): Likewise.
4802         (gnu-nat.o): Depend on gdb_obstack_h
4803         * gnu-nat.c: Include "gdb_obstack.h".
4804
4805 2003-06-13  Andrew Cagney  <cagney@redhat.com>
4806
4807         * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
4808         * gdbarch.h, gdbarch.c: Re-generate.
4809
4810 2003-06-13  Andrew Cagney  <cagney@redhat.com>
4811
4812         * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces.  Clarify
4813         when deprecated REGISTER macros can be deleted.
4814         * gdbarch.h, gdbarch.c: Re-generate.
4815
4816 2003-06-13  Jim Blandy  <jimb@redhat.com>
4817
4818         * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
4819         Linux entry point symbols for _dl_debug_state, too.
4820
4821 2003-06-13  Andrew Cagney  <cagney@redhat.com>
4822
4823         * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
4824         available, do not use the FP register, and always save the TOS.
4825         * dummy-frame.c (dummy_frame_this_id): Do not assert
4826         SAVE_DUMMY_FRAME_TOS.
4827         * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
4828         (i386_gdbarch_init): Do not set save_dummy_frame_tos.
4829         (i386_push_dummy_call): Add 8 to the returned SP.
4830         * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
4831         * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
4832         (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
4833         * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
4834         (x86_64_push_dummy_call): Return "sp + 16".
4835         (x86_64_init_abi): Do not set save_dummy_frame_tos.
4836         * alpha-tdep.c (alpha_gdbarch_init): Do not set
4837         save_dummy_frame_tos.
4838
4839 2003-06-13  Jim Blandy  <jimb@redhat.com>
4840
4841         * frv-tdep.c (frv_use_struct_convention): Delete static
4842         declaration for function deleted in my change of 2003-06-12.
4843
4844 2003-06-13  Theodore A. Roth  <troth@openavr.org>
4845
4846         * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
4847         (avr_pointer_to_address): Shift code addrs left 1 bit.
4848         (avr_convert_from_func_ptr_addr): Delete function since operation is
4849         better handled by avr_address_to_pointer and avr_pointer_to_address.
4850         (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
4851
4852 2003-06-13  Mark Kettenis  <kettenis@gnu.org>
4853
4854         From Kelley Cook  <kelleycook@wideopenwest.com>:
4855         * configure.host: Accept i[34567]86 variants.
4856         * configure.tgt: Likewise.
4857         * nlm/configure.in: Likewise.
4858         * nlm/configure: Regenerated.
4859
4860 2003-06-13  Richard Earnshaw  <rearnsha@arm.com>
4861
4862         * arm-tdep.c (solib-svr4.h): Dont' include it.
4863         (arm_linux_svr4_fetch_link_map_offsets): Move to ...
4864         * arm-linux-tdep.c: ... here.  Make static.
4865         (arm_linux_init_abi): Register it.
4866         (solib-svr4.h): Include it.
4867         * Makefile.in: Update dependencies.
4868         * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4869         (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
4870
4871 2003-06-13  Corinna Vinschen  <vinschen@redhat.com>
4872
4873         * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
4874         indicate registers used for return values.
4875         (struct frame_extra_info): Drop args_pointer and locals_pointer.
4876         (h8300_examine_prologue): Remove initializing dropped frame_extra_info
4877         members.
4878         (h8300_init_extra_frame_info): Ditto.
4879         (h8300_frame_locals_address): Removed.
4880         (h8300_frame_args_address): Removed.
4881         (h8300_extract_return_value): Use new regcache structure. Only care
4882         for 16 bit CPUs.
4883         (h8300h_extract_return_value): Same function for 32 bit CPUs.
4884         (h8300_store_return_value): Use new regcache structure. Only care
4885         for 16 bit CPUs.
4886         (h8300h_store_return_value): Same function for 32 bit CPUs.
4887         (h8300_store_struct_return): Removed.
4888         (h8300_extract_struct_value_address): Use new regcache structure.
4889         (h8300h_extract_struct_value_address): Removed.
4890         (h8300_push_dummy_code): New function.
4891         (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
4892         Remove call_dummy_words.  Call set_gdbarch_extract_return_value and
4893         set_gdbarch_store_return_value architecture dependent.
4894         Call set_gdbarch_push_dummy_code and
4895         set_gdbarch_extract_struct_value_address.
4896         Remove calls to set_gdbarch_frame_args_address,
4897         set_gdbarch_frame_locals_address,
4898         set_gdbarch_deprecated_store_struct_return,
4899         set_gdbarch_deprecated_extract_return_value,
4900         set_gdbarch_deprecated_extract_struct_value_address,
4901         set_gdbarch_deprecated_call_dummy_words and
4902         set_gdbarch_deprecated_sizeof_call_dummy_words.
4903
4904 2003-06-13  Corinna Vinschen  <vinschen@redhat.com>
4905
4906         * h8300-tdep.c (h8300_register_byte): Remove.
4907         (h8300h_register_byte): Remove.
4908         (h8300_register_virtual_type): Remove.  Substitute by...
4909         (h8300_register_type): New function.
4910         (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
4911         (h8300h_extract_struct_value_address): Ditto.
4912         (h8300_gdbarch_init): Drop calls to
4913         set_gdbarch_deprecated_register_byte and
4914         set_gdbarch_deprecated_register_virtual_type.
4915         Add call to set_gdbarch_register_type.
4916
4917 2003-06-13  Andrew Cagney  <cagney@redhat.com>
4918
4919         * gdbarch.sh: Update comments on registers.
4920         (deprecated_register_byte): Rename register_byte.
4921         (deprecated_register_raw_size): Rename register_raw_size.
4922         (deprecated_register_virtual_size): Rename register_virtual_size.
4923         (deprecated_register_virtual_type): Rename register_virtual_type.
4924         * gdbarch.h, gdbarch.c: Re-generate.
4925         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4926         * vax-tdep.c (vax_gdbarch_init): Update.
4927         * v850-tdep.c (v850_gdbarch_init): Update.
4928         * sparc-tdep.c (sparc_gdbarch_init): Update.
4929         * sh-tdep.c (sh_gdbarch_init): Update.
4930         * s390-tdep.c (s390_gdbarch_init): Update.
4931         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4932         * ns32k-tdep.c: Update.
4933         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4934         * mips-tdep.c (mips_gdbarch_init): Update.
4935         * mcore-tdep.c (mcore_gdbarch_init): Update.
4936         * m68k-tdep.c (m68k_gdbarch_init): Update.
4937         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4938         * ia64-tdep.c (ia64_gdbarch_init): Update.
4939         * hppa-tdep.c (hppa_gdbarch_init): Update.
4940         * h8300-tdep.c (h8300_gdbarch_init): Update.
4941         * frv-tdep.c (frv_gdbarch_init): Update.
4942         * cris-tdep.c (cris_gdbarch_init): Update.
4943         * avr-tdep.c (avr_gdbarch_init): Update.
4944         * alpha-tdep.c (alpha_gdbarch_init): Update.
4945         * arm-tdep.c (arm_gdbarch_init): Update.
4946
4947 2003-06-13  Andrew Cagney  <cagney@redhat.com>
4948
4949         * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4950         mips_o32_use_struct_convention with always_use_struct_convention.
4951
4952 2003-06-12  David Carlton  <carlton@kealia.com>
4953
4954         * cp-namespace.c (cp_set_block_scope): Comment out
4955         processing_has_namespace_info branch.
4956
4957 2003-06-12  Jim Blandy  <jimb@redhat.com>
4958
4959         Recognize and skip 64-bit PowerPC Linux linkage functions.
4960         * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4961         insn_pattern, insns_match_pattern, d_field, ds_field): New
4962         functions, macros, and types for working with PPC instructions.
4963         (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4964         ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4965         ppc64_skip_trampoline_code): New functions, variables, and macros
4966         for recognizing and skipping linkage functions.
4967         (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4968         ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4969
4970         * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4971         register offsets for both the 32- and 64-bit interfaces.
4972
4973         Actually finish the job started by my change of 2003-05-29.
4974         * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4975         other #definition of this.
4976         (ppc_linux_skip_trampoline_code): Remove declaration.
4977         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4978         static.
4979         (ppc_linux_init_abi): Register it as the skip_trampoline_code
4980         method for GDBARCH.
4981
4982         * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4983         'long' on ppc64-*-linux*.
4984
4985         * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4986         isn't #defined, assume the register doesn't exist: act as if
4987         tdep->ppc_mq_regnum were -1.
4988
4989         * configure.host, configure.tgt: Add entries for
4990         powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4991         powerpc/linux.mt.
4992         * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4993         New files.
4994
4995         * arch-utils.c (always_use_struct_convention): New function.
4996         * arch-utils.h (always_use_struct_convention): New prototype.
4997         * alpha-tdep.c (alpha_use_struct_convention): Delete.
4998         (alpha_gdbarch_init): Register always_use_struct_convention,
4999         instead of alpha_use_struct_convention.
5000         * cris-tdep.c (cris_use_struct_convention): Delete.
5001         (cris_gdbarch_init): Register always_use_struct_convention,
5002         instead of cris_use_struct_convention.
5003         * frv-tdep.c (frv_use_struct_convention): Delete.
5004         (frv_gdbarch_init): Register always_use_struct_convention,
5005         instead of frv_use_struct_convention.
5006         * h8300-tdep.c (h8300_use_struct_convention): Delete.
5007         (h8300_gdbarch_init): Register always_use_struct_convention,
5008         instead of h8300_use_struct_convention.
5009         * mips-tdep.c (mips_o32_use_struct_convention): Delete.
5010         (mips_o32_gdbarch_init): Register always_use_struct_convention,
5011         instead of mips_o32_use_struct_convention.
5012
5013 2003-06-12  Andrew Cagney  <cagney@redhat.com>
5014
5015         * wince.c: Include "mips-tdep.h".
5016         * mips-tdep.h (mips_next_pc): Declare.
5017         * mcore-tdep.c: Make more local functions static.
5018         * Makefile.in (wince.o): Update dependencies.
5019
5020 2003-06-12  David Carlton  <carlton@kealia.com>
5021
5022         * symtab.c (lookup_symbol_aux_minsyms): Replace
5023         DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
5024         (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
5025         (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
5026         SYMBOL_NATURAL_NAME.
5027
5028 2003-06-12  Andreas Schwab  <schwab@suse.de>
5029
5030         * Makefile.in (tuiDisassem.o): Update dependencies.
5031
5032 2003-06-12  David Carlton  <carlton@bactrian.org>
5033
5034         * symtab.h: Delete declaration of make_symbol_overload_list.
5035         Add declaration of lookup_partial_symbol.
5036         * symtab.c (remove_params): Move to cp-support.c.
5037         (overload_list_add_symbol, make_symbol_overload_list)
5038         (sym_return_val_size, sym_return_val_index): Ditto.
5039         (lookup_partial_symbol): Make extern.
5040         * cp-support.h: Add declaration of make_symbol_overload_list.
5041         * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
5042         symtab.h, and block.h.
5043         (remove_params): Move here from symtab.c.
5044         (overload_list_add_symbol, make_symbol_overload_list)
5045         (sym_return_val_size, sym_return_val_index): Ditto.
5046         * valops.c: Include cp-support.h.
5047         * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
5048         frame_h, and block_h.
5049         (valops.o): Depend on cp_support_h.
5050
5051 2003-06-12  Corinna Vinschen  <vinschen@redhat.com>
5052
5053         * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
5054         substitute by NUM_REGS throughout.
5055         (h8300_register_name): Only care for H8/300 and H8/300H registers.
5056         (h8300s_register_name): New function for H8S registers.
5057         (h8300sx_register_name): Ditto for H8SX registers.
5058         (h8300_print_register): Revise register printing, avoid depending
5059         on 32 bit long.
5060         (h8300_register_byte): Only care for H8/300 registers.
5061         (h8300h_register_byte): New function for any other architecture.
5062         (h8300_register_raw_size): Remove.
5063         (h8300_register_virtual_type): Revise to return actually useful
5064         type.
5065         (h8300_extract_struct_value_address): Only care for H8/300 registers.
5066         (h8300h_extract_struct_value_address): New function for any other
5067         architecture.
5068         (h8300_gdbarch_init): Add h8300sxn.  Call set_gdbarch_num_regs,
5069         set_gdbarch_register_name, set_gdbarch_register_byte,
5070         set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
5071         Remove calls to set_gdbarch_deprecated_register_size,
5072         set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
5073         set_gdbarch_deprecated_max_register_raw_size,
5074         set_gdbarch_register_virtual_size and
5075         set_gdbarch_deprecated_max_register_virtual_size entirely.
5076         Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
5077         set_gdbarch_long_double_bit.
5078
5079 2003-06-11  Jeff Johnston  <jjohnstn@redhat.com>
5080
5081         * doublest.c (convert_doublest_to_floatformat): When dealing
5082         with the implied integer bit, only alter mant_bits if we are
5083         processing a full 32 bits of mantissa.
5084
5085 2003-06-11  David Carlton  <carlton@bactrian.org>
5086
5087         * dictionary.h: New.
5088         * dictionary.c: New.
5089         * block.h: Add opaque declaration for struct dictionary.
5090         (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
5091         'sym' members.
5092         (BLOCK_DICT): New macro.
5093         Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
5094         BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
5095         BLOCK_SHOULD_SORT.
5096         (ALL_BLOCK_SYMBOLS): Update definition.
5097         * Makefile.in (SFILES): Add dictionary.c.
5098         (dictionary_h): New.
5099         (COMMON_OBS): Add dictionary.o.
5100         (dictionary.o): New.
5101         (ada-lang.o): Depend on dictionary_h.
5102         (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
5103         (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
5104         (mi-cmd-stack.o): Ditto.
5105         (gdbtk-cmds.o): Update dependencies.
5106         (gdbtk-stack.o): Ditto.
5107         * ada-lang.c: Include dictionary.h.
5108         (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
5109         (fill_in_ada_prototype, debug_print_block): Ditto.
5110         (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
5111         explicit iteration by use of ALL_BLOCK_SYMBOLS.  Delete variable
5112         'is_sorted'.
5113         * mdebugread.c: Include dictionary.h.
5114         (struct parse_stack): Delete 'maxsyms' member.
5115         (parse_symbol): Update calls to new_block.  Delete calls to
5116         shrink_block.  Use dictionary methods.
5117         (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
5118         Update calls to new_symtab.  Don't maintain maxsyms data.
5119         (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
5120         (add_symbol): Just call dict_add_symbol.
5121         (new_symtab): Delete 'maxsyms' argument.
5122         (new_symtab): Update calls to new_block.
5123         (new_block): Delete 'maxsyms' argument; add 'function' argument.
5124         (shrink_block): Delete function.
5125         (fixup_sigtramp): Update call to new_block.  Add symbol via
5126         dict_add_symbol.
5127         * jv-lang.c: Include dictionary.h.
5128         (get_java_class_symtab): Set the BLOCK_DICT of the blocks
5129         appropriately.  Set class_symtab->free_func.  Make sure the
5130         blockvector is big enough to hold two blocks.
5131         (add_class_symtab_symbol): Use dictionary methods.
5132         (free_class_block): New function.
5133         (type_from_class): Replace explicit iteration by
5134         ALL_BLOCK_SYMBOLS.
5135         * symtab.h (struct symtab): Replace 'free_ptr' method by
5136         'free_func'.
5137         * dwarf2read.c (psymtab_to_symtab_1): Delete call to
5138         sort_symtab_syms.
5139         * dwarfread.c (psymtab_to_symtab_1): Delete call to
5140         sort_symtab_syms.
5141         * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
5142         Include dictionary.h.
5143         (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
5144         * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
5145         sort_symtab_syms.
5146         * objfiles.c: Include dictionary.h.
5147         (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
5148         * buildsym.c: Include dictionary.h.
5149         (finish_block): Use dictionary methods.
5150         (end_symtab): Set free_func to NULL, not free_ptr.
5151         * tracepoint.c: Include dictionary.h.
5152         (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
5153         (scope_info): Ditto.
5154         * stack.c: Include dictionary.h.
5155         (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
5156         (print_block_frame_labels, print_frame_arg_vars)
5157         (print_frame_args): Ditto.
5158         * symmisc.c (free_symtab_block): Use dictionary methods.
5159         (dump_symtab): Ditto.
5160         (free_symtab): Replace use of 'free_ptr' by 'free_func'.
5161         Include dictionary.h.
5162         * symfile.h: Delete declarations of sort_block_syms,
5163         sort_symtab_syms.
5164         * symfile.c (sort_block_syms): Delete.
5165         (sort_symtab_syms): Delete.
5166         * symtab.c: Include dictionary.h.
5167         (lookup_block_symbol): Use dictionary iterators.
5168         (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
5169         (search_symbols, make_symbol_completion_list): Ditto.
5170         (make_symbol_overload_list): Ditto.
5171         * valops.c (value_of_local): Use dict_empty.
5172         Include dictionary.h.
5173
5174 2003-06-11  J. Brobecker  <brobecker@gnat.com>
5175
5176         * win32-nat.c (solib_symbols_add): Fix a small compilation error.
5177
5178 2003-06-11  David Carlton  <carlton@bactrian.org>
5179
5180         * block.h (BLOCK_SHOULD_SORT): Delete.
5181         * symtab.c (lookup_block_symbol): Don't worry about sorted linear
5182         blocks.
5183         * ada-lang.c (ada_add_block_symbols): Ditto.
5184         * symfile.c (sort_block_syms): Delete.
5185         (sort_symtab_syms): Ditto.
5186         * symfile.h: Delete sort_symtabs_syms and sort_block_syms
5187         declarations.
5188         * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
5189         * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
5190         * dwarf2read.c (psymtab_to_symtab_1): Ditto.
5191         * dwarfread.c (psymtab_to_symtab_1): Ditto.
5192         * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
5193         * mdebugread.c (psymtab_to_symtab_1): Ditto.
5194         * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
5195
5196 2003-06-11  Jeff Johnston  <jjohnstn@redhat.com>
5197
5198         * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
5199         bits to 128.
5200
5201 2003-06-11  Andrew Cagney  <cagney@redhat.com>
5202
5203         * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
5204         REGISTER_CONVERTIBLE.
5205         (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
5206         (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
5207         * gdbarch.h, gdbarch.c: Re-generate.
5208         * arch-utils.h (deprecated_register_convertible_not): Rename
5209         generic_register_convertible_not.
5210         * arch-utils.c (deprecated_register_convertible_not): Rename
5211         generic_register_convertible.
5212         (legacy_convert_register_p, legacy_register_to_value): Update.
5213         * sh-tdep.c (sh64_push_arguments): Update.
5214         * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
5215         * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
5216         * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
5217         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
5218         * arch-utils.c (legacy_value_to_register): Update.
5219         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5220         (rs6000_register_convert_to_raw): Make parameter "from" const.
5221         * mips-tdep.c (mips_gdbarch_init): Update.
5222         (mips_register_convert_to_raw): Make  parameter"virt_buf" const.
5223         * infcmd.c (default_print_registers_info): Update.
5224         * ia64-tdep.c (ia64_gdbarch_init): Update.
5225         (ia64_register_convert_to_raw): Make parameter "from" const.
5226         * i386-tdep.c (i386_gdbarch_init): Update.
5227         (i386_register_convert_to_raw): Update.
5228
5229 2003-06-11  Andrew Cagney  <cagney@redhat.com>
5230
5231         * remote-fileio.c: Include "remote-fileio.h".
5232         * Makefile.in (remote-fileio.o): Update dependencies.
5233         (remote_fileio_h): Fix typo.
5234
5235 2003-06-11  Andrew Cagney  <cagney@redhat.com>
5236
5237         * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
5238         (xstormy16_save_dummy_frame_tos): Make static.
5239         (_initialize_xstormy16_tdep): Add declaration.
5240         * vax-tdep.c (_initialize_vax_tdep): Add declaration.
5241         * v850-tdep.c: Make local functions static.
5242         (_initialize_v850_tdep): Add declaration.
5243         * sparc-tdep.c: Make local functions static.
5244         (_initialize_sparc_tdep): Add declaration.
5245         * sh-tdep.c: Make local functions static.
5246         (_initialize_sh_tdep): Add declaration.
5247         * sh3-rom.c (_initialize_sh3_rom): Add declaration.
5248         * s390-tdep.c: Make local functions static.
5249         (_initialize_s390_tdep): Add declaration.
5250         * dbxread.c (find_stab_function_addr): Make static.
5251         * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
5252         * ocd.c (_initialize_remote_ocd): Add declaration.
5253         * dink32-rom.c (_initialize_dink32_rom): Add declaration.
5254         * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
5255         * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
5256         * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
5257         * mips-tdep.c (_initialize_mips_tdep): Add declaration.
5258         * remote-array.c (_initialize_array): Add declaration.
5259         (_initialize_remote_monitors): Add declaration.
5260         * remote-mips.c: Make local functions static.
5261         (_initialize_remote_mips): Add declaration.
5262         * mcore-tdep.c: Make all local functions static.
5263         (_initialize_mcore_tdep): Add declaration.
5264         * dbug-rom.c (_initialize_dbug_rom): Add declaration.
5265         * abug-rom.c (_initialize_abug_rom): Add declaration.
5266         * rom68k-rom.c (_initialize_rom68k): Add declaration.
5267         * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
5268         * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
5269         * remote-est.c (_initialize_est): Add declaration.
5270         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
5271         (m68hc11_call_dummy_address): Make static.
5272         * ia64-tdep.c: Make local functions static.
5273         (_initialize_ia64_tdep): Add declaration.
5274         * solib-legacy.c (_initialize_svr4_lm): Add declaration.
5275         * monitor.c (monitor_wait_filter): Make static.
5276         (_initialize_remote_monitors): Add declaration.
5277         * remote-hms.c (_initialize_remote_hms): Add declaration.
5278         * remote-e7000.c (fetch_regs_from_dump): Make static.
5279         (expect_n): Make static.
5280         (_initialize_remote_e7000): Add declaration.
5281         * ser-e7kpc.c: Always include "defs.h".
5282         (_initialize_ser_e7000pc): Add declaration.
5283         * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
5284         * cris-tdep.c: Make all but one function static.
5285         (_initialize_cris_tdep): Add declaration.
5286         * solib-svr4.c (_initialize_svr4_solib): Add declaration.
5287         * solib.c (update_solib_list): Make static.
5288         (_initialize_solib): Add declaration.
5289         * avr-tdep.c (avr_breakpoint_from_pc): Make static.
5290         (_initialize_avr_tdep): Add declaration.
5291         * remote-rdi.c (voiddummy): Make static.
5292         (_initialize_remote_rdi): Add declaration.
5293         * arm-tdep.c (_initialize_arm_tdep): Add declaration.
5294         * remote-rdp.c (send_rdp): Make static.
5295         (_initialize_remote_rdp): Add declaration.
5296         * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
5297
5298 2003-06-11  Corinna Vinschen  <vinschen@redhat.com>
5299
5300         * remote-fileio.c: Make ari happy.
5301
5302 2003-06-10  J. Brobecker  <brobecker@gnat.com>
5303
5304         * rs6000-nat.c (child_xfer_memory): Compute the right address when
5305         fetching the trailing bytes of the buffer we are about to write.
5306
5307 2003-06-10  Andrew Cagney  <cagney@redhat.com>
5308
5309         * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
5310         * Makefile.in (remote-fileio.o): Update dependencies.
5311         * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h".  Do not
5312         include <setjmp.h>, or <sys/types.h> conditional on USG.
5313         (remote_fio_jmp_buf): Delete global variable.
5314
5315 2003-06-10  Corinna Vinschen  <vinschen@redhat.com>
5316             Martin M. Hunt  <hunt@redhat.com>
5317
5318         * Makefile.in (REMOTE_OBS): Add remote-fileio.o
5319         (SFILES): Add remote-fileio.c.
5320         Add dependencies for building remote-fileio.o.  Add remote-fileio.h to
5321         dependencies for building remote.o.
5322         * remote-fileio.c: New file implementing the remote File-I/O protocol.
5323         * remote-fileio.h: New header file defining remote File-I/O interface.
5324         * remote.c (remote_write_bytes, remote_read_bytes): Remove
5325         static storage class.
5326         (remote_wait, remote_async_wait): Call remote_fileio_request() on
5327         'F' packet.
5328         (_initialize_remote): Call initialize_remote_fileio().
5329         * remote.h: Declare remote_write_bytes() and remote_read_bytes().
5330         * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5331         * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5332         (captured_main): Initialize new ui_files.
5333         * ui-file.c: Add read and fgets input functions.
5334         (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
5335         (null_file_read): New function.
5336         (ui_file_read): New function.
5337         (set_ui_file_read): New function.
5338         (stdio_file_read): New function.
5339         * ui-file.h: New type ui_file_read_ftype.
5340         (set_ui_file_read): Declare.
5341         (ui_file_read): Declare.
5342
5343 2003-06-09  Andrew Cagney  <cagney@redhat.com>
5344
5345         * frame.h (deprecated_unwind_get_saved_register): Rename
5346         generic_unwind_get_saved_register, update comments.
5347         * mips-tdep.c (mips_get_saved_register): Update.
5348         * frame.c (deprecated_unwind_get_saved_register): Update.
5349
5350 2003-06-09  Andrew Cagney  <cagney@redhat.com>
5351
5352         * vax-tdep.c (vax_frame_locals_address): Delete function.
5353         (vax_gdbarch_init): Do not set frame_locals_address.
5354         * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
5355         (m68hc11_gdbarch_init): Do not set frame_locals_address.
5356         * s390-tdep.c (s390_frame_args_address): Delete function.
5357         (s390_gdbarch_init): Do not set frame_args_address or
5358         frame_locals_address.
5359         * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
5360         (ns32k_gdbarch_init): Do not set frame_locals_address.
5361         * hppa-tdep.c (hppa_frame_args_address): Delete function.
5362         (hppa_frame_locals_address): Delete function.
5363         (hppa_gdbarch_init): Do not set frame_args_address, or
5364         frame_locals_address.
5365         * arm-tdep.c (arm_frame_args_address): Delete.
5366         (arm_frame_locals_address): Delete.
5367         (arm_gdbarch_init): Do not set frame_args_address, or
5368         frame_locals_address.
5369
5370 2003-06-09  Andrew Cagney  <cagney@redhat.com>
5371
5372         * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
5373         * gdbarch.h, gdbarch.c: Re-generate.
5374         * arch-utils.h (frame_num_args_unknown): Delete both declarations.
5375         * arch-utils.c (frame_num_args_unknown): Delete function.
5376         * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
5377         (frame_info): Use FRAME_NUM_ARGS_P.
5378         * arm-tdep.c (arm_frame_num_args): Delete function.
5379         (arm_gdbarch_init): Do not set frame_num_args.
5380         * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
5381         * hppa-tdep.c (hppa_frame_num_args): Delete function.
5382         (hppa_gdbarch_init): Do not set frame_num_args.
5383         * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
5384         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5385         frame_num_args to default frame_num_args_unknown.
5386         * v850-tdep.c (v850_gdbarch_init): Ditto.
5387         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5388         * sh-tdep.c (sh_gdbarch_init): Ditto.
5389         * s390-tdep.c (s390_gdbarch_init): Ditto.
5390         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5391         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5392         * mips-tdep.c (mips_gdbarch_init): Ditto.
5393         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5394         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5395         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5396         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5397         * i386-tdep.c (i386_gdbarch_init): Ditto.
5398         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5399         * frv-tdep.c (frv_gdbarch_init): Ditto.
5400         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5401         * cris-tdep.c (cris_gdbarch_init): Ditto.
5402         * avr-tdep.c (avr_gdbarch_init): Ditto.
5403         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5404
5405 2003-06-09  Andrew Cagney  <cagney@redhat.com>
5406
5407         * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
5408         (print_frame_args): Moved to "stack.c".
5409         * stack.c: Include "gdb_assert.h".
5410         (print_frame_nameless_args): Moved from "printcmd.c", made static.
5411         (print_frame_args): Moved from "printcmd.c".
5412         * frame.h (print_frame_args): Delete declaration.
5413         * Makefile.in (stack.o): Update dependencies.
5414
5415 2003-06-08  Andrew Cagney  <cagney@redhat.com>
5416
5417         * frame.c (get_prev_frame): Remove reference to
5418         frame_args_address_correct in comments.
5419         * frame-base.c (default_frame_args_address): Delete code
5420         conditional on FRAME_ARGS_ADDRESS_CORRECT.
5421         * vax-tdep.c (vax_frame_args_address_correct): Delete.
5422         (vax_frame_args_address): Merge in vax_frame_args_address_correct.
5423         * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
5424         (vax_frame_args_address_correct): Delete declaration.
5425
5426 2003-06-08  Andrew Cagney  <cagney@redhat.com>
5427
5428         * gdbarch.sh (UNWIND_SP): Add.
5429         * gdbarch.h, gdbarch.c: Re-generate.
5430         * frame.c (frame_sp_unwind): New function.
5431         (get_frame_sp): New function.
5432         * frame.h (get_frame_sp, frame_sp_unwind): Declare.
5433         * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
5434         gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
5435         value.
5436         * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
5437         (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
5438
5439 2003-06-08  Andrew Cagney  <cagney@redhat.com>
5440
5441         Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
5442         REMOTE_BREAKPOINT.
5443         * remote.c: Update.
5444         * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
5445         (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
5446         * config/m68k/tm-sun3.h: Update.
5447         * config/m68k/tm-m68klynx.h: Update.
5448         * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
5449
5450         * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
5451         trad_frame".  Update comments.
5452         * d10v-tdep.c (struct d10v_unwind_cache): Update.
5453         * trad-frame.c (trad_frame_alloc_saved_regs): Update.
5454         (trad_frame_register_value, trad_frame_prev_register): Update.
5455
5456 2003-06-08  Andrew Cagney  <cagney@redhat.com>
5457
5458         * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
5459         from GCC's acinclude.m4.
5460         * configure.in: Check for getopt's delcaration.
5461         * aclocal.m4, config.in, configure: Re-generate.
5462         * main.c (error_init): Delete declaration.
5463         * defs.h (error_init): Declare.
5464         * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
5465         (rs6000_convert_from_func_ptr_addr): Make static.
5466         (_initialize_rs6000_tdep): Add declaration.
5467         * cli/cli-cmds.c (dont_repeat): Delete declaration.
5468         (show_commands, set_verbose, show_history): Delete declaration.
5469         * top.h (set_verbose): Add declaration.
5470         (show_history, set_history, show_commands): Add declaration.
5471         (do_restore_instream_cleanup): Add declaration.
5472         * objc-lang.c (specialcmp): Make static.
5473         (print_object_command): Make static.
5474         (find_objc_msgsend): Make static.
5475         (find_objc_msgcall_submethod_helper): Make static.
5476         (find_objc_msgcall_submethod): Make static.
5477         (_initialize_objc_language): Add declaration.
5478         (find_implementation_from_class): Make static.
5479         (find_implementation): Make static.
5480         * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
5481         * objc-lang.h (lookup_struct_typedef): Add declaration.
5482         * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
5483         * cli/cli-script.c (clear_hook_in_cleanup): Make static.
5484         (do_restore_user_call_depth): Make static.
5485         (do_restore_instream_cleanup): Delete declaration.
5486         (dont_repeat): Delete declaration.
5487         * cli/cli-decode.c (add_abbrev_cmd): Delete function.
5488         * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
5489         * reggroups.c (_initialize_reggroup): Add declaration.
5490         * cp-support.c (_initialize_cp_support): Add declaration.
5491         * cp-abi.c (_initialize_cp_abi): Add declaration.
5492         * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
5493         * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
5494         (_initialize_gnu_v3_abi): Add declaration.
5495         * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
5496         (_initialize_gnu_v2_abi): Add declaration.
5497         * frame-base.c (_initialize_frame_base): Add declaration.
5498         * doublest.c (floatformat_from_length): Make static.
5499         * frame-unwind.c (_initialize_frame_unwind): Add declaration.
5500         * frame.c (create_sentinel_frame): Make static.
5501         (_initialize_frame): Add declaration.
5502         * top.c (do_catch_errors): Make static.
5503         (gdb_rl_operate_and_get_next_completion): Make static.
5504         * typeprint.c: Include "typeprint.h".
5505         * sentinel-frame.c (sentinel_frame_prev_register): Make static.
5506         (sentinel_frame_this_id): Make static.
5507         * p-valprint.c (_initialize_pascal_valprint): Add declaration.
5508         * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
5509         * dwarf2-frame.c (dwarf2_frame_cache): Make static.
5510         * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
5511         * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
5512         * maint.c (maintenance_print_architecture): Make static.
5513         * signals/signals.c (_initialize_signals): Add declaration.
5514         * std-regs.c (_initialize_frame_reg): Add declaration.
5515         * jv-exp.y (push_variable): ISO C definition.
5516         (push_qualified_expression_name): Ditto.
5517         * memattr.c (_initialize_mem): Add declaration.
5518         * remote.c (remote_check_watch_resources): Make static.
5519         (remote_stopped_by_watchpoint): Make static.
5520         (remote_stopped_data_address): Make static.
5521         * d10v-tdep.c (nr_dmap_regs): Make static.
5522         (a0_regnum): Make static.
5523         (d10v_frame_unwind_cache): Make static.
5524         (d10v_frame_p): Make static.
5525         * osabi.c (show_osabi): Make static.
5526         (_initialize_gdb_osabi): Add extern declaration.
5527         * gdbtypes.c (make_qualified_type): Make static.
5528         (safe_parse_type): Make static.
5529         * macrocmd.c (_initialize_macrocmd): Add extern declaration.
5530         * macrotab.c (macro_bcache_free): Make static.
5531         * interps.c (interp_set_quiet): Make static.
5532         (interpreter_exec_cmd): Make static.
5533         * stack.h (select_frame_command): New file.
5534         * stack.c: Include "stack.h".
5535         (select_frame_command_wrapper): Delete function.
5536         (select_frame_command): Make global.
5537         * infcall.c: Include "infcall.h".
5538         * linespec.c: Include "linespec.h".
5539         * symfile.c (sections_overlap): Make static.
5540         * cp-support.h (cp_initialize_namespace): ISO C declaration.
5541         * charset.c (_initialize_charset): Add missing prototype.
5542         * regcache.c (init_legacy_regcache_descr): Make static.
5543         (do_regcache_xfree): Make static.
5544         (regcache_xfer_part): Make static.
5545         (_initialize_regcache): Add missing prototype.
5546         * breakpoint.c (parse_breakpoint_sals): Make static.
5547         (breakpoint_sals_to_pc): Make static.
5548         * interps.h (clear_interpreter_hooks): ISO C declaration.
5549         * Makefile.in (stack_h): Define.
5550         (stack.o, typeprint.o, mi-main.o): Update dependencies.
5551         (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
5552
5553 2003-06-08  Andrew Cagney  <cagney@redhat.com>
5554
5555         * Makefile.in (d10v-tdep.o): Update dependencies.
5556         (SFILES): Add trad-frame.c.
5557         (trad_frame_h): Define.
5558         (COMMON_OBS): Add trad-frame.o.
5559         (trad-frame.o): Specify dependencies.
5560         * d10v-tdep.c: Include "trad-frame.h".
5561         (saved_regs_unwinder): Delete function.
5562         (d10v_frame_prev_register): Use trad_frame_prev_register.
5563         (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
5564         trad_frame", delete "regs" and "prev_sp".
5565         (prologue_find_regs): Use trad-frame.
5566         * trad-frame.h, trad-frame.c: New files.
5567
5568 2003-06-08  Mark Kettenis  <kettenis@gnu.org>
5569
5570         * dwarf2cfi.c, dwarf2cfi.h: Remove.
5571
5572 2003-06-07  Adam Fedor  <fedor@gnu.org>
5573
5574         * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
5575         (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
5576         using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
5577         (find_implementation, resolve_msgsend, resolve_msgsend_stret,
5578         resolve_msgsend_super, resolve_msgsend_super_stret):
5579         Use it.
5580
5581 2003-06-07  Andrew Cagney  <cagney@redhat.com>
5582
5583         * symfile.h: Re-indent, clean up comments.
5584
5585 2003-06-07  Andrew Cagney  <cagney@redhat.com>
5586
5587         * inferior.h (deprecated_write_sp): Replace
5588         generic_target_write_sp.
5589         * regcache.c (deprecated_write_sp): Replace
5590         generic_target_write_sp.
5591         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5592         * vax-tdep.c (vax_gdbarch_init): Update.
5593         * v850-tdep.c (v850_gdbarch_init): Update.
5594         * sparc-tdep.c (sparc_gdbarch_init): Update.
5595         * sh-tdep.c (sh_gdbarch_init): Update.
5596         * s390-tdep.c (s390_gdbarch_init): Update.
5597         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5598         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5599         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5600         * mcore-tdep.c (mcore_gdbarch_init): Update.
5601         * m68k-tdep.c (m68k_gdbarch_init): Update.
5602         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5603         * ia64-tdep.c (ia64_gdbarch_init): Update.
5604         * h8300-tdep.c (h8300_gdbarch_init): Update.
5605         * frv-tdep.c (frv_gdbarch_init): Update.
5606         * cris-tdep.c (cris_gdbarch_init): Update.
5607         * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
5608
5609 2003-06-07  Andrew Cagney  <cagney@redhat.com>
5610
5611         * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
5612         Assert that PC_REGNUM is valid.
5613         (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
5614
5615 2003-06-07  Andrew Cagney  <cagney@redhat.com>
5616
5617         * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
5618         * gdbarch.h, gdbarch.c: Regenerate.
5619         * mn10300-tdep.c: Include "gdb_assert.h".
5620         (mn10300_read_fp): New function.
5621         (mn10300_gdbarch_init): Set deprecated_target_read_fp to
5622         mn10300_read_fp.  Do not set read_sp to generic_target_read_sp.
5623         * ia64-tdep.c: Include "gdb_assert.h".
5624         (ia64_read_fp): New function.
5625         (ia64_gdbarch_init): Set deprecated_target_read_fp to
5626         ia64_read_sp.  Do not set read_sp to generic_target_read_sp.
5627         * regcache.c (generic_target_read_sp): Delete function.
5628         (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
5629         * inferior.h (generic_target_read_sp): Delete declaration.
5630         * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
5631         generic_target_read_sp.
5632         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5633         * sparc-tdep.c (sparc_gdbarch_init): Ditto
5634         * sh-tdep.c (sh_gdbarch_init): Ditto.
5635         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5636         * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
5637
5638 2003-06-07  Andrew Cagney  <cagney@redhat.com>
5639
5640         * gdbarch.sh: Comment each field of startup_gdbarch.
5641         * gdbarch.h, gdbarch.c: Re-generate.
5642
5643 2003-06-07  Andrew Cagney  <cagney@redhat.com>
5644
5645         * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
5646         * gdbarch.h, gdbarch.c: Re-generate.
5647         * regcache.c: Update comments on read_pc et.al.
5648         (generic_target_read_pc): Delete function.
5649         (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
5650         * inferior.h (generic_target_read_pc): Delete declaration.
5651         * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
5652         generic_target_read_pc.
5653         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5654         * sh-tdep.c (sh_gdbarch_init): Ditto.
5655         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5656         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5657
5658 2003-06-07  Andrew Cagney  <cagney@redhat.com>
5659
5660         * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
5661         "index" with "special_local_sect".  Use strcmp instead of STREQ.
5662         Append period to coments.
5663
5664 2003-06-06  Mark Mitchell  <mark@codesourcery.com>
5665
5666         * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
5667         (elfstab_offset_sections): Likewise.
5668         * gdb-stabs.h (stab_section_info): Likewise.
5669         * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
5670         * objfiles.c (objfile_relocate): Likewise.
5671         * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
5672         * remote.c (get_offsets): Likewise.
5673         (remote_cisco_objfile_relocate): Likewise.
5674         * somread.c (som_symfile_offsets): Likewise.
5675         * symfile.c (alloc_section_addr_info): New function.
5676         (build_section_addr_info_from_section_tab): Use it.
5677         (free_section_addr_info): Adjust.
5678         (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
5679         (syms_from_objfile): Allocate local_addr dynamically.
5680         (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
5681         dynamically.
5682         (add_symbol_file_command): Allocate sect_opts dynamically.
5683         (reread_symbols): Avoid use of SECT_OFF_MAX.
5684         * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
5685         (alloc_section_addr_info): Declare it.
5686         * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
5687         * win32-nat.c (solib_symbols_add): Allocate section_addrs
5688         dynamically.
5689         * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
5690
5691 2003-06-06  Andrew Cagney  <cagney@redhat.com>
5692
5693         * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
5694         (d10v_frame_unwind_cache): Do not set "return_pc".
5695
5696 2003-06-06  Michael Snyder  <msnyder@redhat.com>
5697
5698         * h8300-tdep.c: Make tidy (long lines).
5699
5700 2003-06-06  Michal Ludvig  <mludvig@suse.cz>
5701
5702         * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
5703         to regcache_collect().
5704
5705 2003-06-05  J. Brobecker  <brobecker@gnat.com>
5706
5707         * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
5708         pc_in_sigtramp multiarch method.
5709         (hppa_hpux_som_init_abi): Use it.
5710         (hppa_hpux_elf_init_abi): Likewise.
5711         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
5712         macro has been multiarched.
5713         * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
5714         macro here, as hppa64 isn't multiarched yet.
5715
5716 2003-06-05  Andrew Cagney  <cagney@redhat.com>
5717
5718         * Makefile.in (value_h): Add $(frame_h).
5719         * value.h: Include "frame.h".
5720         (struct value): Replace "frame_addr" with "frame_id".
5721         (VALUE_FRAME_ID): Replace VALUE_FRAME.
5722         * values.c (allocate_value): Use VALUE_FRAME_ID.
5723         (value_copy): Use VALUE_FRAME_ID.
5724         * findvar.c (value_from_register): Use VALUE_FRAME_ID.
5725         * valops.c (value_assign): Update.  Use frame_find_by_id.
5726
5727 2003-06-05  Michal Ludvig  <mludvig@suse.cz>
5728
5729         * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
5730         in each pass.
5731
5732 2003-06-05  Jeff Johnston  <jjohnstn@redhat.com>
5733
5734         * thread-db.c (check_event): For create/death event breakpoints,
5735         loop through all messages to ensure that we read the message
5736         corresponding to the breakpoint we are at.
5737
5738 2003-06-04  Michael Snyder  <msnyder@redhat.com>
5739
5740         * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
5741
5742 2003-06-04  Mark Kettenis  <kettenis@gnu.org>
5743
5744         * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
5745         (read_encoded_value): Handle DW_EH_PE_datarel encoding.
5746         (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
5747         when handling .eh_frame sections.
5748
5749 2003-06-04  J. Brobecker  <brobecker@gnat.com>
5750
5751         * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
5752         prepare_to_proceed procedure instead of the hppa-specific one.
5753         * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
5754
5755 2003-06-04  Jeff Johnston  <jjohnstn@redhat.com>
5756
5757         * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
5758         * config.in: Regenerated.
5759         * configure.in: Add test for syscall function and check for
5760         __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
5761         * configure: Regenerated.
5762         * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
5763         <sys/syscall.h>.
5764         (kill_lwp): New function that uses tkill syscall or
5765         uses kill, depending on whether threading model is nptl or not.
5766         All callers of kill() changed to use kill_lwp().
5767         (lin_lwp_wait): Make special check when WIFEXITED occurs to
5768         see if all threads have already exited in the nptl model.
5769         (stop_and_resume_callback): New callback function used by the
5770         lin_lwp_wait thread exit handling code.
5771         (stop_wait_callback): Check for threads already having exited and
5772         delete such threads fromt the lwp list when discovered.
5773         (stop_callback): Don't assert retcode of kill call.
5774
5775         Roland McGrath  <roland@redhat.com>
5776         * i386-linux-nat.c (ps_get_thread_area): New function needed by
5777         nptl libthread_db.
5778
5779 2003-06-03  Richard Henderson  <rth@redhat.com>
5780
5781         * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
5782         (alpha_sigtramp_frame_this_id): Use get_frame_memory.
5783         (alpha_sigtramp_frame_prev_register): Likewise.
5784         (alpha_heuristic_frame_prev_register): Likewise.
5785         * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
5786
5787         * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
5788         alpha-specific register id names.
5789         (alpha_mdebug_frame_unwind_cache): Likewise.
5790         (alpha_mdebug_frame_prev_register): Likewise.
5791
5792 2003-06-03  Richard Henderson  <rth@redhat.com>
5793
5794         * alpha-tdep.c (alpha_dwarf2_init_abi): New.
5795         * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
5796         * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
5797         * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
5798         unwind routines.
5799         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5800         * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5801         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5802
5803         * alpha-linux-tdep.c: Remove unnecessary includes.
5804         * Makefile.in (alpha-linux-tdep.o): Update.
5805
5806 2003-06-03  Richard Henderson  <rth@redhat.com>
5807
5808         * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
5809         (alphabsd_fill_fpreg): Likewise.
5810
5811 2003-06-03  J. Brobecker  <brobecker@gnat.com>
5812
5813         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr):  Replace
5814         references to struct frame_info fields by calls to the equivalent
5815         accessors. Necessary now that frame_info is opaque.
5816
5817 2003-06-03  J. Brobecker  <brobecker@gnat.com>
5818
5819         * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
5820         (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
5821         structure, field no longer exists.
5822
5823 2003-06-03  J. Brobecker  <brobecker@gnat.com>
5824
5825         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5826         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
5827
5828 2003-06-03  J. Brobecker  <brobecker@gnat.com>
5829
5830         * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
5831         references to struct frame_info fields by calls to the equivalent
5832         accessors. Necessary now that frame_info is opaque.
5833
5834 2003-06-03  J. Brobecker  <brobecker@gnat.com>
5835
5836         * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
5837         (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
5838         structure, field no longer exists.
5839
5840 2003-06-03  Theodore A. Roth  <troth@openavr.org>
5841
5842         * remote.c (init_remote_state): Compute sizeof_g_packet by
5843         accumulation of the size of all registers instead of blindly using
5844         DEPRECATED_REGISTER_BYTES.
5845
5846 2003-06-03  Michael Snyder  <msnyder@redhat.com>
5847
5848         * config/h8300/tm-h8300.h (h8300sxmode): Declare.
5849         * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
5850         for h8300sx.
5851
5852 2003-06-03  J. Brobecker  <brobecker@gnat.com>
5853
5854         * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
5855         * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5856
5857 2003-06-03  Andrew Cagney  <cagney@redhat.com>
5858
5859         * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
5860         (sparc_convert_to_raw): Delete function.
5861         (sparc_gdbarch_init): Do not set register_convert_to_raw or
5862         register_convert_to_virtual.
5863
5864 2003-06-03  Jeff Johnston  <jjohnstn@redhat.com>
5865
5866         * thread-db.c (thread_db_mourn_inferior): Unpush thread target
5867         layer if not dealing with a statically-linked threaded program.
5868
5869 2003-06-03  Kris Warkentin  <kewarken@qnx.com>
5870
5871         * solib.c (solib_open): Update comment to reflect actual search order.
5872
5873 2003-06-03  Andrew Cagney  <cagney@redhat.com>
5874
5875         * frame.c (get_frame_memory_signed): New function.
5876         (get_frame_memory, get_frame_memory_unsigned): New function.
5877         (get_frame_arch): New function.
5878         * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
5879         (get_frame_memory, get_frame_unsigned_memory): Declare.
5880         * d10v-tdep.c (d10v_frame_unwind_cache): Use
5881         get_frame_memory_unsigned and get_frame_arch.
5882         (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
5883
5884 2003-06-03  Raoul Gough  <RaoulGough@yahoo.co.uk>
5885
5886         * MAINTAINERS (write after approval): Add myself.
5887
5888 2003-06-03  Jim Blandy  <jimb@redhat.com>
5889
5890         * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
5891         elements of gregset_t are 64 bits each, but access registers
5892         are still 32 bits, so they're packed two per gregset_t
5893         element.  Unpack/pack them properly.
5894
5895 2003-06-02  David Carlton  <carlton@bactrian.org>
5896
5897         * linespec.c (find_methods): Break out code into
5898         add_matching_methods and add_constructors.
5899         (add_matching_methods): New.
5900         (add_constructors): Ditto.
5901
5902 2003-06-02  Andrew Cagney  <cagney@redhat.com>
5903
5904         * sparc-tdep.c (sparc_print_registers): Delete call to
5905         REGISTER_CONVERTIBLE.
5906         (sparc_gdbarch_init): Do not set register_convertible.
5907         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5908         * frv-tdep.c (frv_gdbarch_init): Ditto.
5909         * cris-tdep.c (cris_gdbarch_init): Ditto.
5910
5911 2003-06-02  Elena Zannoni  <ezannoni@redhat.com>
5912
5913         * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
5914         * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
5915         (syms_from_objfile): Ditto.
5916
5917 2003-06-03  Andreas Schwab  <schwab@suse.de>
5918
5919         * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
5920         (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
5921
5922 2003-06-02  Richard Henderson  <rth@redhat.com>
5923
5924         * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
5925         a member of all_reggroup.
5926
5927 2003-06-02  Richard Henderson  <rth@redhat.com>
5928
5929         * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5930         (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5931         (alpha_lds, alpha_sts): New.
5932         (alpha_convert_register_p): Change from _register_convertible.
5933         (alpha_register_to_value): Change from _convert_to_virtual;
5934         restructure and fail for type sizes other than 4 or 8.
5935         (alpha_value_to_register): Similarly.
5936         (alpha_extract_return_value): Use alpha_sts.
5937         (alpha_store_return_value): Use alpha_lds.
5938         (alpha_gdbarch_init): Update hooks.
5939
5940 2003-06-02  Richard Henderson  <rth@redhat.com>
5941
5942         * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5943         regnum identifiers.
5944         (alpha_sigtramp_register_address): Likewise.
5945
5946 2003-06-02  Richard Henderson  <rth@redhat.com>
5947
5948         * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5949         (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5950         * alpha-tdep.h: Declare them.
5951
5952         * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5953         Remove zerobuf.  Don't error on UNIQUE.
5954         (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5955         (ALPHA_REGSET_UNIQUE): Provide default.
5956         (supply_gregset): Use alpha_supply_int_regs.
5957         (fill_gregset): Use alpha_fill_int_regs.
5958         (supply_fpregset): Use alpha_supply_fp_regs.
5959         (fill_fpregset): Use alpha_fill_fp_regs.
5960         * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5961         (alphabsd_supply_reg): Use alpha_supply_int_regs.
5962         (alphabsd_fill_reg): Use alpha_fill_int_regs.
5963         (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5964         (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5965         * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5966
5967 2003-06-02  Richard Henderson  <rth@redhat.com>
5968
5969         * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5970
5971         * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5972         (alpha_store_return_value): Likewise.
5973
5974 2003-06-02  David Carlton  <carlton@math.stanford.edu>
5975
5976         * block.c (contained_in): Add 'const' to arguments.
5977         (block_function): Ditto.
5978         * block.h: Update declarations for block_function and
5979         contained_in.
5980
5981 2003-06-02  David Carlton  <carlton@math.stanford.edu>
5982
5983         * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5984         * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5985         * p-valprint.c (pascal_val_print): Ditto.
5986         * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5987
5988 2003-06-02  Richard Henderson  <rth@redhat.com>
5989
5990         * alpha-tdep.c (alpha_push_dummy_call): Use
5991         builtin_type_ieee_double_little instead of builtin_type_double.
5992
5993         * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
5994         sign-extension of 32-bit values.
5995         (alpha_store_return_value): Similarly.
5996
5997         * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5998         (alpha_extract_return_value): Likewise.
5999         (alpha_store_return_value): Likewise.
6000
6001         * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
6002         (alpha_store_return_value): Error on IEEE Quad floats.
6003
6004         * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
6005         (alpha_extract_struct_value_address): Likewise.
6006         (alpha_store_return_value): Likewise.
6007         (alpha_store_struct_return): Remove.
6008         (alpha_gdbarch_init): Update hook registration to match.
6009
6010         * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
6011         deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
6012         macros where appropriate.
6013         (alpha_register_convert_to_raw): Similarly.  Use unpack_long.
6014         (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
6015
6016         * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
6017         for SP, GP; void_func_ptr for PC; non-language-specific types
6018         for all others.
6019         * alpha-tdep.h (ALPHA_GP_REGNUM): New.
6020
6021 2003-06-02  Richard Henderson  <rth@redhat.com>
6022
6023         * top.h (lim_at_start): Declare.
6024         * main.c (captured_main): Set it.
6025         * top.c (lim_at_start): Define.
6026         (command_loop): Use it instead of &environ.
6027         * event-top.c (command_handler): Likewise.
6028
6029 2003-06-01  Jason Thorpe  <thorpej@wasabisystems.com>
6030
6031         * mipsnbsd-tdep.c: Update copyright years.
6032         (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
6033
6034 2003-06-01  Richard Henderson  <rth@redhat.com>
6035
6036         * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
6037         (alpha-linux-tdep.o): Update dependencies.
6038         (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
6039         * alpha-mdebug-tdep.c: Remove unneeded includes.
6040
6041 2003-06-01  Richard Henderson  <rth@redhat.com>
6042
6043         * alpha-tdep.c (alpha_register_reggroup_p): New.
6044         (alpha_gdbarch_init): Register it.
6045
6046 2003-06-02  Andrew Cagney  <cagney@redhat.com>
6047
6048         * dwarfread.c: Eliminate "register"
6049         (decode_die_type): Eliminate assignment within "if".
6050         (struct_type, decode_array_element_type): Ditto.
6051         (dwarf_read_array_type, read_tag_pointer_type): Ditto.
6052         (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
6053         (decode_modified_type, completedieinfo): Ditto.
6054         * block.c: Eliminate "register".
6055         (blockvector_for_pc_sect): Eliminate assignment within "if".
6056         * cp-support.h (struct symbol): Opaque declaration.
6057         * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
6058
6059 2003-06-01  Richard Henderson  <rth@redhat.com>
6060
6061         * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
6062         (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
6063
6064 2003-06-01  Adam Fedor  <fedor@gnu.org>
6065
6066         * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
6067         * gdbarch.[ch]: Regenerate.
6068         * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
6069         (hppa_gdbarch_init): Set it in the gdbarch vector.
6070         * i386-tdep.c (i386_fetch_pointer_argument): New
6071         (i386_gdbarch_init): Set it into gdbarch.
6072         * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
6073         (rs6000_gdbarch_init): Set it in gdbarch.
6074         * sparc-tdep.c (sparc_fetch_pointer_argument): New
6075         (sparc_gdbarch_init): Set it in gdbarch.
6076
6077 2003-06-01  Andrew Cagney  <cagney@redhat.com>
6078
6079         * defs.h (extract_address): Delete declaration.
6080         * findvar.c (extract_address): Delete function.
6081         * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
6082         extract_address with the inline equivalent,
6083         extract_unsigned_integer.
6084         (xstormy16_extract_struct_value_address): Ditto.
6085         (xstormy16_pointer_to_address): Ditto.
6086         * vax-tdep.c (vax_extract_struct_value_address): Ditto.
6087         * v850-tdep.c (v850_push_arguments): Ditto.
6088         (v850_extract_return_value): Ditto.
6089         (v850_extract_struct_value_address): Ditto.
6090         * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
6091         (sparcnbsd_get_longjmp_target_64): Ditto.
6092         * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
6093         (get_longjmp_target): Ditto.
6094         * sh-tdep.c (sh_extract_struct_value_address): Ditto.
6095         (sh64_extract_struct_value_address): Ditto.
6096         (sh_push_arguments): Ditto.
6097         (sh64_push_arguments): Ditto.
6098         * remote-vxsparc.c (vx_read_register): Ditto.
6099         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
6100         * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
6101         * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
6102         * mipsv4-nat.c (get_longjmp_target): Ditto.
6103         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
6104         * mips-nat.c (get_longjmp_target): Ditto.
6105         * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
6106         * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
6107         * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
6108         * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
6109         * irix5-nat.c (get_longjmp_target): Ditto.
6110         * irix4-nat.c (get_longjmp_target): Ditto.
6111         * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
6112         (ia64_push_arguments): Ditto.
6113         * hpux-thread.c (hpux_thread_store_registers): Ditto.
6114         * h8300-tdep.c (h8300_push_arguments): Ditto.
6115         (h8300_store_return_value): Ditto.
6116         (h8300_extract_struct_value_address): Ditto.
6117         * frv-tdep.c (frv_extract_struct_value_address): Ditto.
6118         (frv_push_arguments): Ditto.
6119         * avr-tdep.c (avr_pointer_to_address): Ditto.
6120         (avr_push_arguments): Ditto.
6121         * arm-tdep.c (arm_push_dummy_call): Ditto.
6122         (arm_get_longjmp_target): Ditto.
6123         * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6124         * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
6125         (alpha_get_longjmp_target): Ditto.
6126
6127         * solib-irix.c (extract_mips_address): Inline extract_address,
6128         replacing it with extract_signed_integer.
6129         * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6130         (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
6131         (first_link_map_member, open_symbol_file_object): Ditto.
6132         (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
6133         * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6134         (LM_NEXT, LM_NAME): Ditto.
6135
6136 2003-06-01  Richard Henderson  <rth@redhat.com>
6137
6138         * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
6139         * alpha-tdep.c (alpha_register_name): Remove vfp entry.
6140         (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
6141         (alpha_cannot_store_register): Likewise.
6142         * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
6143         * alpha-nat.c (supply_gregset): Likewise.
6144         * alphanbsd-tdep.c (fetch_core_registers): Likewise.
6145
6146 2003-06-01  Andrew Cagney  <cagney@redhat.com>
6147
6148         * infcall.c (call_function_by_hand): Update comment on
6149         DEPRECATED_DUMMY_WRITE_SP.
6150
6151         * mips-tdep.c (mips_gdbarch_init): Do not set
6152         deprecated_dummy_write_sp.
6153         (mips_eabi_push_dummy_call): Set the SP register.
6154         (mips_o64_push_dummy_call): Set the SP register.
6155         (mips_o32_push_dummy_call): Set the SP register.
6156         (mips_n32n64_push_dummy_call): Set the SP register.
6157
6158 2003-06-01  Richard Henderson  <rth@redhat.com>
6159
6160         * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
6161         instead of ALPHA_MAX_REGISTER_RAW_SIZE.
6162         (supply_gregset): Likewise.
6163         * alpha-tdep.c (alpha_store_return_value): Likewise.
6164         (alpha_get_longjmp_target): Likewise.
6165         (alpha_register_name): Constify array.
6166         (alpha_gdbarch_init): Remove deprecated_fp_regnum,
6167         deprecated_register_size, deprecated_register_bytes,
6168         deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
6169         * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
6170         (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
6171
6172 2003-06-01  Richard Henderson  <rth@redhat.com>
6173
6174         * alpha-tdep.c (alpha_push_dummy_call): Store sp.  Tidy copies
6175         from arg_reg_buffer to regcache to avoid double conversion.
6176
6177 2003-06-01  Mark Kettenis  <kettenis@gnu.org>
6178
6179         * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
6180         SP_REGNUM.
6181         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
6182         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
6183
6184 2003-06-01  Richard Henderson  <rth@redhat.com>
6185
6186         * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
6187         (decode_frame_entry): Set it.  Skip FDE augmentation.
6188
6189 2003-06-01  Richard Henderson  <rth@redhat.com>
6190
6191         * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
6192         not overlapping PC_REGNUM.
6193
6194 2003-06-01  Richard Henderson  <rth@redhat.com>
6195
6196         * alpha-tdep.c (alpha_push_dummy_call): Transmography from
6197         alpha_push_arguments.  Don't dump argument register data to
6198         the target stack.  Fix float and 128-bit long double semantics.
6199         Store $t12 and $ra as specified by the ABI.  Use regcache everywhere.
6200         (alpha_fix_call_dummy): Remove.
6201         (alpha_call_dummy_words): Remove.
6202         (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
6203
6204 2003-06-01  Richard Henderson  <rth@redhat.com>
6205
6206         * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
6207
6208 2003-06-01  Andrew Cagney  <cagney@redhat.com>
6209
6210         * mips-tdep.c (is_mips16_addr): New function.
6211         (make_mips16_addr, unmake_mips16_addr): New functions.
6212         (pc_is_mips16, mips_fetch_instruction): Use.
6213         (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
6214         (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
6215         (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
6216         UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
6217         TARGET_MIPS.
6218         * config/mips/tm-mips.h: Update copyright.
6219         (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
6220         (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
6221         (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
6222         * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
6223         (TM_PRINT_INSN_MACH): Delete.
6224         * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
6225
6226         * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
6227         mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
6228         mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
6229         mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
6230         mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*.  Delete
6231         mips*tx39*el*-elf*.  Map mips*-sony-* and mips64*-big-* onto
6232         mips64.  Map mips*-dec-*, mips*-big-*, mips*-little-*,
6233         mips*-*-riscos* and mips*-*-sysv* onto mips.
6234         * config/mips/mips64.mt: New file.
6235         * config/mips/mips.mt: New file.
6236         * config/mips/littlemips.mt: Delete file.
6237         * config/mips/decstation.mt: Delete file.
6238         * config/mips/vr4300el.mt: Delete file.
6239         * config/mips/vr5000el.mt: Delete file.
6240         * config/mips/vr5000.mt: Delete file.
6241         * config/mips/vr4100.mt: Delete file.
6242         * config/mips/vr4xxxel.mt: Delete file.
6243         * config/mips/vr4300.mt: Delete file.
6244         * config/mips/vr4xxx.mt: Delete file.
6245         * config/mips/bigmips.mt: Delete file.
6246         * config/mips/bigmips64.mt: Delete file.
6247         * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
6248         * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
6249         * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
6250         * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
6251         * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
6252         "tm-bigmips.h".
6253         * config/mips/tm-irix3.h: Ditto.
6254         * config/mips/tm-mipsv4.h: Ditto.
6255         * config/mips/tm-embed.h: Ditto.
6256         * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
6257         "tm-bigmips64.h".
6258         * config/mips/tm-vr5000el.h: Delete file.
6259         * config/mips/tm-tx39l.h: Delete file.
6260         * config/mips/tm-vr4300el.h: Delete file.
6261         * config/mips/tm-vr4xxxel.h: Delete file.
6262         * config/mips/tm-vr4300.h: Delete file.
6263         * config/mips/tm-vr4100.h: Delete file.
6264         * config/mips/tm-vr4xxx.h: Delete file.
6265         * config/mips/tm-vr5000.h: Delete file.
6266         * config/mips/tm-embedl64.h: Delete file.
6267         * config/mips/tm-embedl.h: Delete file.
6268         * config/mips/tm-embed64.h: Delete file.
6269         * config/mips/tm-bigmips64.h: Delete file.
6270         * config/mips/tm-bigmips.h: Delete file.
6271
6272 2003-06-01  Mark Kettenis  <kettenis@gnu.org>
6273
6274         Fix gdb/1216.
6275         * shnbsd-nat.c: Include "sh-tdep.h".
6276
6277         From Richard Henderson  <rth@redhat.com>:
6278         * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
6279
6280 2003-05-31  Andrew Cagney  <cagney@redhat.com>
6281
6282         * mips-tdep.c (set_reg_offset): Add saved_regs parameter.  Add
6283         forward declaration.
6284         (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6285         (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6286         (mips_find_saved_regs): Use set_reg_offset.
6287         (mips_frame_init_saved_regs): Delete function.
6288         (mips_pop_frame): Call mips_find_saved_regs instead of
6289         DEPRECATED_FRAME_INIT_SAVED_REGS.
6290
6291 2003-05-31  Andrew Cagney  <cagney@redhat.com>
6292
6293         * mips-tdep.c (mips_gdbarch_init): Do not set
6294         deprecated_max_register_raw_size, register_virtual_size, and
6295         deprecated_max_register_virtual_size.
6296
6297 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
6298
6299         * i386-tdep.c: Include "dwarf2-frame.h".
6300         (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
6301         * Makefile.in (i386-tdep.o): Update dependencies.
6302
6303         * dwarf2-frame.c, dwarf2-frame.h: New files.
6304         * Makefile.in (SFILES): Add dwarf2-frame.c.
6305         (dwarf2_frame_h): Define.
6306         (COMMON_OBS): Add dwarf2-frame.o.
6307         (dwarf2-frame.o): Add dependencies.
6308
6309 2003-05-31  Andreas Jaeger  <aj@suse.de>
6310
6311         * x86-64-linux-nat.c: Fix comment.
6312
6313 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
6314
6315         * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
6316         function signature.
6317
6318         * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
6319         have a sigcontext_addr handler.
6320         * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
6321         sigcontext_addr handler.
6322
6323 2003-05-31  Andrew Cagney  <cagney@redhat.com>
6324
6325         * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
6326         (print_fp_register_row): Replace do_fp_register_row.
6327         (mips_print_fp_register): Add "file" and "frame" parameters.
6328         (mips_print_register): Add "file" and "frame" parameters.
6329         (mips_print_registers_info): Replace mips_do_registers_info.
6330         (mips_gdbarch_init): Set print_registers_info instead of
6331         deprecated_do_registers_info.
6332         (mips_read_fp_register_single): Add "frame" parameter.
6333         (mips_read_fp_register_double): Add "frame" parameter.
6334
6335 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
6336
6337         * i386-tdep.c (i386_register_name): Check for MMX registers first.
6338         Fixes a bug where GDB would print the wrong register names for
6339         targets without SSE.
6340
6341         * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
6342         (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6343         registers.
6344
6345         * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
6346         (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
6347         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6348         TDEP->sc_sp_offset.
6349
6350         From Michal Ludvig  <mludvig@suse.cz>:
6351         * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
6352         and `sc_num_regs'.
6353         (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6354         I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6355         I386_ST0_REGNUM): Move here from...
6356         * i386-tdep.c: ... here.
6357         (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
6358         (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6359         registers if possible.
6360         (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
6361         * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
6362         Remove variables.
6363         (i386bsd_sc_reg_offset): New variable.
6364         (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
6365         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6366         TDEP->sc_sp_offset.
6367         (i386fbsd_sc_reg_offset): New variable.
6368         (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
6369         TDEP->sc_num_regs.
6370         (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
6371         variables.
6372         (i386fbsd4_sc_reg_offset): New variable.
6373         (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
6374         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6375         TDEP->sc_sp_offset.
6376         * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
6377         (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
6378         * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
6379         Remove variables.
6380         (i386nbsd_sc_reg_offset): New variable.
6381         (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
6382         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6383         TDEP->sc_sp_offset.
6384         * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
6385         Remove variables.
6386         (i386obsd_sc_reg_offset): New variable.
6387         (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
6388         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6389         TDEP->sc_sp_offset.
6390         * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
6391         i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c.  Add check
6392         for frame pointer offset in `struct sigcontext'.
6393
6394 2003-05-31  Andrew Cagney  <cagney@redhat.com>
6395
6396         * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
6397         architecture methods call_dummy_words, sizeof_call_dummy_words,
6398         push_return_address, store_struct_return, and fix_call_dummy.  Set
6399         push_dummy_call instead of deprecated_push_arguments.
6400         (mips_store_struct_return): Delete function.
6401         (mips_fix_call_dummy): Delete function.
6402         (mips_push_return_address): Delete function.
6403         (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
6404         RA_REGNUM and T9_REGNUM.
6405         (mips_n32n64_push_dummy_call): Ditto for
6406         mips_n32n64_push_arguments.
6407         (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
6408         (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
6409
6410 2003-05-31  Andrew Cagney  <cagney@redhat.com>
6411
6412         * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter.  Rename
6413         "dummy_addr" to "bp_addr".
6414         * infcall.c (call_function_by_hand): Pass "funaddr" to
6415         gdbarch_push_dummy_call.
6416         * gdbarch.h, gdbarch.c: Re-generate.
6417         * i386-tdep.c (i386_push_dummy_call): Update.
6418         * arm-tdep.c (arm_push_dummy_call): Update.
6419         * d10v-tdep.c (d10v_push_dummy_call): Update.
6420
6421 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
6422
6423         * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
6424         variable declarations.
6425         (x86_64_register_number, x86_64_register_name): Remove prototypes.
6426         (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
6427         x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
6428         x86_64_init_frame_pc, x86_64_init_frame_pc,
6429         x86_64_function_has_prologue): Remove prototypes.
6430         (X86_64_NUM_GREGS): New define.
6431         (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
6432         * x86-64-tdep.c: Don't include "dwarf2cfi.h".  Include
6433         "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
6434         (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
6435         XMM1_REGNUM): Remove defines.
6436         (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
6437         X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
6438         X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
6439         X86_64_XMM1_REGNUM): New defines.
6440         (struct x86_64_register_info): Renamed from `struct
6441         register_info'.  Remove `size' member.
6442         (x86_64_register_info_table): Remove variable.
6443         (x86_64_register_info): New variable.
6444         (X86_64_NUM_REGS): New define.
6445         (X86_64_NUM_GREGS): Remove define.
6446         (x86_64_num_regs, x86_64_num_gregs): Remove variables.
6447         (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
6448         Remove variables.
6449         (x86_54_dwarf2_reg_to_regnum): Remove function.
6450         (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
6451         (x86_64_dwarf_reg_to_regnum): New function.
6452         (x86_64_register_name): Rewrite.
6453         (x86_64_register_raw_size): Remove function.
6454         (x86_64_register_byte_table): Remove variable.
6455         (x86_64_register_byte): Remove function.
6456         (x86_64_register_virtual_type): Remove function.
6457         (x86_64_register_type): New function.
6458         (x86_64_register_convertible, x86_64_register_convert_to_virtual,
6459         x86_64_register_convert_to_raw): Remove functions.
6460         (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
6461         (x86_64_use_struct_convention): Make static.  Adjust for renamed
6462         defines.
6463         (x86_64_frame_init_saved_regs): Remove function.
6464         (x86_64_push_arguments): Make static.  Change to accept a regcache
6465         as argument.
6466         (x86_64_store_return_value, x86_64_extract_return_value): Make
6467         static.  Rewrite based on i386 counterparts.
6468         (x86_64_push_dummy_call): New function.
6469         (X86_64_NUM_SAVED_REGS): New define.
6470         (x86_64_register_number): Remove function.
6471         (x86_64_store_struct_return): Remove function.
6472         (x86_64_frameless_function_invocation,
6473         x86_64_function_has_prologue): Remove functions.
6474         (PROLOG_BUFSIZE): Remove define.
6475         (struct x86_64_frame_cache): New structure.
6476         (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
6477         x86_64_frame_cache, x86_64_frame_this_id,
6478         x86_64_frame_prev_register, x86_64_frame_p,
6479         x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
6480         x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
6481         functions.
6482         (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
6483         variables.
6484         (x86_64_skip_prologue): Rewrite in terms of
6485         x86_64_analyze_prologue.
6486         (x86_64_frame_base_address): New function.
6487         (x86_64_frame_base): New variable.
6488         (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
6489         (x86_64_init_abi): Set register_type and push_dummy_call.  Don't
6490         set deprecated_fp_regnum, deprecated_register_size,
6491         deprecated_register_bytes, register_raw_size, register_byte,
6492         register_virtual_type, register_convertiable,
6493         register_convert_to_virtual, convert_to_raw,
6494         deprecated_get_saved_register, deprecated_target_read_fp,
6495         deprecated_push_arguments, deprecated_push_return_address,
6496         deprecated_pop_frame, deprecated_store_struct_return,
6497         deprecated_frame_init_saved_regs, deprecated_frame_chain,
6498         frameless_function_invocation, deprecated_frame_saved_pc,
6499         deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
6500         dwarf2_build_frame_info, deprecated_init_extra_frame_info,
6501         deprecated_init_frame_pc and virtual_frame_pointer.  Call
6502         frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
6503         and x86_64_frame_p.  Call frame_base_set_default to register
6504         x86_64_frame_base.
6505         (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
6506         (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
6507         (_initialize_x86_64_tdep): Remove function.
6508         * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
6509         (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
6510         LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
6511         define.
6512         (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
6513         (x86_64_linux_sigcontext_addr): Rewrite.
6514         (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
6515         x86_64_linux_frame_saved_pc): Remove functions.
6516         (x86_64_linux_pc_in_sigtramp): Renamed from
6517         x86_64_linux_in_sigtramp.  Try harder to recognize a signal
6518         trampoline.
6519         (x86_64_linux_frame_chain, x86_64_init_frame_pc):
6520         Remove_functions.
6521         (x86_64_linux_init_abi): Set pc_in_sigtramp.  Initialize
6522         TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6523         * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
6524         (x86_64_regmap): Rename to regmap.
6525         (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
6526         x86_64_num_gregs.
6527         (supply_gregset, fill_gregset): Likewise.  Use regmap instead of
6528         x86_64_regmap.
6529         (x86_64_fxsave_offset): Remove function.
6530         (supply_fpregset): Simply call x86_64_supply_fxsave.
6531         (fill_fpregset): Simply call x86_64_fill_fxsave.
6532         (fetch_inferior_registers, store_inferior_registers): Avoid
6533         asignment in if-statement.
6534         (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
6535         SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
6536         LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
6537         (fetch_core_registers): Remove function.
6538         (linux_elf_core_fns): Remove.
6539         (offsetoff): Don't define.
6540         (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
6541         * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
6542         * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
6543         add core-regset.o.
6544         * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
6545         protection against multiple includes instead of NM_X86_64_h.  Add
6546         various comments.  Include "config/nm-linux.h".  Don't include
6547         <signal.h>.
6548         (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
6549         GET_THREAD_SIGNALS): Remove defines.
6550         (x86_64_register_u_addr, kernel_u_size,
6551         lin_thread_get_thread_signals): Remove prototypes.
6552         (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
6553         [HAVE_LINK_H]: Don't include "solib.h".
6554         [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
6555         * config/i386/tm-x86-64linux.h: Fix comments.
6556         * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
6557         x86-64-tdep.o): Update dependencies.
6558
6559 2003-05-30  Andrew Cagney  <cagney@redhat.com>
6560
6561         * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
6562         Change parameter type to a "struct regcache *".
6563
6564         * gdbarch.sh: Regardless of the multi-arch level, always define
6565         the macro when not already defined.
6566         * gdbarch.h, gdbarch.c: Re-generate.
6567
6568 2003-05-30  Richard Henderson  <rth@redhat.com>
6569
6570         * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
6571         (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
6572         (alpha_mdebug_frame_this_id): Likewise.
6573         (alpha_mdebug_frame_prev_register): Likewise.
6574         (alpha_mdebug_frame_base_address): Likewise.
6575         (alpha_mdebug_frame_locals_address): Likewise.
6576         (alpha_mdebug_frame_args_address): Likewise.
6577         (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
6578         * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
6579         (alpha_heuristic_frame_unwind_cache): Make static; add missing
6580         loop increment.
6581         (alpha_heuristic_frame_this_id): Make static.
6582         (alpha_heuristic_frame_prev_register): Likewise.
6583         (alpha_heuristic_frame_base_address): Likewise.
6584         * alpha-tdep.h: Update.
6585
6586 2003-05-30  Mark Kettenis  <kettenis@gnu.org>
6587
6588         * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
6589         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
6590         defenitions.
6591         (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
6592         * i386-tdep.c: Mark functions that are 64-bit safe as such.
6593         (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6594         I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6595         I386_ST0_REGNUM): New defines.
6596         (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
6597         codestream_get): Remove define.
6598         (codestream_next_addr, condestream_addr, condestream_buf,
6599         codestream_off, codestream_cnt): Remove variables.
6600         (codestream_fill, codestream_seek, codestream_read): Remove
6601         functions.
6602         (i386_follow_jump): Rewrite to avoid usage of removed codestream
6603         functionality.
6604         (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
6605         i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
6606         i386_frame_saved_pc, i386_saved_pc_after_call,
6607         i386_frame_num_args, i386_frame_init_saved_regs,
6608         i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
6609         i386_push_arguments): Remove functions.
6610         (i386_skip_prologue): Rewrite to avoid usage of removed codestream
6611         functionality.  Use i386_analyze_prologue instead of
6612         i386_get_frame_setup.
6613         (I386_NUM_SAVED_REGS): New define.
6614         (struct i386_frame_cache): New structure.
6615         (i386_alloc_frame_cache, i386_analyze_struct_return,
6616         i386_skip_probe, i386_analyze_frame_setup,
6617         i386_analyze_register_saves, i386_analyze_prologue,
6618         i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
6619         i386_frame_prev_register, i386_sigtramp_frame_cache,
6620         i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
6621         i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
6622         i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
6623         New functions.
6624         (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
6625         New variables.
6626         (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
6627         I386_EAX_REGNUM and I386_EDX_REGNUM.
6628         (i386_extract_return_value, i386_store_return_value): Use
6629         I386_ST0_REGNUM where appropriate.
6630         (i386_extract_struct_value_address): Rewrite to use extract_address.
6631         (i386_svr4_pc_in_sigtramp): Add comment.
6632         (i386_svr4_sigcontext_addr): Rewrite.
6633         (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
6634         TDEP->sc_sp_offset.
6635         (i386_gdbarch_init): Don't set deprecated_init_frame_pc.  Set
6636         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
6637         of new defines.  Set push_dummy_call, don't set
6638         deprecated_push_arguments, deprecated_push_return_address,
6639         deprecated_pop_frame.  Don't set parm_boundary.  Don't set
6640         deprecated_frame_chain, deprecated_frame_saved_pc,
6641         deprecated_saved_pc_after_call.  Set unwind_dummy_id,
6642         save_dummy_frame_tos, unwind_pc.  Call
6643         frame_unwind_append_predicate and frame_base_set_default.  Don't
6644         set deprecated_dummy_write_pc.  Don't set deprecated_fp_regnum.
6645         Don't set frameless_function_invocation.  Don't set
6646         deprecated_register_bytes, deprecated_register_size,
6647         deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
6648         * i386-linux-tdep.c: Fix formatting in some comments.
6649         (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
6650         LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
6651         LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
6652         LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
6653         LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
6654         redundant parentheses.
6655         (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
6656         (i386_linux_sigcontext_addr): Use it.  Rewrite.
6657         (find_minsym_and_objfile): Change name of second argument.
6658         (skip_gnu_resolver): Renamed from skip_hurd_resolver.  All callers
6659         changed.  Use frame_pc_unwind instead of
6660         DEPRECATED_SAVED_PC_AFTER_CALL.
6661         (i386_linux_init_abi): Don't set deprecated_register_bytes.
6662         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
6663         * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
6664         unwinder.
6665         * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
6666         "dummy-frame.h".
6667         (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
6668         (_initialize_i386_cygwin_tdep): New prototype.
6669         (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
6670         deprecated_frame_chain_valid.
6671         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
6672         TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6673         Rely on the SVR4 defaults.
6674         * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
6675         * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
6676
6677 2003-05-30  Andrew Cagney  <cagney@redhat.com>
6678
6679         * infcall.c (call_function_by_hand): Always call
6680         DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
6681
6682 2003-05-30  Richard Henderson  <rth@redhat.com>
6683
6684         * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
6685         increment.
6686
6687 2003-05-29  Jim Blandy  <jimb@redhat.com>
6688
6689         Use gdbarch methods for solib stuff on PowerPC Linux.
6690         * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
6691         SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
6692         show through.
6693         * ppc-linux-tdep.c (ppc_linux_init_abi): Register
6694         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
6695         giving the same effect as the #definitions above.
6696
6697 2003-05-29  Adam Fedor  <fedor@gnu.org>
6698
6699         * objc-lang.c (CONVERT_FUNCPTR): Remove macro
6700         (find_implementation_from_class): Replace it with the standard
6701         case i.e. do nothing.
6702
6703 2003-05-29  Richard Henderson  <rth@redhat.com>
6704
6705         * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
6706         (alpha_linux_sigtramp_offset): Use it.  Make static.
6707         (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
6708         update for new frame model.
6709         * alpha-mdebug-tdep.c: New file.
6710         * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
6711         (alpha_osf1_init_abi): Install it.
6712         * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
6713         (linked_proc_desc_table): Remove.
6714         (alpha_frame_past_sigtramp_frame): Remove.
6715         (alpha_dynamic_sigtramp_offset): Remove.
6716         (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
6717         (alpha_proc_desc_is_dyn_sigtramp): Remove.
6718         (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
6719         (push_sigtramp_desc): Remove.
6720         (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
6721         (alpha_cannot_store_register): Likewise.
6722         (alpha_sigcontext_addr): Remove.
6723         (alpha_find_saved_regs): Remove.
6724         (alpha_frame_init_saved_regs): Remove.
6725         (alpha_init_frame_pc_first): Remove.
6726         (read_next_frame_reg): Remove.
6727         (alpha_frame_saved_pc): Remove.
6728         (alpha_saved_pc_after_call): Remove.
6729         (temp_proc_desc, temp_saved_regs): Remove.
6730         (alpha_about_to_return): Remove.
6731         (cached_proc_desc): Remove.
6732         (alpha_frame_chain): Remove.
6733         (alpha_print_extra_frame_info): Remove.
6734         (alpha_init_extra_frame_info): Remove.
6735         (alpha_frame_locals_address): Remove.
6736         (alpha_frame_args_address): Remove.
6737         (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
6738         (alpha_push_dummy_frame): Remove.
6739         (alpha_pop_frame): Remove.
6740         (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
6741         (alpha_read_insn): New.
6742         (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
6743         for different insn encodings.
6744         (alpha_in_lenient_prologue): Remove.
6745         (struct alpha_sigtramp_unwind_cache): New.
6746         (alpha_sigtramp_frame_unwind_cache): New.
6747         (alpha_sigtramp_register_address): New.
6748         (alpha_sigtramp_frame_this_id): New.
6749         (alpha_sigtramp_frame_prev_register): New.
6750         (alpha_sigtramp_frame_unwind): New.
6751         (alpha_sigtramp_frame_p): New.
6752         (struct alpha_heuristic_unwind_cache): New.
6753         (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
6754         don't count nop insns that occur between functions.
6755         (alpha_heuristic_frame_unwind_cache): New; incorporate much of
6756         heuristic_proc_desc, but without the mdebug wrapping.
6757         (alpha_heuristic_frame_this_id): New.
6758         (alpha_heuristic_frame_prev_register): New.
6759         (alpha_heuristic_frame_unwind): New.
6760         (alpha_heuristic_frame_p): New.
6761         (alpha_heuristic_frame_base_address): New.
6762         (alpha_heuristic_frame_base): New.
6763         (alpha_unwind_dummy_id): New.
6764         (alpha_unwind_pc): New.
6765         (alpha_gdbarch_init): Don't set skip_sigtramp_frame.  Kill use of
6766         frame related deprecated initializations; install replacements.
6767         (alpha_dump_tdep): Remove.
6768         * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
6769         (alpha_read_insn, alpha_after_prologue,
6770         alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
6771         alpha_heuristic_frame_prev_register,
6772         alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
6773         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6774         * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
6775         * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
6776
6777 2003-05-29  Andrew Cagney  <cagney@redhat.com>
6778
6779         * gdb_assert.h (gdb_assert_fail): Provide different definitions
6780         dependant on the availability of ASSERT_FUNCTION.
6781         (ASSERT_FUNCTION): Do not define when there is no function name.
6782
6783 2003-05-29  Kevin Buettner  <kevinb@redhat.com>
6784
6785         From Jimi X <jimix@watson.ibm.com>:
6786         * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
6787
6788 2003-05-28  Jim Blandy  <jimb@redhat.com>
6789
6790         * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
6791         argument to ptrace to int; the system headers should give it the
6792         right type, and pointers don't fit in ints on powerpc64-*-*.
6793
6794 2003-05-28  H.J. Lu <hongjiu.lu@intel.com>
6795
6796         * dwarf2read.c (process_die): Handle DW_TAG_try_block and
6797         DW_TAG_catch_block.
6798
6799 2003-05-26  Elena Zannoni  <ezannoni@redhat.com>
6800
6801         * stabsread.c (dbx_lookup_type): Make static.
6802         (read_type): Ditto.
6803         (add_undefined_type): Ditto.
6804         * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
6805         not export.
6806
6807 2003-05-26  Elena Zannoni  <ezannoni@redhat.com>
6808
6809         * hpread.c (hpread_has_name): Make static.
6810         (hpread_psymtab_to_symtab): Ditto.
6811         (file_exists): Ditto.
6812         (hpread_call_pxdb): Ditto.
6813         (hpread_pxdb_needed): Ditto.
6814         (hpread_quick_traverse): Ditto.
6815         (hpread_get_header): Ditto.
6816         (hpread_get_lntt): Ditto.
6817         (hpread_get_slt): Ditto.
6818         (class_of): Ditto.
6819
6820 2003-05-25  Andreas Schwab  <schwab@suse.de>
6821
6822         * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
6823         stack_align and deprecated_extra_stack_alignment_needed.
6824         (m68k_stack_align): Delete.
6825
6826         * m68k-tdep.c (m68k_register_raw_size): Remove cast.
6827         (m68k_register_virtual_size): Likewise.
6828         (altos_skip_prologue): Remove obsolete function.
6829         (isi_frame_num_args): Likewise.
6830         (news_frame_num_args): Likewise.
6831         (m68k_fix_call_dummy): Make static.
6832         (m68k_push_dummy_frame): Likewise.
6833         (m68k_pop_frame): Likewise.
6834         (m68k_skip_prologue): Likewise.
6835         (m68k_frame_init_saved_regs): Likewise.
6836         (m68k_saved_pc_after_call): Likewise.
6837         (m68k_get_longjmp_target): Make multi-arch.
6838         (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
6839         structure.  Register m68k_get_longjmp_target if enabled.
6840         * m68k-tdep.h (struct gdbarch_tdep): Define.
6841         * config/m68k/tm-m68k.h: Don't include "regcache.h".
6842
6843         * Makefile.in (config.status): Also depend on configure.tgt
6844         and configure.host.
6845         (m68klinux-tdep.o): Update dependencies.
6846         * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
6847         * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
6848         (M68K_LINUX_JB_PC): Define.
6849         (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
6850         and take additional parameter.
6851         (m68k_linux_sigtramp_saved_pc): Update.
6852         (m68k_linux_init_abi): Set jb_pc and jb_elt_size.  Register
6853         m68k_linux_pc_in_sigtramp, in_plt_section,
6854         find_solib_trampoline_target.
6855         * config/m68k/tm-linux.h: Don't include any tm headers.
6856         (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
6857         (JB_ELEMENT_SIZE): Likewise.
6858         (JB_PC): Likewise.
6859         (GET_LONGJMP_TARGET): Likewise.
6860         (IN_SIGTRAMP): Likewise.
6861         (SVR4_SHARED_LIBS): Define this and include "solib.h".
6862
6863 2003-05-25  Mark Kettenis  <kettenis@gnu.org>
6864
6865         * sparc-tdep.c (sparc32_do_push_arguments): New function.
6866         (sparc32_push_arguments): Re-implement by calling
6867         sparc32_do_push_arguments.
6868
6869 2003-05-25  Mark Kettenis  <kettenis@gnu.org>
6870
6871         * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
6872         SPARC_O1_REGNUM): New defines.
6873         (sparc32_extract_return_value): Rewrite to operate on a regcache.
6874         (sparc32_store_return_value): New function.
6875         (sparc_extract_struct_value_address): Rewrite to operate on a
6876         regcache.
6877         (sparc_gdbarch_init): Don't set
6878         deprecated_extract_struct_value_address.  Set
6879         extract_struct_value_address instead. Don't set
6880         deprecated_extract_return_value and deprecated_store_return_value
6881         for 32-bit targets.  Set extract_return_value and
6882         store_return_value instead.
6883         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
6884         DEPRECTAED_EXTRACT_RETURN_VALUE,
6885         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
6886         (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
6887         EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
6888         (sparc_store_return_value): Remove prototype.
6889         (sparc32_store_return_value): New prototype.
6890         (sparc32_extract_return_value, sparc_extract_struct_value_address):
6891         Adjust prototypes.
6892
6893 2003-05-24  Mark Kettenis  <kettenis@gnu.org>
6894
6895         * sparcnbsd-tdep.c: Include "gdb_string.h".
6896
6897 2003-05-23  Andrew Cagney  <cagney@redhat.com>
6898
6899         * p-valprint.c (pascal_val_print): Replace extract_address with
6900         the inline equivalent extract_unsigned_integer.
6901         * jv-valprint.c (java_value_print): Ditto.
6902         * ada-valprint.c (ada_val_print_1): Ditto.
6903         * ada-lang.h (EXTRACT_ADDRESS): Ditto.
6904
6905 2003-05-23  Theodore A. Roth  <troth@openavr.org>
6906
6907         * blockframe.c (frameless_look_for_prologue): Remove unused
6908         after_prologue variable.
6909
6910 2003-05-23  Mark Kettenis  <kettenis@gnu.org>
6911
6912         * blockframe.c (get_pc_function_start): Rewrite to avoid
6913         asignments in if-statements.
6914
6915 2003-05-23  Raoul Gough  <RaoulGough@yahoo.co.uk>
6916
6917         Committed by Elena Zannoni  <ezannoni@redhat.com>.
6918         * coffread.c(coff_symtab_read): Do relocate static symbols from PE
6919         files, don't relocate absolute symbols (and do use mst_abs).
6920
6921 2003-05-23  Andrew Cagney  <cagney@redhat.com>
6922
6923         * objc-lang.c: Include "gdb_assert.h".
6924         (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
6925         (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
6926         (gdb_check, gdb_check_fatal): Delete functions.
6927         (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
6928         gdb_assert.
6929         (parse_selector, parse_method, find_methods, find_imps): Ditto.
6930         * Makefile.in (objc-lang.o): Update dependencies.
6931
6932 2003-05-22  Ian Lance Taylor  <ian@airs.com>
6933
6934         * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6935         with fprintf_filtered, not fprintf_unfiltered.
6936
6937 2003-05-22  Andrew Cagney  <cagney@redhat.com>
6938
6939         * stack.c (frame_info): Inline extract_address, replacing it with
6940         extract_unsigned_integer.
6941         * findvar.c (unsigned_pointer_to_address): Ditto.
6942         * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6943         * dwarf2expr.c (dwarf2_read_address): Ditto.
6944         * frame.c (frame_pc_unwind): Update comment.
6945         * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6946
6947 2003-05-22  Jeff Johnston  <jjohnstn@redhat.com>
6948
6949         * infptrace.c (detach): Call print_sys_errmsg rather than
6950         perror_with_name to issue warning message when errno is non-zero
6951         after calling ptrace detach.
6952
6953 2003-05-21  J. Brobecker  <brobecker@gnat.com>
6954
6955         * config/pa/tm-hppa.h: Delete some unused macros. Move some
6956         macro definitions from here...
6957         * hppa-tdep.c: ...to there.
6958
6959 2003-05-20  Kevin Buettner  <kevinb@redhat.com>
6960
6961         * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6962         register_ptrace_addr().  Fix all callers.
6963
6964 2003-05-21  Andreas Schwab  <schwab@suse.de>
6965
6966         * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6967         dependencies.
6968         * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6969         end.
6970         * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6971         (_initialize_m68k_linux_tdep): New function.
6972         (m68k_linux_frame_saved_pc): Make static.
6973         (m68k_linux_extract_return_value): Likewise.
6974         (m68k_linux_store_return_value): Likewise.
6975         (m68k_linux_extract_struct_value_address): Likewise.
6976         * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6977         Remove.
6978         (DEPRECATED_STORE_RETURN_VALUE): Remove.
6979         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6980         (DEPRECATED_FRAME_SAVED_PC): Remove.
6981
6982 2003-05-20  Kris Warkentin  <kewarken@qnx.com>
6983
6984         * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6985         regset numbering rather than our own.
6986
6987 2003-05-19  David Carlton  <carlton@bactrian.org>
6988
6989         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6990
6991 2003-05-19  David Carlton  <carlton@bactrian.org>
6992
6993         Partial fix for PR c++/827.
6994         * cp-support.h: Include symtab.h.
6995         Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6996         * cp-namespace.c: Update contributors.
6997         (cp_lookup_symbol_nonlocal): New.
6998         (lookup_namespace_scope, cp_lookup_symbol_namespace)
6999         (lookup_symbol_file): Ditto.
7000         * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
7001         * block.h: Declare block_scope, block_using, block_global_block.
7002         * block.c (block_scope): New.
7003         (block_using, block_global_block): Ditto.
7004         * Makefile.in (cp_support_h): Depend on symtab_h.
7005         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
7006
7007 2003-05-19  David Carlton  <carlton@bactrian.org>
7008
7009         * language.h (struct language_defn): Add 'la_value_of_this'
7010         and 'la_lookup_symbol_nonlocal' members.
7011         * symtab.h: Declare basic_lookup_symbol_nonlocal,
7012         lookup_symbol_static, lookup_symbol_global,
7013         lookup_symbol_aux_block.
7014         * symtab.c (lookup_symbol_aux): Call language hooks to determine
7015         if we should search fields of this and how to do static/global
7016         lookup.
7017         (lookup_symbol_aux_block): Make extern.
7018         (basic_lookup_symbol_nonlocal): New.
7019         (lookup_symbol_static, lookup_symbol_global): Ditto.
7020         * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
7021         'la_lookup_symbol_nonlocal' members.
7022         * c-lang.c (c_language_defn, cplus_language_defn)
7023         (asm_language_defn, minimal_language_defn): Ditto.
7024         * jv-lang.c (java_language_defn): Ditto.
7025         * language.c (unknown_language_defn, auto_language_defn)
7026         (local_language_defn): Ditto.
7027         * m2-lang.c (m2_language_defn): Ditto.
7028         * objc-lang.c (objc_language_defn): Ditto.
7029         * scm-lang.c (scm_language_defn): Ditto.
7030         * f-lang.c (f_language_defn): Ditto, and include value.h as well.
7031         * p-lang.c (pascal_language_defn): Ditto for both.
7032         * Makefile.in (f-lang.o): Depend on value_h.
7033         (p-lang.o): Ditto.
7034
7035 2003-05-19  David Carlton  <carlton@bactrian.org>
7036
7037         * block.h: Declare block_static_block.
7038         * block.c (block_static_block): New.
7039         * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
7040         lookup_symbol_aux_local, calling block_static_block instead.
7041         (lookup_symbol_aux_local): Delete 'static_block' argument.
7042
7043 2003-05-19  David Carlton  <carlton@bactrian.org>
7044
7045         * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
7046
7047 2003-05-19  Michal Ludvig  <mludvig@suse.cz>
7048
7049         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
7050         register numbers mapping.
7051
7052 2003-05-18  Adam Fedor  <fedor@gnu.org>
7053
7054         * symtab.c (completion_list_objc_symbol): New function.
7055         (make_symbol_completion_list): Use it to add ObjC symbols
7056         when looking though the list.
7057         (language_search_unquoted_string): New function.
7058         (make_file_symbol_completion_list): Use it.
7059
7060 2003-05-18  Andreas Schwab  <schwab@suse.de>
7061
7062         * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
7063         dependencies.
7064         * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
7065         as m68k_linux_extract_return_value.
7066         (DEPRECATED_STORE_RETURN_VALUE): Define as
7067         m68k_linux_store_return_value.
7068         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7069         m68k_linux_extract_struct_value_address.
7070         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
7071         get_next_frame, get_frame_base, get_frame_pc.
7072         (m68k_linux_frame_saved_pc): Use get_frame_base.
7073         (m68k_linux_extract_return_value): New function.
7074         (m68k_linux_store_return_value): New function.
7075         (m68k_linux_extract_struct_value_address): New function.
7076         * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
7077
7078         * c-exp.y (typebase): Remove duplicate occurence of
7079         `SIGNED_KEYWORD LONG LONG'.  Use builtin_type_long_long instead
7080         of lookup_signed_typename.
7081
7082 2003-05-18  Mark Kettenis  <kettenis@gnu.org>
7083
7084         * dwarf2loc.c (find_location_expression): Change type of second
7085         argument to `size_t *'.
7086         (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
7087         for size variable.
7088
7089 2003-05-18  David Carlton  <carlton@bactrian.org>
7090
7091         * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
7092         'linkage_name'.  Add comment.
7093         (lookup_symbol_aux_local): Rename 'mangled_name' argument to
7094         'linkage_name'.
7095         (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
7096         (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
7097         (lookup_block_symbol): Ditto.
7098
7099 2003-05-16  Andrew Cagney  <cagney@redhat.com>
7100
7101         * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
7102         * gdbarch.h, gdbarch.c: Re-generate.
7103         * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
7104         * TODO (REGISTER_BYTES): Delete reference.
7105         * alpha-tdep.c (alpha_gdbarch_init): Update.
7106         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7107         * x86-64-tdep.c (x86_64_init_abi): Update.
7108         * vax-tdep.c (vax_gdbarch_init): Update.
7109         * v850-tdep.c (v850_gdbarch_init): Update.
7110         * sparc-tdep.c (sparc_gdbarch_init): Update.
7111         * sh-tdep.c (sh_gdbarch_init): Update.
7112         * s390-tdep.c (s390_gdbarch_init): Update.
7113         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7114         * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
7115         (ns32k_gdbarch_init_32382): Update.
7116         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7117         * mcore-tdep.c (mcore_gdbarch_init): Update.
7118         * m68k-tdep.c (m68k_gdbarch_init): Update.
7119         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7120         * ia64-tdep.c (ia64_gdbarch_init): Update.
7121         * i386-tdep.c (i386_gdbarch_init): Update.
7122         * i386-linux-tdep.c (i386_linux_init_abi): Update.
7123         * hppa-tdep.c (hppa_gdbarch_init): Update.
7124         * h8300-tdep.c (h8300_gdbarch_init): Update.
7125         * frv-tdep.c (frv_gdbarch_init): Update.
7126         * cris-tdep.c (cris_gdbarch_init): Update.
7127         * avr-tdep.c (avr_gdbarch_init): Update.
7128         * arm-tdep.c (arm_gdbarch_init): Update.
7129         * sparc-tdep.c (sparc_pop_frame): Update.
7130         * rs6000-tdep.c (rs6000_pop_frame): Update.
7131         * remote.c (init_remote_state): Update.
7132         (remote_prepare_to_store): Update.
7133         * remote-vx.c (vx_prepare_to_store): Update.
7134         * remote-sds.c (sds_fetch_registers): Update.
7135         (sds_prepare_to_store): Update.
7136         * remote-array.c: Update.
7137         * regcache.c (init_legacy_regcache_descr): Update.
7138         (init_regcache_descr): Update.
7139         * mips-tdep.c (mips_eabi_extract_return_value): Update.
7140         (mips_o64_extract_return_value): Update.
7141         * irix5-nat.c (fetch_core_registers): Update.
7142         * irix4-nat.c (fetch_core_registers): Update.
7143         * i386-tdep.h: Update.
7144         * hppa-tdep.c (pa_do_registers_info): Update.
7145         (pa_do_strcat_registers_info): Update.
7146         * cris-tdep.c (cris_register_bytes_ok): Update.
7147         * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
7148         * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
7149         * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
7150         * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
7151         * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
7152         * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
7153         * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
7154         * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
7155         * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
7156         * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
7157         * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
7158         * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
7159         (REGISTER_BYTES_OK): Update.
7160         * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
7161         * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
7162
7163 2003-05-16  Ian Lance Taylor  <ian@airs.com>
7164
7165         * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
7166         (vax_print_insn, print_insn_arg): Remove static functions.
7167         (vax_gdbarch_init): Call set_gdbarch_print_insn with
7168         print_insn_vax from opcodes library.
7169         (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
7170
7171 2003-05-15  Andrew Cagney  <cagney@redhat.com>
7172
7173         * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
7174         * target.h (memory_breakpoint_from_pc): Delete declaration.
7175         * mem-break.c (memory_breakpoint_from_pc): Delete function.
7176         * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
7177         * monitor.c (monitor_insert_breakpoint): Use
7178         gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
7179         * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
7180         * gdbarch.h, gdbarch.c: Re-generate.
7181         * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
7182         (sparc_gdbarch_init): Set breakpoint_from_pc to
7183         sparc_breakpoint_from_pc.
7184         * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
7185         (BREAKPOINT_FROM_PC): Define.
7186         (sparc_breakpoint_from_pc): Declare.
7187         * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
7188         * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
7189         (BREAKPOINT_FROM_PC): Define.
7190         (BREAKPOINT): Delete macro.
7191         * target.h: Update comment.
7192         * s390-tdep.c (s390_gdbarch_init): Update comments.
7193         * remote.c: Update comments.
7194         * remote-mips.c: Update comments.
7195         * proc-api.c (write_with_trace): Do not check for a breakpoint.
7196         * mem-break.c: Update comment.
7197         * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
7198         (ia64_memory_insert_breakpoint): Update.
7199         * config/sparc/tm-sparc.h: Update comment.
7200         * config/pa/tm-hppa64.h: Update comment.
7201         * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7202         (rs6000_breakpoint_from_pc): Update.
7203         * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7204         (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
7205         (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
7206         (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
7207         (mips_breakpoint_from_pc): Update.
7208         (mips_dump_tdep): Update.
7209
7210         * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
7211         * minsyms.c (lookup_minimal_symbol): Inline
7212         DEPRECATED_SYMBOL_MATCHES_NAME.  Replace STREQ with strcmp.
7213
7214         * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
7215         * p-valprint.c (pascal_object_print_value_fields): Ditto.
7216         * p-lang.c (pascal_printstr): Ditto.
7217         * objc-lang.c (objc_printstr): Ditto.
7218         * m2-lang.c (m2_printstr): Ditto.
7219         * jv-valprint.c (java_print_value_fields): Ditto.
7220         * f-lang.c (f_printstr): Ditto.
7221         * cp-valprint.c (cp_print_value_fields): Ditto.  Include "valprint.h".
7222         * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
7223         for repeat_count_threshold.
7224         * Makefile.in (cp-valprint.o): Update dependencies.
7225
7226 2003-05-15  Jeff Johnston  <jjohnstn@redhat.com>
7227
7228         * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
7229         (examine_prologue): Support looking through leaf functions, knowing
7230         they start with mov r2,r12.  Support skipping over indirect stores
7231         of the input registers.  Upon hitting a non-nop branch instruction
7232         or predicated instruction, bail out by setting lim_pc to the current
7233         pc value in the loop.  At the end, if the lim_pc value is still
7234         beyond our calculated value and we have trust_limit set,
7235         use the lim_pc value.
7236
7237 2003-05-15  Andrew Cagney  <cagney@redhat.com>
7238
7239         * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
7240         generic_find_dummy_frame.
7241         * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
7242         (deprecated_generic_find_dummy_frame): Update.
7243         (deprecated_read_register_dummy): Update.
7244         * frame.c (deprecated_generic_get_saved_register): Update.
7245
7246 2003-05-15  Theodore A. Roth  <troth@openavr.org>
7247
7248         * avr-tdep.c (avr_breakpoint_from_pc): New function.
7249         (avr_gdbarch_init): Set breakpoint_from_pc method.
7250
7251 2003-05-15  Andrew Cagney  <cagney@redhat.com>
7252
7253         * regcache.c (build_regcache): Set deprecated_register_valid
7254         directly.
7255         (deprecated_grub_regcache_for_register_valid): Delete function.
7256         * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
7257         declaration.
7258
7259 2003-05-15  David Carlton  <carlton@bactrian.org>
7260
7261         Committed by Elena Zannoni <ezannoni@redhat.com>
7262         * symtab.c (lookup_symbol_aux): Delete calls to
7263         lookup_symbol_aux_minsyms.
7264         (lookup_symbol_aux_minsyms): Comment out function and
7265         prototype. Delete lookup by mangled name.
7266
7267 2003-05-14  Kevin Buettner  <kevinb@redhat.com>
7268
7269         * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
7270         correctly indicate an empty stack and ``stack_allocated'' to the
7271         indicate the number of elements initially allocated.
7272         (dwarf_expr_grow_stack): Simplify method for computing new
7273         stack size.  Don't loop infinitely if ``stack_len'' is zero.
7274         (execute_stack_op): Move ``ctx->in_reg'' initialization
7275         out of loop.  Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
7276         be used in conjuction with DW_OP_piece.  Revise error message
7277         accordingly.
7278
7279 2003-05-14  Theodore A. Roth  <troth@openavr.org>
7280
7281         * MAINTAINERS: Update my email address.
7282         * avr-tdep.c: Ditto.
7283
7284 2003-05-14  Elena Zannoni  <ezannoni@redhat.com>
7285
7286         * symtab.h (enum domain_enum): Rename from namespace_enum.
7287         (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
7288         VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
7289         Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
7290         LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
7291         TYPES_NAMESPACE, METHODS_NAMESPACE.
7292         (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
7293         (struct symbol, struct partial_symbol): Rename field
7294         'namespace_enum namespace' to 'domain_enum domain'.
7295         (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
7296         Delete old define kludge for namespace.
7297
7298         * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
7299         blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
7300         dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
7301         gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
7302         language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
7303         mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
7304         p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
7305         stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
7306         valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
7307         occurrences of the above.
7308
7309 2003-05-14  Ian Lance Taylor  <ian@airs.com>
7310
7311         * Makefile.in (install-only): Use $(SHELL) when running
7312         mkinstalldirs.
7313
7314 2003-05-13  Ian Lance Taylor  <ian@airs.com>
7315
7316         * MAINTAINERS (write after approval): Add myself.
7317
7318         * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
7319         second and third arguments.
7320         * ser-tcp.c (_initialize_ser_tcp): Likewise.
7321         * ser-unix.c (_initialize_ser_hardwire): Likewise.
7322
7323 2003-05-13  Andrew Cagney  <cagney@redhat.com>
7324
7325         * defs.h (store_address): Delete declaration.
7326         findvar.c (store_address): Delete function.
7327         * arm-tdep.c (arm_push_dummy_call): Replace store_address with
7328         store_unsigned_integer.
7329         * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
7330         * v850-tdep.c (v850_push_arguments): Ditto.
7331         * sparc-tdep.c (sparc_get_saved_register): Ditto.
7332         * sh-tdep.c (sh64_get_saved_register): Ditto.
7333         * rs6000-tdep.c (rs6000_push_arguments): Ditto.
7334         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
7335         * mips-tdep.c (mips_eabi_push_arguments): Ditto.
7336         (mips_get_saved_register): Ditto.
7337         * ia64-tdep.c (ia64_get_saved_register): Ditto.
7338         (find_func_descr, ia64_push_arguments): Ditto.
7339         * i386-tdep.c (i386_push_arguments): Ditto.
7340         * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
7341         * frv-tdep.c (frv_push_arguments): Ditto.
7342         * frame.c (legacy_saved_regs_prev_register): Ditto.
7343         (deprecated_generic_get_saved_register): Ditto.
7344         * findvar.c (unsigned_address_to_pointer): Ditto.
7345         * dwarf2read.c (dwarf2_const_value): Ditto.
7346         * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7347         * alpha-tdep.c (alpha_push_arguments): Ditto.
7348
7349 2003-05-12  J. Brobecker  <brobecker@gnat.com>
7350
7351         * NEWS: Mention that the hppa-hpux port has been partially
7352         multiarched (32bit ABIT only, so far).
7353
7354 2003-05-11  Andrew Cagney  <cagney@redhat.com>
7355
7356         * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
7357         * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
7358         include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
7359         sim/testsuite/sim/arm/misaligned2.ms, and
7360         sim/testsuite/sim/arm/misaligned3.ms.
7361         * disasm.h (struct ui_file): Add opaque struct declaration.
7362         * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
7363         * frame.h (struct ui_file): Ditto.
7364
7365 2003-05-11  Mark Kettenis  <kettenis@gnu.org>
7366
7367         * value.h: Pretty print.
7368
7369 2003-05-10  Mark Kettenis  <kettenis@gnu.org>
7370
7371         * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
7372
7373 2003-05-08  Andrew Cagney  <cagney@redhat.com>
7374
7375         * regcache.h (max_register_size): Delete declaration.
7376         * regcache.c (max_register_size): Delete function.
7377         (struct regcache_descr): Delete field "max_register_size".
7378         (init_regcache_descr, init_legacy_regcache_descr): Assert that all
7379         registers fit in MAX_REGISTER_SIZE.
7380         (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
7381         (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
7382         * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
7383         * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
7384         * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
7385         * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
7386         * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
7387         * dve3900-rom.c, hppa-tdep.c: Ditto.
7388
7389 2003-05-08  David Carlton  <carlton@math.stanford.edu>
7390
7391         * valops.c (push_word): Fix typo.
7392
7393 2003-05-08  Andrew Cagney  <cagney@redhat.com>
7394
7395         * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
7396         * gdbarch.h: Re-generate.
7397         * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
7398         (legacy_max_register_raw_size): Delete declaration.
7399         * regcache.c (legacy_max_register_raw_size): Delete function.
7400         * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
7401         * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
7402         * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
7403         * remote-rdp.c, remote-array.c, regcache.c: Ditto.
7404         * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
7405         * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
7406         * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
7407         * findvar.c, dwarf2cfi.c: Ditto.
7408
7409 2003-05-08  Andrew Cagney  <cagney@redhat.com>
7410
7411         * mips-tdep.c (read_signed_register): New function, moved to here
7412         from "regcache.c".
7413         (read_signed_register_pid): Ditto.
7414         * regcache.c (read_signed_register_pid): Delete function, moved to
7415         "mips-tdep.c".
7416         (read_signed_register): Ditto.
7417         * regcache.h (read_signed_register): Delete declaration.
7418         (read_signed_register_pid): Delete declaration.
7419
7420 2003-05-08  Andrew Cagney  <cagney@redhat.com>
7421
7422         * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
7423         * gdbarch.h: Re-generate.
7424         * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
7425         (legacy_max_register_virtual_size): Delete declaration.
7426         * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
7427         * d10v-tdep.c (d10v_print_registers_info): Ditto.
7428         * tracepoint.c (memrange_sortmerge): Ditto.
7429         * sparc-tdep.c (sparc_print_registers): Ditto.
7430         * regcache.c (legacy_max_register_virtual_size): Delete function.
7431
7432 2002-05-08  J. Brobecker  <brobecker@gnat.com>
7433
7434         * fork-child.c (escape_bang_in_quoted_argument): New function.
7435         (fork_inferior): Escape '!' characters in quoted arguments
7436         only when needed.
7437
7438 2003-05-08  J. Brobecker  <brobecker@gnat.com>
7439
7440         * dwarf2read.c (set_cu_language): Set the language to "minimal" if
7441         the language of the CU is not currently supported by GDB.
7442
7443 2003-05-08  J. Brobecker  <brobecker@gnat.com>
7444
7445         * defs.h (language): Add language_minimal enum value.
7446         * c-lang.c (minimal_language_defn): New language definition.
7447         (_initialize_c_language): Add the new minimal language to the list
7448         of languages known to GDB.
7449
7450 2003-05-08  Kevin Buettner  <kevinb@redhat.com>
7451
7452         * frame.c (get_frame_type): Don't attempt to lazily initialize
7453         frame's unwinder for legacy frames.
7454
7455 2003-05-07  Andrew Cagney  <cagney@redhat.com>
7456
7457         * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
7458         and "regcache" parameters.
7459         * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
7460
7461 2003-05-07  Jeff Johnston  <jjohnstn@redhat.com>
7462
7463         * dwarf2read.c (dwarf_decode_lines): Only use output of
7464         check_cu_functions() when calling record_line().  Do not update
7465         the current address.
7466
7467 2003-05-07  Andrew Cagney  <cagney@redhat.com>
7468
7469         * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
7470         code.
7471
7472 2003-05-07  Jim Blandy  <jimb@redhat.com>
7473
7474         Rename commands 'maint list symtabs' and 'maint list psymtabs' to
7475         'maint info symtabs' and 'maint info psymtabs'.
7476         * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
7477         Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
7478         * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
7479         Declarations updated.
7480         * maint.c (maintenance_list_command): Delete.
7481         (_initialize_maint_cmds): Update calls to add_cmd.
7482         * gdbcmd.h (maintenancelistlist): Delete declaration.
7483         * cli/cli-cmds.c (maintenancelistlist): Delete.
7484         (init_cmd_lists): Don't initialize it.
7485         * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
7486
7487 2003-05-07  Andrew Cagney  <cagney@redhat.com>
7488
7489         * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
7490         "regcache".
7491         (d10v_print_registers_info): Update.
7492         (d10v_dmap_register, d10v_imap_register): Delete functions.
7493         (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
7494         and "imap_register".
7495         (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
7496         (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
7497         * arch-utils.c (generic_remote_translate_xfer_address): Add
7498         "regcache" and "gdbarch" parameters.
7499         * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
7500         parameter.  Change class to multi-arch.
7501         * gdbarch.h, gdbarch.c: Re-generate.
7502         * remote.c (remote_xfer_memory): Use
7503         gdbarch_remote_translate_xfer_address.
7504
7505 2003-05-07  Jeff Johnston  <jjohnstn@redhat.com>
7506
7507         * infrun.c (prev_pc): Move declaration ahead of proceed().
7508         (proceed): Refresh prev_pc value before resuming.
7509         (stop_stepping): Remove code to refresh prev_pc.
7510
7511 2003-05-06  Kris Warkentin <kewarken@qnx.com>
7512
7513         * nto-tdep.c: Removed stray comment.
7514
7515 2003-05-06  Kris Warkentin <kewarken@qnx.com>
7516
7517         * i386-nto-tdep.c: Fix old K&R function definitions.
7518         * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
7519         Also change add_show_from_set() call to add_setshow_cmd().
7520         * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
7521
7522 2003-05-05  Andrew Cagney  <cagney@redhat.com>
7523
7524         * dummy-frame.c: Include "command.h" and "gdbcmd.h".
7525         (fprint_dummy_frames): New function.
7526         (maintenance_print_dummy_frames): New function.
7527         (_initialize_dummy_frame): Add command "maint print dummy-frames".
7528         * frame.c (fprint_frame_id): Make global.
7529         * frame.h (fprint_frame_id): Declare.
7530         * Makefile.in (dummy-frame.o): Update dependencies.
7531
7532 2003-05-05  Andrew Cagney  <cagney@redhat.com>
7533
7534         * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
7535         (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
7536         SIZEOF_CALL_DUMMY_WORDS.
7537         (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
7538         (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
7539         (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
7540         CALL_DUMMY_BREAKPOINT_OFFSET.
7541         (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
7542         CALL_DUMMY_START_OFFSET.
7543         (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
7544         * gdbarch.h, gdbarch.c: Re-generate.
7545         * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
7546         * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
7547         * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
7548         * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
7549         * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
7550         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
7551         * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
7552         * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
7553         * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
7554         * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
7555         * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
7556         * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
7557         * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
7558         * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
7559         * config/sparc/tm-sparc.h: Update.
7560
7561 2003-05-05  Kris Warkentin <kewarken@qnx.com>
7562
7563         * configure.tgt: Add i[3456]86-*-nto*.
7564         * i386-nto-tdep.c: New file.  i386 specific support for QNX Neutrino.
7565         * nto-tdep.c: New file. Neutrino target support routines.
7566         * nto-tdep.h: New file. Neutrino target header.
7567         * config/tm-qnxnto.h: New file.
7568         * config/i386/i386nto.mt: New file.
7569         * config/i386/tm-i386nto.h: New file.
7570
7571 2003-05-04  Andrew Cagney  <cagney@redhat.com>
7572
7573         * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
7574         (load_infrun_state): Ditto.
7575         (struct thread_info): Drop "prev_func_name" field.
7576         * thread.c (load_infrun_state): Update.
7577         (save_infrun_state): Update.
7578         * infrun.c (prev_func_name): Delete variable.
7579         (init_wait_for_inferior): Do not clear prev_func_name.
7580         (stop_stepping, keep_going, context_switch): Do not swap
7581         prev_func_name.
7582         (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
7583         instead of PC_IN_SIGTRAMP.
7584
7585 2003-05-04  Andrew Cagney  <cagney@redhat.com>
7586
7587         * sentinel-frame.c (sentinel_frame_prev_register): Replace
7588         REGISTER_BYTE with register_offset_hack.
7589         * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
7590         that REGISTER_BYTE is consistent with the regcache.
7591         * gdbarch.sh (REGISTER_BYTE): Add a predicate.
7592         * gdbarch.h, gdbarch.c: Regenerate.
7593
7594 2003-05-04  Mark Kettenis  <kettenis@gnu.org>
7595
7596         * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
7597         (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
7598
7599         * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
7600
7601 2003-05-03  J. Brobecker  <brobecker@gnat.com>
7602
7603         From Thierry Schneider <tpschneider1@yahoo.com>
7604         * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
7605         (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
7606         (mi-cmd-symbol.o): Add rule.
7607
7608 2003-05-03  Andrew Cagney  <cagney@redhat.com>
7609
7610         * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
7611         comments noteing that it replaces the old FIX_CALL_DUMMY code.
7612         * gdbarch.h, gdbarch.c: Re-generate.
7613         * d10v-tdep.c (d10v_push_dummy_code): New function.
7614         (d10v_gdbarch_init): Set push_dummy_code.
7615         * infcall.c (legacy_push_dummy_code): New function.
7616         (generic_push_dummy_code): New function.
7617         (push_dummy_code): New function.
7618         (call_function_by_hand): Call push_dummy_code.  Pass bp_addr,
7619         instead of dummy_addr, to push_dummy_call.  Move call to
7620         generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
7621         switch.
7622         * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
7623
7624 2003-05-03  Andrew Cagney  <cagney@redhat.com>
7625
7626         * disasm.h (print_insn): Declare.
7627         * disasm.c (init_gdb_disassemble_info): New function.
7628         (gdb_disassembly): Call init_gdb_disassemble_info.
7629         (gdb_print_insn): New function.
7630         * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
7631         of TARGET_PRINT_INSN.  Send debug info to "gdb_stdlog".
7632         * mcore-tdep.c: Include "disasm.h"
7633         (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
7634         * d10v-tdep.c: Include "disasm.h".
7635         (display_trace): Call gdb_print_insn, instead of print_insn.
7636         (print_insn): Delete function.
7637         * printcmd.c: Include "disasm.h".
7638         (print_insn): Delete function.
7639         (print_formatted): Call gdb_print_insn, instead of print_insn.
7640         * Makefile.in (printcmd.o): Update dependencies.
7641         (mcore-tdep.o, d10v-tdep.o): Ditto.
7642
7643 2003-05-02  Andrew Cagney  <cagney@redhat.com>
7644
7645         * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
7646         PC_REGNUM, re-indent.
7647         * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
7648         PC_REGNUM isn't set.
7649
7650         * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
7651         * gdbarch.h, gdbarch.c: Re-generate.
7652         * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
7653         register_virtual_size, pc_regnum, or register_bytes.
7654         (D10V_PC_REGNUM): Rename _PC_REGNUM.
7655         (d10v_register_type): Use D10V_PC_REGNUM.
7656         (d10v_print_registers_info, d10v_read_pc): Ditto.
7657         (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
7658         (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
7659
7660 2003-05-02  David Carlton  <carlton@bactrian.org>
7661
7662         * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
7663         the name with mstrsave.
7664
7665 2003-05-02  Elena Zannoni  <ezannoni@redhat.com>
7666
7667         * charset.c (GDB_DEFAULT_TARGET_CHARSET,
7668         GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
7669         (host_charset_name, target_charset_name): New vars for use by
7670         set/show commands.
7671         (host_charset_enum, target_charset_enum): New enums for set/show
7672         commands.
7673         (set_charset_sfunc, set_host_charset_sfunc,
7674         set_target_charset_sfunc): New functions.
7675         (set_host_charset, set_target_charset): Make static.
7676         (list_charsets, set_host_charset_command,
7677         set_target_charset_command): Delete functions.
7678         (show_charset_command): Rewrite as....
7679         (show_charset): Hook this up with the set/show command mechanism.
7680         (_initialize_charset): Change names of charsets to match the
7681         set/show enums. Use host_charset_name and target_charset_name.
7682         Use set/show mechanism for charset, host-charset, target-charset
7683         commands. Do not make 'show host-charset' and 'show
7684         target-charset' be aliases of 'show charset'.
7685
7686         * charset.h (set_host_charset, set_target_charset): Don't export,
7687         they are not used outside the file.
7688
7689 2003-05-01  Andrew Cagney  <cagney@redhat.com>
7690
7691         * disasm.c (gdb_disassemble_from_exec): Delete global variable.
7692         (gdb_disassembly): Make "di" non static, always initialize and
7693         cleanup.  Always use dis_asm_read_memory.
7694         (gdb_dis_asm_read_memory): Delete function.
7695
7696 2003-05-01  Andrew Cagney  <cagney@redhat.com>
7697
7698         * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
7699         (d10v_gdbarch_init): Set frame_align instead of stack_align.
7700
7701 2003-04-30  Andrew Cagney  <cagney@redhat.com>
7702
7703         * gdbarch.sh (deprecated_tm_print_insn_info): Rename
7704         "tm_print_insn_info".
7705         (TARGET_PRINT_INSN_INFO): Delete macro.
7706         (dis_asm_read_memory): Delete function declaration.
7707         (dis_asm_memory_error, dis_asm_print_address): Ditto.
7708         (tm_print_insn_info): Delete variable definition.
7709         (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
7710         * gdbarch.h, gdbarch.c: Re-generate.
7711         * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
7712         "deprecated_tm_print_insn_info".
7713         * mcore-tdep.c (mcore_dump_insn): Ditto.
7714         * mips-tdep.c (mips_gdbarch_init): Ditto.
7715         * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
7716         * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
7717         * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
7718         * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
7719         instead of TARGET_PRINT_INSN_INFO, add comment.
7720         * s390-tdep.c (s390_get_frame_info): Instead of
7721         "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
7722         (s390_check_function_end, s390_is_sigreturn): Ditto.
7723         * corefile.c (dis_asm_read_memory): Move to "disasm.c".
7724         (dis_asm_memory_error, dis_asm_print_address): Ditto.
7725         * disasm.c: Include "gdbcore.h".
7726         (_initialize_disasm): New function, initialize
7727         "deprecated_tm_print_insn_info".
7728         (deprecated_tm_print_insn_info): New variable.
7729         (dis_asm_read_memory): Moved from "corefile.c", made static.
7730         (dis_asm_print_address, dis_asm_memory_error): Ditto.
7731         * Makefile.in (disasm.o): Update dependencies.
7732
7733 2003-04-30  Andrew Cagney  <cagney@redhat.com>
7734
7735         * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
7736
7737 2003-04-29  Adam Fedor  <fedor@gnu.org>
7738
7739         * eval.c (evaluate_subexp_standard): Handle ObjC ops.
7740         * infcall.c (find_function_addr): Make non-static.
7741         * infcall.h (find_function_addr): Declare.
7742         * Makefile.in (eval.o): Update dependencies.
7743
7744 2003-04-28  Adam Fedor  <fedor@gnu.org>
7745
7746         * symtab.c (symbol_find_demangled_name): Check for and demangle
7747         ObjC symbols.
7748         (symbol_init_demangled_name): Init for language_objc as well.
7749
7750 2003-04-28  Andrew Cagney  <cagney@redhat.com>
7751
7752         * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
7753         (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
7754         * gdbarch.h, gdbarch.c: Re-generate.
7755         * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
7756         DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
7757         * inferior.h (deprecated_read_fp): Rename read_fp.
7758         (generic_target_read_fp): Delete declaration.
7759         * regcache.c (generic_target_read_fp): Delete function.
7760         (deprecated_read_fp): Replace read_fp, use
7761         DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
7762         * d10v-tdep.c (d10v_read_fp): Delete function.
7763         (d10v_gdbarch_init): Do not set deprecated_read_fp.
7764
7765         * sparc-tdep.c (sparc_gdbarch_init): Do not set
7766         deprecated_target_read_fp to generic_target_read_fp.
7767         * sh-tdep.c (sh_gdbarch_init): Ditto.
7768         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7769         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7770         * frv-tdep.c (frv_gdbarch_init): Ditto.
7771
7772         * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
7773         deprecated_fp_regnum.
7774         * x86-64-tdep.c (x86_64_init_abi): Ditto.
7775         * vax-tdep.c (vax_gdbarch_init): Ditto.
7776         * v850-tdep.c (v850_gdbarch_init): Ditto.
7777         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7778         * sh-tdep.c (sh_gdbarch_init): Ditto.
7779         * s390-tdep.c (s390_gdbarch_init): Ditto.
7780         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7781         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7782         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7783         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7784         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7785         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7786         * i386-tdep.c (i386_gdbarch_init): Ditto.
7787         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7788         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7789         * frv-tdep.c (frv_gdbarch_init): Ditto.
7790         * cris-tdep.c (cris_gdbarch_init): Ditto.
7791         * avr-tdep.c (avr_gdbarch_init): Ditto.
7792         * arm-tdep.c (arm_gdbarch_init): Ditto.
7793         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7794
7795         * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
7796         * v850-tdep.c (v850_gdbarch_init): Ditto.
7797         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7798         * sh-tdep.c (sh_gdbarch_init): Ditto.
7799         * s390-tdep.c (s390_gdbarch_init): Ditto.
7800         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7801         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7802         * mips-tdep.c (mips_gdbarch_init): Ditto.
7803         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7804         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7805         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7806         * frv-tdep.c (frv_gdbarch_init): Ditto.
7807         * avr-tdep.c (avr_gdbarch_init): Ditto.
7808         * arm-tdep.c (arm_gdbarch_init): Ditto.
7809
7810         * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
7811         DEPRECATED_FP_REGNUM.
7812         (vax_push_dummy_frame, vax_pop_frame): Ditto.
7813         * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
7814         * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
7815         (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
7816         (sparc32_register_virtual_type): Ditto.
7817         * sh-tdep.c (sh64_frame_chain): Ditto.
7818         (sh64_get_saved_register, sh64_pop_frame): Ditto.
7819         (sh_nofp_frame_init_saved_regs): Ditto.
7820         (sh64_nofp_frame_init_saved_regs): Ditto.
7821         (sh_fp_frame_init_saved_regs): Ditto.
7822         * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7823         * remote-e7000.c (fetch_regs_from_dump): Ditto.
7824         * procfs.c (procfs_fetch_registers): Ditto.
7825         (procfs_store_registers): Ditto.
7826         * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
7827         (store_inferior_registers, fetch_core_registers): Ditto.
7828         (fetch_kcore_registers, clear_regs): Ditto.
7829         * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
7830         (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
7831         * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
7832         * nlm/i386.c (do_status): Ditto.
7833         * mipsv4-nat.c (supply_gregset): Ditto.
7834         * mips-tdep.c: Ditto for comments.
7835         * mips-nat.c (fetch_inferior_registers): Ditto.
7836         (store_inferior_registers, fetch_core_registers): Ditto.
7837         * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
7838         (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
7839         * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
7840         (i386_do_pop_frame, i386_register_type): Ditto.
7841         * hppa-tdep.c (hppa_frame_chain): Ditto.
7842         (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
7843         (hppa_pop_frame, hppa_read_fp): Ditto.
7844         (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
7845         * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
7846         * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
7847         * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
7848         * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
7849         * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
7850         * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
7851         * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
7852         * blockframe.c: Ditto for comments.
7853         * arch-utils.h: Ditto for comments.
7854         * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
7855         * alphanbsd-tdep.c (fetch_core_registers): Ditto.
7856         * alphabsd-nat.c (fetch_inferior_registers): Ditto.
7857         * alpha-tdep.h: Ditto for comments.
7858         * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
7859         (alpha_cannot_store_register): Ditto.
7860         (alpha_push_dummy_frame): Ditto.
7861         * alpha-nat.c (supply_gregset): Ditto.
7862
7863         * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
7864         * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
7865         * config/sparc/tm-sparc.h: Update comment.
7866
7867         * hppa-tdep.c (hppa_init_extra_frame_info): Use
7868         deprecated_read_fp instead of TARGET_READ_FP.
7869         (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
7870         (hppa_push_dummy_frame, hppa_read_fp): Ditto.
7871         * sparc-tdep.c (sparc_init_extra_frame_info): Use
7872         deprecated_read_fp instead of read_fp.
7873         * s390-tdep.c (s390_push_arguments): Ditto.
7874         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7875         * frame.h: Ditto in comments.
7876         * frame.c (legacy_get_prev_frame): Ditto.
7877         * dummy-frame.c (dummy_frame_this_id): Ditto.
7878         * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7879
7880 2003-04-28  Andrew Cagney  <cagney@redhat.com>
7881
7882         * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
7883         * gdbarch.h, gdbarch.c: Re-generate.
7884         * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
7885         * vax-tdep.c (_initialize_vax_tdep): Update.
7886         * v850-tdep.c (_initialize_v850_tdep): Update.
7887         * sparc-tdep.c (_initialize_sparc_tdep): Update.
7888         * s390-tdep.c (_initialize_s390_tdep): Update.
7889         * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
7890         * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
7891         * mips-tdep.c (_initialize_mips_tdep): Update.
7892         * mcore-tdep.c (_initialize_mcore_tdep): Update.
7893         * m68k-tdep.c (_initialize_m68k_tdep): Update.
7894         * ia64-tdep.c (_initialize_ia64_tdep): Update.
7895         * hppa-tdep.c (_initialize_hppa_tdep): Update.
7896         * h8300-tdep.c (_initialize_h8300_tdep): Update.
7897         * frv-tdep.c (_initialize_frv_tdep): Update.
7898         * cris-tdep.c (cris_delayed_get_disassembler): Update.
7899         (_initialize_cris_tdep): Update.
7900         * arch-utils.c (legacy_print_insn): Update.
7901         * alpha-tdep.c (_initialize_alpha_tdep): Update.
7902
7903 2003-04-26  Adam Fedor  <fedor@gnu.org>
7904
7905         * linespec.c (decode_objc): New function to decode ObjC calls
7906         (decode_line_1): Check for ObjC calls (using decode_objc)
7907         * Makefile (linespec.o): Update dependencies.
7908
7909 2003-04-26  Daniel Jacobowitz  <drow@mvista.com>
7910
7911         * breakpoint.h (struct breakpoint_ops): New.
7912         (struct breakpoint): Add ops member.
7913
7914         * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
7915         (mention): Use new breakpoint ops member.
7916         (set_raw_breakpoint): Initialize ops field to NULL.
7917         (print_exception_catchpoint, print_one_exception_catchpoint)
7918         (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
7919         (gnu_v3_exception_catchpoint_ops): New.
7920         (catch_exception_command_1): Call handle_gnu_v3_exceptions.
7921
7922 2003-04-25  Adam Fedor  <fedor@gnu.org>
7923
7924         * Makefile.in (COMMON_OBS): Add objc-lang.o
7925
7926 2003-04-25  Andrew Cagney  <cagney@redhat.com>
7927
7928         * d10v-tdep.c (print_insn): Delete function.
7929         (display_trace): Use TARGET_PRINT_INSN.
7930         (_initialize_d10v_tdep): Do not set tm_print_insn.
7931         (d10v_gdbarch_init): Set print_insn.
7932
7933 2003-04-25  Andrew Cagney  <cagney@redhat.com>
7934
7935         * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7936         (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7937         (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7938         (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7939         (nr_dmap_regs, a0_regnum): ... new functions.
7940         (d10v_print_registers_info): Use a0_regnum, use register_size.
7941         (d10v_register_byte): Delete function.
7942         (d10v_register_raw_size): Delete function.
7943         (d10v_register_type): Use a0_regnum.
7944         (d10v_print_registers_info): Use a0_regnum.
7945         (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7946         (d10v_gdbarch_init): Do not set register_byte or
7947         register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7948         (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7949         extract_address.
7950         (trace_command): Use XCALLOC.
7951         (print_insn): Delete reference to tm_print_insn.
7952         (saved_regs_unwinder): Use store_unsigned_integer instead of
7953         store_address.
7954         * frame.h (FRAME_OBSTACK_CALLOC): Define
7955
7956 2003-04-25  David Carlton  <carlton@bactrian.org>
7957
7958         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7959
7960 2003-04-24  Adam Fedor  <fedor@gnu.org>
7961
7962         * objc-lang.c: Include "valprint.h"
7963         * Makefile.in (objc-lang.o): Update dependencies.
7964
7965 2003-04-24  Adam Fedor  <fedor@gnu.org>
7966
7967         * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
7968         architecture dependant compilation and mark as unimplemented
7969         (until they get put in the gdbarch vector).
7970
7971 2003-04-23  David Carlton  <carlton@bactrian.org>
7972
7973         * cp-support.c (cp_find_first_component): Accept 'operator' in
7974         more locations.
7975
7976 2003-04-23  Andrew Cagney  <cagney@redhat.com>
7977
7978         * infcall.c (call_function_by_hand): Eliminate redundant
7979         indentation.  Move "saved_async" and "old_cleanups" to where they
7980         are needed.
7981
7982 2003-04-23  Andrew Cagney  <cagney@redhat.com>
7983
7984         * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7985         and "buffer".  Move the "name" code to where it is needed.
7986
7987 2003-04-23  Andrew Cagney  <cagney@redhat.com>
7988
7989         * infcall.c (call_function_by_hand): Move variables "start_sp",
7990         "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7991         code to ON_STACK switch branch.
7992
7993 2003-04-23  Andrew Cagney  <cagney@redhat.com>
7994
7995         * infcall.c (call_function_by_hand): Make declaration of "i",
7996         "sal", "bpt" and "old_sp" more local to their use.  Delete #if
7997         lint.
7998
7999 2003-04-23  Andrew Cagney  <cagney@redhat.com>
8000
8001         * infcall.c (call_function_by_hand): Delete variable
8002         "n_method_args".  Localize "param_type"'s declaration to the loop
8003         that it is used.  Reinstate code assigning to said variable -
8004         deleted on 2002-06-14.  Rationalize calls to value_args_coerce.
8005         Rationalize code using "param_type".
8006
8007 2003-04-22  Andrew Cagney  <cagney@redhat.com>
8008
8009         * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
8010         compute the breakpoint address.  Only call FIX_CALL_DUMMY when
8011         ON_STACK.  Eliminate the variable "addr".  Do not pass "real_pc"
8012         to DEPRECATED_PUSH_RETURN_ADDRESS.
8013
8014 2003-04-22  Kevin Buettner  <kevinb@redhat.com>
8015
8016         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
8017         on the DWARF2 register number prior to fetching a register.
8018
8019 2003-04-22  J. Brobecker  <brobecker@gnat.com>
8020
8021         * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
8022         Update all the tests using SOFT_FLOAT considering the fact that
8023         this macro was always set to 0.
8024         * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
8025         considering the fact that this macro was always set to 0.
8026         * hppa-tdep.h (hppa_store_return_value): Likewise.
8027         (hppa_extract_return_value): Likewise.
8028
8029 2003-04-22  J. Brobecker  <brobecker@gnat.com>
8030
8031         * config/pa/tm-hppa.h: Remove obsolete code, was used by
8032         the hppa-pro target only.
8033
8034 2003-04-21  J. Brobecker  <brobecker@gnat.com>
8035
8036         Ongoing multi-arch conversion effort for HP/UX:
8037         * config/pa/tm-hppa.h: Move all macro that are no longer
8038         defined now that GDB_MULTI_ARCH is now set to 1 from here...
8039         * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
8040
8041 2003-04-21  J. Brobecker  <brobecker@gnat.com>
8042
8043         * config/pa/tm-hppa.h: Obsolete a section that was only used
8044         for hppa-pro.
8045
8046 2003-04-21  J. Brobecker  <brobecker@gnat.com>
8047
8048         Ongoing multi-arch conversion for HP/UX.
8049         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
8050         if already defined (allows hppa64 to stay non-multiarched for now).
8051         * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
8052
8053 2003-04-21  Andrew Cagney  <cagney@redhat.com>
8054
8055         * frame.c (frame_id_eq): Fail when the code_addr's do not match.
8056
8057 2003-04-21  Andrew Cagney  <cagney@redhat.com>
8058
8059         * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
8060         "i386_num_mmx_regs".
8061
8062 2003-04-21  Andrew Cagney  <cagney@redhat.com>
8063
8064         * infcall.c: New file.
8065         * infcall.h: New file.
8066         * valarith.c: Include "infcall.h".
8067         * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
8068         * eval.c, ada-valprint.c, ada-lang.c: Ditto.
8069         * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
8070         (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
8071         (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
8072         (SFILES): Add "infcall.c"
8073         (COMMON_OBS): Add "infcall.o".
8074         (infcall.o): Specify dependencies.
8075         * value.h (call_function_by_hand): Delete declaration.
8076         * inferior.h (run_stack_dummy): Delete declaration.
8077         * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
8078         (run_stack_dummy): Move to "infcall.c", merged into
8079         call_function_by_hand.
8080         * valops.c (call_function_by_hand): Moved to "infcall.c".
8081         (find_function_addr, value_arg_coerce): Ditto.
8082         (unwindonsignal_p, coerce_float_to_double): Ditto.
8083         (_initialize_valops): Move "set/show coerce-float-to-double", and
8084         "set/show unwindonsignal" commands to "infcall.c".
8085         * v850-tdep.c, target.h: Update comments.
8086         * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
8087         * sh-tdep.c (sh_init_extra_frame_info): Update comments.
8088         (sh64_init_extra_frame_info): Update comments.
8089         * mn10300-tdep.c: Update comments.
8090         * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
8091         * config/sparc/tm-sparc.h: Update comments.
8092         * breakpoint.h: Update comments.
8093         * avr-tdep.c (avr_init_extra_frame_info): Update comments.
8094         * arm-tdep.c: Update comment.
8095
8096 2003-04-19  Mark Kettenis  <kettenis@gnu.org>
8097
8098         * i386-tdep.c (i386_num_register_names): New variable.
8099         (i386_num_mmx_regs): Renamed from mmx_num_regs.
8100         (MM0_REGNUM): Remove redundant parentheses in define.
8101         (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
8102         (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
8103         i386_mxcsr_regnum_p): Remove redundant parentheses.
8104         (i386_register_name): Use i386_num_register_names.
8105
8106         * i386-tdep.c (i386_extract_return_value,
8107         i386_store_return_value): Correct check for availability of
8108         floating-point registers.
8109
8110         * i386-tdep.c (i386_frame_num_args): Remove function.
8111         (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
8112
8113         * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
8114         mmx_regnum_to_fp_regnum.  Adjust all callers.
8115
8116         * i386-tdep.c (i386_get_longjmp_target): Use
8117         TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
8118         and TARGET_CHAR_BIT.  Use extract_typed_address instead of
8119         extract_address.
8120
8121 2003-04-19  Mark Kettenis  <kettenis@gnu.org>
8122
8123         * core-regset.c: Update comments to reflect reality.  Re-order
8124         includes.
8125         (fetch_core_registers): Use switch instead of if.  Remove
8126         redundant prototype.
8127
8128 2003-04-18  Jim Blandy  <jimb@redhat.com>
8129
8130         * s390-tdep.c (s390_frame_align): New function.
8131         (s390_gdbarch_init): Register it with the gdbarch object.
8132
8133 2003-04-17  Richard Henderson  <rth@redhat.com>
8134
8135         * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
8136
8137 2003-04-17  Michael Snyder  <msnyder@redhat.com>
8138             Karen Bennet  <bennet@redhat.com>
8139
8140         Committed by Elena Zannoni  <ezannoni@redhat.com>
8141         * gdb_gcore.sh: New script to create a core dump of a process.
8142
8143 2003-04-17  Elena Zannoni  <ezannoni@redhat.com>
8144
8145         * values.c (value_being_returned): Don't fetch the return
8146         value if the return type is void.
8147
8148 2003-04-17  Jeff Johnston  <jjohnstn@redhat.com>
8149
8150         * thread-db.c: Reindented.
8151
8152 2003-04-17  Jeff Johnston  <jjohnstn@redhat.com>
8153
8154         * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
8155         td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
8156         as types.
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182 2003-04-16  Kevin Buettner  <kevinb@redhat.com>
8183
8184         * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
8185         the size of ``long double'' to 16, instead of 8.
8186
8187 2003-04-16  Mark Kettenis  <kettenis@gnu.org>
8188
8189         * i386-linux-nat.c: Add some whitespace to make things more
8190         readable.
8191         (fetch_register, store_register, fetch_inferior_registers,
8192         store_inferior_registers): Get rid of assignment in if-statement.
8193         (store_register): Fix typo in error message.
8194
8195 2003-04-16  Andrew Cagney  <cagney@redhat.com>
8196
8197         * utils.c (xmmalloc): Always allocate something, matches
8198         libiberty/xmalloc's semantics.
8199         (xmrealloc, xmcalloc): Ditto.
8200
8201 2003-04-16  Andrew Cagney  <cagney@redhat.com>
8202
8203         * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
8204         update comments.
8205         (get_frame_type): Initialize unwind and type when needed.
8206         (get_frame_id, frame_register_unwind): Ditto.
8207
8208 2003-04-16  Andrew Cagney  <cagney@redhat.com>
8209
8210         * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
8211         obsolete.
8212         * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
8213         * sparcl-stub.c: Obsolete file.
8214         * config/sparc/tm-sparclet.h: Obsolete file.
8215         * sparclet-stub.c: Obsolete file.
8216         * sparclet-rom.c: Obsolete file.
8217         * sparcl-tdep.c: Obsolete file.
8218         * config/sparc/tm-sparclite.h: Obsolete file.
8219         * config/sparc/sparclite.mt: Obsolete file.
8220         * config/sparc/sparclet.mt: Obsolete file.
8221         * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
8222         sparc86x-*-* obsolete.
8223
8224 2003-04-15  David Carlton  <carlton@math.stanford.edu>
8225
8226         * Makefile.in (SFILES): Add cp-namespace.c.
8227         (COMMON_OBS): Add cp-namespace.o.
8228         (block.o): Depend on gdb_obstack_h and cp_support_h.
8229         (buildsym.o): Depend on cp_support_h.
8230         (cp-namespace.o): New.
8231         (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
8232         gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
8233         (dwarf2read.o): Depend on cp_support_h.
8234         * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
8235         * dwarf2read.c (process_die): Set processing_has_namespace_info,
8236         processing_current_namespace.
8237         (read_namespace): Update processing_current_namespace; check for
8238         anonymous namespaces.
8239         (dwarf2_name): New function.
8240         (dwarf2_extension): Ditto.
8241         * cp-support.h: Update copyright, contributors.
8242         Add inclusion guards.
8243         Add opaque declaration for structs obstack, block, symbol.
8244         (struct using_direct): New struct.
8245         Add declarations for cp_find_first_component,
8246         cp_entire_prefix_len, processing_has_namespace_info,
8247         processing_current_namespace, cp_is_anonymous,
8248         cp_add_using_directive, cp_initialize_namespace,
8249         cp_finalize_namespace, cp_set_block_scope,
8250         cp_scan_for_anonymous_namespaces.
8251         * cp-namespace.c: New file.
8252         * cp-support.c: Update copyright.
8253         Include ctype.h, gdb_assert.h, gdbcmd.h.
8254         New variable maint_cplus_cmd_list.
8255         (cp_find_first_component): New function.
8256         (cp_entire_prefix_len, maint_cplus_command)
8257         (first_component_command, _initialize_cp_support): Ditto.
8258         * buildsym.c: Include cp-support.h.
8259         New variable using_list.
8260         (add_symbol_to_list): Check for anonymous namespaces.
8261         (finish_block): Set block's scope.
8262         (start_symtab): Initialize C++ namespace support.
8263         (end_symtab): Finalize C++ namespace support.
8264         * block.h: Add opaque declarations for structs
8265         block_namespace_info, using_direct, and obstack.
8266         Add declarations for block_set_scope and block_set_using.
8267         (struct block): Add 'language_specific' member.
8268         (BLOCK_NAMESPACE): New macro.
8269         * block.c: Include gdb_obstack.h and cp-support.h.
8270         (struct block_namespace_info): New struct.
8271         (block_set_scope): New function.
8272         (block_set_using, block_initialize_namespace): Ditto.
8273
8274 2003-04-14  Kevin Buettner  <kevinb@redhat.com>
8275
8276         * solib-svr4.c (svr4_have_link_map_offsets): New function.
8277         (locate_base): Return early if there aren't any link map offsets.
8278         (svr4_solib_create_inferior_hook): Warn if shared library support
8279         is unavailable.
8280
8281 2003-04-14  David Carlton  <carlton@math.stanford.edu>
8282
8283         * symtab.c (symbol_set_names): Add prefix when storing Java names
8284         in hash table.  Fix for PR java/1039.
8285
8286 2003-04-14  David Carlton  <carlton@math.stanford.edu>
8287
8288         * symtab.c (symbol_set_names): Rename 'name' arg to
8289         'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
8290         * symtab.h: Change 'name' argument in declaration of
8291         symbol_set_names to 'linkage_name'.
8292         (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
8293
8294 2003-04-14  Andrew Cagney  <cagney@redhat.com>
8295
8296         * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
8297         return the fully sign-extended register value.
8298         (get_frame_pointer): Ditto.
8299         (mips_pop_frame): Initialize "proc_desc" after checking for a
8300         dummy frame.
8301
8302 2003-04-14  Andrew Cagney  <cagney@redhat.com>
8303
8304         * mips-tdep.c (mips_push_dummy_frame): Delete function.
8305         (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
8306         (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
8307         (mips_push_register): Delete function.
8308         (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
8309         PUSH_FP_REGNUM.
8310
8311 2003-04-14  Jim Blandy  <jimb@redhat.com>
8312
8313         * symmisc.c: #include "gdb_regex.h".
8314         (maintenance_list_symtabs, maintenance_list_psymtabs): New
8315         functions.
8316         * maint.c (maintenance_list_command): New function.
8317         (_initialize_maint_cmds): Register the above as commands.
8318         * symtab.h (maintenance_list_symtabs,
8319         maintenance_list_psymtabs): New declarations.
8320         * cli/cli-cmds.c (maintenancelistlist): New variable.
8321         (init_cmd_lists): Initialize it.
8322         * cli/cli-cmds.h (maintenancelistlist): New declaration.
8323         * gdbcmd.h (maintenancelistlist): New declaration.
8324         * Makefile.in (symmisc.o): Update dependencies.
8325
8326 2003-04-14  Elena Zannoni  <ezannoni@redhat.com>
8327
8328         * s390-nat.c: Include asm/types.h for addr_t.
8329
8330 2003-04-14  Corinna Vinschen  <vinschen@redhat.com>
8331
8332         * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
8333         actually incoming type.
8334
8335 2003-04-13  Andrew Cagney  <cagney@redhat.com>
8336
8337         * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
8338         get_next_frame and get_frame_saved_regs.
8339
8340 2003-04-13  Andrew Cagney  <cagney@redhat.com>
8341
8342         * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
8343         of gdbarch_num_regs.
8344
8345 2003-04-13  Andrew Cagney  <cagney@redhat.com>
8346
8347         * frame.h: Mention what replaced what in "struct frame_info".
8348         * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
8349         deprecated_update_frame_base_hack and
8350         deprecated_update_frame_pc_hack.
8351         * hppa-tdep.c: Ditto.
8352
8353 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
8354
8355         * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
8356         to read_reg and update its comment.  Remove regnum member.
8357         * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
8358         Don't call read_reg when setting in_reg.  Call read_reg to get
8359         the frame base if it's in a register.  Return the register number
8360         on the stack instead of in the context.  Remove extra arguments
8361         to read_reg.
8362         * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
8363         (dwarf2_evaluate_loc_desc): Call value_from_register.  Expect
8364         the register number on the expression stack.
8365         (needs_frame_read_reg): Remove extra arguments.
8366
8367 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
8368
8369         * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
8370         made non-static.
8371         (execute_stack_op): All callers updated.
8372         * dwarf2expr.h: Add prototype for dwarf2_read_address.
8373         * dwarf2loc.c (find_location_expression): New function.
8374         (dwarf_expr_frame_base): Call it.
8375         (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
8376         (dwarf2_tracepoint_var_ref): New function, broken out from
8377         locexpr_tracepoint_var_ref.
8378         (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
8379         Make static.
8380         (loclist_read_variable, loclist_read_needs_frame): New functions.
8381         (loclist_describe_location, loclist_tracepoint_var_ref): New
8382         functions.
8383         (dwarf2_loclist_funcs): New struct location_funcs.
8384         * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
8385         (struct dwarf2_locexpr_baton): Add comments.
8386         (dwarf2_loclist_funcs): New extern.
8387         * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
8388         base_address and base_known.
8389         (dwarf_loc_buffer): New variable.
8390         (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
8391         (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
8392         (dwarf2_has_info): Initialize dwarf_loc_offset.
8393         (dwarf2_build_psymtabs): Read in .debug_loc.
8394         (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
8395         DWARF_LOC_SIZE.
8396         (psymtab_to_symtab_1): Likewise.  Move base address calculation
8397         here, from...
8398         (dwarf2_get_pc_bounds): ... here.  Use the base address from
8399         cu_header.
8400         (dwarf2_symbol_mark_computed): Handle location lists.
8401
8402 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
8403
8404         * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
8405         if the linkage name demangled successfully.
8406
8407 2003-04-13  Mark Kettenis  <kettenis@gnu.org>
8408
8409         * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
8410         disassmbly_flavour): Removed.
8411
8412         * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
8413
8414 2003-04-13  Mark Kettenis  <kettenis@gnu.org>
8415
8416         * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
8417
8418 2003-04-12  Andrew Cagney  <cagney@redhat.com>
8419
8420         * frame.h (struct frame_info): Move definition from here ...
8421         * frame.c (struct frame_info): ... to here.
8422
8423 2003-04-12  Andrew Cagney  <cagney@redhat.com>
8424
8425         * gdbthread.h (save_infrun_state): Delete parameter
8426         "prev_func_start".
8427         (struct thread_info): Delete field "prev_func_start".
8428         (load_infrun_state): Ditto.
8429         * thread.c (load_infrun_state, save_infrun_state): Update.
8430         * infrun.c (prev_func_start): Delete variable.
8431         (context_switch, init_wait_for_inferior): Update.
8432         (stop_stepping, keep_going): Update.
8433
8434 2003-04-12  Andrew Cagney  <cagney@redhat.com>
8435
8436         * gdbarch.sh: Add missing opaque declarations.
8437         * gdbarch.h: Regnerate.
8438         * symtab.h: Add missing opaque declarations.
8439         * value.h, target.h, symfile.h, stabsread.h: Ditto.
8440         * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
8441         * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
8442         * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
8443         * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
8444         * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
8445         * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
8446         * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
8447         * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
8448         * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
8449         * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
8450         * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
8451         * cli/cli-setshow.h, cli/cli-script.h: Ditto.
8452
8453 2003-04-11  Andrew Cagney  <cagney@redhat.com>
8454
8455         * frame.c (get_frame_id): Return this frame's "id".
8456         (legacy_get_prev_frame): Set prev's frame ID code_addr to the
8457         function start.
8458         (legacy_saved_regs_this_id): Replace function body with
8459         internal-error.
8460         (deprecated_frame_xmalloc): Mark the frame ID as valid, use
8461         FRAME_OBSTACK_ZALLOC.
8462         (create_new_frame): Mark the frame ID as valid.
8463
8464 2003-04-11  Alexandre Oliva  <aoliva@redhat.com>
8465
8466         * Makefile.in (libbfd_h): Added missing setting.
8467         * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
8468         according to the selected ABI.
8469
8470 2003-04-11  Jeff Johnston  <jjohnstn@redhat.com>
8471
8472         * gdb_indent.sh: Recognize pid_t and sigset_t as types.
8473
8474 2003-04-11  Andrew Cagney  <cagney@redhat.com>
8475
8476         * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
8477         SAVED_PC_AFTER_CALL.
8478         * gdbarch.h, gdbarch.c: Regenerate.
8479         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8480         * x86-64-tdep.c (x86_64_init_abi): Update.
8481         * vax-tdep.c (vax_gdbarch_init): Update.
8482         * v850-tdep.c (v850_gdbarch_init): Update.
8483         * sparc-tdep.c (sparc_gdbarch_init): Update.
8484         * sh-tdep.c (sh_gdbarch_init): Update.
8485         * s390-tdep.c (s390_gdbarch_init): Update.
8486         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8487         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8488         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8489         * mips-tdep.c (mips_gdbarch_init): Update.
8490         * mcore-tdep.c (mcore_gdbarch_init): Update.
8491         * m68k-tdep.c (m68k_gdbarch_init): Update.
8492         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8493         * ia64-tdep.c (ia64_gdbarch_init): Update.
8494         (ia64_saved_pc_after_call): Update declaration.
8495         * i386ly-tdep.c (i386lynx_init_abi): Update.
8496         * i386-tdep.c (i386_gdbarch_init): Update.
8497         * hppa-tdep.c (hppa_gdbarch_init): Update.
8498         * h8300-tdep.c (h8300_gdbarch_init): Update.
8499         * frv-tdep.c (frv_gdbarch_init): Update.
8500         * cris-tdep.c (cris_gdbarch_init): Update.
8501         * avr-tdep.c (avr_gdbarch_init): Update.
8502         * arm-tdep.c (arm_gdbarch_init): Update.
8503         * alpha-tdep.c (alpha_gdbarch_init): Update.
8504         * ns32knbsd-nat.c (frame_num_args): Update.
8505         * ns32k-tdep.c (umax_frame_num_args): Update.
8506         * mips-tdep.c (mips_init_frame_pc_first): Update.
8507         * infrun.c (step_over_function): Update.
8508         * i386-linux-tdep.c (skip_hurd_resolver): Update.
8509         * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
8510         * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8511         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8512         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8513         * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8514         * arm-linux-tdep.c (skip_hurd_resolver): Update.
8515         * arch-utils.c (init_frame_pc_default): Update.
8516         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8517         * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
8518         declaration.
8519
8520 2003-04-11  Andrew Cagney  <cagney@redhat.com>
8521
8522         * i387-tdep.c: Update copyright.
8523         (i387_to_double): Delete function.
8524         (double_to_i387): Delete function.
8525
8526 2003-04-10  Andrew Cagney  <cagney@redhat.com>
8527
8528         * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
8529         frame's function's address.  Simplify.
8530         (d10v_frame_unwind_cache): Check that the frame's function is
8531         non-zero.
8532
8533 2003-04-10  Jim Blandy  <jimb@redhat.com>
8534
8535         * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
8536         call to set_gdbarch_deprecated_push_arguments.
8537
8538 2003-04-10  Andrew Cagney  <cagney@redhat.com>
8539
8540         * frame.c (fprint_frame_id): New function.
8541         (fprint_frame_type, fprint_frame): New function.
8542         (frame_pc_unwind, frame_func_unwind): Add/update trace code.
8543         (create_sentinel_frame, get_frame_id): Ditto.
8544         (frame_id_p, frame_id_eq): Ditto.
8545         (frame_id_inner, create_new_frame): Ditto.
8546         (legacy_get_prev_frame, get_prev_frame): Ditto.
8547         (deprecated_update_frame_pc_hack): Ditto.
8548         (frame_register_unwind): Ditto.
8549         (deprecated_update_frame_base_hack): Ditto.
8550
8551 2003-04-10  Corinna Vinschen  <vinschen@redhat.com>
8552
8553         * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
8554         (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
8555         frame_chain function.
8556         * Makefile.in: Add dependencies due to above change.
8557
8558 2003-04-10  Corinna Vinschen  <vinschen@redhat.com>
8559
8560         * blockframe.c (legacy_frame_chain_valid): Move call to
8561         DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
8562         inside_entry_file.
8563
8564 2003-04-09  Andrew Cagney  <cagney@redhat.com>
8565
8566         * frame.h (struct frame_id): Replace "pc" and "base" with
8567         "stack_addr" and "code_addr".  Update comments.
8568         (frame_id_build): Update parameter names and comment.
8569         (struct frame_info): Replace "id_p" and "id" with "this_id".
8570         * dummy-frame.c (dummy_frame_this_id): Update.
8571         * breakpoint.c (print_one_breakpoint): Update.
8572         * frame.c (get_frame_id): Update.
8573         (get_frame_base, frame_id_build): Update.
8574         (create_sentinel_frame, legacy_get_prev_frame): Update.
8575         (deprecated_update_frame_base_hack): Update.
8576         (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
8577         (frame_id_inner): Ditto.
8578
8579 2003-04-09  Andrew Cagney  <cagney@redhat.com>
8580
8581         * defs.h (gdb_print_host_address): Make "addr" parameter a
8582         pointer constant.
8583         * utils.c (gdb_print_host_address): Update.
8584
8585 2003-04-09  Kevin Buettner  <kevinb@redhat.com>
8586
8587         * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
8588         register number for R0 is 0.
8589
8590 2003-04-09  J. Brobecker  <brobecker@gnat.com>
8591
8592         * frame.h (struct gdbarch): Add opaque structure definition
8593         to avoid a compilation warning on LynxOS 4.0.
8594
8595 2003-04-09  Andrew Cagney  <cagney@redhat.com>
8596
8597         * frame.h (struct frame_info): Delete field "pc".  Replace
8598         "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
8599         structure.
8600         * frame.c (frame_pc_unwind): Update.
8601         (create_sentinel_frame): Do not set "pc".
8602         (get_prev_frame): Do not set "pc".  Use frame_pc_unwind.
8603         (get_frame_pc): Call frame_pc_unwind.
8604         (deprecated_update_frame_pc_hack): Update.
8605         (create_new_frame): Use "pc" not "->pc".
8606
8607 2003-04-09  Andrew Cagney  <cagney@redhat.com>
8608
8609         * frame.c (get_frame_id): Eliminate code updating "frame".
8610         (legacy_get_prev_frame): Ditto.
8611         (get_frame_base): Return id.base directly.
8612         (deprecated_update_frame_base_hack): Update "id.base".
8613         * frame.h (struct frame_info): Delete field "frame".
8614
8615 2003-04-09  Andrew Cagney  <cagney@redhat.com>
8616
8617         * NEWS: Mention that the "Sequent family" is obsolete.
8618         * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
8619         i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8620         * configure.host: Obsolete i[3456]86-sequent-bsd*,
8621         i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8622         * config/i386/tm-ptx4.h: Obsolete file.
8623         * config/i386/tm-ptx.h: Obsolete file.
8624         * symm-tdep.c: Obsolete file.
8625         * config/i386/symmetry.mt: Obsolete file.
8626         * config/i386/tm-symmetry.h: Obsolete file.
8627         * symm-nat.c: Obsolete file.
8628         * config/i386/nm-symmetry.h: Obsolete file.
8629         * config/i386/xm-symmetry.h: Obsolete file.
8630         * config/i386/symmetry.mh: Obsolete file.
8631         * config/i386/nm-ptx4.h: Obsolete file.
8632         * config/i386/ptx4.mh: Obsolete file.
8633         * config/i386/ptx.mt: Obsolete file.
8634         * config/i386/ptx.mh: Obsolete file.
8635         * config/i386/xm-ptx4.h: Obsolete file.
8636         * config/i386/xm-ptx.h: Obsolete file.
8637
8638 2003-04-09  Andrew Cagney  <cagney@redhat.com>
8639
8640         Obsolete mips*-*-mach3*.
8641         * NEWS: Mention that mips*-*-mach3* is obsolete.
8642         * m3-nat.c: Obsolete file.
8643         * config/nm-m3.h: Obsolete file.
8644         * config/mips/tm-mipsm3.h: Obsolete file.
8645         * config/mips/mipsm3.mt: Obsolete file.
8646         * config/mips/mipsm3.mh: Obsolete file.
8647         * config/mips/xm-mipsm3.h: Obsolete file.
8648         * mipsm3-nat.c: Obsolete file.
8649         * configure.host: Obsolete mips-dec-mach3*.
8650         * configure.tgt: Obsolete mips*-*-mach3*.
8651
8652 2003-04-09  Andrew Cagney  <cagney@redhat.com>
8653
8654         * doublest.h: Update copyright.
8655         (deprecated_store_floating, deprecated_extract_floating): Rename
8656         store_floating and extract_floating.  Update comments.
8657         * doublest.c: Update copyright.
8658         (extract_floating_by_length): Replace extract_floating.
8659         (store_floating_by_length): Replace store_floating.
8660         (deprecated_extract_floating): New function.
8661         (deprecated_store_floating): New function.
8662         (extract_typed_floating): Call extract_floating_by_length.
8663         (store_typed_floating): Call store_floating_by_length.
8664         * x86-64-tdep.c (x86_64_store_return_value): Update.
8665         * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
8666         (sh64_extract_return_value): Update.
8667         (sh_sh4_register_convert_to_virtual): Update.
8668         (sh_sh64_register_convert_to_virtual): Update.
8669         (sh_sh4_register_convert_to_raw): Update.
8670         (sh_sh64_register_convert_to_raw): Update.
8671         * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
8672         (rs6000_register_convert_to_raw): Update.
8673         * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
8674         (ia64_register_convert_to_raw): Update.
8675         * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
8676         (REGISTER_CONVERT_TO_VIRTUAL): Update.
8677         * arm-linux-tdep.c (arm_linux_push_arguments): Update.
8678         * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
8679         (alpha_register_convert_to_raw): Update.
8680
8681 2003-04-08  Andrew Cagney  <cagney@redhat.com>
8682
8683         * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
8684         * gdbarch.h, gdbarch.c: Re-generate.
8685         * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
8686         (d10v_gdbarch_init): Do not set saved_pc_after_call.
8687         * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
8688         conditionally, use frame_pc_unwind as an alternative.  Add
8689         comments.
8690         * arch-utils.c (init_frame_pc_default): Only call
8691         SAVED_PC_AFTER_CALL when available.
8692
8693 2003-04-08  Elena Zannoni  <ezannoni@redhat.com>
8694
8695         * infrun.c (stop_soon): Rename from stop_soon_quietly.
8696         (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
8697         (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
8698         (start_remote): Ditto.
8699         (handle_inferior_event): Ditto.
8700         (save_inferior_status): Ditto.
8701         (restore_inferior_status): Ditto.
8702         * infcmd.c (attach_command): Ditto.
8703         * fork-child.c (startup_inferior): Ditto.
8704         * inferior.h (stop_soon): Rename from stop_soon_quietly.
8705         * alpha-tdep.c (heuristic_proc_start): Ditto.
8706         * mips-tdep.c (heuristic_proc_start): Ditto.
8707         * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
8708         * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
8709         * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
8710         * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
8711         * remote-vx.c (vx_create_inferior): Ditto.
8712
8713 2003-04-08  Elena Zannoni  <ezannoni@redhat.com>
8714
8715         * infrun.c (stop_soon_quietly): Make it an enum, to better
8716         override the default behavior of handle_inferior_event.
8717         (clear_proceed_status): Update uses of stop_soon_quietly to
8718         reflect that it is now an enum.
8719         (start_remote): Ditto.
8720         (handle_inferior_event): Change logic a bit if stop_soon_quietly
8721         is set to handle the new GNU/Linux kernel behavior for
8722         attach/sigstop.  Update uses of stop_soon_quietly.
8723         * inferior.h (enum stop_kind): New enum.
8724         * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
8725         Reset normal handle_inferior_event behavior, afterwards.
8726         * fork-child.c (startup_inferior): Update.
8727         * alpha-tdep.c (heuristic_proc_start): Update.
8728         * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
8729         * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
8730         * solib-osf.c (osf_solib_create_inferior_hook): Update.
8731         * solib-irix.c (irix_solib_create_inferior_hook): Update.
8732         * remote-vx.c (vx_create_inferior): Update.
8733         * mips-tdep.c (heuristic_proc_start): Update.
8734
8735 2003-04-07  Elena Zannoni  <ezannoni@redhat.com>
8736
8737         * disasm.c (dump_insns):  Move variables inside loop, or they will
8738         be freed more than once, causing wild memory corruptions.
8739         (gdb_disassembly): Look for the substring "-thread",
8740         instead of "-threads" in the target name, to make sure to find
8741         the 'multi-thread' target.  Also, make sure we do the right thing
8742         with the "core" target.
8743
8744 2003-04-07  Kevin Buettner  <kevinb@redhat.com>
8745
8746         * mips-tdep.c (mips_print_fp_register): New function, created from
8747         do_fp_register_row().  Registers are now (also) printed as hex.
8748         Only one register is printed per row.
8749         (mips_print_register, do_fp_register_row): Print floating point
8750         registers with mips_print_fp_register().
8751
8752 2003-04-06  Andrew Cagney  <cagney@redhat.com>
8753
8754         * valprint.h (inspect_it): Add extern declaration.
8755         * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
8756         (selectors_info, classes_info): Ditto.
8757         (find_objc_msgcall): Fix indentation.
8758         (objc_printstr): Delete extern declarations.
8759
8760         * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
8761
8762 2003-04-06  Andrew Cagney  <cagney@redhat.com>
8763
8764         * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
8765         Update comment.
8766         * frame.c (legacy_saved_regs_this_id): Update.
8767         (legacy_get_prev_frame): Update.
8768         * xstormy16-tdep.c: Update comment.
8769         * sparc-tdep.c (sparc_frame_chain): Update comment.
8770         * blockframe.c (legacy_frame_chain_valid): Update.
8771
8772 2003-04-06  Andrew Cagney  <cagney@redhat.com>
8773
8774         * valprint.c (val_print_type_code_int): Delete #ifdef
8775         PRINT_TYPELESS_INTEGER code.
8776
8777         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
8778         (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
8779         multi-arch definition.
8780         * gdbarch.h: Re-generate.
8781
8782 2003-04-05  Andrew Cagney  <cagney@redhat.com>
8783
8784         Eliminate FRAME_FIND_SAVED_REGS.
8785         * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8786         Change FSR parameter to a pointer.
8787         * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
8788         Assume FSR parameter is a pointer.
8789         * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8790         Make fsr a pointer.
8791         * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
8792         (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs.  Make
8793         saved_regs a pointer.
8794         (hppa_frame_saved_pc): Ditto.
8795         (find_dummy_frame_regs): Make frame_saved_regs a pointer
8796         (hppa_pop_frame): Call hppa_frame_init_saved_regs.  Make fsr a
8797         pointer.
8798         (restore_pc_queue): Make fsr a pointer.
8799         (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
8800         (hppa_frame_chain): Make saved_regs a pointer, call
8801         hppa_frame_init_saved_regs.
8802         * sparc-tdep.c: Include "gdb_assert.h".
8803         (sparc_frame_find_saved_regs): Replace internal_error with
8804         gdb_assert.
8805         * remote-vxsparc.c (vx_read_register): Delete reference to
8806         FRAME_FIND_SAVED_REGS.
8807         * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
8808         * gdbarch.h: Regenerate.
8809         * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8810         (deprecated_get_frame_saved_regs): Delete declaration.
8811         (struct frame_saved_regs): Delete definition.
8812         * frame.c (deprecated_get_frame_saved_regs): Delete function.
8813         * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
8814         (hppa_frame_find_saved_regs): Delete declaration.
8815         (FRAME_FIND_SAVED_REGS): Delete macro.
8816         (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
8817         * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
8818         FRAME_FIND_SAVED_REGS in comment.
8819
8820 2003-04-05  Andrew Cagney  <cagney@redhat.com>
8821
8822         * frame.c (frame_func_unwind, get_frame_func): New functions.
8823         * frame.h (get_frame_func, frame_func_unwind): Declare.
8824         (struct frame_info): Add field "prev_func" for caching the
8825         previous frame's function address.
8826         * arm-tdep.c (arm_frameless_function_invocation): Combine
8827         get_pc_function_start and get_frame_pc into get_frame_func.
8828         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8829         (sh64_nofp_frame_init_saved_regs): Ditto.
8830         * s390-tdep.c (s390_function_start): Ditto.
8831         * rs6000-tdep.c (rs6000_pop_frame): Ditto.
8832         (rs6000_frameless_function_invocation): Ditto.
8833         (rs6000_frame_saved_pc): Ditto.
8834         * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
8835         * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
8836         * i386-tdep.c (i386_frameless_signal_p): Ditto.
8837         (i386_frame_init_saved_regs): Ditto.
8838         * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
8839         * d10v-tdep.c (d10v_frame_unwind_cache): Combine
8840         get_pc_function_start and frame_pc_unwind into frame_func_unwind.
8841         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8842         * blockframe.c (frameless_look_for_prologue): Ditto.
8843
8844 2003-04-05  Andrew Cagney  <cagney@redhat.com>
8845
8846         * frame.c (legacy_get_prev_frame): Link prev to next at the
8847         function start.  Update comments.
8848
8849 2003-04-05  Andrew Cagney  <cagney@redhat.com>
8850
8851         * frame.c (get_frame_id): Update comment.
8852         (legacy_get_prev_frame): Update comment.
8853         * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
8854         * gdbarch.h: Regenerate.
8855         * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
8856         * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
8857
8858 2003-04-05  Andrew Cagney  <cagney@redhat.com>
8859
8860         * stack.c (print_frame_info): Use get_frame_pc.
8861
8862 2003-04-04  Andrew Cagney  <cagney@redhat.com>
8863
8864         * frame.c (get_prev_frame): Do not call frame_type_from_pc.  Set
8865         the frame's type from the unwinder.
8866         (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
8867         (create_new_frame, legacy_get_prev_frame): When the unwinder's
8868         type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
8869         (get_frame_base_address): Use get_frame_type.
8870         (get_frame_locals_address, get_frame_args_address): Ditto.
8871         (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
8872         * frame.h (enum frame_type): Add UNKNOWN_FRAME.
8873         (struct frame_info): Add comment explaining why the frame contains
8874         a "type" field.
8875         * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
8876         * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
8877         * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
8878         NORMAL_FRAME.
8879         * frame-unwind.h: Include "frame.h".
8880         (struct frame_unwind): Add "type" field.
8881         * Makefile.in (frame_unwind_h): Add $(frame_h).
8882
8883 2003-04-04  Andrew Cagney  <cagney@redhat.com>
8884
8885         * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
8886         * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
8887         * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
8888         get_frame_base.
8889         (d10v_unwind_dummy_id): Use frame_id_build.
8890         * frame.c (find_frame_sal): Use get_frame_pc.
8891         (create_new_frame): Use deprecated_update_frame_pc_hack and
8892         deprecated_update_frame_base_hack.
8893         (create_sentinel_frame): Add comment about ->pc going away.
8894         (get_prev_frame): Add comment about ->pc going away.
8895         (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
8896         frame_id_build, deprecated_update_frame_pc_hack and
8897         deprecated_update_frame_base_hack.
8898         (select_frame): Use get_frame_pc.
8899         (legacy_saved_regs_this_id): Use frame_id_build.
8900
8901 2003-04-04  Elena Zannoni  <ezannoni@redhat.com>
8902
8903         * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
8904         signed integer case.
8905         (classify_argument): Handle enumerations and references.
8906
8907 2003-04-04  Andrew Cagney  <cagney@redhat.com>
8908
8909         * frame.c (create_sentinel_frame): Initialize the sentinel frame's
8910         ID to NULL.
8911
8912 2003-04-01  Adam Fedor  <fedor@gnu.org>
8913
8914         * gdb/objc-lang.c (selectors_info): Replace calls to
8915         SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
8916         SYMBOL_NATURAL_NAME.
8917         (classes_info, find_methods): Likewise.
8918
8919 2003-04-03  Kevin Buettner  <kevinb@redhat.com>
8920
8921         * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
8922         ``mach'' to the value determined by bfd_default_set_arch_mach().
8923
8924 2003-04-02  Bob Rossi  <bob_rossi@cox.net>
8925
8926         * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
8927         (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
8928         (mi-cmd-file.o): Update dependencies.
8929
8930 2003-04-01  Kevin Buettner  <kevinb@redhat.com>
8931
8932         * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8933         (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8934
8935 2003-04-01  Adam Fedor  <fedor@gnu.org>
8936
8937         * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8938         * language.h (struct language_defn): Add la_demangle.
8939         (language_demangle): Declare.
8940         * language.c (language_demangle): New function.
8941         (unk_lang_demangle): Likewise.
8942         (unknown_language_defn, auto_language_defn, local_language_defn):
8943         Add ukn_lang_demangle.
8944         * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
8945         * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
8946         * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8947         (cplus_language_defn): Add cplus_demangle for la_demangle element.
8948         * jv-lang.c (java_demangle): New function
8949         (java_language_defn): Use it for la_demangle element.
8950         * objc-lang.c (objc_demangle): Add options argument
8951         (objc_language_defn): Use objc_demangle for la_demangle element.
8952         * maint.c (maintenance_demangle): Replace switch with
8953         call to language_demangle.
8954         * utils.c (fprintf_symbol_filtered): Likewise.
8955
8956 2003-04-01  Andrew Cagney  <cagney@redhat.com>
8957
8958         * printcmd.c (print_frame_nameless_args): Delete #ifdef
8959         NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8960         PRINT_TYPELESS_INTEGER.
8961         * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8962         PUSH_RETURN_ADDRESS.
8963
8964 2003-04-01  Andrew Cagney  <cagney@redhat.com>
8965
8966         * Makefile.in (d10v-tdep.o): Update dependencies.
8967         * d10v-tdep.c: Include "frame-base.h".
8968         (d10v_frame_unwind): Make constant.
8969         (d10v_frame_base_address): New function.
8970         (d10v_frame_base): New variable.
8971         (d10v_gdbarch_init): Set frame_base default.
8972         (struct d10v_unwind_cache): Add the field "prev_sp".  Update
8973         comment for base.
8974         (d10v_frame_unwind_cache): Set and use "prev_sp".
8975         (d10v_frame_this_id): Use the previous frame's inner most stack
8976         address and this frame's func address for the frame ID.  Use
8977         frame_id_build.  Don't analyze beyond the current instruction.
8978
8979 2003-04-01  Andrew Cagney  <cagney@redhat.com>
8980
8981         * frame.h (get_frame_locals_address, get_frame_args_address):
8982         Refer to the base address, instead of the address of the first
8983         local or parameter.
8984
8985 2003-04-01  Andrew Cagney  <cagney@redhat.com>
8986
8987         Add frame debug info addresses:
8988         * frame-base.c: New file.
8989         * frame-base.h: New file.
8990         * frame.h (struct frame_base): Add opaque declaration.
8991         (get_frame_base): Update comment.
8992         (get_frame_base_address): Declare.
8993         (get_frame_locals_address): Declare.
8994         (get_frame_args_address): Declare.
8995         (struct frame_info): Add "base" and "base_cache".  Update
8996         comments on the unwinder.
8997         * frame.c: Include "frame-base.h".
8998         (get_frame_locals_address): New function.
8999         (get_frame_base_address): New function.
9000         (get_frame_args_address): New function.
9001         * findvar.c (read_var_value): Use get_frame_locals_address and
9002         get_frame_args_address.
9003         * stack.c (frame_info): Use get_frame_locals_address and
9004         get_frame_args_address.
9005         (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
9006         moved to "frame-base.c".
9007         * printcmd.c (print_frame_nameless_args): Ditto.
9008         * symtab.h (address_class): Update comments.
9009         * dwarf2loc.c (dwarf_expr_frame_base): Add note about
9010         get_frame_base_address.
9011         * dwarf2expr.c (execute_stack_op): Ditto.
9012         * Makefile.in (frame_base_h): Define.
9013         (frame.o): Update dependencies.
9014         (frame-base.o): Add dependencies.
9015         (SFILES): Add frame-base.c.
9016         (COMMON_OBS): Add frame-base.o.
9017
9018 2003-04-01  Andrew Cagney  <cagney@redhat.com>
9019
9020         * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
9021         CALL_DUMMY_LENGTH): Ditto.
9022         * gdbarch.c: Re-generate.
9023         * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
9024         (CALL_DUMMY_LENGTH): Delete macro.
9025         * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
9026         * arm-tdep.c (arm_gdbarch_init): Ditto.
9027         * avr-tdep.c (avr_gdbarch_init): Ditto.
9028         * cris-tdep.c (cris_gdbarch_init): Ditto.
9029         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9030         * frv-tdep.c (frv_gdbarch_init): Ditto.
9031         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9032         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9033         * i386-tdep.c (i386_gdbarch_init): Ditto.
9034         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9035         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9036         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9037         * mips-tdep.c (mips_gdbarch_init): Ditto.
9038         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9039         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9040         * s390-tdep.c (s390_gdbarch_init): Ditto.
9041         * sh-tdep.c (sh_gdbarch_init): Ditto.
9042         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9043         * v850-tdep.c (v850_gdbarch_init): Ditto.
9044         * vax-tdep.c (vax_gdbarch_init): Ditto.
9045         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9046
9047 2003-04-01  Corinna Vinschen  <vinschen@redhat.com>
9048
9049         * frame.c (get_prev_frame): Disable call to inside_entry_file().
9050
9051 2003-04-01  Andrew Cagney  <cagney@redhat.com>
9052
9053         * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
9054         (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9055         * gdbarch.h, gdbarch.c: Re-generate.
9056         * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9057         (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9058         * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9059         * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9060         (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9061         * infcmd.c (run_stack_dummy): Simplify assuming
9062         CALL_DUMMY_BREAKPOINT_OFFSET_P.
9063         * infrun.c (handle_inferior_event): Ditto.
9064         * alpha-tdep.c (alpha_gdbarch_init): Do not set
9065         call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
9066         * arm-tdep.c (arm_gdbarch_init): Ditto.
9067         * avr-tdep.c (avr_gdbarch_init): Ditto.
9068         * cris-tdep.c (cris_gdbarch_init): Ditto.
9069         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9070         * frv-tdep.c (frv_gdbarch_init): Ditto.
9071         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9072         * i386-tdep.c (i386_gdbarch_init): Ditto.
9073         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9074         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9075         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9076         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9077         * mips-tdep.c (mips_gdbarch_init): Ditto.
9078         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9079         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9080         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9081         * s390-tdep.c (s390_gdbarch_init): Ditto.
9082         * sh-tdep.c (sh_gdbarch_init): Ditto.
9083         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9084         * v850-tdep.c (v850_gdbarch_init): Ditto.
9085         * vax-tdep.c (vax_gdbarch_init): Ditto.
9086         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9087
9088 2003-04-01  Daniel Jacobowitz  <drow@mvista.com>
9089
9090         * symfile.c (symfile_relocate_debug_section): Update call to
9091         bfd_simple_get_relocated_section_contents.
9092
9093 2003-03-31  Andrew Cagney  <cagney@redhat.com>
9094
9095         * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
9096         * gdbarch.h, gdbarch.c: Regenerate.
9097         * inferior.h (FIX_CALL_DUMMY): Delete macro.
9098         * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
9099         available.
9100         * frame.h (generic_fix_call_dummy): Delete declaration.
9101         * dummy-frame.h: Update comment.
9102         * dummy-frame.c (generic_fix_call_dummy): Delete function.
9103         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9104         fix_call_dummy.
9105         * sh-tdep.c (sh_gdbarch_init): Ditto.
9106         * s390-tdep.c (s390_gdbarch_init): Ditto.
9107         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9108         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9109         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9110         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9111         * i386-tdep.c (i386_gdbarch_init): Ditto.
9112         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9113         * frv-tdep.c (frv_gdbarch_init): Ditto.
9114         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9115         * cris-tdep.c (cris_gdbarch_init): Ditto.
9116         * avr-tdep.c (avr_gdbarch_init): Ditto.
9117         * arm-tdep.c (arm_gdbarch_init): Ditto.
9118
9119 2003-03-31  J. Brobecker  <brobecker@gnat.com>
9120
9121         * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
9122         (INIT_FRAME_AP): Likewise.
9123         (EXTRA_FRAME_INFO): Likewise.
9124
9125 2003-03-31  Andrew Cagney  <cagney@redhat.com>
9126
9127         * gdbarch.sh: Include "symfile.h".
9128         (CALL_DUMMY_ADDRESS): Default to entry_point_address.
9129         * gdbarch.h, gdbarch.c: Re-generate.
9130         * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
9131         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9132         call_dummy_address, the default is at entry_point_address.
9133         * v850-tdep.c (v850_gdbarch_init): Ditto.
9134         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9135         * sh-tdep.c (sh_gdbarch_init): Ditto.
9136         * s390-tdep.c (s390_gdbarch_init): Ditto.
9137         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9138         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9139         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9140         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9141         * i386-tdep.c (i386_gdbarch_init): Ditto.
9142         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9143         * frv-tdep.c (frv_gdbarch_init): Ditto.
9144         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9145         * cris-tdep.c (cris_gdbarch_init): Ditto.
9146         * arm-tdep.c (arm_gdbarch_init): Ditto.
9147
9148 2003-03-31  Andrew Cagney  <cagney@redhat.com>
9149
9150         * gdbarch.sh (CALL_DUMMY_P): Delete.
9151         * gdbarch.h, gdbarch.c: Re-generate.
9152         * inferior.h (CALL_DUMMY_P): Delete macro.
9153         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9154         * vax-tdep.c (vax_gdbarch_init): Update.
9155         * v850-tdep.c (v850_gdbarch_init): Update.
9156         * sparc-tdep.c (sparc_gdbarch_init): Update.
9157         * sh-tdep.c (sh_gdbarch_init): Update.
9158         * s390-tdep.c (s390_gdbarch_init): Update.
9159         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9160         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9161         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9162         * mips-tdep.c (mips_gdbarch_init): Update.
9163         * mcore-tdep.c (mcore_gdbarch_init): Update.
9164         * m68k-tdep.c (m68k_gdbarch_init): Update.
9165         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9166         * ia64-tdep.c (ia64_gdbarch_init): Update.
9167         * i386-tdep.c (i386_gdbarch_init): Update.
9168         * h8300-tdep.c (h8300_gdbarch_init): Update.
9169         * frv-tdep.c (frv_gdbarch_init): Update.
9170         * d10v-tdep.c (d10v_gdbarch_init): Update.
9171         * cris-tdep.c (cris_gdbarch_init): Update.
9172         * breakpoint.c (deprecated_frame_in_dummy): Update.
9173         * avr-tdep.c (avr_gdbarch_init): Update.
9174         * alpha-tdep.c (alpha_gdbarch_init): Update.
9175         * arm-tdep.c (arm_gdbarch_init): Update.
9176         * dummy-frame.c (dummy_frame_this_id): Update comments.
9177         * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
9178         * frame.c (legacy_get_prev_frame): Ditto.
9179         * valops.c (call_function_by_hand): Delete function.
9180         (hand_function_call): Rename to call_function_by_hand
9181
9182 2003-03-30  Andrew Cagney  <cagney@redhat.com>
9183
9184         2002-11-10 Klee Dienes <kdienes@apple.com>
9185         * value.h (struct value): Update comment.
9186
9187 2003-03-30  Andrew Cagney  <cagney@redhat.com>
9188
9189         * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
9190         D10V_FP_REGNUM.
9191         (d10v_gdbarch_init): Do not set fp_regnum.
9192
9193         * frame.c (get_frame_base): Force ID initialization.
9194         (get_prev_frame): Move computation of the frame ID from here ...
9195         (get_frame_id): ... to here.
9196         (legacy_get_prev_frame): Mark the frame ID as valid.
9197         * frame.h (struct frame_info): Add field "id_p".
9198
9199 2003-03-30  Mark Kettenis  <kettenis@gnu.org>
9200
9201         * i386-tdep.c (i386_store_struct_return): Removed.
9202         (i386_gdbarch_init): Don't set deprecated_store_struct_return.
9203
9204 2003-03-30  Andrew Cagney  <cagney@redhat.com>
9205
9206         * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
9207         * gdbarch.h, gdbarch.c: Regenerate.
9208         * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
9209         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9210         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9211         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9212         * i386-tdep.c (i386_gdbarch_init): Ditto.
9213         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9214         * cris-tdep.c (cris_gdbarch_init): Ditto.
9215         * vax-tdep.c (vax_gdbarch_init): Ditto.
9216         * s390-tdep.c (s390_gdbarch_init): Ditto.
9217         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9218         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9219         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9220         * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
9221         * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
9222         * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
9223         * sparc-tdep.c (sparc_gdbarch_init): Update.
9224         * sh-tdep.c (sh_gdbarch_init): Update.
9225         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9226         * mips-tdep.c (mips_gdbarch_init): Update.
9227         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9228         * ia64-tdep.c (ia64_gdbarch_init): Update.
9229         * frv-tdep.c (frv_gdbarch_init): Update.
9230         * avr-tdep.c (avr_gdbarch_init): Update.
9231         * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
9232         DEPRECATED_DUMMY_WRITE_SP.  Call when the method is available,
9233         instead of when push_dummy_call is not available.
9234
9235 2003-03-30  Andrew Cagney  <cagney@redhat.com>
9236
9237         * infttrace.c: Include "gdbthread.h".
9238         (parent_attach_all): Fix function signature.
9239         (call_ptrace): Update call.
9240         * Makefile.in (infttrace.o): Update dependencies.
9241
9242 2003-03-30  Andrew Cagney  <cagney@redhat.com>
9243
9244         * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
9245         PUSH_RETURN_ADDRESS.
9246         * gdbarch.h, gdbarch.c: Regenerate.
9247         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9248         * x86-64-tdep.c (x86_64_init_abi): Update.
9249         * v850-tdep.c (v850_gdbarch_init): Update.
9250         * sparc-tdep.c (sparc_gdbarch_init): Update.
9251         * sh-tdep.c (sh_gdbarch_init): Update.
9252         * s390-tdep.c (s390_gdbarch_init): Update.
9253         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9254         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9255         * mips-tdep.c (mips_gdbarch_init): Update.
9256         * mcore-tdep.c (mcore_gdbarch_init): Update.
9257         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9258         * ia64-tdep.c (ia64_gdbarch_init): Update.
9259         * i386-tdep.c (i386_gdbarch_init): Update.
9260         * h8300-tdep.c (h8300_gdbarch_init): Update.
9261         * frv-tdep.c (frv_gdbarch_init): Update.
9262         * cris-tdep.c (cris_gdbarch_init): Update.
9263         * avr-tdep.c (avr_gdbarch_init): Update.
9264         * arm-tdep.c (arm_gdbarch_init): Update.
9265         * valops.c (hand_function_call): Update.
9266
9267 2003-03-29  Andrew Cagney  <cagney@redhat.com>
9268
9269         * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
9270         sizeof_call_dummy_words.
9271         * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
9272         define.
9273         * gdbarch.h: Regenerate.
9274
9275 2003-03-29  Andrew Cagney  <cagney@redhat.com>
9276
9277         * infttrace.h: New file.
9278         * hpread.c: Include "gdb_assert.h" and "somsolib.h".
9279         (hpread_get_textlow): Detect an uninitialized dn_bufp.
9280         (hpread_read_doc_function_type): Detect an initialized type1.
9281         (hpread_quick_traverse): Initialize mod_name_string.
9282         * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
9283         (som_solib_get_solib_by_pc): Declare.
9284         (so_lib_thread_start_addr): Declare.
9285         (no_shared_libraries): Declare.
9286         * somread.c (init_import_symbols): Make static.  Add forward
9287         declaration.
9288         * config/pa/nm-hppah.h: Include "infttrace.h" for
9289         parent_attach_all.
9290         (hppa_insert_hw_watchpoint): Declare.
9291         (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
9292         * hppah-nat.c: Include "gdb_string.h".
9293         (parent_attach_all): Delete extern declaration, moved to
9294         "infttrace.h".
9295         (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
9296         int.
9297         (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
9298         * Makefile.in (infttrace_h): Define.
9299         (hpread.o): Update dependencies.
9300         (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
9301         * hppa-hpux-tdep.c: Include "gdb_string.h".
9302         * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
9303         * infrun.c (handle_inferior_event): Always initialize
9304         stepped_after_stopped_by_watchpoint.  Add default and remove
9305         fallthrough in switch statement.
9306         * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
9307         parameter to int.
9308         (hppa_remove_hw_watchpoint): Ditto.
9309
9310 2003-03-29  Andrew Cagney  <cagney@redhat.com>
9311
9312         * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
9313         offset.
9314
9315 2003-03-29  Richard Earnshaw  <rearnsha@arm.com>
9316
9317         * arm-tdep.c (arm_push_arguments): Delete.
9318         (struct stack_item): New type.
9319         (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
9320         (arm_store_struct_return): Delte.
9321         (arm_gdbarch_init): Register arm_push_dummy_call.  Don't register
9322         arm_push_arguments or arm_store_struct_return.
9323
9324 2003-03-28  Andrew Cagney  <cagney@redhat.com>
9325
9326         * Makefile.in (d10v-tdep.o): Update dependencies.
9327         * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
9328         * d10v-tdep.c: Include "remote.h".
9329         (target_resume_hook): Delete extern declaration.
9330         (target_wait_loop_hook): Ditto.
9331         (tdisassemble_command): Eliminate assignment in "if" conditional.
9332         (d10v_ts2_register_sim_regno): Eliminate call to
9333         legacy_register_sim_regno.
9334         (d10v_ts3_register_sim_regno): Ditto.
9335
9336 2003-03-28  Jeff Johnston  <jjohnstn@redhat.com>
9337
9338         * thread.c: Reindented.
9339         * lin-lwp.c: Ditto.
9340         * linux-proc.c: Ditto.
9341
9342 2003-03-28  Bob Rossi  <bob_rossi@cox.net>
9343
9344         * MAINTAINERS (write after approval): Add myself.
9345
9346 2003-03-27  Theodore A. Roth  <troth@openavr.org>
9347
9348         * objc-exp.y: Add missing semi-colons.
9349
9350 2003-03-27  Andrew Cagney  <cagney@redhat.com>
9351
9352         * regcache.c (write_sp): Delete function and references.
9353         * inferior.h (write_sp): Delete declaration.
9354         * valops.c (hand_function_call): Replace write_sp with
9355         TARGET_WRITE_SP.
9356         * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
9357         (sparc_pop_frame): Ditto.
9358
9359 2003-03-27  Andrew Cagney  <cagney@redhat.com>
9360
9361         * NEWS: Mention removal of support for hppa*-*-bsd* and
9362         hppa*-*-osf* natives, and hppa*-*-pro* target.
9363         * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
9364         * config/pa/xm-pa.h: Obsolete file.
9365         * config/pa/xm-hppab.h: Obsolete file.
9366         * config/pa/nm-hppab.h: Obsolete file.
9367         * config/pa/tm-hppab.h: Obsolete file.
9368         * config/pa/tm-hppao.h: Obsolete file.
9369         * config/pa/nm-hppao.h: Obsolete file.
9370         * config/pa/tm-pro.h: Obsolete file.
9371         * config/pa/hppaosf.mt: Obsolete file.
9372         * config/pa/hppaosf.mh: Obsolete file.
9373         * config/pa/hppapro.mt: Obsolete file.
9374         * config/pa/hppabsd.mt: Obsolete file.
9375         * config/pa/hppabsd.mh: Obsolete file.
9376         * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
9377         * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
9378         hppa*-*-osf*.
9379
9380 2003-03-27  Andrew Cagney  <cagney@redhat.com>
9381
9382         * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
9383         push_arguments.  Don't set push_return_address or write_sp.
9384         (d10v_push_dummy_call): Replace d10v_push_arguments.
9385         (d10v_push_return_address, d10v_write_sp): Delete function,
9386         handled by push_dummy_call.
9387
9388 2003-03-26  Andrew Cagney  <cagney@redhat.com>
9389
9390         * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
9391         (push_dummy_call): New pure multi-arch replacement with gdbarch,
9392         regcache and dummy_addr parameters.
9393         * gdbarch.h, gdbarch.c: Re-generate.
9394         * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
9395         available; assume it will handle stack alignment and return
9396         address issues.  Fall back to DEPRECATED_PUSH_ARGUMENTS and
9397         legacy_push_arguments.
9398         (legacy_push_arguments): Rename default_push_arguments.
9399         * value.h (legacy_push_arguments): Rename default_push_arguments.
9400         * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
9401         * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9402         * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9403         * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9404         * config/i386/tm-symmetry.h: Update.
9405         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9406         * x86-64-tdep.c (x86_64_init_abi): Update.
9407         * v850-tdep.c (v850_gdbarch_init): Update.
9408         * sparc-tdep.c (sparc_gdbarch_init): Update.
9409         * sh-tdep.c (sh_gdbarch_init): Update.
9410         * s390-tdep.c (s390_gdbarch_init): Update.
9411         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9412         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9413         * mips-tdep.c (mips_gdbarch_init): Update.
9414         * mcore-tdep.c (mcore_gdbarch_init): Update.
9415         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9416         * ia64-tdep.c (ia64_gdbarch_init): Update.
9417         * i386-tdep.c (i386_gdbarch_init): Update.
9418         * hppa-tdep.c (hppa_gdbarch_init): Update.
9419         * h8300-tdep.c (h8300_gdbarch_init): Update.
9420         * frv-tdep.c (frv_gdbarch_init): Update.
9421         * d10v-tdep.c (d10v_gdbarch_init): Update.
9422         * cris-tdep.c (cris_gdbarch_init): Update.
9423         * avr-tdep.c (avr_gdbarch_init): Update.
9424         * arm-tdep.c (arm_gdbarch_init): Update.
9425         * arm-linux-tdep.c (arm_linux_init_abi): Update.
9426         * alpha-tdep.c (alpha_gdbarch_init): Update.
9427
9428 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
9429
9430         * signals/signals.c (do_target_signal_to_host): Correct realtime
9431         signal range test.
9432
9433 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
9434
9435         * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
9436         (struct sal_chain, map_catch_names): Remove.
9437         (catch_exception_command_1): Don't call
9438         handle_gnu_4_16_catch_command.
9439
9440 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
9441
9442         From Mark Dettinger <dettinge@de.ibm.com>:
9443         * dwarf2cfi.c (read_2u): Increment pointer by two.
9444
9445 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
9446
9447         * signals/signals.c: Fix typos in last change.
9448
9449 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
9450
9451         * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
9452         not already defined.  Use __SIGRTMIN if available.
9453         (target_signal_from_host): Remove SIGRTMIN block.
9454         (do_target_signal_to_host): Remove SIGRTMIN block; check that
9455         the signal is within the realtime range.
9456
9457 2003-03-25  Adam Fedor  <fedor@gnu.org>
9458
9459         * Makefile.in (infrun.o): Add $(language_h)
9460         * infrun.c (handle_inferior_event): Use skip_language_trampoline
9461         for language specific trampolines.
9462         * language.h (struct language_defn): Add skip_trampoline.
9463         (skip_language_trampoline): Declare.
9464         * language.c (unk_lang_trampoline, skip_language_trampoline):
9465         New functions.
9466         (unknown_language_defn, auto_language_defn, local_language_defn):
9467         Add ukn_lang_trampoline.
9468         * ada-lang.c (ada_language_defn): Add NULL for language
9469         specific skip_trampoline.
9470         * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
9471         scm-lang.c: Likewise.
9472         * objc-lang.c (objc_skip_trampoline): New function.
9473         (objc_language_defn): Add objc_skip_trampoline.
9474
9475 2003-03-25  Andrew Cagney  <cagney@redhat.com>
9476
9477         * frame.c (get_prev_frame): Delay validating a frame's ID -
9478         non-NULL, didn't go backwards - until an attempt to unwind it to
9479         the previous frame.
9480
9481 2003-03-25  Andrew Cagney  <cagney@redhat.com>
9482
9483         * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
9484         EXTRA_STACK_ALIGNMENT_NEEDED.  Default to 0 not 1.
9485         * gdbarch.h, gdbarch.c: Re-generate.
9486         * config/sparc/tm-sparc.h
9487         (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
9488         * sparc-tdep.c (sparc_gdbarch_init): Set
9489         deprecated_extra_stack_alignment_needed.
9490         * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9491         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
9492         extra_stack_alignment_needed.
9493         * v850-tdep.c (v850_gdbarch_init): Ditto.
9494         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9495         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9496         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9497         * cris-tdep.c (cris_gdbarch_init): Ditto.
9498         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9499         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9500
9501 2003-03-25  Andrew Cagney  <cagney@redhat.com>
9502
9503         * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
9504         STORE_STRUCT_RETURN.
9505         * gdbarch.h, gdbarch.c: Regenerate.
9506         * d10v-tdep.c (d10v_store_struct_return): Delete function.
9507         (d10v_push_arguments): Set the struct return register.
9508         (d10v_gdbarch_init): Update.
9509         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9510         * x86-64-tdep.c (x86_64_init_abi): Update.
9511         * vax-tdep.c (vax_gdbarch_init): Update.
9512         * v850-tdep.c (v850_gdbarch_init): Update.
9513         * sparc-tdep.c (sparc_gdbarch_init): Update.
9514         * sh-tdep.c (sh_gdbarch_init): Update.
9515         * s390-tdep.c (s390_gdbarch_init): Update.
9516         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9517         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9518         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9519         * mips-tdep.c (mips_gdbarch_init): Update.
9520         * mcore-tdep.c (mcore_gdbarch_init): Update.
9521         * m68k-tdep.c (m68k_gdbarch_init): Update.
9522         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9523         * ia64-tdep.c (ia64_gdbarch_init): Update.
9524         * i386-tdep.c (i386_gdbarch_init): Update.
9525         * hppa-tdep.c (hppa_gdbarch_init): Update.
9526         * h8300-tdep.c (h8300_gdbarch_init): Update.
9527         * frv-tdep.c (frv_gdbarch_init): Update.
9528         * cris-tdep.c (cris_gdbarch_init): Update.
9529         * avr-tdep.c (avr_gdbarch_init): Update.
9530         * arm-tdep.c (arm_gdbarch_init): Update.
9531         * alpha-tdep.c (alpha_gdbarch_init): Update.
9532
9533 2003-03-25  Andrew Cagney  <cagney@redhat.com>
9534
9535         * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
9536         (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
9537         CALL_DUMMY_STACK_ADJUST with a predicate variable.
9538         * gdbarch.h, gdbarch.c: Regenerate.
9539         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9540         call_dummy_stack_adjust_p.
9541         * vax-tdep.c (vax_gdbarch_init): Ditto.
9542         * v850-tdep.c (v850_gdbarch_init): Ditto.
9543         * sh-tdep.c (sh_gdbarch_init): Ditto.
9544         * s390-tdep.c (s390_gdbarch_init): Ditto.
9545         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9546         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9547         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9548         * mips-tdep.c (mips_gdbarch_init): Ditto.
9549         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9550         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9551         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9552         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9553         * i386-tdep.c (i386_gdbarch_init): Ditto.
9554         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9555         * frv-tdep.c (frv_gdbarch_init): Ditto.
9556         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9557         * cris-tdep.c (cris_gdbarch_init): Ditto.
9558         * avr-tdep.c (avr_gdbarch_init): Ditto.
9559         * arm-tdep.c (arm_gdbarch_init): Ditto.
9560         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9561         * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9562         * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
9563         * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9564         * sparc-tdep.c (sparc_gdbarch_init): Update.  Do not set
9565         call_dummy_stack_adjust_p.
9566         * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
9567         (CALL_DUMMY_STACK_ADJUST): Delete macro.
9568         * sparc-tdep.c (sparc32_push_arguments): Update.
9569         * valops.c (hand_function_call): Update.
9570
9571 2003-03-25  Corinna Vinschen  <vinschen@redhat.com>
9572
9573         * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
9574         set_gdbarch_char_signed.
9575
9576 2003-03-25  Richard Earnshaw  <rearnsha@arm.com>
9577
9578         PR cli/548
9579         * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
9580
9581 2003-03-25  Richard Earnshaw  <rearnsha@arm.com>
9582
9583         * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
9584         (_initialize_arm_tdep): Don't set tm_print_insn.
9585
9586 2003-03-24  Adam Fedor  <fedor@gnu.org>
9587
9588         * Makefile.in (YYOBJ): Add objc-exp.tab.o
9589         * objc-lang.h: Add multiple inclusion protection.
9590         (start_msglist, add_msglist, end_msglist): Additional declarations.
9591
9592 2003-03-24  Richard Earnshaw  <rearnsha@arm.com>
9593
9594         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
9595         value was renamed to ARM_FLOAT_SOFT_FPA.
9596
9597 2003-03-23  Andrew Cagney  <cagney@redhat.com>
9598
9599         * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
9600         (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
9601         * gdbarch.h, gdbarch.c: Regenerate.
9602         * valops.c (hand_function_call): Update.
9603         * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9604         * frame.c (legacy_saved_regs_this_id): Update.
9605         (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
9606         * dummy-frame.h: Update.
9607         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
9608         * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9609         * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
9610         * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
9611         * config/m68k/tm-sun3.h: Update.
9612         * blockframe.c (inside_main_func, frame_chain_valid): Update.
9613         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9614         * x86-64-tdep.c (x86_64_init_abi): Update.
9615         * vax-tdep.c (vax_gdbarch_init): Update.
9616         * v850-tdep.c (v850_gdbarch_init): Update.
9617         * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
9618         * sh-tdep.c (sh_gdbarch_init): Update.
9619         * s390-tdep.c (s390_gdbarch_init): Update.
9620         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
9621         (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
9622         (frame_get_saved_regs): Update.
9623         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9624         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9625         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9626         * mips-tdep.c (mips_gdbarch_init): Update.
9627         * mcore-tdep.c (mcore_gdbarch_init): Update.
9628         * m68k-tdep.c (m68k_gdbarch_init): Update.
9629         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9630         * ia64-tdep.c (ia64_gdbarch_init): Update.
9631         * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
9632         * i386-interix-tdep.c (i386_interix_init_abi): Update.
9633         (i386_interix_back_one_frame): Update.
9634         * hppa-tdep.c (hppa_gdbarch_init): Update.
9635         (hppa_init_extra_frame_info): Update.
9636         * h8300-tdep.c (h8300_gdbarch_init): Update.
9637         * frv-tdep.c (frv_gdbarch_init): Update.
9638         * cris-tdep.c (cris_gdbarch_init): Update.
9639         * avr-tdep.c (avr_gdbarch_init): Update.
9640         * arm-tdep.c (arm_gdbarch_init): Update.
9641         * alpha-tdep.c (alpha_gdbarch_init): Update.
9642
9643 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
9644
9645         * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
9646         (arm_get_fp_model): Declare.
9647         * arm-tdep.c (fp_model_strings): New string array.
9648         (arm_fp_model, current_fp_model): New variables.
9649         (arm_get_fp_model): New function.
9650         (arm_set_fp): New function.
9651         (set_fp_model_sfunc): New function.
9652         (show_fp_model): New function.
9653         (_initialize_arm_tdep): Add new command to set/show the FPU.
9654         (arm_extract_return_value): Use arm_get_fp_model.
9655         (arm_store_return_value): Likewise.
9656         (arm_gdbarch_init): Default fpa model is softfpa.  Call arm_set_fp
9657         to initialize the floating-point data types.
9658         * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
9659         model is FPA.
9660
9661 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
9662
9663         * arm-tdep.c (show_arm_command): Don't print out help.  Instead, show
9664         the current setting of each value.
9665         (_initialize_arm_tdep): Delete variable new_cmd and add new vars
9666         new_set and new_show.  Use add_setshow_cmd_full and
9667         add_setshow_boolean_cmd as appropriate.  Deprecate "set/show apcs32"
9668         commands and add new version as subcommands of "set/show arm".
9669
9670 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
9671
9672         * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
9673         (set_arm_command, show_arm_command): New functions.
9674         (_initialize_arm_tdep): Add them.
9675         (num_disassembly_options): Renamed from num_flavor_options.
9676         (valid_disassembly_styles): Renamed from valid_flavors.
9677         (disassembly_style): Renamed from disassembly_flavor.
9678         (set_disassembly_style_sfunc): Renamed from
9679         set_disassembly_flavor_sfunc.
9680         (set_disassembly_style): Renamed from set_disassembly_flavor.
9681         (arm_othernames): Updated.
9682         (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
9683         command.  Add "set/show arm disassembly" commands.  Deprecate
9684         "othernames" command.
9685
9686 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
9687
9688         * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
9689         (arm-tdep.o): Depend on elf_arm_h.
9690
9691 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
9692
9693         * Makefile.in (coff_internal_h): Define.
9694         (arm-tdep.o): Update dependencies.
9695
9696 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
9697
9698         * arm-tdep.c (prologue_cache): Delete.
9699         (check_prologue_cache, save_prologue_cache): Delete.
9700         (arm_scan_prologue): Don't check or update the prologue_cache.
9701         (arm_gdb_arch_init): Don't initialize it.
9702         (_initialize_arm_tdep): Likewise.
9703
9704 2003-03-21  Stephane Carrez  <stcarrez@nerim.fr>
9705
9706         * MAINTAINERS (tui): Maintainer of tui code.
9707
9708 2003-03-21  Corinna Vinschen  <vinschen@redhat.com>
9709
9710         * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
9711         (i386-cygwin-tdep.o): Add dependencies.
9712         * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
9713         * i386-cygwin-tdep.c: New file.
9714         * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
9715         * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
9716
9717 2003-03-20  Andrew Cagney  <cagney@redhat.com>
9718
9719         * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
9720         (handle_inferior_event): Remove code calling
9721         DYNAMIC_TRAMPOLINE_NEXTPC.
9722
9723         * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
9724         already has a full path.
9725
9726         * main.c (gdb_main): Return 1.
9727         (captured_main): Call error to report an invalid interpreter.
9728
9729         * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
9730         * alpha-osf1-tdep.c: Include "gdb_string.h".
9731
9732 2003-03-19  J. Brobecker  <brobecker@gnat.com>
9733
9734         Continuing work to convert the hppa targets to multiarch partial.
9735
9736         * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
9737         method, now that hppa_push_dummy_frame has a conformant prototype.
9738         * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
9739         inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
9740         for the switch to multiarch partial.
9741
9742 2003-03-19  Kevin Buettner  <kevinb@redhat.com>
9743
9744         * mdebugread.c (parse_symbol): For stEnd, we're done counting
9745         when iss is issNull.
9746
9747 2003-03-18  Kevin Buettner  <kevinb@redhat.com>
9748
9749         * mips-tdep.c (mips_register_name): Fix fencepost error involving
9750         NUM_REGS bounds check.
9751
9752 2003-03-18  Kevin Buettner  <kevinb@redhat.com>
9753
9754         * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
9755         * mips-tdep.c (gdb_assert.h): Include.
9756         (mips_generic_reg_names, mips_processor_reg_names): Make static.
9757         (mips_register_name): Handle integer registers explicitly.  Add
9758         bounds checking.
9759         (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
9760         (mips_lsi33k_reg_names): Don't list integer registers; they're
9761         handled by mips_register_name() now.
9762         * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
9763         * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
9764         * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
9765         * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
9766         * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
9767
9768 2003-03-18  Andrew Cagney  <cagney@redhat.com>
9769
9770         * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
9771         a void pointer.
9772         * gdbtypes.h (print_scalar_formatted): Update declaration.
9773         * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
9774
9775 2003-03-18  J. Brobecker  <brobecker@gnat.com>
9776
9777         * infrun.c (observer.h): Add #include.
9778         (normal_stop): Add call to observer_notify_normal_stop.
9779         * Makefile.in (infrun.o): Add dependency on observer.h.
9780
9781 2003-03-18  J. Brobecker  <brobecker@gnat.com>
9782
9783         Continuing work to convert the hppa targets to multiarch partial.
9784         * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
9785         parameter. Reformat comment.
9786         * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
9787         (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
9788         to match new profile.
9789
9790 2003-03-18  J. Brobecker  <brobecker@gnat.com>
9791
9792         * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
9793         appear to be working in any case.
9794
9795 2003-03-18  J. Brobecker  <brobecker@gnat.com>
9796
9797         * observer.c (observer_test_first_observer): New static variable.
9798         (observer_test_second_observer): Likewise.
9799         (observer_test_third_observer): Likewise.
9800         (observer_test_first_notification_function): New static function.
9801         (observer_test_second_notification_function): Likewise.
9802         (observer_test_third_notification_function): Likewise.
9803
9804 2003-03-17  J. Brobecker  <brobecker@gnat.com>
9805
9806         * hppa-tdep.c (gdb_assert.h): Add missing #include.
9807         * somsolib.c (gdb_assert.h): Likewise.
9808         * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
9809         (somsolib.o): Likewise.
9810
9811 2003-03-17  Andrew Cagney  <cagney@redhat.com>
9812
9813         * disasm.c (gdb_disassembly): Set di.mach using the architecture's
9814         BFD.  Simplify setting of di.endian.
9815
9816 2003-03-17  Andrew Cagney  <cagney@redhat.com>
9817
9818         * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
9819         * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
9820
9821         From Elena Zannoni  <ezannoni@redhat.com>
9822         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
9823         vector and floating-point parameters.
9824         (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
9825         convention.
9826         (ppc_sysv_abi_broken_use_struct_convention): Ditto.
9827
9828 2003-03-17  Fernando Nasser  <fnasser@redhat.com>
9829
9830         * MAINTAINERS: Remove my name from several maintainership roles.
9831
9832 2003-03-17  Andrew Cagney  <cagney@redhat.com>
9833
9834         Fix frame off-by-one bug.
9835         * frame-unwind.h (frame_this_id_ftype): Replace
9836         frame_unwind_id_ftype.
9837         (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
9838         (struct frame_unwind): Replace "id" with "this_id".  Replace "reg"
9839         with "prev_register".
9840         * frame-unwind.c (frame_unwind_find_by_pc): Return
9841         legacy_saved_regs_unwind instead of trad_frame_unwind.  Update
9842         comment.
9843         * dummy-frame.c (cached_find_dummy_frame): Delete function.
9844         (dummy_frame_this_id): Replace dummy_frame_id_unwind.
9845         (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
9846         (dummy_frame_unwind): Update.
9847         * sentinel-frame.c (sentinel_frame_prev_register): Replace
9848         sentinel_frame_register_unwind.
9849         (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
9850         (sentinel_frame_unwinder): Update.
9851         * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9852         (struct frame_info): Rename "unwind_cache" to "prologue_cache".
9853         * frame.c (create_sentinel_frame): Update. Initialize
9854         "prologue_cache" instead of "unwind_cache".
9855         (frame_register_unwind): Call this frame's prev_register with the
9856         next frame and this frame's prologue cache.
9857         (get_prev_frame): Simplify.  Always call prev frame's this_id with
9858         this frame and prev frame's prologue cache.  Document that this
9859         call is shifted one to the left when compared to the
9860         frame_register_unwind call.
9861         (legacy_saved_regs_prev_register): Replace
9862         frame_saved_regs_register_unwind.
9863         (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
9864         (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
9865         (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9866         * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
9867         (d10v_frame_unwind): Update.
9868         (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
9869         (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
9870         (saved_regs_unwinder): Replace this "frame" with "next_frame", and
9871         "saved_regs" with "this_saved_regs".
9872
9873 2003-03-16  Andrew Cagney  <cagney@redhat.com>
9874
9875         * frame.c (frame_pop): Don't call target_store_registers.  Fix
9876         problem reported by Mark Kettenis.
9877
9878 2003-03-16  Mark Kettenis  <kettenis@gnu.org>
9879
9880         * i386-tdep.c (i386_register_type): Renamed from
9881         i386_register_virtual_type.  Adjust function signature.
9882         (i386_gdbarch_init): Set register_type instead of
9883         deprecated_max_register_raw_size,
9884         deprecated_max_register_virtual_size and register_virtual_type.
9885
9886 2003-03-14  Andrew Cagney  <cagney@redhat.com>
9887
9888         * frame.c (get_prev_frame): When a legacy frame, always call
9889         legacy_get_prev_frame.  Simplify unwind code using assumption that
9890         the unwinder is new.
9891         (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
9892         (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
9893         SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
9894
9895 2003-03-14  Andrew Cagney  <cagney@redhat.com>
9896
9897         * frame.c (get_saved_register): Delete function.
9898         * frame.h (get_saved_register): Delete declaration.
9899         * xstormy16-tdep.c: Update comment.
9900         * regcache.h: Update comments.
9901         * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
9902         get_saved_register and extract_address, use
9903         frame_read_unsigned_register.
9904         (sparc_frame_saved_pc): Ditto.
9905         (sparc_get_saved_register): Instead of get_saved_register, use
9906         frame_register.
9907         (sparc_pop_frame): Ditto.
9908         * findvar.c: Update comments.
9909         (value_of_register): Call frame_register instead of
9910         get_saved_register.
9911         (value_from_register): Ditto.
9912         * config/sparc/tm-sparc.h: Update comment.
9913         * breakpoint.c: Update comment.
9914
9915 2003-03-14  Andrew Cagney  <cagney@redhat.com>
9916
9917         * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
9918         GET_SAVED_REGISTER.
9919         * gdbarch.h, gdbarch.c: Re-generate.
9920         * frame.h: Update comments.
9921         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9922         * x86-64-tdep.c (x86_64_init_abi): Update.
9923         * sparc-tdep.c (sparc_gdbarch_init): Update.
9924         * sh-tdep.c (sh_gdbarch_init): Update.
9925         * mips-tdep.c (mips_gdbarch_init): Update.
9926         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9927         * cris-tdep.c (cris_gdbarch_init): Update.
9928         * ia64-tdep.c (ia64_gdbarch_init): Update.
9929         * frame.c (frame_register): Update.
9930         (get_saved_register): Update.
9931         * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
9932
9933 2003-03-13  Andrew Cagney  <cagney@redhat.com>
9934
9935         * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9936         * gdbarch.h, gdbarch.c: Regenerate.
9937         * valops.c (hand_function_call): Update comment.
9938         * stack.c (return_command): Update comment.
9939         * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9940         * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9941         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9942         * x86-64-tdep.c (x86_64_init_abi): Update.
9943         * vax-tdep.c (vax_gdbarch_init): Update.
9944         * v850-tdep.c (v850_gdbarch_init): Update.
9945         * sparc-tdep.c (sparc_gdbarch_init): Update.
9946         * sh-tdep.c (sh_gdbarch_init): Update.
9947         * s390-tdep.c (s390_gdbarch_init): Update.
9948         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9949         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9950         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9951         * mips-tdep.c (mips_gdbarch_init): Update.
9952         * mcore-tdep.c (mcore_gdbarch_init): Update.
9953         * m68k-tdep.c (m68k_gdbarch_init): Update.
9954         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9955         * ia64-tdep.c (ia64_gdbarch_init): Update.
9956         * i386-tdep.c (i386_gdbarch_init): Update.
9957         * hppa-tdep.c (hppa_gdbarch_init): Update.
9958         * h8300-tdep.c (h8300_gdbarch_init): Update.
9959         * frv-tdep.c (frv_gdbarch_init): Update.
9960         * cris-tdep.c (cris_gdbarch_init): Update.
9961         * avr-tdep.c (avr_gdbarch_init): Update.
9962         * arm-tdep.c (arm_gdbarch_init): Update.
9963         * alpha-tdep.c (alpha_gdbarch_init): Update.
9964
9965 2003-03-13  Andrew Cagney  <cagney@redhat.com>
9966
9967         * frame.c (legacy_frame_p): New function.
9968         (get_prev_frame): Use legacy_frame_p.
9969         * frame.h (legacy_frame_p): Declare.
9970
9971 2003-03-13  D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9972
9973         * MAINTAINERS (write after approval): Alphabetically
9974         listing corrected.
9975
9976 2003-03-13  D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9977
9978         * MAINTAINERS (write after approval): Add myself.
9979
9980 2003-03-12  Andrew Cagney  <cagney@redhat.com>
9981
9982         * frame.c (get_prev_frame): Rename the frame parameter to
9983         "this_frame".
9984         (get_next_frame, legacy_get_prev_frame): Ditto.
9985
9986 2003-03-12  Andrew Cagney  <cagney@redhat.com>
9987
9988         * frame.c (get_current_frame): Check target_has_registers before
9989         checking target_has_stack.
9990         * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9991         instead of deprecated_selected_frame.
9992         * findvar.c (value_of_register): Pass "frame", not
9993         deprecated_selected_frame, to value_of_builtin_reg.
9994
9995 2003-03-12  Andrew Cagney  <cagney@redhat.com>
9996
9997         * regcache.c (regcache_cooked_write_signed): New function.
9998         (regcache_cooked_write_unsigned): New function.
9999         (regcache_cooked_read_unsigned): Fix regnum in range assertion.
10000         (regcache_cooked_read_signed): Fix regnum in range assertion.
10001         * regcache.h (regcache_cooked_write_signed): Declare.
10002         (regcache_cooked_write_unsigned): Declare.
10003
10004 2003-03-12  Andrew Cagney  <cagney@redhat.com>
10005
10006         * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
10007         * gdbarch.h, gdbarch.c: Re-generate.
10008         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10009         * x86-64-tdep.h: Update.
10010         * x86-64-tdep.c (x86_64_init_abi): Update.
10011         * v850-tdep.c (v850_gdbarch_init): Update.
10012         * sparc-tdep.c (sparc_gdbarch_init): Update.
10013         * sh-tdep.c (sh_gdbarch_init): Update.
10014         * s390-tdep.c (s390_gdbarch_init): Update.
10015         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10016         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10017         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10018         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10019         * mips-tdep.c (mips_gdbarch_init): Update.
10020         * mcore-tdep.c (mcore_gdbarch_init): Update.
10021         * m68k-tdep.c (m68k_gdbarch_init): Update.
10022         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10023         * ia64-tdep.c (ia64_gdbarch_init): Update.
10024         * i386-tdep.c (i386_gdbarch_init): Update.
10025         * i386-interix-tdep.c (i386_interix_init_abi): Update.
10026         * hppa-tdep.c (hppa_gdbarch_init): Update.
10027         * h8300-tdep.c (h8300_gdbarch_init): Update.
10028         * frv-tdep.c (frv_gdbarch_init): Update.
10029         * cris-tdep.c (cris_gdbarch_init): Update.
10030         * avr-tdep.c (avr_gdbarch_init): Update.
10031         * arm-tdep.c (arm_gdbarch_init): Update.
10032         * alpha-tdep.c (alpha_gdbarch_init): Update.
10033         * sh-tdep.c (sh_init_extra_frame_info): Update.
10034         (sh64_init_extra_frame_info): Update.
10035         * ns32knbsd-nat.c (frame_num_args): Update.
10036         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10037         * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10038         (xstormy16_frame_chain_valid): Update.
10039         * vax-tdep.c (vax_saved_pc_after_call): Update.
10040         * v850-tdep.c (v850_frame_chain): Update.
10041         (v850_pop_frame): Update.
10042         (v850_init_extra_frame_info): Update.
10043         * sparc-tdep.c (setup_arbitrary_frame): Update.
10044         * ns32k-tdep.c (umax_frame_num_args): Update.
10045         * s390-tdep.c (s390_pop_frame_regular): Update.
10046         * mn10300-tdep.c (mn10300_frame_chain): Update.
10047         (mn10300_pop_frame_regular): Update.
10048         (mn10300_init_extra_frame_info): Update.
10049         * mips-tdep.c (mips_init_frame_pc_first): Update.
10050         (mips_frame_chain): Update.
10051         (mips_pop_frame): Update.
10052         * mcore-tdep.c (mcore_frame_chain): Update.
10053         (mcore_pop_frame): Update.
10054         (mcore_init_extra_frame_info): Update.
10055         * arch-utils.c (init_frame_pc_default): Update.
10056         * m68k-tdep.c (isi_frame_num_args): Update.
10057         (delta68_frame_num_args): Update.
10058         (news_frame_num_args): Update.
10059         * ia64-tdep.c (ia64_pop_frame_regular): Update.
10060         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10061         (alpha_frame_chain): Update.
10062         (alpha_pop_frame): Update.
10063         * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10064         (hppa_init_extra_frame_info): Update.
10065         (hppa_frame_chain): Update.
10066         (hppa_frame_chain_valid): Update.
10067         * cris-tdep.c (cris_init_extra_frame_info): Update.
10068         * avr-tdep.c (avr_init_extra_frame_info): Update.
10069         * arm-tdep.c (arm_frame_chain_valid): Update.
10070         (arm_init_extra_frame_info): Update.
10071         (arm_pop_frame): Update.
10072         * frame.c (frame_pc_unwind): Update.
10073         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10074         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10075         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10076         * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10077         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10078         * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
10079
10080 2003-03-12  Andrew Cagney  <cagney@redhat.com>
10081
10082         Eliminate the need for POP_FRAME.
10083         * frame.c (do_frame_unwind_register): New function.
10084         (frame_pop): When no POP_FRAME, pop the frame using register
10085         unwind and a scratch regcache.
10086         (frame_saved_regs_pop): Delete function.
10087         (trad_frame_unwinder): Update.
10088         * d10v-tdep.c (d10v_frame_pop): Delete function.
10089         (d10v_frame_unwind): Update.
10090         * sentinel-frame.c (sentinel_frame_pop): Delete function.
10091         (sentinel_frame_unwinder): Update.
10092         * dummy-frame.c (dummy_frame_pop): Delete function.
10093         (dummy_frame_unwind): Update.
10094         * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
10095         (struct frame_unwind): Update.
10096
10097 2003-03-11  Kevin Buettner  <kevinb@redhat.com>
10098
10099         * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
10100         mips_dwarf_dwarf2_ecoff_reg_to_regnum().
10101         (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
10102         Do range checks on register number obtained from debugging info.
10103         (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
10104         set_gdbarch_dwarf2_reg_to_regnum().  Adjust call of
10105         set_gdbarch_ecoff_reg_to_regnum() to account for new name of
10106         mapping function.
10107         (do_fp_register_row): Fix typo which caused double type to be
10108         used when attempting to unpack a float.
10109
10110 2003-03-11  J. Brobecker  <brobecker@gnat.com>
10111
10112         * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
10113
10114 2003-03-11  Andrew Cagney  <cagney@redhat.com>
10115
10116         * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
10117         frame.  Problem found by Corinna Vinschen.
10118
10119 2003-03-11  Pierre Muller  <muller@ics.u-strasbg.fr>
10120
10121         * doublest.c (floatformat_from_length): Accept also
10122         the real size of 'long double' type.
10123
10124 2003-03-10  Daniel Jacobowitz  <drow@mvista.com>
10125
10126         From Klee Dienes <kdienes@apple.com>:
10127         * breakpoint.c (bpstat_copy): Copy the command lines as well
10128         as the old value, to match what is freed in bpstat_clear.
10129
10130 2003-03-10  David Carlton  <carlton@math.stanford.edu>
10131
10132         * minsyms.c (add_minsym_to_hash_table): Replace
10133         DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
10134         (compare_minimal_symbols, compact_minimal_symbols)
10135         (install_minimal_symbols, find_solib_trampoline_target): Ditto.
10136         (lookup_minimal_symbol_text): Use strcmp on linkage names instead
10137         of DEPRECATED_SYMBOL_MATCHES_NAME.
10138         (lookup_minimal_symbol_solib_trampoline): Ditto.
10139
10140 2003-03-10  Andrew Cagney  <cagney@redhat.com>
10141
10142         * regcache.h (regcache_cooked_read_ftype): Define.
10143         (regcache_save, regcache_restore): Add a cooked_read parameter.
10144         * regcache.c (regcache_save, regcache_restore): Update.
10145         (do_cooked_read): New function.
10146         (regcache_cpy): Pass do_cooked_read to regcache_save and
10147         regcache_restore.
10148
10149 2003-03-10  Andrew Cagney  <cagney@redhat.com>
10150
10151         * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
10152         * gdbarch.h, gdbarch.c: Re-generate.
10153         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10154         * x86-64-tdep.h: Update.
10155         * x86-64-tdep.c (x86_64_init_abi): Update.
10156         * v850-tdep.c (v850_gdbarch_init): Update.
10157         * sparc-tdep.c (sparc_gdbarch_init): Update.
10158         * sh-tdep.c (sh_gdbarch_init): Update.
10159         * s390-tdep.c (s390_gdbarch_init): Update.
10160         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10161         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10162         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10163         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10164         * mips-tdep.c (mips_gdbarch_init): Update.
10165         * mcore-tdep.c (mcore_gdbarch_init): Update.
10166         * m68k-tdep.c (m68k_gdbarch_init): Update.
10167         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10168         * ia64-tdep.c (ia64_gdbarch_init): Update.
10169         * i386-tdep.c (i386_gdbarch_init): Update.
10170         * i386-interix-tdep.c (i386_interix_init_abi): Update.
10171         * hppa-tdep.c (hppa_gdbarch_init): Update.
10172         * h8300-tdep.c (h8300_gdbarch_init): Update.
10173         * frv-tdep.c (frv_gdbarch_init): Update.
10174         * cris-tdep.c (cris_gdbarch_init): Update.
10175         * avr-tdep.c (avr_gdbarch_init): Update.
10176         * arm-tdep.c (arm_gdbarch_init): Update.
10177         * alpha-tdep.c (alpha_gdbarch_init): Update.
10178         * sh-tdep.c (sh_init_extra_frame_info): Update.
10179         (sh64_init_extra_frame_info): Update.
10180         * ns32knbsd-nat.c (frame_num_args): Update.
10181         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10182         * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10183         (xstormy16_frame_chain_valid): Update.
10184         * vax-tdep.c (vax_saved_pc_after_call): Update.
10185         * v850-tdep.c (v850_frame_chain): Update.
10186         (v850_pop_frame): Update.
10187         (v850_init_extra_frame_info): Update.
10188         * sparc-tdep.c (setup_arbitrary_frame): Update.
10189         * ns32k-tdep.c (umax_frame_num_args): Update.
10190         * s390-tdep.c (s390_pop_frame_regular): Update.
10191         * mn10300-tdep.c (mn10300_frame_chain): Update.
10192         (mn10300_pop_frame_regular): Update.
10193         (mn10300_init_extra_frame_info): Update.
10194         * mips-tdep.c (mips_init_frame_pc_first): Update.
10195         (mips_frame_chain): Update.
10196         (mips_pop_frame): Update.
10197         * mcore-tdep.c (mcore_frame_chain): Update.
10198         (mcore_pop_frame): Update.
10199         (mcore_init_extra_frame_info): Update.
10200         * arch-utils.c (init_frame_pc_default): Update.
10201         * m68k-tdep.c (isi_frame_num_args): Update.
10202         (delta68_frame_num_args): Update.
10203         (news_frame_num_args): Update.
10204         * ia64-tdep.c (ia64_pop_frame_regular): Update.
10205         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10206         (alpha_frame_chain): Update.
10207         (alpha_pop_frame): Update.
10208         * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10209         (hppa_init_extra_frame_info): Update.
10210         (hppa_frame_chain): Update.
10211         (hppa_frame_chain_valid): Update.
10212         * cris-tdep.c (cris_init_extra_frame_info): Update.
10213         * avr-tdep.c (avr_init_extra_frame_info): Update.
10214         * arm-tdep.c (arm_frame_chain_valid): Update.
10215         (arm_init_extra_frame_info): Update.
10216         (arm_pop_frame): Update.
10217         * frame.c (frame_pc_unwind): Update.
10218         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10219         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10220         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10221         * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10222         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10223         * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
10224
10225 2003-03-10  Andrew Cagney  <cagney@redhat.com>
10226
10227         * gdbarch.sh (gdbarch_unwind_pc): New method.
10228         * gdbarch.h, gdbarch.c: Regenerate.
10229         * frame.c (frame_pc_unwind): Rewrite.  Prefer gdbarch_unwind_pc,
10230         but use read_pc and FRAME_SAVED_PC as fall backs.
10231         (frame_saved_regs_pc_unwind): Delete function.
10232         (trad_frame_unwinder): Update.
10233         * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
10234         (struct frame_unwind): Update.
10235         * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
10236         (dummy_frame_unwind): Update.
10237         * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
10238         (sentinel_frame_unwinder): Update.
10239         * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
10240         (d10v_frame_unwind): Update.
10241         (d10v_unwind_pc): New function.
10242         (d10v_gdbarch_init): Set unwind_pc.
10243
10244 2003-03-10  Andrew Cagney  <cagney@redhat.com>
10245
10246         * gdbarch.h: Re-generate.
10247
10248         * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
10249         PC.
10250         (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
10251         the PC register.
10252
10253 2003-03-08  Mark Kettenis  <kettenis@gnu.org>
10254
10255         * gdbarch.sh (save_dummy_frame_tos): Add comment.
10256
10257 2003-03-08  Andrew Cagney  <cagney@redhat.com>
10258
10259         * cli-out.c: Update copyright.
10260         (cli_out_data): Define typedef.  Use instead of ui_out_data.
10261
10262 2003-03-08  Andrew Cagney  <cagney@redhat.com>
10263
10264         * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
10265         the result.
10266
10267 2003-03-07  Andrew Cagney  <cagney@redhat.com>
10268
10269         * gdbarch.sh: Don't generate two macro definitions when an
10270         undefined macro taking no arguments.
10271         * gdbarch.h: Regenerate.
10272
10273 2002-03-07  Michal Ludvig  <mludvig@suse.cz>
10274
10275         * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
10276         (x86_64_unwind_dummy_id): New functions.
10277         (x86_64_init_abi): Register these two new functions.
10278
10279 2003-03-07  Michal Ludvig  <mludvig@suse.cz>
10280
10281         * x86-64-tdep.c (x86_64_function_has_prologue): New function.
10282         (x86_64_skip_prologue): Move prologue detection to
10283         separate function.
10284         * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
10285
10286 2003-03-05  Andrew Cagney  <cagney@redhat.com>
10287
10288         * d10v-tdep.c (d10v_unwind_dummy_id): New function.
10289         (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
10290         * frame.c (get_prev_frame): Restructure the frame ID unwind code
10291         to use unwind_dummy_id when a dummy frame.
10292         * gdbarch.sh (unwind_dummy_id): New multi-arch method with
10293         predicate.
10294         * gdbarch.h, gdbarch.c: Regneerate.
10295
10296 2003-03-05  Andrew Cagney  <cagney@redhat.com>
10297
10298         * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
10299         (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
10300         Do not use d10v_read_sp or d10v_read_fp when obtaining register
10301         values.
10302
10303 2003-03-05  Andrew Cagney  <cagney@redhat.com>
10304
10305         * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
10306         (struct d10v_unwind_cache): Delete field "frameless".  Replace
10307         "next_addr" with "sp_offset".  Add "r11_offset".
10308         (d10v_frame_unwind_cache): Update.
10309         (prologue_find_regs): Update.  When "mv r11, sp", save the
10310         "sp_offset" in "r11_offset".  Recognize "st rn, @r11", note that
10311         RN was saved in r11_offset.
10312
10313 2003-03-05  Andrew Cagney  <cagney@redhat.com>
10314
10315         * frame.c (deprecated_update_frame_pc_hack): Also update the the
10316         cached PC value in the next frame.
10317
10318 2003-03-05  Andrew Cagney  <cagney@redhat.com>
10319
10320         * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
10321         "id_unwind_cache" with "id".
10322         (frame_id_unwind): Delete declaration.
10323         * frame.c (frame_id_unwind): Delete function.
10324         (get_prev_frame): Call the frame id unwind method directly.  Store
10325         the returned next frame's ID value in NEXT_FRAME.  Note that there
10326         is a problem with the wrong unwind ID being called with the wrong
10327         unwind cache.
10328
10329 2003-03-05  Daniel Jacobowitz  <drow@mvista.com>
10330
10331         * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
10332
10333 2003-03-05  James Ingham <jingham@apple.com>
10334             Daniel Jacobowitz  <drow@mvista.com>
10335
10336         * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
10337         (auto_cp_abi): New variable.
10338         (current_cp_abi, num_cp_abis): Make static.
10339         (CP_ABI_MAX): Define.
10340         (cp_abis): Turn into an array.
10341         (value_virtual_fn_field): Fix formatting.
10342         (switch_to_cp_abi, register_cp_abi): Update.  register_cp_abi now
10343         takes a pointer.
10344         (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
10345         (list_cp_abis, _initialize_cp_abi): New functions.
10346         * cp-abi.h: Add prototype for set_cp_abi_as_auto_default.  Remove
10347         declarations for cp_abis, num_cp_abis, current_cp_abi, and
10348         switch_to_cp_abi.  Update prototype for register_cp_abi.
10349         * Makefile.in (cp-abi.o): Update dependencies.
10350         * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
10351         instead of switch_to_cp_abi.
10352         * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise.  Update call to
10353         register_cp_abi.
10354         * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
10355         register_cp_abi.
10356         * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
10357
10358 2003-03-05  Daniel Jacobowitz  <drow@mvista.com>
10359
10360         * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
10361         * dwarf2loc.c: Include "regcache.h".
10362         (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum.  Use
10363         register_size.
10364         * Makefile.in (dwarf2loc.o): Update dependencies.
10365
10366 2003-03-04  Theodore A. Roth  <troth@openavr.org>
10367
10368         * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
10369         number of io registers reported by remote target is not a multiple of
10370         step.
10371
10372 2003-03-04  David Carlton  <carlton@math.stanford.edu>
10373
10374         * symtab.c (lookup_partial_symbol): Add linkage_name argument.
10375         (lookup_symbol_aux_psymtabs): Update call to
10376         lookup_partial_symbol.
10377         (lookup_transparent_type, find_main_psymtab)
10378         (make_symbol_overload_list): Ditto.
10379
10380 2003-03-04  Kazu Hirata  <kazu@cs.umass.edu>
10381
10382         * MAINTAINERS (Write after approval): Update my email address.
10383
10384 2003-03-03  Andrew Cagney  <cagney@redhat.com>
10385
10386         Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
10387         * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
10388         predicate.  Replace MAX_REGISTER_RAW_SIZE.
10389         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
10390         MAX_REGISTER_VIRTUAL_SIZE.
10391         * regcache.c (legacy_max_register_raw_size): New function.
10392         (legacy_max_register_virtual_size): New function.
10393         * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
10394         (MAX_REGISTER_RAW_SIZE): Define.
10395         (legacy_max_register_raw_size): Declare.
10396         (legacy_max_register_virtual_size): Declare.
10397         * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10398         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
10399         * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10400         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10401         * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10402         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10403         * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10404         * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10405         * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10406         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10407         * vax-tdep.c (vax_gdbarch_init): Update.
10408         * v850-tdep.c (v850_gdbarch_init): Update.
10409         * sparc-tdep.c (sparc_gdbarch_init): Update.
10410         * sh-tdep.c (sh_gdbarch_init): Update.
10411         * s390-tdep.c (s390_gdbarch_init): Update.
10412         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10413         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10414         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10415         * mips-tdep.c (mips_gdbarch_init): Update.
10416         * mcore-tdep.c (mcore_gdbarch_init): Update.
10417         * m68k-tdep.c (m68k_gdbarch_init): Update.
10418         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10419         * ia64-tdep.c (ia64_gdbarch_init): Update.
10420         * i386-tdep.c (i386_gdbarch_init): Update.
10421         * hppa-tdep.c (hppa_gdbarch_init): Update.
10422         * h8300-tdep.c (h8300_gdbarch_init): Update.
10423         * frv-tdep.c (frv_gdbarch_init): Update.
10424         * cris-tdep.c (cris_gdbarch_init): Update.
10425         * avr-tdep.c (avr_gdbarch_init): Update.
10426         * arm-tdep.c (arm_gdbarch_init): Update.
10427         * alpha-tdep.c (alpha_gdbarch_init): Update.
10428         * d10v-tdep.c (d10v_gdbarch_init): Do not set
10429         max_register_raw_size or max_register_virtual_size.
10430
10431 2003-03-03  David Carlton  <carlton@math.stanford.edu>
10432
10433         * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
10434         SYMBOL_MATCHES_NAME, add comment.
10435         (SYMBOL_MATCHES_NATURAL_NAME): New.
10436         * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
10437         SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
10438         (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
10439         * symtab.c (lookup_partial_symbol): Use
10440         SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME.  Delete
10441         unhelpful comment.
10442         (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
10443         SYMBOL_MATCHES_NAME.
10444         Fix for PR c++/33.
10445
10446 2003-03-03  David Carlton  <carlton@math.stanford.edu>
10447
10448         * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
10449         * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
10450         by regexp matching against SYMBOL_NATURAL_NAME.
10451
10452 2003-03-03  David Carlton  <carlton@math.stanford.edu>
10453
10454         * linespec.c (find_method): Extract code into collect_methods.
10455         (collect_methods): New.
10456
10457 2003-03-02  Mark Kettenis  <kettenis@gnu.org>
10458
10459         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
10460         get_frame_base.
10461
10462         * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
10463         DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10464
10465 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
10466
10467         * arch-utils.c (generic_register_byte): Fix to use the loop index
10468         and not regnum when summing the size of all registers up to regnum.
10469
10470 2003-03-01  Andrew Cagney  <cagney@redhat.com>
10471
10472         * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
10473         FRAME_INIT_SAVED_REGS.
10474         * gdbarch.h, gdbarch.c: Regenerate.
10475         * stack.c (frame_info): Update.
10476         * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
10477         (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
10478         (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
10479         * ns32k-tdep.c (ns32k_pop_frame): Update.
10480         * mips-tdep.c (mips_pop_frame): Update.
10481         * m68hc11-tdep.c (m68hc11_pop_frame): Update.
10482         * ia64-tdep.c (ia64_frame_chain): Update.
10483         (ia64_frame_saved_pc, ia64_get_saved_register): Update.
10484         (ia64_frameless_function_invocation): Update.
10485         (ia64_init_extra_frame_info): Update.
10486         (ia64_pop_frame_regular): Update.
10487         * frame.h (struct frame_info): Update comment.
10488         (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
10489         * frame.c (frame_saved_regs_register_unwind): Update.
10490         (frame_saved_regs_register_unwind): Update.
10491         (deprecated_generic_get_saved_register): Update.
10492         * cris-tdep.c: Update comment.
10493         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
10494         Rename macro.
10495         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10496         * x86-64-tdep.c (x86_64_init_abi): Update.
10497         * vax-tdep.c (vax_gdbarch_init): Update.
10498         * v850-tdep.c (v850_gdbarch_init): Update.
10499         * sparc-tdep.c (sparc_gdbarch_init): Update.
10500         * sh-tdep.c (sh_gdbarch_init): Update.
10501         * s390-tdep.c (s390_gdbarch_init): Update.
10502         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10503         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10504         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10505         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10506         * mips-tdep.c (mips_gdbarch_init): Update.
10507         * mcore-tdep.c (mcore_gdbarch_init): Update.
10508         * m68k-tdep.c (m68k_gdbarch_init): Update.
10509         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10510         * ia64-tdep.c (ia64_gdbarch_init): Update.
10511         * i386-tdep.c (i386_gdbarch_init): Update.
10512         * frv-tdep.c (frv_gdbarch_init): Update.
10513         * avr-tdep.c (avr_gdbarch_init): Update.
10514         * arm-tdep.c (arm_gdbarch_init): Update.
10515         * alpha-tdep.c (alpha_gdbarch_init): Update.
10516
10517 2003-03-01  Andrew Cagney  <cagney@redhat.com>
10518
10519         * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
10520         option enum and switch.  When no windows, set the interpreter to
10521         INTERP_CONSOLE.
10522
10523 2003-03-01  Andrew Cagney  <cagney@redhat.com>
10524
10525         * main.c (captured_main): Replace magic option characters with an
10526         enum.
10527
10528 2003-03-01  Andrew Cagney  <cagney@redhat.com>
10529
10530         * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
10531         INIT_EXTRA_FRAME_INFO.
10532         * gdbarch.h, gdbarch.c: Regenerate.
10533         * arm-tdep.c: Update comments.
10534         * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
10535         * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
10536         * frame.h, avr-tdep.c: Ditto.
10537         * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
10538         (create_new_frame, legacy_get_prev_frame): Ditto.
10539         * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10540         * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10541         * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
10542         deprecated_init_extra_frame_info instead of init_extra_frame_info.
10543         * x86-64-tdep.c (x86_64_init_abi): Ditto.
10544         * v850-tdep.c (v850_gdbarch_init): Ditto.
10545         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10546         * sh-tdep.c (sh_gdbarch_init): Ditto.
10547         * s390-tdep.c (s390_gdbarch_init): Ditto.
10548         * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
10549         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10550         * mips-tdep.c (mips_gdbarch_init): Ditto.
10551         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10552         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10553         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10554         * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10555         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10556         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10557         * frv-tdep.c (frv_gdbarch_init): Ditto.
10558         * cris-tdep.c (cris_gdbarch_init): Ditto.
10559         * avr-tdep.c (avr_gdbarch_init): Ditto.
10560         * arm-tdep.c (arm_gdbarch_init): Ditto.
10561         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10562         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10563
10564 2003-03-01  Andrew Cagney  <cagney@redhat.com>
10565
10566         * gdbarch.sh (register_type): New function with predicate.
10567         (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
10568         * gdbarch.h, gdbarch.c: Re-generate.
10569         * arch-utils.c (generic_register_byte): Use generic_register_size.
10570         (generic_register_size): When available, use
10571         gdbarch_register_type.
10572         * regcache.c (init_regcache_descr): When available, initialize the
10573         register type array using gdbarch_register_type.  If the
10574         architecture supplies gdbarch_register_type, do not use the legacy
10575         regcache layout.
10576         * d10v-tdep.c (d10v_register_type): Replace
10577         d10v_register_virtual_type.
10578         (d10v_gdbarch_init): Set register_type instead of
10579         register_virtual_type.
10580
10581 2003-03-01  Andrew Cagney  <cagney@redhat.com>
10582
10583         * Makefile.in (ax-gdb.o): Update dependencies.
10584         * ax-gdb.c: Include "regcache.h".
10585         (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
10586         * findvar.c (value_of_register): Ditto.
10587         * infcmd.c (default_print_registers_info): Ditto.
10588
10589 2003-03-01  Mark Kettenis  <kettenis@gnu.org>
10590
10591         * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
10592         DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10593
10594 2003-03-01  Mark Kettenis  <kettenis@gnu.org>
10595
10596         * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
10597         of STREQ.
10598
10599 2003-02-28  Daniel Jacobowitz  <drow@mvista.com>
10600
10601         * Makefile.in (dwarf2loc.o): Update dependencies.
10602         * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
10603         * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
10604         * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
10605         * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
10606         (locexpr_tracepoint_var_ref): New function.
10607         (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
10608
10609 2003-02-28  Andrew Cagney  <cagney@redhat.com>
10610
10611         * regcache.c (register_size): New function.
10612         * regcache.h (register_size): Declare
10613         * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
10614         max_register_size instead of MAX_REGISTER_RAW_SIZE.
10615
10616 2003-02-28  David Carlton  <carlton@math.stanford.edu>
10617
10618         * linespec.c (decode_compound): Extract code into find_method.
10619         (find_method): New.
10620
10621 2003-02-28  J. Brobecker  <brobecker@gnat.com>
10622
10623         * Makefile.in: Add rules to build and link in observer.o.
10624
10625 2003-02-27  J. Brobecker  <brobecker@gnat.com>
10626
10627         * observer.c: Minor comments edits.
10628
10629 2003-02-27  J. Brobecker  <brobecker@gnat.com>
10630
10631         * observer.h, observer.c: New file.
10632
10633 2003-02-27  Andrew Cagney  <cagney@redhat.com>
10634
10635         * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
10636
10637 2003-02-27  Stephane Carrez  <stcarrez@nerim.fr>
10638
10639         * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
10640         (M6812_OP_STS_EXT): Likewise.
10641         (m6811_prologue): Use the above to recognize prologue.
10642         (m6812_prologue): Likewise.
10643
10644 2003-02-27  David Carlton  <carlton@math.stanford.edu>
10645
10646         * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
10647         SYMBOL_PRINT_NAME.
10648         (compare_psymbols): Ditto.
10649         * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
10650
10651 2003-02-27  Michael Snyder  <msnyder@redhat.com>
10652
10653         * f-lang.c (build_fortran_types): New function.
10654         (_initialize_f_language): Gdbarch-register built-in fortran types.
10655         * doublest.c (extract_floating): Fix warning text.
10656
10657 2003-02-27  Andrew Cagney  <cagney@redhat.com>
10658
10659         * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
10660         predicate.  Replaces PUSH_DUMMY_FRAME.
10661         * gdbarch.h, gdbarch.c: Regnerate.
10662         * valops.c (hand_function_call): Update.  Call
10663         generic_push_dummy_frame directly.
10664         * vax-tdep.c (vax_gdbarch_init): Update.
10665         * sparc-tdep.c (sparc_gdbarch_init): Update.
10666         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10667         * m68k-tdep.c (m68k_gdbarch_init): Update.
10668         * hppa-tdep.c (hppa_gdbarch_init): Update.
10669         * alpha-tdep.c (alpha_gdbarch_init): Update.
10670         * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10671         * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10672         * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
10673         * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
10674         push_dummy_frame to generic_push_dummy_frame.
10675         * v850-tdep.c (v850_gdbarch_init): Ditto.
10676         * sh-tdep.c (sh_gdbarch_init): Ditto.
10677         * s390-tdep.c (s390_gdbarch_init): Ditto.
10678         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10679         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10680         * mips-tdep.c (mips_gdbarch_init): Ditto.
10681         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10682         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10683         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10684         * i386-tdep.c (i386_gdbarch_init): Ditto.
10685         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10686         * frv-tdep.c (frv_gdbarch_init): Ditto.
10687         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10688         * cris-tdep.c (cris_gdbarch_init): Ditto.
10689         * avr-tdep.c (avr_gdbarch_init): Ditto.
10690         * arm-tdep.c (arm_gdbarch_init): Ditto.
10691
10692 2003-02-26  Kevin Buettner  <kevinb@redhat.com>
10693
10694         * mips-tdep.c (show_mips_abi): New function.
10695         (_initialize_mips_tdep): Use show_mips_abi() to implement the
10696         command ``show mips abi''.
10697
10698 2003-02-26  Jeff Johnston  <jjohnstn@redhat.com>
10699
10700         From Elena Zannoni  <ezannoni@redhat.com>
10701         * dbxread.c (process_one_symbol): Only record line 0 if one or
10702         more sline entries have been seen for the function.
10703
10704 2003-02-26  Michael Chastain  <mec@shout.net>
10705
10706         * configure: Regenerate with autoconf 000227.
10707
10708 2003-02-26  Michael Chastain  <mec@shout.net>
10709
10710         Close PR build/660.
10711         * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
10712         for old libc5/glibc.
10713         * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
10714
10715 2003-02-26  Kris Warkentin  <kewarken@qnx.com>
10716
10717         * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
10718         * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
10719
10720 2003-02-26  Michael Chastain  <mec@shout.net>
10721
10722         * configure.in: New variable HAVE_UINTPTR_T.
10723         * configure, config.in: Regenerated.
10724
10725 2003-02-26  Daniel Jacobowitz  <drow@mvista.com>
10726
10727         Fix PR build/1097.
10728         * utils.c (gdb_realpath): Move closing brace outwards one #endif.
10729
10730 2003-02-25  Andrew Cagney  <cagney@redhat.com>
10731
10732         * frame.c (get_prev_frame): Add comment on check for
10733         inside_entry_func. Only check for inside_entry_file when not a
10734         dummy and not a sentinel.  Check that the new frame is not inner
10735         to the old frame.
10736
10737 2003-02-25  Andrew Cagney  <cagney@redhat.com>
10738
10739         * frame.c (frame_debug): New variable.
10740         (_initialize_frame): Add "set/show debug frame" command.
10741         (get_prev_frame): When frame_debug, print reason why unwind
10742         failed.
10743
10744 2003-02-25  Michael Chastain  <mec@shout.net>
10745
10746         * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
10747         to avoid uintptr_t definition problems.
10748
10749 2003-02-25  David Carlton  <carlton@math.stanford.edu>
10750
10751         * symtab.h (SYMBOL_NATURAL_NAME): New macro.
10752         (SYMBOL_LINKAGE_NAME): Ditto.
10753         (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
10754         SYMBOL_LINKAGE_NAME.
10755         (struct general_symbol_info): Expand comment.
10756         (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
10757         (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
10758         (SYMBOL_MATCHES_REGEXP): Ditto.
10759         * symtab.c (symbol_natural_name): New function.
10760         * objfiles.h: Replace all uses of SYMBOL_NAME by
10761         DEPRECATED_SYMBOL_NAME.
10762         * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
10763         * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
10764         * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
10765         * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
10766         * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
10767         * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
10768         * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
10769         * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
10770         * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
10771         * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
10772         * ada-exp.y: Ditto.
10773         * ada-exp.y: Update copyright.
10774         * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
10775         * cp-valprint.c: Ditto.
10776
10777 2003-02-25  Jeff Johnston  <jjohnstn@redhat.com>
10778
10779         * infptrace.c (detach): Do not flag error if ptrace detach fails
10780         and errno is set to ESRCH.
10781
10782 2003-02-24  Andrew Cagney  <cagney@redhat.com>
10783
10784         * infptrace.c (udot_info): Change type of udot_off to long.  Use
10785         paddr when printing udot_off's value.
10786
10787 2003-02-24  David Carlton  <carlton@math.stanford.edu>
10788
10789         * symtab.c (make_symbol_overload_list): Only read in partial
10790         symtabs containing a matching partial symbol.
10791
10792 2003-02-24  David Carlton  <carlton@math.stanford.edu>
10793
10794         * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
10795         do the comparison, not strcmp.
10796         * symfile.c (compare_psymbols): Ditto.
10797         * defs.h: Declare strcmp_iw_ordered.
10798         * utils.c (strcmp_iw_ordered): New function.
10799
10800 2003-02-24  Jim Blandy  <jimb@redhat.com>
10801
10802         * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
10803         support, shared libs): Remove my name from here, to better reflect
10804         reality.
10805
10806 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
10807
10808         * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
10809         (target_ops): Add to_have_continuable_watchpoint.
10810         * target.c (update_current_target): Add INHERIT line for
10811         to_have_continuable_watchpoint.
10812         * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
10813         * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
10814         config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
10815         config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
10816
10817 2003-02-24  Elena Zannoni  <ezannoni@redhat.com>
10818
10819         * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
10820         maintainership.
10821
10822 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
10823
10824         * solib.c (solib_open): Call target defined search function after
10825         failing with solib-search-path.
10826         * solist.h (target_so_ops): Add find_and_open_solib function hook and
10827         create define TARGET_SO_FIND_AND_OPEN_SOLIB.
10828
10829 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
10830
10831         * MAINTAINERS: Add myself to Write After section.
10832
10833 2003-02-23  Stephane Carrez  <stcarrez@nerim.fr>
10834
10835         * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
10836
10837 2003-02-22  Stephane Carrez  <stcarrez@nerim.fr>
10838
10839         * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
10840         (m68hc11_add_reggroups): New function.
10841         (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
10842         (m68hc11_gdbarch_init): Install the reggroups.
10843         (_initialize_m68hc11_tdep): Initialize them.
10844
10845 2003-02-21  James E Wilson  <wilson@tuliptree.org>
10846
10847         * MAINTAINERS: Update my email address.
10848
10849 2003-02-21  David Carlton  <carlton@math.stanford.edu>
10850
10851         * arm-tdep.c (arm_gdbarch_init): Add break after default label.
10852
10853 2003-02-21  Daniel Jacobowitz  <drow@mvista.com>
10854
10855         Based on a patch from Daniel Berlin (dberlin@dberlin.org).
10856         * symtab.h: Add opaque declarations of struct axs_value and
10857         struct agent_expr.
10858         (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
10859         (struct location_funcs): New type.
10860         (struct symbol): Add "loc" to aux_value.
10861         (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
10862         * dwarf2read.c: Include "dwarf2expr.h".
10863         (dwarf2_symbol_mark_computed): New function.
10864         (read_func_scope): Use it.
10865         (var_decode_location): New function.
10866         (new_symbol): Use it.
10867         * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
10868
10869         * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
10870         (dwarf2expr_h, dwarf2loc_h): New variables.
10871         (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
10872         (dwarf2expr.o, dwarf2loc.o): New rules.
10873         (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
10874         * buildsym.c (finish_block): Handle LOC_COMPUTED and
10875         LOC_COMPUTED_ARG.
10876         * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
10877         * m2-exp.y (yylex): Likewise.
10878         * printcmd.c (address_info, print_frame_args): Likewise.
10879         * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
10880         * symmisc.c (print_symbol, print_partial_symbols): Likewise.
10881         * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
10882         (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
10883         * symtab.c (lookup_block_symbol): Likewise.
10884
10885 2003-02-20  Adam Fedor  <fedor@gnu.org>
10886
10887         * symtab.h: Remove objc_specific struct
10888         (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
10889         * symtab.c (symbol_init_language_specific, symbol_demangled_name):
10890         Have language_objc use cplus_specific struct.
10891
10892 2003-02-20  Tom Tromey  <tromey@redhat.com>
10893
10894         * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
10895         TYPE_NAME, when printing a String value.  PR java/1075.
10896
10897 2003-02-20  Adam Fedor  <fedor@gnu.org>
10898
10899         * objc-lang.h (find_methods): Remove declaration.
10900         * objc-lang.c (find_methods): Make static.
10901
10902 2003-02-20  Christopher Faylor  <cgf@redhat.com>
10903
10904         * win32-nat.c (get_image_name): Check return value from
10905         ReadProcessMemory.
10906         (child_xfer_memory): Ditto.
10907
10908 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
10909
10910         * configure.in (TARGET_SYSTEM_ROOT): Set default to
10911         ${exec_prefix}/${target_alias}/sys-root.  Match explicit
10912         '${exec_prefix}' (in addition to the expansion thereof) as
10913         relocatable.
10914         * configure: Rebuilt.
10915
10916 2003-02-20  David Carlton  <carlton@math.stanford.edu>
10917
10918         * symtab.c (search_symbols): Revert the search_symbols part of my
10919         2002-12-23 patch.  Add comment.
10920
10921 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
10922
10923         * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
10924         * dbxread.c (elfstab_build_psymtabs): Don't call
10925         install_minimal_symbols.
10926         (stabsect_build_psymtabs): Likewise.
10927         * elfread.c (elf_symfile_read): Call install_minimal_symbols
10928         earlier.
10929         * somread.c (som_symfile_read): Call install_minimal_symbols
10930         and do_cleanups earlier.
10931         * nlmread.c (nlm_symfile_read): Likewise.
10932         * mdebugread.c (elfmdebug_build_psymtabs): Call
10933         install_minimal_symbols and make appropriate cleanups.
10934
10935 2003-02-20  Kevin Buettner  <kevinb@redhat.com>
10936
10937         * solib.c (reload_shared_libraries): New function.
10938         (_initialize_solib): Add callbacks for ``set solib-search-path''
10939         and ``set solib-absolute-prefix''.
10940
10941 2003-02-20  David Carlton  <carlton@math.stanford.edu>
10942
10943         * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10944         expand comment.
10945         * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10946         SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10947         * ada-typeprint.c (ada_typedef_print): Ditto.
10948         * ax-gdb.c (gen_var_ref): Ditto.
10949         * breakpoint.c (print_one_breakpoint): Ditto.
10950         * buildsym.c (finish_block): Ditto.
10951         * c-valprint.c (c_val_print): Ditto.
10952         * expprint.c (print_subexp): Ditto.
10953         * findvar.c (locate_var_value): Ditto.
10954         * infcmd.c (jump_command): Ditto.
10955         * linespec.c (decode_line_2, decode_compound): Ditto.
10956         * maint.c (maintenance_translate_address): Ditto.
10957         * objc-lang.c (compare_selectors, compare_classes): Ditto.
10958         * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10959         Ditto.
10960         * p-valprint.c (pascal_val_print): Ditto.
10961         * stabsread.c (define_symbol): Ditto.
10962         * stack.c (print_frame, frame_info, print_block_frame_locals)
10963         (print_frame_arg_vars, return_command): Ditto.
10964         * symfile.c (compare_symbols, compare_psymbols): Ditto.
10965         * symmisc.c (print_symbol): Ditto.
10966         * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10967         (compare_search_syms, print_symbol_info, print_msymbol_info)
10968         (rbreak_command): Ditto.
10969         * tracepoint.c (tracepoints_info): Ditto.
10970         * typeprint.c (typedef_print): Ditto.
10971         * valops.c (value_of_variable, hand_function_call): Ditto.
10972         * cli/cli-cmds.c (edit_command, list_command): Ditto.
10973         * ada-typeprint.c: Update Copyright.
10974         * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10975         * tracepoint.c, cli/cli-cmds.c: Ditto.
10976
10977 2003-02-20  Kevin Buettner  <kevinb@redhat.com>
10978
10979         * frame.c (generic_unwind_get_saved_register): Make non-static.
10980         * frame.h (generic_unwind_get_saved_register): Declare.
10981         * mips-tdep.c (read_next_frame_reg): Fetch register from
10982         current regcache when frame is NULL.
10983         (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10984         that must be NULL.
10985         (mips_get_saved_register): Call generic_unwind_get_saved_register()
10986         instead of frame_register_unwind().
10987
10988 2003-02-20  Andrew Cagney  <ac131313@redhat.com>
10989
10990         * remote-sim.c (gdbsim_insert_breakpoint)
10991         (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10992         code.
10993
10994 2003-02-20  Andrew Cagney  <ac131313@redhat.com>
10995
10996         * remote.c (_initialize_remote): Add commands "set/show remote
10997         hardware-watchpoint-limit" and "set/show remote
10998         hardware-breakpoint-limit".
10999         (remote_hw_watchpoint_limit): Initialize to -1.
11000         (remote_hw_breakpoint_limit): Ditto.
11001         (remote_check_watch_resources): Treat a limit of -1 as unlimited.
11002
11003 2003-02-19  Raoul Gough  <RaoulGough@yahoo.co.uk>
11004
11005         * coff-pe-read.c: New file - support reading of minimal symbols from a
11006         portable executable using the export table.
11007         * coff-pe-read.h: New file.
11008         * coffread.c: Include coff-pe-read.h.
11009         (coff_symtab_read): Call read_pe_exported_syms iff no recognized
11010         debugging symbols found.
11011         * Makefile.in (SFILES): Add coff-pe-read.o.
11012         (coff_pe_read_h): Define.
11013         (COMMON_OBS): Add coff-pe-read.o.
11014         (coffread.o): Add coff_pe_read_h dependency.
11015         (coff-pe-read.o): New target.
11016
11017 2003-02-19  David Carlton  <carlton@math.stanford.edu>
11018
11019         * Makefile.in (SFILES): Add block.c.
11020         (block_h): New.
11021         (COMMON_OBS): Add block.o.
11022         (block.o): New.
11023         (x86-64-tdep.o): Add $(block_h).
11024         (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
11025         (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
11026         (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
11027         (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
11028         (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
11029         (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
11030         (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
11031         * value.h: Add opaque declaration for struct block.
11032         * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
11033         * ada-lang.h: Ditto.
11034         * x86-64-tdep.c: #include "block.h"
11035         * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
11036         * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
11037         * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
11038         * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
11039         * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
11040         * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
11041         * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
11042         * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
11043         * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
11044         (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
11045         * symtab.c (block_function): Ditto.
11046         (contained_in): Ditto.
11047         * frame.h: Move block_for_pc and block_for_pc_sect declarations to
11048         block.h.  Add opaque declaration for struct block.
11049         * symtab.h: Move block_function and contained_in declarations to
11050         block.h.  Add opaque declarations for struct block, struct
11051         blockvector.
11052         (struct block): Move to block.h.
11053         (struct blockvector): Ditto.
11054         (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
11055         (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
11056         (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
11057         (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
11058         (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
11059         Ditto.
11060         * block.c: New file.
11061         * block.h: New file.
11062
11063 2003-02-19  Theodore A. Roth  <troth@openavr.org>
11064
11065         * avr-tdep.c (avr_extract_return_value): Remove function.
11066         (avr_store_return_value): Remove function.
11067         (avr_extract_struct_value_address): Remove function.
11068         (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
11069
11070 2003-02-19  Andrew Cagney  <ac131313@redhat.com>
11071
11072         * rs6000-tdep.c: Include "gdb_assert.h".
11073         (registers_e500): Add "acc" and "spefscr".
11074         (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
11075         (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
11076         ppc_gplast_regnum, sp_regnum and fp_regnum.  Check that gp0_regnum
11077         really is "r0".
11078         (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
11079
11080 2003-02-18  Keith Seitz  <keiths@redhat.com>
11081
11082         * Makefile.in: Add gdbtk-interps.c.
11083
11084 2003-02-18  Kevin Buettner  <kevinb@redhat.com>
11085
11086         * sparc-tdep.c (sparc_frame_chain): Adjust return value.
11087         * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
11088
11089 2003-02-18  Andrew Cagney  <cagney@redhat.com>
11090
11091         * symtab.h (struct objfile): Add opaque declaration.
11092
11093 2003-02-18  Elena Zannoni  <ezannoni@redhat.com>
11094
11095         From Jim Ingham   <jingham@apple.com>:
11096         * dbxread.c (process_one_symbol): Use last_function_start rather
11097         than function_start_offset to find the real beginning of the
11098         current function.  The latter is just the text section offset on
11099         some systems, the former is always the real function start.
11100
11101 2003-02-17  Andrew Cagney  <cagney@redhat.com>
11102
11103         * configure.in: Revert ${target} != ${host}.
11104
11105 2003-02-17  Andrew Cagney  <ac131313@redhat.com>
11106
11107         * configure.in (Makefile): Use the test ${target} != ${host},
11108         instead of the absence of the "nm.h" file, to determine of the
11109         configuration non-native.
11110         * configure: Regenerate.
11111
11112 2003-02-14  Elena Zannoni  <ezannoni@redhat.com>
11113
11114         From Brian Ford  <ford@vss.fsi.com>
11115
11116         * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
11117         conditionalize tui_active test.
11118         (lookup_cmd_1): Ditto.
11119
11120 2003-02-14  Mark Kettenis  <kettenis@gnu.org>
11121
11122         * configure.in: Add check for _etext.
11123         * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
11124         available.
11125         * config.in, configure: regenerated.
11126
11127 2003-02-14  Daniel Jacobowitz  <drow@mvista.com>
11128
11129         * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
11130
11131 2003-02-14  Andrew Cagney  <ac131313@redhat.com>
11132
11133         * main.c (tui_version): Delete variable.
11134         (captured_main): When --tui, set interpreter_p to "tui" instead of
11135         enabling tui_version.
11136         * printcmd.c (display_command) [TUI]: Test tui_active instead of
11137         tui_version.
11138         * cli/cli-decode.c (lookup_cmd_composition): Ditto.
11139         * cli/cli-cmds.c (disassemble_command): Ditto.
11140         * defs.h (tui_version): Delete declaration.
11141         * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
11142         (tui-interp.o): Add rules.
11143         (SUBDIR_TUI_OBS): Add "tui-interp.o".
11144
11145 2003-02-14  Christopher Faylor  <cgf@redhat.com>
11146
11147         * win32-nat.c (register_loaded_dll): Correctly set address range for
11148         just-loaded dll.
11149
11150 2003-02-12  Jason Molenda  (jmolenda@apple.com)
11151
11152         * symmisc.c (print_objfile_statistics): Include information about
11153         the number of psymtabs and symtabs in each object file.
11154
11155 2003-02-13  Keith R Seitz  <keiths@redhat.com>
11156
11157         * main.h (struct captured_main_args): Add interpreter_p.
11158         * main.c (captured_main): Initialize interpreter_p from context.
11159         * gdb.c (main): Set interpreter_p argument.
11160         * Makefile.in (gdb.o): Add dependency for interps.h.
11161
11162 2003-02-12  Andrew Cagney  <ac131313@redhat.com>
11163
11164         * event-top.c (cli_command_loop): Delete declaration.
11165         (_initialize_event_loop): Delete function setting event_loop_hook.
11166         * event-top.h (cli_command_loop): Declare.  Update copyright.
11167         (EVENT_TOP_H): Define.  Wrap header in #ifdef EVENT_TOP_H.
11168         * interps.c (current_interp_command_loop): When event_loop_p, call
11169         cli_command_loop.
11170
11171 2003-02-12  Andrew Cagney  <ac131313@redhat.com>
11172
11173         * interps.h (interp_command_loop_ftype): Change return type to
11174         void.
11175
11176 2003-02-12  Michal Ludvig  <mludvig@suse.cz>
11177
11178         * x86-64-tdep.c (x86_64_extract_return_value)
11179         (x86_64_store_return_value): Use regcache instead of regbuf.
11180         (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
11181         * x86-64-linux-nat.c (fill_gregset): Use regcache.
11182
11183 2003-02-11  Andrew Cagney  <ac131313@redhat.com>
11184
11185         * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
11186         * aclocal.m4: Regenerate.
11187         * configure: Regenerate.
11188
11189         * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
11190         TCL_LD_SEARCH_FLAGS.
11191
11192 2003-02-10  Michal Ludvig  <mludvig@suse.cz>
11193
11194         * dwarf2cfi.c: Reindented.
11195
11196 2003-02-09  Andrew Cagney  <ac131313@redhat.com>
11197
11198         * interps.c (clear_interpreter_hooks): Convert function definition
11199         to ISO C.
11200
11201 2003-02-07  David Carlton  <carlton@math.stanford.edu>
11202
11203         * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
11204
11205 2003-02-07  Kevin Buettner  <kevinb@redhat.com>
11206
11207         * gdbtypes.h (struct main_type): Move ``length'' field from here...
11208         (struct type): ...to here.
11209         (TYPE_LENGTH): Adjust to reflect different location of ``length''
11210         field.
11211         * gdbtypes.c (make_qualified_type): Set length on newly created type.
11212         (replace_type): Set length on all type variants for a given type.
11213
11214 2003-02-07  Andrew Cagney  <ac131313@redhat.com>
11215
11216         * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
11217         <sys/stat.h>.
11218         * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
11219
11220 2003-02-06  Andrew Cagney  <ac131313@redhat.com>
11221
11222         * Makefile.in (symm-nat.o): Update dependencies.
11223         (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
11224         (lynx-nat.o, ia64-linux-nat.): Ditto.
11225         * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
11226         "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
11227         * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
11228
11229         * Makefile.in (inflow_h): Define.
11230         (procfs.o, inflow.o, procfs.o): Update dependencies.
11231         * inftarg.c (child_stop): Delete extern declaration of
11232         inferior_process_group.  Include "inflow.h".
11233         * procfs.c (procfs_stop): Ditto.  Include "inflow.h".
11234         * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
11235         * inflow.h (PROCESS_GROUP_TYPE): ... to here.  New file.
11236         (our_process_group, inferior_process_group): Extern declarations.
11237
11238         * procfs.c: Include "gdb_assert.h".
11239
11240         * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11241         * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
11242         * jv-typeprint.c (java_type_print_base): Ditto.
11243         * typeprint.c (typedef_print): Eliminate STREQ.
11244         * cli/cli-script.c (define_command, define_command): Ditto.
11245         * main.c (captured_main): Ditto.
11246         * values.c (lookup_internalvar): Ditto.
11247         * utils.c (safe_strerror, parse_escape): Eliminate assignment
11248         within `if' conditional.
11249         * linespec.c (decode_line_2): Ditto.
11250         * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
11251         (bfd_openw_with_cleanup): Ditto.
11252
11253 2003-02-07  Mark Kettenis  <kettenis@gnu.org>
11254
11255         * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
11256         legacy_extract_return_value and store_return_value to
11257         legacy_return_value.
11258
11259 2003-02-06  Raoul Gough  <RaoulGough@yahoo.co.uk>
11260
11261         * win32-nat.c (get_relocated_section_addrs): New function.  Find
11262         section load addresses for symbol handling in relocated DLLs.
11263         (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
11264
11265 2003-02-05  Fred Fish  <fnf@intrinsity.com>
11266
11267         * remote-e7000.c (e7000_drain_command): Fix precedence problem with
11268         '=' and '!='.
11269         * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
11270         with '&' and '=='.
11271         (angel_RDI_info): Ditto.
11272         * infttrace.c (threads_continue_all_but_one): Fix precedence problem
11273         with '&' and '!='.
11274         (threads_continue_all_with_signals): Ditto.
11275
11276 2003-02-05  Jim Ingham <jingham@apple.com>
11277             Keith Seitz  <keiths@redhat.com>
11278             Elena Zannoni  <ezannoni@redhat.com>
11279             Andrew Cagney  <ac131313@redhat.com>
11280
11281         * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
11282         (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
11283         (SUBDIR_MI_OBS): Add "mi-interp.o".
11284         (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
11285         (SFILES): Add "interps.c".
11286         (COMMON_OBS): Add "interps.o".
11287         (interps_h, mi_main_h): Define.
11288         (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
11289         (mi-main.o, main.o, event-top.o): Update dependencies.
11290         * cli/cli-interp.c: New file.
11291         * interps.h, interps.c: New files.
11292         * top.c: (gdb_init): Don't install the default interpreter, handed
11293         by captured_main.
11294         * main.c: Include "interps.h".
11295         (interpreter_p): Note that it should malloc'ed.
11296         (captured_command_loop): Call current_interp_command_loop.
11297         (captured_main): Initialize interpreter_p to INTERP_CONSOLE.  Use
11298         xfree and xstrdup when updating interpreter_p.  Install the
11299         default interpreter.  Add hack to stop mi1's copyright notice
11300         being encoded.
11301         * event-top.h (gdb_setup_readline): Declare.
11302         (gdb_disable_readline): Declare.
11303         * event-top.c: Include "interps.h".
11304         (display_gdb_prompt): Call current_interp_display_prompt_p.
11305         (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
11306         gdb_stdlog, and gdb_stdtarg.
11307         (_initialize_event_loop): Don't call gdb_setup_readline.
11308         * cli-out.c (cli_out_set_stream): New function.
11309         * cli-out.h (cli_out_set_stream): Declare.
11310
11311 2003-02-06  Mark Kettenis  <kettenis@gnu.org>
11312
11313         * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
11314         i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove.  These are all
11315         handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
11316         * config/i386/i386sco5.mt, config/i386/i386v4.mt,
11317         config/i386/i386v42mp.mt: Removed.
11318
11319 2003-02-05  Mark Kettenis  <kettenis@gnu.org>
11320
11321         * configure.tgt (*-*-solaris*): Set gdb_osabi to
11322         GDB_OSABI_SOLARIS.
11323
11324 2003-02-05  Michael Chastain  <mec@shout.net>
11325
11326         * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
11327         2.12.1 and earlier versions.
11328
11329 2003-02-05  Andrew Cagney  <ac131313@redhat.com>
11330
11331         Remove orphaned hosts, targets and files.
11332         * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
11333         * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
11334         * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
11335         * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
11336         * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
11337         * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
11338         * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
11339         * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
11340         * config/sparc/tm-sp64sim.h: Delete.
11341         * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
11342         hosts.
11343         * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
11344         mips*-dec-mach3* targets.
11345
11346 2003-02-04  Michael Chastain  <mec@shout.net>
11347
11348         * NEWS: Fix typo: sepcifying -> specifying.
11349
11350 2003-02-04  Michael Chastain  <mec@shout.net>
11351
11352         * dwarfread.c: Add documentation on the state of dwarf-1,
11353         looking towards obsoletion.
11354
11355 2003-02-03  Michael Chastain  <mec@shout.net>
11356
11357         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
11358         gdb/testsuite/gdb.c++/pr-1023.exp.
11359
11360 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
11361
11362         * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
11363         * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
11364
11365         * utils.c (init_page_info): Delete reference to MPW in comments.
11366         * main.c (captured_main): Delete #ifdef MPW.
11367
11368 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
11369
11370         * NEWS: Note that the m32r-*-elf* is obsolete.
11371         * monitor.c (monitor_expect): Obsolete reference to m32r.
11372         * configure.tgt: Mark m32r-*-elf* as obsolete.
11373         * MAINTAINERS: Mark m32k as obsolete.
11374         * m32r-rom.c: Obsolete file.
11375         * config/m32r/m32r.mt: Obsolete file.
11376         * config/m32r/tm-m32r.h: Obsolete file.
11377         * m32r-stub.c: Obsolete file.
11378         * m32r-tdep.c: Obsolete file.
11379
11380 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
11381
11382         * NEWS: Mention that the z8k-zilog-none is obsolete.
11383         * MAINTAINERS: Mark z8k as obsolete.
11384         * configure.tgt: Obsolete the z8k-*-coff* target.
11385         * config/z8k/z8k.mt: Obsolete file.
11386         * config/z8k/tm-z8k.h: Obsolete file.
11387         * z8k-tdep.c: Obsolete file.
11388
11389 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
11390
11391         * NEWS: Mention that the mn10200-elf is obsolete.
11392         * configure.tgt: Obsolete mn10200-*-* target.
11393         * breakpoint.c (update_breakpoints_after_exec): Update comment to
11394         mention that the mn10200 is obsolete.
11395         * breakpoint.h: Ditto.
11396         * MAINTAINERS: Mark the mn10200-elf as obsolete.
11397         * config/mn10200/mn10200.mt: Obsolete file.
11398         * config/mn10200/tm-mn10200.h: Obsolete file.
11399         * mn10200-tdep.c: Obsolete file.
11400
11401 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
11402
11403         * MAINTAINERS: Mark h8500 as obsolete.
11404         * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
11405         * findvar.c (value_from_register): Ditto.
11406         * h8500-tdep.c: Mark file as obsolete.
11407         * config/h8500/h8500.mt: Ditto.
11408         * config/h8500/tm-h8500.h: Ditto.
11409         * NEWS: Mention that h8500 is obsolete.
11410
11411 2003-02-04  David Carlton  <carlton@math.stanford.edu>
11412
11413         * objfiles.c (allocate_objfile): Always set name.  Add comment at
11414         start of function.
11415         * jv-lang.c (get_dynamics_objfile): Add comment.
11416
11417 2003-02-04  David Carlton  <carlton@math.stanford.edu>
11418
11419         * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
11420         * printcmd.c (build_address_symbolic): Replace uses of
11421         SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
11422         SYMBOL_NAME, and asm_demangle.
11423         Update copyright.
11424
11425 2003-02-04  David Carlton  <carlton@math.stanford.edu>
11426
11427         * linespec.c (decode_compound): Extract code into
11428         lookup_prefix_sym.
11429         (lookup_prefix_sym): New function.
11430
11431 2003-02-04  David Carlton  <carlton@math.stanford.edu>
11432
11433         * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
11434         FLOAT_COERCION_BADNESS.
11435         * gdbtypes.c (rank_one_type): Replace all uses of
11436         INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
11437
11438 2003-02-04  Jim Blandy  <jimb@redhat.com>
11439
11440         * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
11441         section, let dwarf_macinfo_section point to it, not
11442         dwarf_loc_section.
11443
11444 2003-02-04  Daniel Jacobowitz  <drow@mvista.com>
11445
11446         Pointed out by Anton Blanchard <anton@samba.org>.
11447         * ppc-linux-tdep.c (insn_is_sigreturn): New function.
11448         (ppc_linux_at_sigtramp_return_path): Use it.
11449
11450 2003-02-04  Daniel Jacobowitz  <drow@mvista.com>
11451
11452         * defs.h (streq): Add prototype.
11453         * utils.c (streq): New function.
11454
11455         * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
11456         SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
11457         * mdebugread.c (new_symbol): Likewise.
11458         * stabsread.c (define_symbol): Likewise.
11459         * coffread.c (process_coff_symbol): Likewise.
11460         * dwarfread.c (new_symbol): Likewise.
11461
11462         * minsyms.c (prim_record_minimal_symbol_and_info): Use
11463         SYMBOL_SET_NAMES instead of setting SYMBOL_NAME.  Set the language
11464         here.
11465         (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
11466         SYMBOL_INIT_DEMANGLED_NAME.
11467         * objfiles.c: Include "hashtab.h".
11468         (allocate_objfile): Call htab_set_functions_ex for the
11469         demangled_names_hash.
11470         (free_objfile): Call htab_delete for the demangled_names_hash.
11471         * objfiles.h (struct htab): Add declaration.
11472         (struct objfile): Add demangled_names_hash.
11473         * symfile.c: Include "hashtab.h".
11474         (reread_symbols): Call htab_delete for the demangled_names_hash.
11475         (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
11476         SYMBOL_NAME in the bcache.
11477         * symtab.c: Include "hashtab.h".  Update comments.
11478         (create_demangled_names_hash, symbol_set_names): New functions.
11479         (symbol_find_demangled_name): New function, broken out from
11480         symbol_init_demangled_names.
11481         (symbol_init_demangled_names): Use it.
11482         * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
11483         (SYMBOL_SET_NAMES): New macro.
11484         (symbol_set_names): Add prototype.
11485
11486 2003-02-03  Jim Blandy  <jimb@redhat.com>
11487
11488         Use a single, consistent representation for an empty minimal
11489         symbol table in an objfile.
11490         * objfiles.c (terminate_minimal_symbol_table): New function.
11491         (allocate_objfile): Call it.
11492         * objfiles.h (terminate_minimal_symbol_table): New declaration.
11493         (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
11494         non-NULL.
11495         * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
11496         objfile has minimal symbols, compare minimal_symbol_count to zero,
11497         instead of comparing msymbols with NULL.
11498         * objfiles.c (have_minimal_symbols): Same.
11499         * solib-sunos.c (solib_add_common_symbols): Call
11500         terminate_minimal_symbol_table.
11501         * symfile.c (reread_symbols): Same.
11502
11503 2003-02-03  Kevin Buettner  <kevinb@redhat.com>
11504
11505         * s390-tdep.c (s390_address_class_type_flags)
11506         (s390_address_class_type_flags_to_name)
11507         (s390_address_class_name_to_type_flags): New functions.
11508         (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
11509         ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
11510
11511 2003-02-03  Michael Snyder  <msnyder@redhat.com>
11512
11513         * arm-tdep.c: Fix spell-o in comment.
11514
11515 2003-02-03  Michal Ludvig  <mludvig@suse.cz>
11516
11517         * dwarf2cfi.c (pointer_encoding): Added new parameter.
11518         * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
11519         error messages to contain BFD filename.
11520
11521 2003-02-02  Elena Zannoni  <ezannoni@redhat.com>
11522
11523         Fix PR gdb/742 gdb/743 gdb/877
11524         * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
11525         (do_mixed_source_and_assembly): Use
11526         make_cleanup_ui_out_tuple_begin_end and
11527         make_cleanup_ui_out_tuple_begin_end.
11528         (do_mixed_source_and_assembly): Ditto.
11529         * thread.c (do_captured_list_thread_ids): Ditto.
11530         * ui-out.h (ui_out_table_begin, ui_out_list_begin,
11531         ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
11532         ui_out_tuple_end): Delete prototypes.
11533         * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
11534         ui_out_list_end, ui_out_tuple_end): Delete.
11535
11536         From Kevin Buettner  <kevinb@redhat.com>:
11537         * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
11538         * ui-out.c (make_cleanup_ui_out_table_begin_end)
11539         (do_cleanup_table_end):  New functions.
11540         * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
11541         Use cleanups to invoke_ui_out_tuple_end().
11542         (breakpoint_1): Use cleanup to invoke ui_out_table_end().
11543         * cli/cli-setshow.c (cmd_show_list): Use
11544         make_cleanup_ui_out_tuple_begin_end.
11545
11546 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
11547
11548         * frame.c (frame_unwind_register): New function.
11549         (frame_unwind_unsigned_register): Use.
11550         (frame_unwind_signed_register): Use.
11551         (frame_read_register): New function.
11552         * frame.h (frame_unwind_register): Declare.
11553         (frame_read_register): Declare.
11554
11555         * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
11556         and frame_unwind_register instead of read_memory, write_register
11557         and deprecated_write_register_bytes.
11558
11559 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
11560
11561         * frame.h: Note that namelen can be negative.
11562         * frame.c (frame_map_name_to_regnum): When LEN is negative, use
11563         NAME's length.
11564
11565         * NEWS: Mention that the d10v's `regs' command is deprecated.
11566         * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
11567         (d10v_print_registers_info): New function.
11568         (show_regs): Call d10v_print_registers_info.
11569         (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
11570
11571 2003-02-02  Mark Kettenis  <kettenis@gnu.org>
11572
11573         * stack.c (print_frame_info): Restore call to annotate_frame_begin
11574         lost in the previous patch.
11575
11576 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
11577
11578         From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
11579         * stack.c (print_frame_info_base): Output complete FRAME tuple
11580         for synthesized frames.
11581
11582 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
11583
11584         * mips-nat.c (zerobuf): Delete.
11585         (fetch_inferior_registers): Alloc local zerobuf.
11586         (fetch_core_registers): Alloc local zerobuf.
11587         * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
11588         MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
11589         * thread-db.c (thread_db_store_registers): Ditto.
11590         * sh-tdep.c (sh_do_register): Ditto.
11591         * rom68k-rom.c (rom68k_supply_one_register): Ditto.
11592         * remote-sim.c (gdbsim_store_register): Ditto.
11593         * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
11594         * remote-e7000.c (fetch_regs_from_dump): Ditto.
11595         * monitor.c (monitor_supply_register): Ditto.
11596         * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
11597         * mips-nat.c (fetch_inferior_registers): Ditto.
11598         * m68klinux-nat.c (fetch_register): Ditto.
11599         * lynx-nat.c (fetch_inferior_registers): Ditto.
11600         (fetch_inferior_registers): Ditto.
11601         * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
11602         * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
11603         (hpux_thread_store_registers): Ditto.
11604         * hppah-nat.c (fetch_register): Ditto.
11605         * hppab-nat.c (fetch_register): Ditto.
11606         * hppa-tdep.c (pa_register_look_aside): Ditto.
11607         (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
11608         * dve3900-rom.c (fetch_bitmapped_register): Ditto.
11609
11610 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
11611
11612         * gdbarch.sh: Explictly specify all method levels.  When a
11613         variable with an empty level, provide a non-multi-arch default.
11614         (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
11615         * gdbarch.h: Re-generate.
11616         * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete.  Always defined.
11617         * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
11618
11619 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
11620
11621         * defs.h (host_pointer_to_address): Delete declaration.
11622         (address_to_host_pointer): Delete declaration.
11623         * utils.c (host_pointer_to_address): Delete function.
11624         (address_to_host_pointer): Delete function.
11625         * procfs.c (procfs_address_to_host_pointer): New function.
11626         * procfs.c (proc_set_watchpoint): Use.
11627         (procfs_can_use_hw_breakpoint): Update comments.
11628         * somsolib.c (hpux_address_to_host_pointer_hack): New function.
11629         (som_solib_add): Use.
11630         * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
11631         * hppa-tdep.c (unwind_command): Use.
11632
11633 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
11634
11635         * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
11636         strlen d_name.
11637
11638         * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
11639         ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
11640         (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
11641         * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
11642         (define_symbol): Update.
11643         * symfile.c (generic_load): Remove references to nindy.
11644         * symtab.c: Remove references to nindy.
11645
11646 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
11647
11648         * infcmd.c (print_float_info): Delete code conditional on
11649         FLOAT_INFO.
11650         * config/nm-lynx.h: Delete #undef FLOAT_INFO.  Update copyright.
11651         * config/m68k/nm-apollo68b.h: Ditto.
11652         * config/i386/tm-ptx.h (FLOAT_INFO): Delete.  Update copyright.
11653         * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
11654         * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
11655
11656 2003-02-01  Mark Kettenis  <kettenis@gnu.org>
11657
11658         * config/i386/tm-i386os9k.h: Removed.
11659
11660         * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
11661         Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
11662         they're identical to i[3456]86-*-sysv* now.
11663         * config/i386/i386v32.mh: Removed.
11664         * config/i386/xm-i386v32.h: Removed.
11665         * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
11666
11667         * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
11668
11669         * config/i386/i386dgux.mh: Removed.
11670         * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
11671
11672         * configure.in: Fix typo.
11673         * configure: Regenerated.
11674
11675 2003-01-31  David Carlton  <carlton@math.stanford.edu>
11676
11677         * dwarf2read.c (dwarf2_locate_sections): Set
11678         dwarf_ranges_section.
11679
11680 2003-01-31  Andrew Cagney  <ac131313@redhat.com>
11681
11682         * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
11683         * utils.c: Update comments documenting legitimate uses of PTR.
11684
11685         * utils.c: Re-indent.
11686
11687         * config/djgpp/fnchange.lst: Delete nindy files.
11688         * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
11689         * nindy-share/nindy.c, nindy-share/env.h: Delete files.
11690         * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
11691         * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
11692         * nindy-share/README, nindy-share/Onindy.c: Delete files.
11693         * nindy-tdep.c, nindy-share/Makefile: Delete files.
11694         * Makefile.in (init.c): Remove nindy references.
11695         (saber_gdb): Delete rule.
11696         (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
11697         nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
11698         and a68v-nat.c.
11699         (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
11700         (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
11701         (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
11702         nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
11703         nindy-share/stop.h.
11704         * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
11705         * saber.suppress: Delete file.
11706
11707 2003-01-31  Daniel Jacobowitz  <drow@mvista.com>
11708
11709         * dbxread.c (stabs_data): New static variable.
11710         (fill_symbuf): Support an in-memory buffer for stabs data.
11711         (stabs_seek): New function.
11712         (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
11713         (read_ofile_symtab): Use stabs_seek.
11714         (elfstab_build_psymtabs): Take an asection* instead of
11715         an offset and size.  Relocate the stabs data if necessary.
11716         Save the section* for dbx_psymtab_to_symtab.
11717         * dwarf2read.c: Add section variables for each debug section.
11718         (dwarf2_locate_sections): Fill them in.
11719         (dwarf2_read_section): Take an asection* argument.
11720         Relocate the section contents if necessary.
11721         (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
11722         * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
11723         it to dwarf2_read_section.
11724         (dwarf2_build_frame_info): Update callers.
11725         * elfread.c (elf_symfile_read): Update call to
11726         elfstab_build_psymtabs.
11727         * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
11728         (DBX_STAB_SECTION): New macro.
11729         * stabsread.h (elfstab_build_psymtabs): Update prototype.
11730         * symfile.c (symfile_dummy_outputs): New function.
11731         (symfile_relocate_debug_section): New function.
11732         * symfile.h (symfile_relocate_debug_section): Add prototype.
11733
11734 2003-01-31  Richard Henderson  <rth@redhat.com>
11735
11736         * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
11737         (register_addr): ... here.  Support ALPHA_UNIQUE_REGNUM.
11738         (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
11739         * alpha-tdep.c (alpha_register_name): Add "unique".
11740         * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
11741         (ALPHA_UNIQUE_REGNUM): New.
11742         * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
11743
11744 2003-01-31  Andrew Cagney  <ac131313@redhat.com>
11745
11746         * README: Remove reference to Ericsson 1800 monitor.
11747         * Makefile.in (remote-es.o): Delete rule.
11748         (ALLDEPFILES): Delete remote-es.c.
11749         * remote-es.c: Delete file.
11750         * config/m68k/es1800.mt: Delete file.
11751         * config/djgpp/fnchange.lst: Update.
11752         * configure.tgt: Delete m68*-ericsson-* target.
11753
11754 2003-01-31  Adam Fedor  <fedor@gnu.org>
11755
11756         * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
11757         Remove duplicate/shadowing variable of same name.
11758
11759 2003-01-30  Jim Blandy  <jimb@redhat.com>
11760
11761         * symfile.c (find_separate_debug_file): Assert that the objfile's
11762         directory name we compute ends with a slash, and then assume that
11763         that's so everywhere we use it.
11764
11765 2003-01-30  Daniel Jacobowitz  <drow@mvista.com>
11766
11767         * valops.c (value_assign): Flush frame cache after stores to memory
11768         also.
11769
11770 2003-01-30  Andrew Cagney  <ac131313@redhat.com>
11771
11772         * Makefile.in (mon960-rom.o): Delete rule.
11773         * mon960-rom.c: Delete file.
11774
11775 2003-01-30  Andrew Cagney  <ac131313@redhat.com>
11776
11777         * d10v-tdep.c: Include "frame-unwind.h".
11778         (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
11779         list.
11780         (next_addr, uses_frame): Delete.
11781         (struct d10v_unwind_cache): Define.
11782         (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
11783         Use info instead of next_addr and uses_frame globals.
11784         (d10v_frame_init_saved_regs): Delete function.
11785         (d10v_init_extra_frame_info): Delete function.
11786         (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
11787         frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
11788         init_frame_pc or frame_saved_pc.
11789         (d10v_pop_frame): Delete function.
11790         (do_d10v_pop_frame): Delete function.
11791         (d10v_frame_chain): Delete function.
11792         (d10v_frame_chain_valid): Delete function.
11793         (d10v_frame_pc_unwind): New function.
11794         (d10v_frame_id_unwind): New function.
11795         (saved_regs_unwinder): New function.
11796         (d10v_frame_register_unwind): New function.
11797         (d10v_frame_pop): New function.
11798         (d10v_frame_unwind): New variable.
11799         (d10v_frame_p): New function.
11800         (d10v_frame_saved_pc): Delete function.
11801         * Makefile.in (d10v-tdep.o): Update dependencies.
11802
11803 2003-01-30  J. Brobecker  <brobecker@gnat.com>
11804
11805         * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
11806         causing some regressions due to a change in the default value
11807         for this macro.
11808
11809 2003-01-29  Richard Henderson  <rth@redhat.com>
11810             Elena Zannoni  <ezannoni@redhat.com>
11811             Daniel Jacobowitz  <drow@mvista.com>
11812
11813         Fix PR gdb/961.
11814         * dwarf2read.c  (dwarf_ranges_offset, dwarf_ranges_size): New
11815         variables.
11816         (RANGES_SECTION): New.
11817         (dwarf_ranges_buffer): New variable.
11818         (struct comp_unit_head): Add member "die".
11819         (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
11820         (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
11821         (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
11822         (dwarf2_locate_sections): Likewise.
11823         (dwarf2_build_psymtabs): Read .debug_ranges.
11824         (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
11825         (psymtab_to_symtab_1): Swap dwarf_ranges in.  Set cu_header.die.
11826         (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
11827         Look for DW_AT_ranges and return the bounding box.
11828
11829 2003-01-29  Brian Ford <ford@vss.fsi.com>
11830
11831         * win32-nat.c (cygwin_pid): Removed as unused.
11832         (child_attach): Try fall back to Cygwin pid.
11833
11834 2003-01-29  Jim Blandy  <jimb@redhat.com>
11835
11836         * objfiles.h (struct objfile): Doc fix.
11837
11838 2003-01-29  Andrew Cagney  <ac131313@redhat.com>
11839
11840         * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
11841         (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
11842         (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
11843         (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
11844         * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
11845         (FRAME_SAVED_PC): Change to a function with predicate.
11846         * gdbarch.h, gdbarch.c: Re-generate.
11847
11848 2003-01-28  Andrew Cagney  <ac131313@redhat.com>
11849
11850         * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
11851
11852         * complaints.c (complain): Delete function.
11853         * complaints.h (struct deprecated_complaint): Delete definition.
11854         (complain): Delete declaration.
11855
11856 2003-01-28  Kevin Buettner  <kevinb@redhat.com>
11857
11858         * mips-tdep.c (mips_init_extra_frame_info): Return early for
11859         dummy frames.
11860
11861 2003-01-27  Andrew Cagney  <ac131313@redhat.com>
11862
11863         * sentinel-frame.h, sentinel-frame.c: New files.
11864         * Makefile.in (frame.o): Update dependencies.
11865         (SFILES): Add sentinel-frame.c.
11866         (sentinel_frame_h): Define.
11867         (COMMON_OBS): Add sentinel-frame.o.
11868         (sentinel-frame.o): Specify dependencies.
11869         * frame.c: Include "sentinel-frame.h".
11870         (frame_register_unwind): Rewrite assuming that there is always a a
11871         ->next frame.
11872         (frame_register, generic_unwind_get_saved_register): Ditto.
11873         (frame_read_unsigned_register, frame_read_signed_register): Ditto.
11874         (create_sentinel_frame, unwind_to_current_frame): New functions.
11875         (get_current_frame): Rewrite using create_sentinel_frame and
11876         unwind_to_current_frame.  When possible, always create a frame.
11877         (create_new_frame): Set next to the sentinel frame.
11878         (get_next_frame): Rewrite.  Don't go below the level 0 frame.
11879         (deprecated_update_frame_pc_hack): Update the next frame's PC and
11880         ID cache when necessary.
11881         (frame_saved_regs_id_unwind): Use frame_relative_level.
11882         (deprecated_generic_get_saved_register): Use frame_relative_level,
11883         get_frame_saved_regs, get_frame_pc, get_frame_base and
11884         get_next_frame.
11885         (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
11886         frame_register.
11887
11888 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
11889
11890         * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
11891
11892 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
11893
11894         * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
11895         (maintenance_set_profile_cmd): Use error () instead of warning ().
11896
11897 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
11898
11899         * configure.in: Check that -pg works if using --enable-profiling.
11900         Check for monstartup and _mcleanup regardless of --enable-profiling.
11901         * maint.c: Check for monstartup and _mcleanup before using them.
11902         * config.in: Regenerated.
11903         * configure: Regenerated.
11904
11905 2003-01-24  Nick Clifton  <nickc@redhat.com>
11906
11907         * Add sh2e support:
11908
11909         2002-04-02  Elena Zannoni  <ezannoni@redhat.com>
11910
11911                 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
11912                 (sh2e_show_regs): New.
11913                 (sh_gdbarch_init): Handle bfd_mach_sh2e.
11914                 * config/sh/tm-sh.h: Added sh2e to comments.
11915
11916 2003-01-23  Jim Blandy  <jimb@redhat.com>
11917
11918         * symfile.c (syms_from_objfile): Don't print the "(no debugging
11919         symbols found)" message here; we haven't checked for a separate
11920         debug info file yet, so we don't know yet.
11921         (symbol_file_add_with_addrs_or_offsets): Print it here, after
11922         we've looked everywhere.  Also, there's no need to print a special
11923         message when we're loading the separate debug info file: the one
11924         symbol_file_add prints is fine.
11925
11926 2003-01-23  Alexander Larsson <alexl@redhat.com>
11927             Jim Blandy  <jimb@redhat.com>
11928
11929         Add support for executables whose debug info has been separated
11930         out into a separate file, leaving only a link behind.
11931         * objfiles.h (struct objfile): New fields: separate_debug_objfile
11932         and separate_debug_objfile_backlink.
11933         (put_objfile_before): New declaration.
11934         * symfile.c: #include "filenames.h".
11935         (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11936         debug info in a separate file, read that, too. Save the addrs
11937         argument, so we can use it again to read the separated debug info;
11938         syms_from_objfile modifies the table we pass it.
11939         (reread_symbols): After re-reading an objfile, call
11940         reread_separate_symbols to refresh its separate debug info
11941         objfile, if it has one.
11942         (reread_separate_symbols, find_separate_debug_file,
11943         get_debug_link_info, separate_debug_file_exists): New functions.
11944         (debug_file_directory): New global var.
11945         (_initialize_symfile): Initialize debug_file_directory, and
11946         provide the new `set debug-file-directory' command to let the user
11947         change it.
11948         * objfiles.c (free_objfile): If this objfile has its debug info in
11949         a separate objfile, free that one too.  If this is itself a
11950         separate debug info objfile, clear our parent's backlink.
11951         (put_objfile_before): New function.
11952         * utils.c (gnu_debuglink_crc32): New function.
11953         * defs.h (gnu_debuglink_crc32): New declaration.
11954         * Makefile.in (symfile.o): Note dependency on "filenames.h".
11955         * configure.in: Handle --with-separate-debug-dir config option.
11956         * acinclude.m4 (AC_DEFINE_DIR): New macro.
11957         * acconfig.h (DEBUGDIR): New macro.
11958         * configure, aclocal.m4, config.in: Regenerated.
11959
11960 2003-01-22  Jim Blandy  <jimb@redhat.com>
11961
11962         * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11963         like the old symbol_file_add, but taking new arguments: you can
11964         now pass in either a `struct section_addr_info' list to say where
11965         each section is loaded, or a `struct section_offsets' table.  Pass
11966         these new arguments through to syms_from_objfile as appropriate.
11967         (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
11968         with the appropriate quiescent values for the new arguments.
11969
11970         * symfile.c: #include "gdb_assert.h".
11971         (syms_from_objfile): Add the ability to pass in a section offset
11972         table directly, as an alternative to the section_addr_info table.
11973         Document arguments better.
11974         (symbol_file_add): Pass extra arguments to syms_from_objfile.
11975         * symfile.h (syms_from_objfile): Update declaration.
11976         * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11977         syms_from_objfile.
11978         * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11979
11980 2003-01-22  Daniel Jacobowitz  <drow@mvista.com>
11981
11982         Original patch by Tom Tromey <tromey@cygnus.com> and
11983         Jason Molenda <jmolenda@apple.com>.
11984         * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11985         (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11986         * NEWS: Mention profiling.
11987         * configure.in (--enable-gdbtk): Fix typo.
11988         (--enable-profiling): New.  Set PROFILE_CFLAGS.
11989         * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11990         Fill in function.
11991         (profiling_state): New variable.
11992         (mcleanup_wrapper): New function.
11993         (_initialize_maint): Remove NOTYET, fix call to
11994         add_setshow_boolean_cmd for "maint set profile".
11995         * configure: Regenerated.
11996
11997 2003-01-21  Martin M. Hunt  <hunt@redhat.com>
11998
11999         * Makefile.in (install-gdbtk): Install PNG images too.
12000
12001 2003-01-21  Andrew Cagney  <ac131313@redhat.com>
12002
12003         * exec.c (text_start): Delete global variable.
12004         (exec_file_attach): Make text_start local to the function.
12005         * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
12006         * valops.c (hand_function_call): Delete code that handles
12007         BEFORE_TEXT_END and AFTER_TEXT_END.
12008         * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
12009         of CALL_DUMMY_LOCATION.
12010         * gdbarch.c: Regenerate.
12011         * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
12012         (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
12013         * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
12014         (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
12015         (text_end): Delete extern declaration.
12016
12017 2003-01-21  Andrew Cagney  <ac131313@redhat.com>
12018
12019         * frame.h (FRAME_OBSTACK_ZALLOC): Define.
12020         * blockframe.c (backtrace_below_main): Move to "frame.c".
12021         (frame_chain_valid): Delete check for backtrace_below_main.
12022         (_initialize_blockframe): Delete initialization, move ``set
12023         backtrace-below-main'' command to "frame.c".
12024         (do_flush_frames_sfunc): Delete function.
12025         * frame.c: Include "command.h" and "gdbcmd.h".
12026         (frame_type_from_pc): New function.
12027         (create_new_frame): Use frame_type_from_pc.
12028         (legacy_get_prev_frame): New function.
12029         (get_prev_frame): Rewrite.  When an old style frame, call
12030         legacy_get_prev_frame.  Otherwize, unwind the PC first.
12031         (_initialize_frame): Add ``set backtrace-below-main'' command.
12032         * Makefile.in (frame.o): Update dependencies.
12033
12034 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
12035
12036         * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
12037         DEPRECATED_REGISTERS_INFO.
12038
12039 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
12040
12041         * MAINTAINERS: Replace `Blanket Write Privs' with `Global
12042         Maintainers'.  Update `Various Maintainers'.
12043
12044 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
12045
12046         * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
12047         * gdbarch.sh (POP_FRAME): Change to function with predicate.
12048         Suppress actual parameters when `-'.
12049         * gdbarch.h, gdbarch.c: Regenerate.
12050
12051 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
12052
12053         * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
12054         code handling dummy frames.
12055
12056 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
12057
12058         * frame-unwind.h (frame_unwind_pop_ftype): Declare.
12059         (struct frame_unwind): Add field pop.
12060         * frame.h (frame_pop): Declare.
12061         * frame.c (frame_saved_regs_pop): New function.
12062         (trad_frame_unwinder): Add frame_saved_regs_pop.
12063         (frame_pop): New function.
12064         * dummy-frame.c (dummy_frame_pop): New function.
12065         (discard_innermost_dummy): New function.
12066         (generic_pop_dummy_frame): Use discard_innermost_dummy.
12067         (dummy_frame_unwind): Add dummy_frame_pop.
12068         * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
12069         * valops.c (hand_function_call): Ditto.
12070         * stack.c (return_command): Ditto.
12071
12072 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
12073
12074         * cris-tdep.c: Fix function declaration indentation.
12075         * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
12076         * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
12077         * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
12078         * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
12079         * xcoffread.c, config/pa/tm-hppa.h: Ditto.
12080         * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
12081
12082 2003-01-18  Michael Chastain  <mec@shout.net>
12083
12084         * README (Unpacking and Installation -- quick overview):
12085         Warn against ".../gdb-5.3/gdb/configure".
12086
12087 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
12088
12089         * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
12090         (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
12091         (struct frame_unwind): Declare opaque.
12092         (dummy_frame_p): Declare function.
12093         * dummy-frame.c (dummy_frame_id_unwind): Make static.
12094         (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
12095         * dummy-frame.c: Include "frame-unwind.h".
12096         (dummy_frame_p): New function.
12097         (dummy_frame_unwind): New variable.
12098         * frame.c: Include "frame-unwind.h".
12099         (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
12100         to use the new unwind field.
12101         (set_unwind_by_pc): Delete function.
12102         (create_new_frame, get_prev_frame): Set unwind field using
12103         frame_unwind_find_by_pc.
12104         (trad_frame_unwind, trad_frame_unwinder): New variables.
12105         * frame.h (trad_frame_unwind): Declare variable.
12106         (frame_id_unwind_ftype): Delete declaration.
12107         (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
12108         (struct frame_unwind): Declare opaque.
12109         (struct frame_info): Replace the fields id_unwind, pc_unwind and
12110         register_unwind with a single unwind pointer.
12111         * frame-unwind.h, frame-unwind.c: New files.
12112         * Makefile.in (SFILES): Add frame-unwind.c.
12113         (frame_unwind_h): Define.
12114         (COMMON_OBS): Add frame-unwind.o.
12115         (frame-unwind.o): Specify dependencies.
12116         (frame.o, dummy-frame.o): Update dependencies.
12117
12118 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
12119
12120         * ada-valprint.c: Eliminate PTR.
12121         * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
12122         * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
12123         * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
12124         * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
12125         * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
12126         * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
12127         * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
12128
12129 2003-01-17  Andrew Cagney  <ac131313@redhat.com>
12130
12131         * main.c (captured_main): Don't use PTR.
12132         * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
12133         * gdbtypes.c (lookup_primitive_typename): Ditto.
12134         (lookup_struct_elt_type): Ditto.
12135         * f-valprint.c (info_common_command): Ditto.
12136         (list_all_visible_commons): Ditto.
12137         * jv-typeprint.c (java_type_print_base): Ditto.
12138
12139         * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
12140         mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
12141         Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c.  Rename
12142         i386-interix-nat.c and i386-interix-tdep.c.  Rename
12143         m68klinux-nat.c and m68klinux-tdep.c.  Rename
12144         config/mips/tm-linux.h and config/mips/tm-linux64.h.  Rename
12145         bfd/po/.cvsignore and opcodes/po/.cvsignore.  Rename
12146         gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
12147         * main.c (captured_main): Use xfree, not free.
12148
12149 2003-01-16  Andrew Cagney  <ac131313@redhat.com>
12150
12151         * frame.h (frame_id_unwind_ftype): Change type so that the frame's
12152         ID back using a parameter.
12153         * frame.c (frame_id_unwind): Update call.
12154         (frame_saved_regs_id_unwind): Update.
12155         * dummy-frame.c (dummy_frame_id_unwind): Update function.
12156         * dummy-frame.h (struct frame_id): Add opaque declaration.
12157         (dummy_frame_id_unwind): Update declaration.
12158
12159 2003-01-15  Andrew Cagney  <ac131313@redhat.com>
12160
12161         * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
12162
12163 2003-01-15  Stephen P. Smith <ischis2@cox.net>
12164
12165         * MAINTAINERS (Stephen P. Smith): Updated email address.
12166
12167 2003-01-14  Elena Zannoni  <ezannoni@redhat.com>
12168
12169         Fix PR gdb/898
12170         * breakpoint.c (until_break_command): Add new argument.  Use it to
12171         decide whether to stop only at the current frame or not.
12172         * breakpoint.h (until_break_command): Update prototype.
12173         * infcmd.c (until_command): Add new argument to until_break_command
12174         call.
12175         (advance_command): New function.
12176         (_initialize_infcmd): Update help string for 'until' command.
12177         Add new 'advance' command.
12178
12179 2003-01-14  David Carlton  <carlton@math.stanford.edu>
12180
12181         * linespec.c (decode_line_1): Normalize comments.
12182         (set_flags): Ditto.
12183         (locate_first_half): Ditto.
12184         (decode_compound): Ditto.
12185         (symtab_from_filename): Ditto.
12186         (decode_all_digits): Ditto.
12187         (decode_dollar): Ditto.
12188         (find_methods): Ditto.
12189         (find_toplevel_char): Ditto.
12190
12191 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
12192
12193         * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
12194         * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
12195         * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
12196         * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
12197         * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
12198         * language.c, language.h, m32r-tdep.c: Update copyright.
12199         * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
12200         * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
12201         * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
12202         * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
12203         * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
12204         * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
12205
12206 2003-01-13  Elena Zannoni  <ezannoni@redhat.com>
12207
12208         * stabsread.h (process_later, resolve_cfront_continuation):
12209         Obsolete.
12210         Update copyright years.
12211         * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
12212         Update copyright year.
12213         * dbxread.c(struct cont_elem): Obsolete.
12214         (process_later, process_now): Obsolete functions.
12215         (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
12216         Update copyright year.
12217         * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
12218         (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
12219         * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
12220         (parse_partial_symbols): Obsolete cfront support.
12221         * stabsread.c
12222         (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
12223         macros.
12224         (get_substring, get_cfront_method_physname, msg_unknown_complaint,
12225         read_cfront_baseclasses, read_cfront_member_functions,
12226         resolve_cfront_continuation,read_cfront_static_fields,
12227         copy_cfront_struct_fields): Obsolete functions.
12228         (define_symbol, read_one_struct_field): Obsolete cfront support.
12229         * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
12230         Update Copyright year.
12231
12232 2003-01-13  Elena Zannoni  <ezannoni@redhat.com>
12233
12234         * stack.c (print_frame_info, print_stack_frame_base_stub,
12235         print_stack_frame_base, show_and_print_stack_frame_stub,
12236         show_and_print_stack_frame, print_only_stack_frame_stub,
12237         print_only_stack_frame): Delete functions.
12238         (print_stack_frame_stub): Call print_frame_info instead of
12239         print_frame_info_base.
12240         (print_frame_info_base): Rename to print_frame_info.
12241         (backtrace_command_1): Call print_frame_info, instead of
12242         print_frame_info_base.
12243         (current_frame_command): Call print_stack_frame, instead of
12244         print_only_stack_frame.
12245         (frame_command): Call print_stack_frame, instead of
12246         show_and_print_stack_frame.
12247         (up_command): Ditto.
12248         (down_command): Ditto.
12249         * frame.h (print_only_stack_frame): Delete prototype.
12250         * infrun.c (normal_stop): Call print_stack_frame, instead of
12251         show_and_print_stack_frame.
12252         * thread.c (info_threads_command): Call print_stack_frame, instead
12253         of print_only_stack_frame.
12254
12255 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
12256
12257         * README (Graphical interface to GDB): Update URL.  Point at
12258         gdb/links/.
12259
12260         * gdb_indent.sh: Update to version 2.2.9.  Warn when not exact
12261         version match.
12262
12263 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
12264
12265         * symtab.c (find_pc_sect_line): Don't consider end-of-function
12266         lines.
12267
12268 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
12269
12270         * thread-db.c (attach_thread): Prototype.
12271         (struct private_thread_info): Remove lwpid.  Add thread handle (th),
12272         thread information (ti), and valid flags (th_valid, ti_valid).
12273         (attach_thread): Move target_pid_to_str call to after the thread
12274         is added to GDB's list.  Initialize the cache.
12275         (thread_get_info_callback, thread_db_map_id2thr)
12276         (thread_db_get_info): New functions.
12277         (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
12278         (thread_db_store_registers, thread_db_thread_alive)
12279         (thread_db_get_thread_local_address): Use them.
12280         (thread_db_pid_to_str): Likewise.  Return "Missing" instead
12281         of calling error() for threads in unknown state.
12282
12283         (clear_lwpid_callback): New function.
12284         (thread_db_resume): Use it to clear the cache.
12285
12286 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
12287
12288         * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
12289         (resume_callback): Remove dead code.
12290
12291 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
12292
12293         * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
12294         predicate.
12295         * gdbarch.h, gdbarch.c: Regenerate.
12296         * stack.c (frame_info): Only initialize the saved registers when
12297         FRAME_INIT_SAVED_REGS_P.
12298         * frame.c (frame_saved_regs_register_unwind): Assert
12299         FRAME_INIT_SAVED_REGS_P.
12300         (deprecated_generic_get_saved_register): Ditto.
12301
12302 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
12303
12304         * source.c (openp): Squelch warning about "filename".
12305
12306 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
12307
12308         * source.c (openp): If the file does not exist don't necessarily
12309         search the path.
12310
12311 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
12312
12313         Fix PR gdb/872.
12314         * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
12315         (integer_types_same_name_p): New function.
12316         (rank_one_type): Use it.
12317         * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
12318
12319 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
12320
12321         * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
12322         variables.
12323         (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
12324         * configure.in: Add --with-sysroot.
12325         * configure: Regenerated.
12326         * main.c (gdb_sysroot): New variable.
12327         (captured_main): Initialize gdb_sysroot.
12328         * defs.h (gdb_sysroot): New extern declaration.
12329         * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
12330
12331 2003-01-12  Michael Chastain  <mec@shout.net>
12332
12333         * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
12334
12335 2003-01-12  Michael Chastain  <mec@shout.net>
12336
12337         * top.c (print_gdb_version): Bump copyright year to 2003.
12338
12339 2003-01-12  David Carlton  <carlton@bactrian.org>
12340
12341         * linespec.c (symtab_from_filename): Rename variable 's' to
12342         'file_symtab'.
12343
12344 2003-01-12  Andrew Cagney  <ac131313@redhat.com>
12345
12346         * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
12347         dummy frame.
12348         (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
12349
12350 2003-01-12  Andrew Cagney  <ac131313@redhat.com>
12351
12352         * d10v-tdep.c: Include "gdb_assert.h".
12353         (d10v_store_return_value): Rewrite to match current interface.
12354         (d10v_extract_struct_value_address): Ditto.
12355         (d10v_extract_return_value): Ditto.
12356         (d10v_gdbarch_init): Set store_restore_value,
12357         extract_struct_value_address and extract_return_value.
12358
12359 2003-01-12  J. Brobecker  <brobecker@gnat.com>
12360
12361         * hpread.c (set_namestring): New procedure replacing the
12362         SET_NAMESTRING macro.
12363         (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
12364         by calls to set_namestring.
12365
12366 2003-01-11  J. Brobecker  <brobecker@gnat.com>
12367
12368         * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
12369         a compilation warning.
12370         (hpread_process_one_debug_symbol): Likewise.
12371
12372 2003-01-10  David Carlton  <carlton@math.stanford.edu>
12373
12374         * linespec.c (decode_line_1): Rename variable 's' to
12375         'file_symtab'.
12376         (decode_all_digits): Rename argument 's' to 'file_symtab'.
12377         (decode_dollar): Ditto.
12378         (decode_variable): Ditto.
12379         (symbol_found): Ditto.
12380
12381 2003-01-09  Michael Chastain  <mec@shout.net>
12382
12383         * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
12384
12385 2003-01-07  Corinna Vinschen  <vinschen@redhat.com>
12386
12387         * win32-nat.c (set_process_privilege): New function.
12388         (child_attach): Call set_process_privilege() to enable the
12389         SE_DEBUG_NAME user privilege if available in process token.
12390
12391 2003-01-10  J. Brobecker  <brobecker@gnat.com>
12392
12393         * hpread.c (hpread_process_one_debug_symbol): Fix a small
12394         compilation error in the previous revision.
12395
12396 2003-01-09  David Carlton  <carlton@math.stanford.edu>
12397
12398         * linespec.c: Update copyright.
12399
12400 2003-01-09  Daniel Jacobowitz  <drow@mvista.com>
12401
12402         * lin-lwp.c (child_wait): Ignore exit statuses for processes other
12403         than inferior_ptid.
12404         (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
12405
12406 2003-01-09  Andrew Cagney  <ac131313@redhat.com>
12407
12408         * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
12409         Update comments.
12410         * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
12411         (frame_saved_regs_zalloc): Update.
12412         (frame_saved_regs_register_unwind): Update.
12413         (create_new_frame): Update.
12414         (get_prev_frame): Update.
12415         (frame_extra_info_zalloc): Update.
12416         (deprecated_get_frame_saved_regs): Update.
12417         * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
12418         * cris-tdep.c: Update comment.
12419
12420         * somsolib.h: Fix function indentation.
12421         * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
12422         * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
12423         * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
12424         * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
12425         * somsolib.c, inftarg.c: Remove assignment in if conditional.
12426
12427         * infrun.c (follow_fork): Use ISO C definition.
12428         * expprint.c (print_subexp): Use xfree instead of free.
12429         * charset.c: Include "gdb_string.h" instead of <string.h>.
12430         (register_iconv_charsets): Use ISO C definition.
12431         (host_charset, target_charset): Ditto.
12432         * Makefile.in (charset.o): Update dependencies.
12433         (mi-cmd-env.o): Update dependencies.
12434
12435 2003-01-08  Andrew Cagney  <cagney@redhat.com>
12436
12437         * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
12438         get_frame_base.
12439
12440 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
12441
12442         * gdb_mbuild.sh: Add --keep option.  When specified, keep the
12443         build directories.  Save edited gdb output in Mbuild.log.  If a
12444         build fails, remove any final GDB executable.
12445
12446 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
12447
12448         * gdb_mbuild.sh: Edit the output of `maint print architecture'
12449         replacing hex constants with function names and stripping leading
12450         file name directory prefixes.
12451
12452 2003-01-08  Andrew Cagney  <cagney@redhat.com>
12453
12454         * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
12455         get_frame_base.
12456
12457 2003-01-08  David Carlton  <carlton@math.stanford.edu>
12458
12459         * linespec.c (decode_line_1): Move code into decode_variable.
12460         (decode_variable): New function.
12461
12462 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
12463
12464         * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
12465
12466 2003-01-08  Andrew Cagney  <cagney@redhat.com>
12467
12468         * cris-tdep.c (cris_frame_init_saved_regs): Use
12469         get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
12470         saved_regs buffer.
12471         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
12472         (sh64_nofp_frame_init_saved_regs): Ditto.
12473         (sh_fp_frame_init_saved_regs): Ditto.
12474         * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
12475         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12476         * mcore-tdep.c (analyze_dummy_frame): Ditto.
12477         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12478
12479 2003-01-08  Daniel Jacobowitz  <drow@mvista.com>
12480
12481         * minsyms.c (lookup_minimal_symbol): Update comment.
12482         (lookup_minimal_symbol_text): Update comment.  Use the hash table.
12483         (lookup_minimal_symbol_solib_trampoline): Likewise.
12484
12485 2003-01-08  Andrew Cagney  <cagney@redhat.com>
12486
12487         * d10v-tdep.c (d10v_init_extra_frame_info): Use
12488         frame_relative_level.
12489
12490         * alpha-tdep.c: Use get_frame_extra_info.
12491         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12492         * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
12493         * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12494         * sparc-tdep.c, xstormy16-tdep.c: Ditto.
12495
12496         * alpha-tdep.c: Use get_next_frame.
12497         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12498         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12499         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
12500         * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
12501         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
12502         * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
12503         * xstormy16-tdep.c: Ditto.
12504
12505 2003-01-07  Andrew Cagney  <cagney@redhat.com>
12506
12507         * alpha-tdep.c: Use get_frame_base.
12508         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12509         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12510         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12511         * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12512         * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
12513         * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12514         * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
12515         * config/sparc/tm-sparc.h: Ditto.
12516
12517 2003-01-07  Andrew Cagney  <cagney@redhat.com>
12518
12519         * frame.c (deprecated_get_frame_context): New function.
12520         (deprecated_set_frame_context): New function.
12521         * frame.h (deprecated_get_frame_context): Declare.
12522         (deprecated_set_frame_context): Declare.
12523         * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
12524         (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
12525
12526 2003-01-07  Andrew Cagney  <cagney@redhat.com>
12527
12528         * frame.c (deprecated_set_frame_next_hack): New function.
12529         (deprecated_set_frame_prev_hack): New function.
12530         * frame.h (deprecated_set_frame_next_hack): Declare.
12531         (deprecated_set_frame_prev_hack): Declare.
12532         * mcore-tdep.c (analyze_dummy_frame): Use
12533         deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
12534         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12535
12536 2003-01-07  David Carlton  <carlton@math.stanford.edu>
12537
12538         * linespec.c (decode_line_1): Move code into decode_dollar.
12539         (decode_dollar): New function.
12540
12541 2003-01-07  Andrew Cagney  <cagney@redhat.com>
12542
12543         * arm-tdep.c (arm_init_extra_frame_info): Use
12544         deprecated_update_frame_base_hack.
12545         * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
12546         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12547         (fix_frame_pointer): Ditto.
12548         (mn10300_analyze_prologue): Ditto.
12549
12550 2003-01-07  Andrew Cagney  <cagney@redhat.com>
12551
12552         * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
12553         extra_info using frame_extra_info_zalloc.
12554         * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
12555         * sh-tdep.c (sh_init_extra_frame_info): Ditto.
12556         (sh64_init_extra_frame_info): Ditto.
12557         * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
12558         * s390-tdep.c (s390_init_extra_frame_info): Ditto.
12559         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12560         * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
12561         * frv-tdep.c (frv_init_extra_frame_info): Ditto.
12562         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
12563         * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
12564         * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
12565         * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
12566         * cris-tdep.c (cris_init_extra_frame_info): Ditto.
12567         * arm-tdep.c (arm_init_extra_frame_info): Ditto.
12568         * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
12569
12570         * mn10300-tdep.c (analyze_dummy_frame): Use
12571         deprecated_set_frame_extra_info_hack.
12572         * mcore-tdep.c (analyze_dummy_frame): Ditto.
12573
12574 2003-01-07  J. Brobecker  <brobecker@gnat.com>
12575
12576         * mdebugread.c (parse_symbol): Skip stProc entries which storage
12577         class is not scText. These do not define "real" procedures.
12578         (parse_partial_symbols): Likewise.
12579
12580 2003-01-06  Michael Snyder  <msnyder@redhat.com>
12581
12582         * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
12583
12584 2003-01-06  Andrew Cagney  <ac131313@redhat.com>
12585
12586         * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
12587         * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
12588         * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
12589         deprecated_frame_xmalloc_with_cleanup.
12590         * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
12591         deprecated_frame_xmalloc.
12592         * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
12593         * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
12594
12595 2003-01-06  Andrew Cagney  <cagney@redhat.com>
12596
12597         * x86-64-linux-tdep.c: Include "osabi.h".
12598         * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
12599
12600         * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
12601
12602 2003-01-06  Andrew Cagney  <cagney@redhat.com>
12603
12604         * MAINTAINERS (Target Instruction Set Architectures): Update
12605         arm-elf.  Can be built with -Werror, has been multiarched.
12606
12607         * value.h (unpack_long): Make buffer parameter constant.
12608         (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
12609         * scm-lang.h (scm_parse): Ditto.
12610         * defs.h (extract_typed_address, extract_address): Ditto.
12611         (extract_long_unsigned_integer): Ditto.
12612         * inferior.h (unsigned_pointer_to_address): Ditto.
12613         (signed_pointer_to_address): Ditto.
12614         * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
12615         * gdbarch.h, gdbarch.c: Regenerate.
12616         * findvar.c (extract_long_unsigned_integer): Update.
12617         (extract_address): Update.
12618         (extract_typed_address): Update.
12619         (unsigned_pointer_to_address): Update.
12620         * values.c (unpack_long): Update.
12621         (unpack_double): Update.
12622         (unpack_pointer): Update.
12623         (unpack_field_as_long): Update.
12624         * d10v-tdep.c (d10v_pointer_to_address): Update.
12625         * avr-tdep.c (avr_pointer_to_address): Update.
12626         * scm-lang.c (scm_unpack): Update.
12627         * findvar.c (signed_pointer_to_address): Update.
12628
12629 2003-01-06  Michal Ludvig  <mludvig@suse.cz>
12630
12631         * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
12632         since it is in i386-tdep.c.
12633
12634 2003-01-06  J. Brobecker  <brobecker@gnat.com>
12635
12636         * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
12637         failure introduced in the previous change.
12638
12639 2003-01-05  Michael Chastain  <mec@shout.net>
12640
12641         * README: Remove references to deleted remote-*.c files:
12642         remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
12643         remote-nrom.c, remote-os9k.c, remote-udi.c.
12644
12645 2003-01-05  Mark Kettenis  <kettenis@gnu.org>
12646
12647         * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
12648         * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
12649         i386_get_longjmp_target.
12650
12651 2003-01-05  Andrew Cagney  <ac131313@redhat.com>
12652
12653         * arm-tdep.c (prologue_cache): Change to a pointer.
12654         (_initialize_arm_tdep): Allocate prologue_cache.
12655         (check_prologue_cache): Update.
12656         (save_prologue_cache): Update.
12657         (arm_gdbarch_init): Update.
12658
12659 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
12660
12661         * stabsread.c (update_method_name_from_physname): Call complaint()
12662         instead of error.
12663
12664 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
12665
12666         * arm-tdep.c (arm_frame_chain_valid):  Remove unnecessary test.
12667         * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
12668         * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
12669
12670         * blockframe.c: Include "gdbcmd.h" and "command.h".
12671         (backtrace_below_main): New variable.
12672         (file_frame_chain_valid, func_frame_chain_valid)
12673         (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
12674         (generic_func_frame_chain_valid): Remove functions.
12675         (frame_chain_valid, do_flush_frames_sfunc): New functions.
12676         (_initialize_blockframe): New function.
12677         * Makefile.in (blockframe.o): Update dependencies.
12678         * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
12679         comment.  Call frame_chain_valid ().
12680         * frame.h: Remove old prototypes.  Add prototype for
12681         frame_chain_valid and update comments to match.
12682         * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
12683         Remove old comment.
12684         * gdbarch.h: Regenerated.
12685         * gdbarch.c: Regenerated.
12686
12687         * alpha-tdep.c (alpha_gdbarch_init): Don't call
12688         set_gdbarch_frame_chain_valid.
12689         * avr-tdep.c (avr_gdbarch_init): Likewise.
12690         * cris-tdep.c (cris_gdbarch_init): Likewise.
12691         * frv-tdep.c (frv_gdbarch_init): Likewise.
12692         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
12693         * i386-tdep.c (i386_svr4_init_abi): Likewise.
12694         (i386_nw_init_abi): Likewise.
12695         (i386_gdbarch_init): Likewise.
12696         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
12697         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12698         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12699         * mcore-tdep.c (mcore_gdbarch_init): Likewise.
12700         * mips-tdep.c (mips_gdbarch_init): Likewise.
12701         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12702         * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
12703         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12704         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12705         * s390-tdep.c (s390_gdbarch_init): Likewise.
12706         * sh-tdep.c (sh_gdbarch_init): Likewise.
12707         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12708         * v850-tdep.c (v850_gdbarch_init): Likewise.
12709         * vax-tdep.c (vax_gdbarch_init): Likewise.
12710         * x86-64-tdep.c (x86_64_init_abi): Likewise.
12711
12712         * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
12713         * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
12714         * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
12715         * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
12716         * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
12717         * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
12718         * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
12719         * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
12720
12721 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
12722
12723         * Makefile.in (acconfig_h): Remove incorrect macro.
12724         (config_h): Define.
12725         (osabi.o): Update dependencies.
12726         * configure.tgt: Set gdb_osabi based on target triplet.
12727         * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
12728         * configure: Regenerated.
12729         * config.in: Regenerated.
12730         * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
12731         (GDB_OSABI_DEFAULT): Define if not already defined.
12732         (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
12733         (set_osabi_string): New variables.
12734         (gdbarch_register_osabi): Add new OS ABI to
12735         gdb_osabi_available_names.
12736         (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
12737         (set_osabi, show_osabi): New functions.
12738         (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
12739
12740 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
12741
12742         * arch-utils.c (gdbarch_info_init): Set osabi to
12743         GDB_OSABI_UNINITIALIZED.
12744         * gdbarch.sh: Add osabi to struct gdbarch and to struct
12745         gdbarch_info.  Include "osabi.h" in gdbarch.c.  Check osabi
12746         in gdbarch_list_lookup_by_info and in gdbarch_update_p.
12747         * gdbarch.c: Regenerated.
12748         * gdbarch.h: Regenerated.
12749         * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
12750         there's no BFD.
12751         (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
12752         * osabi.h (enum gdb_osabi): Move to defs.h.
12753         (gdbarch_init_osabi): Update prototype.
12754         * defs.h (enum gdb_osabi): Moved here.
12755         * Makefile.in: Update dependencies.
12756
12757         * alpha-tdep.h: Don't include "osabi.h".
12758         (struct gdbarch_tdep): Remove osabi member.
12759         * alpha-tdep.c: Include "osabi.h".
12760         (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
12761         iterate over arches.  Update call to gdbarch_init_osabi.
12762         (alpha_dump_tdep): Don't dump osabi.
12763         * alpha-linux-tdep.c: Include "osabi.h".
12764         * alpha-osf1-tdep.c: Include "osabi.h".
12765         * alphafbsd-tdep.c: Include "osabi.h".
12766         * alphanbsd-tdep.c: Include "osabi.h".
12767
12768         * arm-tdep.h: Don't include "osabi.h".
12769         (struct gdbarch_tdep): Remove osabi member.
12770         * arm-tdep.c: Include "osabi.h".
12771         (arm_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
12772         iterate over arches.  Update call to gdbarch_init_osabi.
12773         (arm_dump_tdep): Don't dump osabi.
12774         * arm-linux-tdep.c: Include "osabi.h".
12775         * armnbsd-tdep.c: Include "osabi.h".
12776
12777         * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
12778         Update call to gdbarch_init_osabi.
12779
12780         * i386-tdep.h: Don't include "osabi.h".
12781         (struct gdbarch_tdep): Remove osabi member.
12782         * i386-tdep.c: Include "osabi.h".
12783         (i386_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
12784         iterate over arches.  Update call to gdbarch_init_osabi.
12785         (i386_dump_tdep): Don't dump osabi.
12786         * i386-linux-tdep.c: Include "osabi.h".
12787         * i386-sol2-tdep.c: Include "osabi.h".
12788         * i386bsd-tdep.c: Include "osabi.h".
12789         * i386gnu-tdep.c: Include "osabi.h".
12790         * i386ly-tdep.c: Include "osabi.h".
12791         * i386nbsd-tdep.c: Include "osabi.h".
12792         * i386obsd-tdep.c: Include "osabi.h".
12793
12794         * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
12795         (mips_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
12796         check osabi when iterating over arches.  Update call to
12797         gdbarch_init_osabi.
12798         (mips_dump_tdep): Don't dump osabi.
12799
12800         * ns32k-tdep.h: Don't include "osabi.h".
12801         (struct gdbarch_tdep): Remove.
12802         * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
12803         gdbarch_lookup_osabi.  Don't iterate over arches.  Don't
12804         allocate tdep.  Update call to gdbarch_init_osabi.
12805         (ns32k_dump_tdep): Remove.
12806         (_initialize_ns32k_tdep): Update call to gdbarch_register.
12807         * ns32knbsd-tdep.c: Include "osabi.h".
12808
12809         * ppc-tdep.h: Don't include "osabi.h".
12810         (struct gdbarch_tdep): Remove osabi member.
12811         * rs6000-tdep.c: Include "osabi.h".
12812         (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't check
12813         osabi when iterating over arches.  Update call to
12814         gdbarch_init_osabi.
12815         (rs6000_dump_tdep): Don't dump osabi.
12816         * ppc-linux-tdep.c: Include "osabi.h".
12817         * ppcnbsd-tdep.c: Include "osabi.h".
12818
12819         * sh-tdep.h: Don't include "osabi.h".
12820         (struct gdbarch_tdep): Remove osabi member.
12821         * sh-tdep.c: Include "osabi.h".
12822         (sh_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
12823         iterate over arches.  Update call to gdbarch_init_osabi.
12824         (sh_dump_tdep): Don't dump osabi.
12825         * shnbsd-tdep.c: Include "osabi.h".
12826
12827         * sparc-tdep.c: Include "osabi.h".
12828         (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
12829         iterate over arches.  Update call to gdbarch_init_osabi.
12830         (sparc_dump_tdep): Don't dump osabi.  Do dump the rest of the
12831         tdep structure.
12832
12833         * vax-tdep.h: Don't include "osabi.h".
12834         (struct gdbarch_tdep): Remove.
12835         * vax-tdep.c: Include "osabi.h".
12836         (vax_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
12837         iterate over arches.  Don't allocate tdep.  Update call
12838         to gdbarch_init_osabi.
12839         (vax_dump_tdep): Remove.
12840         (_initialize_vax_tdep): Update call to gdbarch_register.
12841
12842 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
12843
12844         * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
12845         entirely.
12846         (breakpoint_re_set_one): Don't fetch the value for a disabled
12847         watchpoint.
12848
12849 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
12850
12851         * buildsym.h (processing_hp_compilation): Remove obsolete variable.
12852         * gdbarch.sh Remove include of "value.h" in gdbarch.h.
12853         (COERCE_FLOAT_TO_DOUBLE): Remove.
12854         * gdbarch.c: Regenerate.
12855         * gdbarch.h: Regenerate.
12856         * Makefile.in: Remove value_h from gdbarch_h.
12857         * valops.c (coerce_float_to_double): New variable.
12858         (default_coerce_float_to_double): Remove.
12859         (standard_coerce_float_to_double): Remove.
12860         (value_arg_coerce): Use coerce_float_to_double.
12861         (_initialize_valops): Add "set coerce-float-to-double".
12862         * value.h (default_coerce_float_to_double): Remove prototype.
12863         (standard_coerce_float_to_double): Remove prototype.
12864
12865         * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
12866         prototyped.
12867         * mdebugread.c (parse_symbol): Likewise.
12868         * stabsread.c (define_symbol): Mark all functions as prototyped.
12869
12870         * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
12871         * alpha-tdep.c (alpha_gdbarch_init): Remove call to
12872         set_gdbarch_coerce_float_to_double.
12873         * arm-tdep.c (arm_gdbarch_init): Likewise.
12874         * frv-tdep.c (frv_gdbarch_init): Likewise.
12875         * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
12876         * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
12877         * mips-tdep.c (mips_gdbarch_init): Likewise.
12878         (mips_coerce_float_to_double): Remove.
12879         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12880         (rs6000_coerce_float_to_double): Remove.
12881         * s390-tdep.c (s390_gdbarch_init): Likewise.
12882         * sh-tdep.c (sh_gdbarch_init): Likewise.
12883         (sh_coerce_float_to_double): Remove.
12884         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12885         (sparc_coerce_float_to_double): Remove.
12886         * v850-tdep.c (v850_gdbarch_init): Likewise.
12887         * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12888         * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12889         * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
12890         (hppa_coerce_float_to_double): Remove prototype.
12891         * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12892
12893 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
12894
12895         * regformats/reg-m68k.dat: Remove fpcode and fpflags.
12896
12897 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
12898
12899         Suggested by Stewart Brown <sb24@avaya.com>:
12900         * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
12901         in recursive calls.  Handle TYPE_CODE_TYPEDEF.
12902         (c_type_print_varspec_suffix): Likewise.
12903
12904 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
12905
12906         * configure.in: Don't set and AC_SUBST SUBDIRS.
12907         * configure: Regenerated.
12908
12909         * configure.in: Remove code dealing with shared libraries.
12910         * Makefile.in: Remove HLDFLAGS and HLDENV.
12911         * configure: Regenerated.
12912
12913 2003-01-04  Andrew Cagney  <ac131313@redhat.com>
12914
12915         * frame.c (deprecated_frame_xmalloc): New function.
12916         (deprecated_set_frame_saved_regs_hack): New function.
12917         (deprecated_set_frame_extra_info_hack): New function.
12918         * frame.h (deprecated_frame_xmalloc): Declare.
12919         (deprecated_set_frame_saved_regs_hack): Declare.
12920         (deprecated_set_frame_extra_info_hack): Declare.
12921
12922 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
12923
12924         * configure.in: Move code that provides the --enable-gdbtk option
12925         right after the code that handles the --enable-tui option, and
12926         polish it somewhat.
12927         * configure: Regenerated.
12928
12929         * configure.in: Call AC_GNU_SOURCE.  Check for pread64 using
12930         AC_CHECK_FUNCS and remove the old check for pread64.
12931         * acinclude.m4 (AC_GNU_SOURCE): New macro.
12932         * acconfig.h (_GNU_SOURCE): Add.
12933         (HAVE_PREAD64): Remove.
12934         * configure, aclocal.m4, config.in: Regenerated.
12935
12936 2003-01-03  Andrew Cagney  <ac131313@redhat.com>
12937
12938         * alpha-tdep.c: Use get_frame_saved_regs.
12939         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12940         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12941         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12942         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12943         * vax-tdep.c, xstormy16-tdep.c: Ditto.
12944
12945 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
12946
12947         * configure.in: Remove all use of the SUBDIRS variable; add
12948         directories using the AC_CONFIG_SUBDIRS macro instead.  Polish
12949         code providing the --enable-multi-ice option, and move it right in
12950         front of the code that checks whether gdbserver is supported.
12951         Polish that too.
12952         * configure: Regenerated.
12953         * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12954         @SUBDIRS@.
12955
12956 2003-01-03  Andrew Cagney  <cagney@redhat.com>
12957
12958         * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12959         * avr-tdep.c, cris-tdep.c: Ditto.
12960         * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12961         * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12962
12963 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
12964
12965         * configure.in: Remove --enable-netrom option.
12966         * configure: Regenerated.
12967
12968 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
12969
12970         * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12971         declaration for `struct re_pattern_buffer' instead.
12972         * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12973
12974 2003-01-03  J. Brobecker  <brobecker@gnat.com>
12975
12976         * mdebugread.c (parse_symbol): Count until the stEnd matching
12977         the structure name.
12978
12979 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
12980
12981         * configure.in: Remove --with-cpu option.
12982         subscripts.  Remove evil changequotes here.
12983         * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12984         * config.in, configure: Regenerated.
12985
12986         * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12987         * configure.in: Cleanup section that sources GDB and BFD configure
12988         subscripts.  Remove evil changequotes here.
12989         * config.in, configure: Regenerated.
12990
12991 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
12992
12993         * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12994         frame accessor methods.
12995         * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12996         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12997         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12998         * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12999         * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
13000         * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
13001         * z8k-tdep.c: Ditto.
13002
13003 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
13004
13005         * configure.in: Remove UI_OUT configuration code.
13006         * ada-lang.c: Update assuming UI_OUT is always true.
13007         * Makefile.in (UIOUT_CFLAGS): Remove.
13008         * configure: Regenerated.
13009         * TODO: Remove blurb about elimination of -DUI_OUT.
13010
13011         * configure.in: Move code that provides the --enable-gdbcli,
13012         --enable-gdbmi options right before the code that handles the
13013         --enable-tui option.  Polish a bit.
13014         * configure: Regenerated.
13015
13016         * configure.in: Rewrite check for GNU regex and the
13017         --without-included regex option, and move it into the "Checks for
13018         library functions" section.  This makes us use the system regex
13019         again by default on systems with version 2 of the GNU C library.
13020         This was apparently broken.
13021         * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
13022         * acconfig.h (USE_INCLUDED_REGEX): Remove.
13023         * config.in, configure: Regenerated.
13024
13025         * configure.in: Move code that provides the --enable-tui option
13026         before the "Checks for libraries" section.  Polish the code
13027         somewhat and set need_curses to yes if we build the TUI.  Rewrite
13028         code that looks for a library providing termcap functionality to
13029         match more closely what's done in the Readline library, and move
13030         it into to the "Checks for libraries" section.
13031         * configure: Regenerated.
13032         * Makefile.in (TERMCAP): Remove variable.
13033         * config/i386/go32.mh (TERMCAP): Remove variable.
13034
13035 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
13036
13037         * MAINTAINERS: Mention gdb_mbuild.sh.
13038         * gdb_mbuild.sh: Rewrite.
13039
13040 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
13041
13042         * configure.in: Fix typo in last change.
13043         * config.in, configure: Regenerated.
13044
13045 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
13046
13047         * valarith.c (value_binop): Delete obsolete code and comments.
13048         * configure.host: Ditto.
13049         * buildsym.h (make_blockvector): Ditto.
13050         * buildsym.c (make_blockvector): Ditto.
13051         * defs.h (enum language): Ditto.
13052         (chill_demangle): Ditto.
13053         * elfread.c (elf_symtab_read): Ditto.
13054         * dwarfread.c (CHILL_PRODUCER): Ditto.
13055         (set_cu_language): Ditto.
13056         (handle_producer): Ditto.
13057         * expprint.c (print_subexp): Ditto.
13058         * gdbtypes.c (chill_varying_type): Ditto.
13059         * gdbtypes.h (builtin_type_chill_bool): Ditto.
13060         (builtin_type_chill_char, builtin_type_chill_long): Ditto.
13061         (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
13062         (chill_varying_type): Ditto.
13063         * language.h (_LANG_chill): Ditto.
13064         * language.c (binop_result_type, integral_type): Ditto.
13065         (character_type, string_type, structured_type): Ditto.
13066         (lang_bool_type, binop_type_check): Ditto.
13067         * stabsread.h (os9k_stabs): Ditto.
13068         * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
13069         (define_symbol, read_type, read_struct_fields): Ditto.
13070         (read_array_type, read_enum_type, read_huge_number): Ditto.
13071         (read_range_type, start_stabs): Ditto.
13072         * symfile.c (init_filename_language_table): Ditto.
13073         (add_psymbol_with_dem_name_to_list): Ditto.
13074         * symtab.c (symbol_init_language_specific): Ditto.
13075         (symbol_init_demangled_name, symbol_demangled_name): Ditto.
13076         * symtab.h (struct general_symbol_info): Ditto.
13077         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
13078         * typeprint.c (typedef_print): Ditto.
13079         * utils.c (fprintf_symbol_filtered): Ditto.
13080         * valops.c (value_cast, search_struct_field, value_slice): Delete
13081         obsolete code.
13082         (varying_to_slice): Delete function.
13083         * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
13084         (varying_to_slice): Delete declaration.
13085         * MAINTAINERS: Update.
13086
13087 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
13088
13089         * configure.in: Reorganize "Checks for library functions section"
13090         a bit.  Remove check for `btowc' and `isascii' functions.
13091         * configure: Regenerated.
13092
13093         * acconfig.h (_MSE_INT_H): Remove.
13094         * configure.in: Create "Checks for header files" section, and move
13095         appropriate tests there.  Don't check for objlist.h, wchar.h,
13096         wctype.h and asm/debugreg.h.  Rewrite Solaris 2.[78] <curses.h>
13097         misdetection fix.  Also add "Checks for types", "Checks for
13098         compiler characteristics" and "Checks for library functions"
13099         sections.
13100         * config.in, configure: Regenerated.
13101
13102         * configure.in: Create "Checks for programs" section, and move
13103         appropriate tests there.
13104
13105 2003-01-01  Mark Kettenis  <kettenis@gnu.org>
13106
13107         * configure.in: Create "Checks for libraries" section, and move
13108         appropriate tests there.  Cleanup check for wctype in libw.  Use
13109         AC_SEARCH_LIBS to see whether we need libsocket.
13110         * configure: Regenerated.
13111
13112 For older changes see ChangeLog-2002
13113 \f
13114 Local Variables:
13115 mode: change-log
13116 left-margin: 8
13117 fill-column: 74
13118 version-control: never
13119 End: