2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
[external/binutils.git] / gdb / ChangeLog
1 2004-11-04  Kei Sakamoto  <sakamoto.kei@denesas.com>
2         * Makefile.in (m32r-tdep.o): Update dependencies.
3         * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
4         ABI-specific overrides.
5
6 2004-11-04  Kei Sakamoto  <sakamoto.kei@denesas.com>
7         * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
8         unnecessary parallel execution bit.
9         (m32r_memory_remove_breakpoint): Ditto.
10         (m32r_breakpoint_from_pc): Update.
11
12 2004-11-03  Randolph Chung  <tausq@debian.org>
13
14         * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
15         frame_func_unwind to locate the unwind entry.
16         (hppa_frame_this_id): Likewise.
17
18 2004-11-03  Andrew Cagney  <cagney@gnu.org>
19
20         * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
21         packet, obsolete configurations, end-of-life deprecated_registers.
22
23 2004-11-02  Mark Kettenis  <kettenis@gnu.org>
24
25         * dwarf2-frame.c (read_encoded_value): Set proper size for signed
26         encodings as well as unsigned encodings.
27
28 2004-11-02  Andrew Cagney  <cagney@gnu.org>
29
30         * value.h (COERCE_VARYING_ARRAY): Delete.
31         * valops.c (value_cast, value_slice): Delete use.
32         * valarith.c (value_subscript, value_concat): Delete use.
33
34 2004-11-02  Paul Hilfinger  <hilfingr@nile.gnat.com>
35
36         * NEWS: GDB understands GNAT Ada.
37
38 2004-11-01  Joseph S. Myers  <joseph@codesourcery.com>
39
40         * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
41         (amd64-sol2-tdep.o): Add dependencies.
42         * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
43         config/i386/sol2-64.mt: New files.
44         * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
45         amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
46         (supply_gregset): Correct order of arguments to
47         amd64_supply_native_gregset.
48         (fill_gregset): Correct order of arguments to
49         amd64_collect_native_gregset.
50         * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
51         * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
52         * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
53         for definition of NEW_PROC_API.
54         * configure: Regenerate.
55
56 2004-11-01  Joseph S. Myers  <joseph@codesourcery.com>
57
58         * MAINTAINERS (Write After Approval): Add myself.
59
60 2004-11-01  Andrew Cagney  <cagney@gnu.org>
61
62         * configure.tgt: Mark d10v-*-* as obsolete.
63         * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
64
65 2004-11-01  Paul N. Hilfinger  <Hilfinger@gnat.com>
66
67         * values.c (modify_field): Correct handling of bit-fields that
68         don't fit in 32 bits.  Use unsigned operations throughout and 
69         simplify the code a bit.  Document preconditions.
70
71 2004-10-31  Andrew Cagney  <cagney@gnu.org>
72
73         * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
74         * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
75         (in_plt_section): Delete.
76
77         * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
78         (mips_gdbarch_init): Do not set same.
79
80         * arch-utils.c (generic_in_solib_call_trampoline): Delete.
81         * arch-utils.h (generic_in_solib_call_trampoline): Delete.
82
83         * gdbarch.sh (in_solib_call_trampoline): Delete.
84         * gdbarch.h, gdbarch.c: Re-generate.
85
86         * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
87         IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
88         * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
89         * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
90         * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
91
92 2004-10-31  Mark Kettenis  <kettenis@gnu.org>
93
94         * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
95         (mipsnbsd_fetch_inferior_registers): Rename from
96         fetch_inferior_registers.  Make static.
97         (mipsnbsd_store_inferior_registers): Rename from
98         store_inferior_registers.  Make static.
99         (_initialize_mipsnbsd_nat): New function and prototype.
100         * Makefile.in (mipsnbsd-nat.o): Update dependencies.
101         * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
102         (NATDEPFILES): Remove infptrace.o and inftarg.o.  Add
103         inf-ptrace.o.
104
105 2004-10-31  Andrew Cagney  <cagney@gnu.org>
106
107         * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
108         (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
109         delete corresponding unused function.
110         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
111         in_solib_call_trampoline.
112         * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
113         * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
114         * config/mips/tm-nbsd.h: Ditto.
115         * config/arm/tm-linux.h: Ditto.
116         * config/mips/tm-linux.h: Ditto.
117
118         * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
119         (arm_netbsd_aout_in_solib_call_trampoline): Do not set
120         in_solib_call_trampoline, delete corresponding unused function.
121         * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline) 
122         (vaxnbsd_aout_init_abi): Ditto.
123         * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline) 
124         (sparc32nbsd_aout_init_abi): Ditto.
125         * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline) 
126         (ppc_linux_init_abi): Ditto.
127         * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline) 
128         (ns32knbsd_init_abi_aout): Ditto.
129         * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
130         * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
131         * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline) 
132         (m68kbsd_aout_init_abi): Ditto.
133         * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline) 
134         (i386_cygwin_init_abi): Ditto.
135         * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline) 
136         (i386bsd_init_abi): Ditto.
137
138         * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
139         in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
140         isn't used by this architecture.
141         * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
142         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
143         * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
144         * s390-tdep.c (s390_gdbarch_init): Ditto.
145         * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
146         * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
147         * i386-tdep.c (i386_svr4_init_abi): Ditto.
148         * i386-nto-tdep.c (i386nto_init_abi): Ditto.
149         * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
150         * amd64-tdep.c (amd64_init_abi): Ditto.
151
152         * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
153         in_solib_call_trampoline to its default value of
154         generic_in_solib_call_trampoline.
155         * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
156         * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
157         * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
158         * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
159         * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
160         * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
161
162         * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
163
164         * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
165
166         * config/mips/tm-mips.h: Delete file.
167         * remote-mips.c: Delete tm-mips.h from comment.
168         * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
169         * config/mips/tm-nbsd.h: Don't include tm-mips.h.
170         * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
171         * config/mips/tm-linux.h: Don't include tm-mips.h.
172         * config/mips/tm-vxmips.h: Don't include tm-mips.h.
173         * config/mips/irix5.mt (DEPRECATED_TM_FILE): 
174         * config/mips/tm-wince.h: Don't include.
175
176         * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
177         * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
178         * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
179         * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
180
181         * mdebugread.h (ecoff_relocate_efi): Delete declaration.
182         * mdebugread.c (ecoff_relocate_efi): Delete function.
183         * objfiles.c (objfile_relocate): Delete #ifdef
184         MDEBUG_EFI_SYMBOL_NAME code.
185
186 2004-10-31  Orjan Friberg <organ.friberg@axis.com>
187             Andrew Cagney  <cagney@gnu.org>
188
189         * gdbarch.sh (single_step_through_delay): Add.
190         * gdbarch.h, gdbarch.c: Re-generate.
191         * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
192         (mips_step_skips_delay): Delete.
193         * mips-tdep.c (mips_single_step_through_delay): Replace
194         mips_step_skips_delay.
195         (mips_gdbarch_init): Set single_step_through_delay.
196         (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
197         
198 2004-10-31  Mark Kettenis  <kettenis@gnu.org>
199
200         * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
201         from TRAMP_FRAME frame type.
202
203 2004-10-31  Andrew Cagney  <cagney@gnu.org>
204
205         * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
206
207         * mips-tdep.c (mips_ignore_helper): Delete.
208         * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
209         * infrun.c (handle_inferior_event): Delete #ifdef
210         DEPRECATED_IGNORE_HELPER_CALL code.
211
212         * config/mips/tm-mips.h (RA_REGNUM): Delete.
213
214 2004-10-31  Mark Kettenis  <kettenis@gnu.org>
215
216         * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
217         (fill_fpregset): Do not compile for 64-bit systems.
218         * i386-sol2-nat.c: Don't include "i386v4-nat.c".
219         * Makefile.in (i386-sol2-nat.o): Update dependencies.
220         * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
221
222 2004-10-30  Andrew Cagney  <cagney@gnu.org>
223
224         * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
225         (struct mdebug_extra_func_info): Define.
226         * config/alpha/tm-alpha.h: Delete same.
227         * config/mips/tm-mips.h: Delete same.
228         * mdebugread.c: Delete same.
229         * Makefile.in: Update dependencies.
230         * mips-mdebug-tdep.c: Include "mdebugread.h".
231
232         * objfiles.c: Include "mdebugread.h".
233         * mdebugread.c: Include "mdebugread.h".
234         (ecoff_relocate_cfi): Delete.
235         * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
236         * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
237         * mdebugread.h (ecoff_relocate_efi): New file.
238         * Makefile.in: Update dependencies.
239         
240         * mips-tdep.c (struct frame_extra_info): Delete.
241         (temp_proc_desc): Delete.
242
243         * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
244         MIPS_EFI_SYMBOL_NAME.
245         (mips_extra_func_info_t, mips_extra_func_info): Delete.
246         (struct mdebug_extra_func_info): Replace struct
247         alpha_extra_func_info and alpha_extra_func_info_t.
248         * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
249         MIPS_EFI_SYMBOL_NAME.
250         (struct mdebug_extra_func_info): Replace struct
251         alpha_extra_func_info and alpha_extra_func_info_t.
252         * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
253         * mdebugread.c, alpha-mdebug-tdep.c: 
254
255         Suggested by Mark Kettenis.
256         * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
257         fields frame_adjust and high_addr.
258         * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
259         (non_heuristic_proc_desc): Delete references.
260
261         * mips-tdep.h (MIPS_PRID_REGNUM): Add.
262         * config/mips/tm-mips.h (PRID_REGNUM): Delete.
263         * mips-tdep.c: Update.
264
265         * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
266         (MIPS_LAST_EMBED_REGNUM): Add.
267         * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
268         (LAST_EMBED_REGNUM): Delete.
269         * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
270
271         * config/mips/tm-mips.h (PS_REGNUM): Delete.
272         * mips-tdep.h (MIPS_PS_REGNUM): Add.
273         * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
274         * mips-linux-nat.c: Update.
275
276         * mips-tdep.h: Add comments on registers.
277         (MIPS_UNUSED_REGNUM): Define.
278         * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
279         (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
280         * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
281         * mips-linux-nat.c, remote-mips.c: Update.
282
283         * config/mips/tm-mips.h (t_insn): Delete.
284         * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
285         Replace t_insn with ULONGEST.
286
287 2004-10-30  Mark Kettenis  <kettenis@gnu.org>
288
289         * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
290         (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
291         (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
292         (fetch_core_registers, fetch_elfcore_registers): Remove functions.
293         (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
294         (mipsnbsd_core_osabi_sniffer): New function.
295         (mipsnbsd_init_abi): Set regset_from_core_section.
296         (_initialize_mipsnbsd_tdep): Remove calls to
297         deprecated_add_core_fns.
298         (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
299         (mipsnbsd_regset_from_core_section): New functions.
300         (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
301         * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
302
303         * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
304         Remove optimization for DEPRECATED_FP_REGNUM.
305
306 2004-10-30  Andrew Cagney  <cagney@gnu.org>
307
308         * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
309         * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
310         (alpha_setup_arbitrary_frame): Delete.
311         * mips-tdep.c (setup_arbitrary_frame): Delete.
312         * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
313         (setup_arbitrary_frame): Delete.
314         * stack.c (parse_frame_specification_1): When specified, call
315         create_new_frame with two parameters.  Delete #ifdef
316         SETUP_ARBITRARY_FRAME.
317
318         * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
319         (MIPS_INSTLEN): Delete.
320         * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
321         MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
322         * remote-mips.c, mips-tdep.c: Update.
323
324         * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
325         * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
326         * mips-tdep.c (mips_mdebug_frame_cache)
327         (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
328         (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
329         (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
330         (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
331         (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
332         (mips_gdbarch_init): Do not append mdebug sniffers.
333         (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET) 
334         (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK) 
335         (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG) 
336         (PROC_SYMBOL, _PROC_MAGIC_): Delete.
337         * Makefile.in: Update dependencies.
338
339         * mips-tdep.h (mips_abi_regsize): Declare.
340         * mips-tdep.c (mips_abi_regsize): Make non-static.
341
342         * mips-tdep.c (gdb_print_insn_mips): Simplify.
343         (make_mips16_addr): Delete.
344
345 2004-10-30  Mark Kettenis  <kettenis@gnu.org>
346
347         * i386-sol2-nat.c: New file.
348         * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
349         i386-sol2-tdep.c.
350         (i386-sol2-nat.o): Update dependencies.
351         * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
352         i386-sol2-nat.o.
353
354 2004-10-30  Andrew Cagney  <cagney@gnu.org>
355
356         Total breakage identified by Joel Brobecker.
357         * mips-tdep.c (after_prologue): Delete.
358         (mips_skip_prologue): Use skip_prologue_using_sal.
359         (heuristic_proc_desc): Delete, unused.
360
361 2004-10-30  Mark Kettenis  <kettenis@gnu.org>
362
363         * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
364         (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
365         Cleanup coding style.
366
367 2004-10-30  Andrew Cagney  <cagney@gnu.org>
368
369         * mips-tdep.h (mips_pc_is_mips16): Declare.
370         * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
371         non-static.  Update calls.
372
373         * cli/cli-decode.c (add_setshow_enum_cmd): New function.
374         * command.h (add_setshow_enum_cmd): Declare.
375         * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
376
377         * mips-tdep.c (_initialize_mips_tdep): Use
378         add_setshow_zinteger_cmd.
379         
380         * mips-tdep.c (mips_eabi_extract_return_value)
381         (mips_o64_extract_return_value, mips_o64_store_return_value)
382         (return_value_location, mips_eabi_reg_struct_has_addr)
383         (mips_eabi_use_struct_convention)
384         (mips_eabi_store_return_value): Delete.
385         (mips_eabi_store_return_value): New function.
386         (mips_eabi_return_value): New function.
387         (mips_gdbarch_init): For O64 and EABI, delete
388         extract_return_value, store_return_value, use_struct_convention
389         and reg_struct_has_addr, add return_value.
390
391         * mips-tdep.c (read_signed_register): Use
392         regcache_cooked_read_signed.
393
394 2004-10-30  Mark Kettenis  <kettenis@gnu.org>
395
396         * mipsread.c: Cleanup coding style.
397         (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
398         (mipscoff_symfile_finish): Remove prototypes.
399
400 2004-10-29  Mark Kettenis  <kettenis@gnu.org>
401
402         * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
403         (mips_mdebug_frame_cache, mips16_scan_prologue)
404         (mips32_scan_prologue, mips_stub_frame_cache)
405         (heuristic_proc_start, heuristic_proc_desc)
406         (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
407         (mips_n32n64_return_value, mips_o32_push_dummy_call)
408         (mips_o32_return_value, mips_o64_push_dummy_call)
409         (mips_step_skips_delay, mips_skip_trampoline_code)
410         (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
411         MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
412         T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
413         instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
414         and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
415         (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
416         T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
417         MIPS16_INSTLEN.  Use MIPS_A0_REGNUM instead of A0_REGNUM.
418         * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
419         (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
420         ZERO_REGNUM.
421         * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
422         (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
423         ZERO_REGNUM.
424         (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
425         A0_REGNUM.
426         * mipsnbsd-nat.c: Include "mips-tdep.h".
427         (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
428         * Makefile.in (mipsnbsd-nat.o): Update dependencies.
429
430 2004-10-29  Andrew Cagney  <cagney@gnu.org>
431
432         * stack.c (parse_frame_specification_1): New function based on
433         parse_frame_specification.  Add message and selected_frame_p
434         paramters.  Truely always return non-NULL.
435         (parse_frame_specification): Call parse_frame_specification_1.
436         (frame_info): Update.  Eliminate target_has_stack check.
437         (select_frame_command): Update.
438
439 2004-10-29  Andrew Cagney  <cagney@gnu.org>
440
441         * frame.h (get_selected_frame): Add message parameter.
442         * frame.c (get_selected_frame): Add and use message parameter.
443         * stack.c (current_frame_command, return_command, locals_info)
444         (catch_info, args_info, up_silently_base, down_silently_base): Use
445         get_selected_frame with an explicit message.
446         * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
447         * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
448         * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
449         * infrun.c, inflow.c, infcmd.c, frame.c: Update.
450         * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
451         * breakpoint.c: Update.
452
453 2004-10-29  Andrew Cagney  <cagney@gnu.org>
454
455         * trad-frame.c (trad_frame_get_prev_register): Use
456         frame_unwind_register instead of frame_register_unwind, do not
457         recurse the register's location.
458         * xstormy16-tdep.c (xstormy16_frame_prev_register): 
459         * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
460         * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
461         * sh-tdep.c (sh_frame_prev_register): Ditto.
462         * m68k-tdep.c (m68k_frame_prev_register): Ditto.
463         * i386-tdep.c (i386_frame_prev_register): Ditto.
464         * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
465         * amd64-tdep.c (amd64_frame_prev_register): Ditto.
466
467 2004-10-28  Mark Kettenis  <kettenis@jive.nl>
468
469         * proc-events.c: Fix several coding-style issues.  Consistently
470         use #ifdef instead of #if defined().
471         (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
472         ARRAY_SIZE.
473         (_initialize_proc_events): New prototype.
474
475         * proc-why.c: Fix several coding-style issues.
476         (proc_prettyfprint_why): Use ARRAY_SIZE.
477
478 2004-10-27  Jim Blandy  <jimb@redhat.com>
479
480         * remote.c (fetch_register_using_p): Construct 'p' packet in a
481         manner independent of the host byte order.
482
483 2004-10-27  Mark Kettenis  <kettenis@gnu.org>
484
485         * mips-tdep.c (id_delayed): Remove prototype.
486
487 2004-10-26  Mark Kettenis  <kettenis@gnu.org>
488
489         * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
490         MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
491         to enum with register numbers.
492         (enum mips_insn_size): New enum.
493
494 2004-10-26  Andrew Cagney  <cagney@gnu.org>
495
496         * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
497         * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
498         (mips_gdbarch_init): Update.
499         (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
500
501         * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
502         * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
503         IN_SOLIB_RETURN_TRAMPOLINE.
504         * mips-tdep.c (mips_dump_tdep): Do not print
505         IN_SOLIB_RETURN_TRAMPOLINE.
506         (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
507         (mips_gdbarch_init): Update.
508
509         * mips-tdep.h (mips_software_single_step): Move to here ...
510         * config/mips/tm-mips.h: ... from here.
511         * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P) 
512         (SOFTWARE_SINGLE_STEP): Delete.
513         * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
514
515 2004-10-25  Andrew Cagney  <cagney@gnu.org>
516
517         * NEWS: Add Changes since GDB 6.3 section.
518
519 2004-10-23  Andreas Schwab  <schwab@suse.de>
520
521         * ada-lang.c (grow_vect): Return the new array instead of
522         expecting pointer to pointer to avoid violation of aliasing rules.
523         * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
524
525 2004-10-23  Ulrich Weigand  <uweigand@de.ibm.com>
526
527         * s390-tdep.c (enum pv_boolean): Remove.
528         (pv_is_array_ref): Remove.
529         (s390_on_stack): Remove.
530         (S390_NUM_SPILL_SLOTS): Remove.
531         (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
532         add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
533         (s390_store): Track all stores of orginal incoming registers to the
534         stack constant offsets relative to the CFA, instead of only tracking
535         stores into specific spill slots.
536         (s390_load): Likewise.
537         (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
538         (s390_prologue_frame_unwind_cache): Likewise.  Only track registers
539         defined as call-saved by the ABI.
540         (s390_push_dummy_call): Use bottom of dummy call argument save area
541         as return value, not the top.  Do not store to the called function's
542         register save area.
543         (s390_unwind_dummy_id): Adapt accordingly.
544
545 2004-10-23  Andrew Cagney  <cagney@gnu.org>
546
547         * objfiles.h (struct objfile): Rename obj_private to
548         deprecated_obj_private, sym_private to deprecated_sym_private, and
549         sym_stab_info to deprecated_sym_stab_info.
550         * gdb-stabs.h: Update.
551         * elfread.c: Update.
552         * dbxread.c: Update.
553         * coffread.c: Update.
554         * xcoffread.c: Update.
555         * symfile.c: Update.
556         * somread.c: Update.
557         * nlmread.c: Update.
558         * mdebugread.c: Update.
559         * hpread.c: Update.
560         * coffread.c: Update.
561
562 2004-10-23  Mark Kettenis  <kettenis@gnu.org>
563
564         * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
565         * configure.host: Add mips64*-*-openbsd*.
566         * configure.tgt: Add mips64*-*-openbsd*.
567         * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
568         mips64obsd-tdep.c.
569         (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
570         * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
571
572 2004-10-21  Joel Brobecker  <brobecker@gnat.com>
573
574         * symtab.c (symbol_search_name): Minor reformatting.
575
576 2004-10-20  Joel Brobecker  <brobecker@gnat.com>
577
578         * symtab.h: Fix typo in comment.
579
580 2004-10-19  Mark Kettenis  <kettenis@gnu.org>
581
582         * dwarf2read.c (struct comp_unit_head): Fix coding style.
583         (dwarf_decode_line_header): Likewise.
584
585 2004-10-19  Michael Chastain  <mec.gnu@mindspring.com>
586
587         * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
588
589 2004-10-19  Andrew Cagney  <cagney@gnu.org>
590
591         GDB 6.3 branch created.
592         * version.in: Bump to version 6.3.50_2004-10-19-cvs.
593
594 2004-10-15  Joel Brobecker  <brobecker@gnat.com>
595
596         * dwarf2read.c (set_cu_language): Set language to Ada for
597         DW_LANG_Ada83 and DW_LANG_Ada95.
598
599 2004-10-15  Michael Chastain  <mec.gnu@mindspring.com>
600
601         From Andreas Schwab <schwab@suse.de>:
602         * Makefile.in (.y.c, .l.c.): Fix the substitutions for
603         for xmalloc and xrealloc.
604
605 2004-10-15  Andrew Cagney  <cagney@gnu.org>
606
607         * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
608         * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
609         * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
610         Update dependencies.
611
612 2004-10-15  Paul Hilfinger  <Hilfinger@gnat.com>
613
614         * ada-lang.c (ada_lookup_symbol): Correct comment.
615         (ada_evaluate_subexp): Change error message for
616         OP_FUNCALL case so as not to indicate an internal error.
617         
618 2004-10-15  Joel Brobecker  <brobecker@gnat.com>
619
620         Committed by Paul Hilfinger.
621         * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
622         type sizes in XVE/XVU types, and emit a warning when that happens,
623         instead of rounding up the size of the resulting type.
624         Some minor reformatting.
625         (ada_is_aligner_type): Do not consider a type as an aligner type 
626         if there is a corresponding XVS type as well.
627         (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we 
628         have several levels of pointer indirection to the array.
629         
630 2004-10-15  Jerome Guitton  <guitton@gnat.com>
631
632         Committed by Paul Hilfinger.
633         * ada-lang.c (check_size): New function.
634         (coerce_unspec_val_to_type): call check_size to make sure
635         that the object size is reasonable.
636         (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
637         Implements the case when we get a reference when we evaluate
638         the expression of one of the bounds of the slice.
639         (ada_value_struct_elt): when a packed array field is
640         a reference, use ada_coerce_ref to dereference it; use 
641         ada_value_ind only if it is a pointer.
642
643 2004-10-15  Joel Brobecker  <brobecker@gnat.com>
644
645         * mips-tdep.c (mips32_scan_prologue): Move the implementation up
646         a bit to avoid the necessity of an advance declaration. Remove
647         declaration.
648         (set_reg_offset): Move implemenation up.
649         (mips16_get_imm): Likewise.
650         (mips16_scan_prologue): Likewise.
651         (reset_saved_regs): Likewise.
652         (mips32_scan_prologue): Likewise.
653
654 2004-10-14  Joel Brobecker  <brobecker@gnat.com>
655
656         * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
657         Remove sp as a parameter, compute it internally instead. Move
658         prologue scanning limit from heuristic_proc_desc to here.
659         (mips16_scan_prologue): Likewise.
660         (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
661         by call to mips16_scan_prologue.
662         (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
663         by call to mips32_scan_prologue.
664         (heuristic_proc_desc): Remove code that's no longer necessary.
665         Update calls to mips16_scan_prologue and mips32_scan_prologue.
666         (mips_skip_prologue): Update calls to mips16_scan_prologue
667         and mips32_scan_prologue.
668
669 2004-10-14  Joel Brobecker  <brobecker@gnat.com>
670
671         * mips-tdep.c (mips16_scan_prologue): Merge code from
672         mips16_skip_prologue.  Now return the address of the first
673         instruction past the function prologue.
674         (mips16_skip_prologue): Remove, no longer necessary.
675         (mips_skip_prologue): Replace call to mips16_skip_prologue
676         by call to mips16_scan_prologue.
677
678 2004-10-14  Joel Brobecker  <brobecker@gnat.com>
679
680         * mips-tdep.c (mips32_scan_prologue): Merge code from
681         mips32_skip_prologue.  Now return the address of the first
682         instruction past the function prologue.
683         (mips32_skip_prologue): Remove.  No longer necessary.
684         (mips16_skip_prologue): Add parameter end_pc instead of
685         computing it.
686         (mips_skip_prologue): Compute the upper limit for the
687         prologue scanning. Update call to mips16_skip_prologue.
688         Replace call to mips32_skip_prologue by call to
689         mips32_scan_prologue.
690
691 2004-10-14  Mark Kettenis  <kettenis@gnu.org>
692
693         * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
694         NetBSD system call stubs that store %rp in the ERP slot of the
695         stack frame.
696
697         * source.c: Always define O_BINARY to 0 if not defined already.
698         (openp): Unconditionally use O_BINARY.
699
700         * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
701         * event-top.c (gdb_readline2): Likewise.
702
703 2004-10-14  Orjan Friberg  <orjanf@axis.com>
704
705         * cris-tdep.c (_initialize_cris_tdep): Re-add call to
706         deprecated_add_core_fns which was removed by mistake.
707
708 2004-10-13  Kevin Buettner  <kevinb@redhat.com>
709
710         * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
711         references to deprecated_registers[] with equivalent code.
712
713 2004-10-13  Kevin Buettner  <kevinb@redhat.com>
714
715         * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
716         ``deprecated_registers'' with equivalent code.  Use gdb_assert()
717         instead of explicit test and print statement.
718
719 2004-10-12  Mark Kettenis  <kettenis@gnu.org>
720
721         * sparc-nat.c: Include "inf-ptrace.h".
722         (sparc_target): New function.
723         * sparc-nat.h: Update copyright year.
724         (sparc_target): New prototype.
725         * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
726         (_initialize_sparcnbsd_nat): Construct and add target vector.
727         * sparc64nbsd-nat.c: Include "target.h".
728         (_initialize_sparc64nbsd_nat): Construct and add target vector.
729         * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
730         Update dependencies.
731         * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
732         inftarg.o, add inf-ptrace.o.
733         * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
734         inftarg.o, add inf-ptrace.o and bsd-kvm.o.
735         (NAT_FILE): Set to nm-bsd.h.
736         (LOADLIBES): New variable.
737         * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
738         infarg.o, add inf-ptrace.o.
739         * config/sparc/nm-nbsdaout.h: Remove file.
740         * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
741         * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
742         * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
743
744         * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
745         "fopen-same.h".  Update comment.
746
747 2004-10-11  Mark Kettenis  <kettenis@gnu.org>
748
749         * i386gnu-nat.c: Include "gdb_string.h".
750         (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
751         registers when the floating-point state isn't initialized.
752         * Makefile.in (i386gnu-nat.o): Update dependencies.
753
754 2004-10-11  David Anderson  <davea@sgi.com>
755
756         * regcache.c (regcache_raw_read): Comment was missing "to".
757         Extraneous ' removed.
758         * gdb_thread_db.h (struct td_thrinfo): ti_lid field
759         comment now describes use.
760
761 2004-10-11  Orjan Friberg  <orjanf@axis.com>
762
763         * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
764         (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
765         (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
766         (cris_sigtramp_frame_sniffer): New functions.
767         (cris_gdbarch_init): Hook in signal trampoline unwinder.
768         (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
769         (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
770         (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
771         (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
772         command.
773         (cris_version_update): Remove, replace with ...
774         (set_cris_version): New function.
775         (struct gdbarch_tdep, cris_mode, cris_mode_update)
776         (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
777         (_initialize_cris_tdep): Remove CRIS mode command.
778         (cris_fpless_backtrace, _initialize_cris_tdep): Remove 
779         cris-fpless-backtrace command.
780         (cris_scan_prologue): Fix prologue scanning limit.
781         (cris_register_type): Update to reflect actual registers.
782         (cris_register_bytes_ok) Remove.
783         (cris_gdbarch_init): Remove support for CRIS v8 and v9.
784         Remove set_gdbarch_deprecated_register_size,
785         set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
786         
787 2004-10-10  Andrew Cagney  <cagney@gnu.org>
788
789         * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
790         comment.
791
792 2004-10-10  Joel Brobecker  <brobecker@gnat.com>
793
794         * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
795
796 2004-10-10  Joel Brobecker  <brobecker@gnat.com>
797
798         * mips-tdep.c (mips16_scan_prologue): Renames
799         mips16_heuristic_proc_desc. Update comment.
800         (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
801         (heuristic_proc_desc): Update calls to the 2 functions above.
802
803 2004-10-10  Joel Brobecker  <brobecker@gnat.com>
804
805         * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
806         Update comments. Also immediately return empty cache when the start
807         address of our function could not be found.
808         (mips_insn32_frame_cache): Likewise.
809
810 2004-10-10  Joel Brobecker  <brobecker@gnat.com>
811
812         * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
813         (mips_insn16_frame_cache): Pass frame cache in call to
814         heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
815         Remove code that became redundant as a consequence.
816         (mips32_heuristic_proc_desc): No longer compute a fake
817         procedure descriptor. Compute the full frame cache instead.
818         Some minor comment reformatting.
819
820 2004-10-10  Jim Blandy  <jimb@redhat.com>
821
822         * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
823         reader, tracing bytecode stuff): Remove self.
824
825 2004-10-10  Mark Kettenis  <kettenis@gnu.org>
826
827         * sparc64-linux-tdep.c: Update copyright year.  Don't include
828         "solib-svr4.h".
829         (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
830         (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
831         * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
832
833         * sparc-linux-tdep.c: Update copyright year.
834         (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
835         to struct frame_info *.  Use safe_frame_unwind_memory instead of
836         deprecated_read_memory_nobpt.
837         (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
838         Change argumen from CORE_ADDR to struct frame_info *.  Adjust for
839         changed signature of sparc_linux_sigtramp_start.
840         (sparc32_linux_pc_in_sigtramp): Remove function.
841         (sparc32_linux_sigtramp_p): New function.
842         (sparc32_linux_sigtramp_frame_sniffer): Use
843         sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
844
845         * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
846         Remove function.
847         (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
848
849         * ada-lang.c (lim_warning): Re-implement as a varargs function.
850         (decode_packed_array_type, value_subscript_packed)
851         (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
852         argument in call to lim_warning.
853
854         * configure.in: Really disable the TUI if an enhanced curses
855         library isn't found.
856         * configure: Regenerate.
857
858 2004-10-09  Mark Kettenis  <kettenis@gnu.org>
859
860         * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
861         * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
862         * config/i386/nm-nbsdaout.h: Remove file.
863         * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
864         (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
865         (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
866         (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
867         (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
868         (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
869         (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
870         (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
871         (ldd, ld_un, ld_2): Remove defines.
872         * config/i386/nm-obsd.h: Likewise.
873
874 2004-10-09  Paul Hilfinger  <hilfingr@nile.gnat.com>
875
876         * ada-lex.l: Remove useless rule whose right-context clause
877         causes unreferenced static function warning for yyrealloc.
878         (ada_flex_use): Remove the artificial reference to yyrealloc.
879
880 2004-10-08  Andrew Cagney  <cagney@gnu.org>
881
882         * target.h (struct target_ops): Rename to_xfer_memory to
883         deprecated_xfer_memory.
884         * target.c: Update.
885         (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
886         * wince.c: Update.
887         * win32-nat.c: Update.
888         * v850ice.c: Update.
889         * uw-thread.c: Update.
890         * thread-db.c: Update.
891         * sol-thread.c: Update.
892         * remote.c: Update.
893         * remote-vx.c: Update.
894         * remote-st.c: Update.
895         * remote-sim.c: Update.
896         * remote-sds.c: Update.
897         * remote-rdp.c: Update.
898         * remote-rdi.c: Update.
899         * remote-mips.c: Update.
900         * remote-m32r-sdi.c: Update.
901         * remote-e7000.c: Update.
902         * procfs.c: Update.
903         * ppc-bdm.c: Update.
904         * nto-procfs.c: Update.
905         * monitor.c: Update.
906         * linux-nat.c: Update.
907         * inftarg.c: Update.
908         * hpux-thread.c: Update.
909         * go32-nat.c: Update.
910         * gnu-nat.c: Update.
911         * exec.c: Update.
912         * corelow.c: Update.
913         * bsd-kvm.c: Update.
914         * aix-thread.c: Update.
915
916 2004-10-08  Andrew Cagney  <cagney@gnu.org>
917
918         * target.c (debug_target): Move to near start of file.
919         (target_stopped_data_address_p): Re-org logic, add casts.
920
921 2004-10-02  Mark Kettenis  <kettenis@gnu.org>
922
923         * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
924         (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
925         (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
926         (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
927         New defines.
928
929 2004-10-08  Jeff Johnston  <jjohnstn@redhat.com>
930
931         * target.h (to_stopped_data_address): Change prototype to
932         take a CORE_ADDR pointer and return an int.
933         * target.c (update_current_target): Change to_stopped_data_address
934         to match new prototype.
935         (debug_to_stopped_data_address): Change appropriately.
936         * breakpoint.c (bpstat_stop_status): Change call to
937         target_stopped_data_address to use new prototype.
938         * frv-tdep.c (frv_have_stopped_data_address): New function.
939         (frv_stopped_data_address): Change to new prototype and
940         functionality.
941         * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
942         prototype and functionality.
943         (ia64_stopped_by_watchpoint): New function.
944         * i386-nat.c (i386_stopped_data_address): Change to new
945         prototype and functionality.
946         (i386_stopped_by_watchpoint): New function.
947         * remote.c (remote_stopped_data_address): Change to new prototype
948         and functionality.
949         * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
950         * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
951         (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
952         * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
953         new i386_stopped_by_watchpoint function.
954         (i386_stopped_by_watchpoint): New prototype.
955         (i386_stoppped_data_address): Change to new prototype.
956         * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
957         new ia64_stopped_by_watchpoint function.
958         (ia64_stopped_by_watchpoint): New prototype.
959         (ia64_stopped_data_address): Ditto.
960
961 2004-10-08  Paul Hilfinger  <Hilfinger@gnat.com>
962
963         * ada-typeprint.c (ada_print_type): Use int_string for printing
964         modulus of modular type.
965         * ada-lang.h (ada_modulus): Change return type to unsigned.
966         * ada-lang.c (ada_language_arch_info): Correct type of 
967         string_char_type.
968         (ada_modulus): Return unsigned result.
969         (ada_lookup_symbol): Remove user disambiguation and modify comment 
970         accordingly.
971         
972 2004-10-08 Eric Botcazou  <ebotcazou@act-europe.fr>     
973
974         Committed by Paul Hilfinger.
975         * ada-lang.c (decode_packed_array): On big-endian targets, 
976         left-justify the value if it comes with a modular type.
977
978 2004-10-08  Joel Brobecker  <brobecker@gnat.com>        
979
980         Committed by Paul Hilfinger.
981         * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
982         (is_name_suffix): Add support for "___JM" suffixes.
983         (ada_check_typedef): Renames ada_completed_type. 
984         Update all users of CHECK_TYPEDEF, check_typedef, and 
985         ada_complete_type to call ada_check_typedef.
986         * ada-typeprint.c: Likewise.
987         * ada-valprint.c: Likewise.
988
989 2004-10-08  Corinna Vinschen  <vinschen@redhat.com>
990
991         * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
992
993 2004-10-08  Nick Roberts  <nickrob@snap.net.nz>
994
995         * MAINTAINERS: Update e-mail address.
996
997 2004-10-07  Daniel Jacobowitz  <dan@debian.org>
998
999         From Maciej W. Rozycki  <macro@mips.com>:
1000         * mips-tdep.c (mips32_next_pc): Check the register's contents,
1001         not its number for BLEZ/BLEZL and BGTZ/BGTZL.
1002
1003 2004-10-07  Kei Sakamoto  <sakamoto.kei@renesas.com>
1004
1005         * m32r-tdep.c (decode_prologue): Support functions written
1006         in assembler language. Recognize trap instructions as the
1007         end of prologue.
1008         (m32r_frame_unwind_cache): Ditto.
1009         (m32r_skip_prologue): Extend search limit. Quit analyzing
1010         prologue if pc's location is not readable.
1011
1012 2004-10-06  Paul N. Hilfinger  <Hilfinger@gnat.com>
1013
1014         * Makefile.in (.l.c): Do conversions of names of alloc and free 
1015         functions that are done for .y.c files, plus special one
1016         for yy_flex_realloc.  Also, correct missing-file tests here.
1017         * ada-lex.l (malloc, free): Remove macros.
1018         (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
1019         xrealloc.
1020         (ada_flex_use): Dummy definition to remove warnings about unused
1021         functions.
1022         * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
1023         to suppress warning.
1024         
1025 2004-10-06  Corinna Vinschen  <vinschen@redhat.com>
1026
1027         * sh-tdep.c (sh_return_value_nofpu): New function, implementing
1028         RETURN_VALUE.
1029         (sh_return_value_fpu): Ditto for CPUs with FPU.
1030         (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
1031         RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
1032         Install sh_return_value_nofpu resp. sh_return_value_fpu as
1033         RETURN_VALUE functions.
1034
1035 2004-10-06  Corinna Vinschen  <vinschen@redhat.com>
1036
1037         * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling. 
1038         (sh_pseudo_register_write): Ditto.
1039
1040 2004-10-06  Corinna Vinschen  <vinschen@redhat.com>
1041
1042         * sh-tdep.c (IS_MACL_STS): New define.
1043         (IS_MOVI20): Ditto.
1044         (IS_MACL_LDS): Ditto.
1045         (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
1046         instructions in prologue.
1047         (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
1048         instructions in epilogue.
1049
1050 2004-10-06  Corinna Vinschen  <vinschen@redhat.com>
1051
1052         * sh-tdep.c (SH_NUM_REGS): Define as 67.
1053         (sh_sh_register_name): Add eight empty register names.
1054         (sh_sh3_register_name): Ditto.
1055         (sh_sh3e_register_name): Ditto.
1056         (sh_sh2e_register_name): Ditto.
1057         (sh_sh2a_register_name): New function, defining SH2A register set.
1058         (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
1059         in nofpu case.
1060         (sh_sh_dsp_register_name): Add eight empty register names.
1061         (sh_sh3_dsp_register_name): Ditto.
1062         (sh_sh4_register_name): Ditto.
1063         (sh_sh4_nofpu_register_name): Ditto.
1064         (sh_sh4al_dsp_register_name): Ditto.
1065         (sh2a_show_regs): New function.
1066         (sh2a_nofpu_show_regs): New function.
1067         (sh_sh2a_register_type): New function.
1068         (do_bank_register_info): New function.
1069         (sh_print_pseudo_register): Call do_bank_register_info.
1070         Call sh_print_pseudo_register for valid "bank" register.
1071         (sh_sh2a_register_sim_regno): New function.
1072         (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
1073         Increment pseudo register count by one for all sh variants with
1074         pseudo registers to accomodate pseudo bank register.
1075         * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
1076         IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
1077         IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM. 
1078         Increment pseudo register numbers.
1079
1080 2004-10-06  Corinna Vinschen  <vinschen@redhat.com>
1081
1082         * dwarf2read.c (read_subroutine_type): Call make_function_type
1083         instead of lookup_function_type.
1084
1085 2004-10-05  Jim Blandy  <jimb@redhat.com>
1086
1087         * linux-nat.c (_initialize_linux_nat): Rename child_ops.
1088         (Previous change missed some uses.)
1089
1090 2004-10-05  Andrew Cagney  <cagney@gnu.org>
1091
1092         * target.h (deprecated_child_ops): Rename child_ops.
1093         * wince.c: Update copyright.  Rename child_ops.
1094         * win32-nat.c: Rename child_ops.
1095         * target.c: Rename child_ops.
1096         * rs6000-nat.c: Rename child_ops.
1097         * linux-nat.c: Rename child_ops.
1098         * infttrace.c: Rename child_ops.
1099         * inftarg.c: Rename child_ops.
1100         * infptrace.c: Rename child_ops.
1101         * hppah-nat.c: Update copyright.  Rename child_ops.
1102         * hpux-thread.c: Update copyright.  Rename child_ops.
1103
1104 2004-10-05  Daniel Jacobowitz  <dan@debian.org>
1105
1106         * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
1107
1108 2004-10-05  Andrew Cagney  <cagney@gnu.org>
1109
1110         * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
1111
1112 2004-10-05  Daniel Jacobowitz  <dan@debian.org>
1113
1114         * dwarf2read.c (REF_HASH_SIZE): Move earlier.
1115         (die_ref_table): Remove.
1116         (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
1117         (struct dwarf2_per_cu_data): Add PSYMTAB.  Add a comment describing
1118         the usage of this type.
1119         (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
1120         (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
1121         (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
1122         (dwarf2_create_include_psymtab): Update comment.
1123         (find_partial_die): Remove third argument.  Remove unreachable call
1124         to error ().
1125         (dwarf2_find_containing_comp_unit): Update comments.  Change one
1126         assertion to an error.  Remove an unreachable error.
1127         (dwarf2_find_comp_unit): Update comments.
1128         (type_at_offset): Remove dead code.
1129         (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
1130         (store_in_ref_table): Add CU argument.
1131         (follow_die_ref): Take DIE, attribute, and CU arguments.  Handle
1132         inter-compilation-unit references.
1133         (load_full_comp_unit, process_full_comp_unit): New functions, based
1134         on psymtab_to_symtab_1.
1135         (psymtab_to_symtab_1): Use them.
1136         (dwarf2_add_dependence): New function.
1137         (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu.  Always create
1138         a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
1139         (partial_die_parent_scope, guess_structure_name): Update for changes
1140         to find_partial_die.
1141         (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
1142         (queue_comp_unit, process_queue, dwarf2_release_queue): New.
1143         (read_comp_unit): Don't call dwarf2_empty_hash_tables.
1144         (read_die_and_children): Update call to store_in_ref_table.
1145         (do_free_die_list_cleanup): Remove.
1146         (fixup_partial_die): Update for changes to find_partial_die.
1147         (read_full_die): Handle queueing absolute references.
1148         (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
1149         (dwarf2_attr, die_specification, die_type)
1150         (die_containing_type, dwarf2_extension): Update calls to
1151         follow_die_ref.
1152         (dump_die): Update DW_FORM_ref* handling.
1153         (dwarf2_get_ref_die_offset): Likewise.
1154         (free_one_comp_unit): Release the dies list.
1155         (dwarf2_mark_helper): New function.
1156         (dwarf2_mark): Use it.
1157
1158 2004-10-05  Mark Kettenis  <kettenis@jive.nl>
1159
1160         * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
1161         when writing to memory.
1162
1163 2004-10-05  Kei Sakamoto  <sakamoto.kei@renesas.com>
1164
1165         * m32r-tdep.c (m32r_use_struct_convention): Delete function.
1166         (m32r_extract_struct_value_address): Delete function.
1167         (m32r_return_value): New function.
1168         (m32r_gdbarch_init): Instead of store_return_value,
1169         extract_return_value, deprecated_extract_struct_value_address
1170         and deprecated_use_struct_convention, set return_value.
1171
1172 2004-10-03  Daniel Jacobowitz  <dan@debian.org>
1173
1174         * dwarf2read.c (read_subrange_type): Add comment for variable
1175         sized arrays.
1176
1177 2004-10-03  Paul Hilfinger  <hilfingr@nile.gnat.com>
1178
1179         * Makefile.in (.l.c): Modify rule for compatibility with recent
1180         versions of flex, and remove most command-line options.
1181         * ada-lex.l: Add %options line in place of -I -i and -s command-line
1182         options.
1183
1184 2004-10-02  Paul N. Hilfinger  <Hilfinger@gnat.com>
1185
1186         Turn on initial Ada support (mainly expression evaluation).
1187         
1188         * Makefile.in (SFILES): Remove ada-tasks.c.
1189         (HFILES_NO_SRCDIR): Add ada-lang.h.
1190         (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
1191         (YYOBJ): Add ada-exp.o.
1192         (rule .l.c): Generalize to not mention ada.
1193         * symtab.c: Include ada-lang.h.
1194         (symbol_natural_name, symbol_demangled_name)
1195         (symbol_search_name): Add Ada case.
1196
1197 2004-10-01  Andrew Cagney  <cagney@gnu.org>
1198
1199         * Makefile.in (COMMON_OBS): Add inf-child.o.
1200         * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
1201         * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1202         * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1203         * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
1204         * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
1205         * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
1206         * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
1207         * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
1208         * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1209         * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1210         * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
1211         * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
1212         * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
1213
1214         * target.c (xfer_using_stratum): Change return type to LONGEST.
1215         On each iteration offset, readbuf and writebuf.
1216         * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
1217         partial_length, and read/modify/write predicate, update comments.
1218         Pass buffer.word to ptrace write.
1219
1220 2004-10-01  Paul N. Hilfinger  <Hilfinger@gnat.com>
1221
1222         * symfile.c (init_filename_language_table): Add extensions for
1223         Ada.
1224         * defs.h (enum language): Add language_ada.
1225         * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
1226         * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
1227         (add_symbols_from_enclosing_procs): Make a no-op for now.
1228         (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
1229         (extended_canonical_line_spec, find_sal_from_funcs_and_line)
1230         (find_line_in_linetable, find_next_line_in_linetable)
1231         (read_all_symtabs, is_plausible_func_for_line)
1232         (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
1233         (is_runtime_sym_defined, check_size): Remove declaration.
1234         (function_name_from_pc, ada_translate_error_message)
1235         (ada_lookup_minimal_symbol): Remove definition.
1236         (ada_add_block_symbols): Remove useless label.
1237         * ada-lang.h (ada_maybe_exception_partial_symbol): Remove 
1238         useless declaration.
1239         (ada_is_exception_sym): Likewise.
1240
1241 2004-09-30    Kei Sakamoto  <sakamoto.kei@renesas.com>
1242
1243         Add m32r-linux support.
1244         * configure.tgt: Add m32r*-*-linux*.
1245         * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
1246         and m32r-linux-tdep.c.
1247         (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
1248         * m32r-tdep.c: Move some definitions to m32r-tdep.h.
1249         * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
1250         m32r-linux-tdep.c.
1251         * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
1252         config/m32r/linux.mh, config/m32r/linux.mt,
1253         config/m32r/nm-linux.h: New files.
1254
1255 2004-09-30  Joel Brobecker  <brobecker@gnat.com>
1256
1257         * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
1258         (mips32_fetch_instruction): Remove, unused.
1259
1260 2004-09-30  Joel Brobecker  <brobecker@gnat.com>
1261
1262         * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
1263         conditions that will always be true.
1264
1265 2004-09-30  Mark Kettenis  <kettenis@gnu.org>
1266
1267         * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
1268         (vaxbsd_fetch_inferior_registers): Rename from
1269         fetch_inferior_registers.  Make static.
1270         (vaxbsd_store_inferior_registers): Rename from
1271         store_inferior_registers.  Make static.
1272         (_initialize_vaxbsd_nat): Construct and add target vector.
1273         * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1274         inftarg.o.  Add inf-child.o and inf-ptrace.o.
1275         * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1276         inftarg.o.  Add inf-child.o and inf-ptrace.o.
1277         (NAT_FILE): Remove.
1278         * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
1279         inftarg.o.  Add inf-child.o and inf-ptrace.o.
1280         (NAT_FILE): Remove.
1281         * Makefile.in (vaxbsd-nat.o): Update dependencies.
1282
1283         * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
1284         (m88kbsd_fetch_inferior_registers): Rename from
1285         fetch_inferior_registers.  Make static.
1286         (m88kbsd_store_inferior_registers): Rename from
1287         store_inferior_registers.  Make static.
1288         (_initialize_m88kbsd_nat): New prototype and function.
1289         * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
1290         inftarg.o.  Add inf-child.o and inf-ptrace.o.
1291         (NAT_FILE): Remove.
1292         * Makefile.in (m88kbsd-nat.o): Update dependencies.
1293
1294 2004-09-30  Andrew Cagney  <cagney@gnu.org>
1295
1296         * target.c (target_xfer_partial): New function.
1297         (target_read_memory_partial, target_write_memory_partial) 
1298         (default_xfer_partial, target_read_partial, target_write_partial) 
1299         (xfer_using_stratum): Use.
1300         (debug_to_xfer_partial): Delete function.
1301         (setup_target_debug): Do not override to_xfer_partial.
1302
1303 2004-09-30  Mark Kettenis  <kettenis@chello.nl>
1304
1305         * fork-child.c: Update copyright year.  Fix coding style.
1306
1307 2004-09-29  Mark Kettenis  <kettenis@gnu.org>
1308
1309         * defs.h (msavestring, mstrsave): Remove prototypes.
1310         * utils.c (msavestring, mstrsave): Remove functions.
1311         * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
1312         * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
1313         of mstrsave.
1314         * source.c (find_and_open_source): Use xstrdup instead of
1315         mstrsave.
1316
1317 2004-09-30  Andrew Cagney  <cagney@gnu.org>
1318
1319         * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
1320         (inf_ptrace_xfer_memory): Delete.
1321         * target.c (target_xfer_partial_p, xfer_using_stratum): New.
1322         (target_read_memory, target_write_memory): Use xfer_using_stratum
1323         when target_xfer_partial_p.
1324         (debug_target): Move to start of file.
1325         (target_read_memory_partial, target_write_memory_partial): Use
1326         to_xfer_partial when target_xfer_partial_p.
1327
1328         * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
1329         inf_ptrace_xfer_memory with equivalent code.
1330         * inftarg.c (child_xfer_partial): When performing a write, pass
1331         writebuf to child_xfer_memory.
1332
1333         * target.c (target_read_string): Use target_read_memory instead of
1334         target_xfer_memory.
1335
1336 2004-09-29  Andrew Cagney  <cagney@gnu.org>
1337
1338         * infptrace.c (kill_inferior): Fix typo, in previous inline.  Pass
1339         the address of status.
1340
1341         * infptrace.c (ptrace_wait): Mention problem with HPUX.
1342         (kill_inferior): Inline ptrace_wait call.
1343         * linux-nat.c (kill_inferior): Inline ptrace_wait call.
1344         * inftarg.c (child_wait): Inline ptrace_wait call.
1345
1346         * target.h (struct target_ops): Delete field to_post_wait.
1347         (target_post_wait): Delete macro.
1348         (child_post_wait): Delete declaration.
1349         * target.c (update_current_target, update_current_target)
1350         (debug_to_post_wait, setup_target_debug): Delete functions and
1351         references.
1352         * infttrace.c (ptrace_wait): Delete call to target_post_wait.
1353         * inftarg.c (child_post_wait): Delete.
1354         (init_child_ops): Do not set to_post_wait.
1355         * infptrace.c (ptrace_wait): Delete call to target_post_wait.
1356         * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
1357         * inf-child.c (inf_child_post_wait): Delete.
1358         (inf_child_target): Do not set to_post_wait.
1359         * inf-ptrace.c (inf_ptrace_post_wait): Delete.
1360         (inf_ptrace_target): Do not set to_post_wait.
1361
1362         * wince.c (child_ops): Delete.
1363         * win32-nat.c (child_ops): Delete.
1364
1365         * inftarg.c (inftarg_set_find_memory_regions) 
1366         (inftarg_set_make_corefile_notes): Delete functions.
1367         (_initialize_linux_nat): Inline calls.
1368
1369         * target.h (child_ops): Declare.
1370         * inftarg.c (child_ops): Move from here ...
1371         * target.c (child_ops): ... to here.
1372         * wince.c (child_ops): Delete extern declaration.
1373         * win32-nat.c (child_ops): Delete extern declaration.
1374         * linux-nat.c (child_ops): Delete extern declaration.
1375         * hpux-thread.c (child_ops): Delete extern declaration.
1376
1377 2004-09-28  Mark Kettenis  <kettenis@gnu.org>
1378
1379         * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
1380
1381 2004-09-28  Mark Kettenis  <kettenis@gnu.org>
1382
1383         * configure.in: Only set host_makefile_frag when building a native
1384         debugger.
1385         * configure: Regenerate.
1386
1387         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
1388         for OpenBSD ELF.
1389
1390 2004-09-28  Andrew Cagney  <cagney@gnu.org>
1391
1392         Problem identified by Paul Hilfinger.
1393         * Makefile.in (ada_lex_c): Define.
1394         (ada-lex.o): Delete rule.
1395
1396         * linux-proc.c: Delete file.
1397         * Makefile.in: Update.
1398         * config/sparc/linux64.mh (NATDEPFILES): 
1399         * config/sparc/linux.mh (NATDEPFILES): Update.
1400         * config/s390/s390.mh (NATDEPFILES): Update.
1401         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
1402         * config/powerpc/linux.mh (NATDEPFILES): Update.
1403         * config/pa/linux.mh (NATDEPFILES): Update.
1404         * config/mips/linux.mh (NATDEPFILES): Update.
1405         * config/m68k/linux.mh (NATDEPFILES): Update.
1406         * config/ia64/linux.mh (NATDEPFILES): Update.
1407         * config/i386/linux64.mh (NATDEPFILES): Update.
1408         * config/i386/linux.mh (NATDEPFILES): Update.
1409         * config/arm/linux.mh (NATDEPFILES): Update.
1410         * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
1411         * linux-nat.c: Update copyright.  Include <sys/param.h>,
1412         <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
1413         "gdbthread.h", "gdb_stat.h", <fcntl.h>.
1414         (O_LARGEFILE): Possibly define.
1415         (_initialize_linux_nat, linux_proc_pending_signals)
1416         (add_line_to_sigset, linux_proc_xfer_memory)
1417         (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
1418         (linux_nat_do_registers, linux_nat_corefile_thread_callback)
1419         (struct linux_corefile_thread_data)
1420         (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
1421         (child_pid_to_exec_file): Insert code previously in linux-proc.c.
1422
1423 2004-09-16  Andrew Cagney  <cagney@gnu.org>
1424
1425         * lin-lwp.c: Delete file.
1426         * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
1427         <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
1428         (status_to_str, init_lwp_list, add_lwp, delete_lwp)
1429         (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
1430         (linux_nat_attach, detach_callback, linux_nat_detach)
1431         (resume_callback, resume_clear_callback, linux_nat_resume)
1432         (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
1433         (stop_wait_callback, linux_nat_has_pending, flush_callback)
1434         (status_callback, running_callback, count_events_callback)
1435         (select_singlestep_lwp_callback, select_event_lwp_callback)
1436         (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
1437         (child_wait, stop_and_resume_callback, linux_nat_wait)
1438         (kill_callback, kill_wait_callback, linux_nat_kill)
1439         (linux_nat_create_inferior, linux_nat_mourn_inferior)
1440         (linux_nat_xfer_memory, linux_nat_thread_alive)
1441         (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
1442         (_initialize_linux_nat): New functions.
1443         * Makefile.in: Update all dependencies.
1444         * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
1445         * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1446         * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
1447         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
1448         * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1449         * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1450         * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1451         * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1452         * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1453         * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
1454         * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1455         * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1456         * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
1457
1458 2004-09-27  Mark Kettenis  <kettenis@gnu.org>
1459
1460         * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
1461         config/i386/obsd64.mh (NAT_FILE): Remove variable.
1462
1463         * configure.in: Don't comment out NATDEPFILES in the generated
1464         Makefile if NAT_FILE is unset.
1465         * configure: Regenerate.
1466
1467 2004-09-27  Andrew Cagney  <cagney@gnu.org>
1468
1469         * infrun.c (check_for_old_step_resume_breakpoint): Delete.
1470         (insert_step_resume_breakpoint): Delete.
1471         (insert_step_resume_breakpoint_at_frame): New function.
1472         (insert_step_resume_breakpoint_at_sal): New function.
1473         (handle_inferior_event, step_into_function)
1474         (insert_step_resume_breakpoint): Simplify by using same.
1475
1476         * gdb_indent.sh (types): Add caddr_t to list of predefined types.
1477
1478 2004-09-26  Mark Kettenis  <kettenis@gnu.org>
1479
1480         * fbsd-proc.c: Remove file.
1481         * Makefile.in (fbsd-proc.o): Remove dependency.
1482
1483         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
1484         code together.
1485
1486         * config/i386/nm-fbsd64.h: Remove file.
1487         * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1488
1489 2004-09-26  Mark Kettenis  <kettenis@gnu.org>
1490
1491         * amd64-nat.h: Update copyright year.
1492         (amd64bsd_target): New prototype.
1493         * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
1494         (amd64bsd_target): New function.
1495         (amd64bsd_fetch_inferior_registers): Rename from
1496         fetch_inferior_registers.  Make static.
1497         (amd64bsd_store_inferior_registers): Rename from
1498         store_inferior_registers.  Make static.
1499         * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
1500         (_initialize_amd64fbsd_nat): Construct and add target vector.
1501         * amd64nbsd-nat.o: Include "target.h".
1502         (_initialize_amd64nbsd_nat): Construct and add target vector.
1503         * amd64obsd-nat.c: Include "target.h".
1504         (_initialize_amd64obsd_nat): Construct and add target vector.
1505         * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
1506         * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
1507         inftarg.o and fbsd-proc.o.  Add inf-child.o, inf-ptrace.o and
1508         fbsd-nat.o.
1509         * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
1510         Remove infptrace.o and inftarg.o.  Add inf-child.o and
1511         inf-ptrace.o.
1512         * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
1513         (amd64obsd-nat.o): Update dependencies.
1514
1515 2004-09-25  Mark Kettenis  <kettenis@gnu.org>
1516
1517         * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
1518         * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
1519         * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
1520         * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
1521         * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
1522
1523         * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
1524         Inline attach call.
1525         (inf_ptrace_detach): Inline detach call.
1526
1527         * configure.in: Check for waddstr instead of mvwaddstr when
1528         searching for curses library.  Check for wborder.
1529         * configure, config.in: Regenerate.
1530         * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
1531         available.
1532
1533         * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
1534
1535 2004-09-24  Robert Picco <Robert.Picco@hp.com>
1536
1537         Committed by Andrew Cagney.
1538         * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
1539         (show_remote_protocol_p_packet_cmd): New.  Implement 'p' packet.
1540         configuration.
1541         (fetch_register_using_p): Implement 'p' packet.  Based on code by
1542         Fernando Nasser.
1543         (remote_fetch_registers): Call fetch_register_using_p.
1544         (init_all_packet_configs, show_remote_cmd)
1545         (_initialize_remote): Add p-packet.
1546
1547 2004-09-24  Mark Kettenis  <kettenis@gnu.org>
1548
1549         * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
1550         instead of call_ptrace.  Call wait directly instead of
1551         ptrace_wait.
1552         (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
1553         (inf_ptrace_wait): Inline ptrace_wait call.
1554
1555 2004-09-24  Paul Hilfinger  <hilfingr@nile.gnat.com>
1556
1557         * Makefile.in (.y.c): Revert previous change.  ../ylwrap was 
1558         rolled back instead.
1559
1560 2004-09-24  Paul Hilfinger  <hilfingr@nile.gnat.com>
1561
1562         * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
1563         the new argument order.
1564
1565 2004-09-23  Corinna Vinschen  <vinschen@redhat.com>
1566
1567         * MAINTAINERS: Remove "broken" from XStormy16 entry.
1568         * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
1569         (struct gdbarch_tdep): Remove.
1570         (struct xstormy16_frame_cache): New frame cache structure.
1571         (xstormy16_register_byte, xstormy16_register_raw_size)
1572         (xstormy16_reg_virtual_type, xstormy16_register_type)
1573         (xstormy16_push_arguments, xstormy16_push_return_address)
1574         (xstormy16_pop_frame, xstormy16_store_struct_return)
1575         (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
1576         (xstormy16_frame_saved_register, xstormy16_get_saved_register)
1577         (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
1578         (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
1579         (xstormy16_frame_chain, xstormy16_frame_chain_valid,
1580         (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
1581         (xstormy16_use_struct_convention): Drop gcc_p parameter.
1582         (xstormy16_extract_return_value, xstormy16_store_return_value):
1583         Regcachify.  Drop useless struct convention handling.
1584         (xstormy16_register_type, xstormy16_return_value)
1585         (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
1586         (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
1587         (xstormy16_frame_prev_register, xstormy16_frame_this_id)
1588         (xstormy16_frame_base_address, xstormy16_frame_sniffer)
1589         (xstormy16_unwind_sp, xstormy16_unwind_pc)
1590         (xstormy16_unwind_dummy_id) : New functions.
1591         (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
1592         of xstormy16_scan_prologue.
1593         (xstormy16_frame_unwind): New frame_unwind structure.
1594         (xstormy16_frame_base): New frame_base structure.
1595         (xstormy16_gdbarch_init): Accomodate all of the above changes.
1596         Reshuffle for better readability.  Also add dwarf2_frame_sniffer.
1597
1598 2004-09-22  Mark Kettenis  <kettenis@gnu.org>
1599
1600         * language.c (language_gdbarch_post_init): Fix off-by one error.
1601
1602 2004-09-21  Daniel Jacobowitz  <dan@debian.org>
1603
1604         * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
1605         (struct dwarf2_offset_and_type): New.
1606         (set_die_type, reset_die_and_siblings_types, get_die_type)
1607         (offset_and_type_hash, offset_and_type_eq): New functions.
1608         (read_structure_type, read_enumeration_type, read_array_type)
1609         (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
1610         (read_tag_reference_type, read_tag_const_type)
1611         (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
1612         (read_typedef, read_base_type, read_subrange_type): Use
1613         set_die_type.
1614
1615 2004-09-20  Daniel Jacobowitz  <dan@debian.org>
1616
1617         * Makefile.in (dwarf2read.o): Update dependencies.
1618         * dwarf2read.c: Include "command.h" and "gdbcmd.h".
1619         (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
1620         and read_in_chain.
1621         (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
1622         mark, and has_form_ref_addr.
1623         (struct dwarf2_per_cu_data): New.
1624         (dwarf2_max_cache_age): New.
1625         (dwarf2_build_psymtabs_hard): Free cached compilation units
1626         after loading.  Create and manage the list of compilation units.
1627         Remove unnecessary NULL initialization.  Fix indentation.
1628         (psymtab_to_symtab_1): Initialize all of CU.
1629         (dwarf2_read_abbrevs): Set has_form_ref_addr.
1630         (find_partial_die): Use dwarf2_find_containing_comp_unit
1631         and load_comp_unit.
1632         (free_stack_comp_unit): Update comments.  Clear the per-cu
1633         pointer.  Handle aging.
1634         (dwarf2_find_containing_comp_unit, free_cached_comp_units)
1635         (age_cached_comp_units, free_one_cached_comp_unit)
1636         (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
1637         (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
1638         (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
1639         (show_dwarf2_cmd): New.
1640         (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
1641         and "maint show dwarf2 max-cache-age".
1642         * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
1643         externs.
1644         * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
1645         global.
1646
1647 2004-09-20  Jeff Johnston  <jjohnstn@redhat.com>
1648
1649         * dwarf2read.c (typename_concat): Change prototype to accept obstack
1650         and dwarf2_cu struct pointer as arguments.  Change function to use
1651         obstack if provided and use dwarf2_cu to determine language-specific
1652         separator.
1653         (partial_die_parent_scope): Change comment to include java.  Use
1654         new version of typename_concat instead of obconcat.
1655         (partial_die_full_name): Use typename_concat.
1656         (read_namespace): Ditto.
1657         (read_enumeration_type): Use typename_concat instead of obconcat.
1658         (new_symbol): Ditto.
1659         (add_partial_symbol): Enhance tests for C++ to also test for Java.
1660         (guess_structure_name): Ditto.
1661         (read_subroutine_type): Ditto.
1662         (read_structure_type): Ditto.
1663         (is_vtable_name): Add Java support.
1664         (determine_class_name): Switch to new typename_concat call.
1665         (determine_prefix): Switch to new typename_concat call.
1666         * jv-exp.y (FuncStart): New pattern.
1667         (MethodInvocation): Add support for simple function calls.  Change
1668         warning message for other forms of inferior call currently not
1669         supported.
1670         * valarith.c (value_subscript): Treat an array with upper-bound
1671         of -1 as unknown size.
1672
1673 2004-09-20  Daniel Jacobowitz  <dan@debian.org>
1674
1675         * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
1676         (lookup_partial_symtab): Use symtab_to_fullname.
1677
1678 2004-09-19  Jim Blandy  <jimb@redhat.com>
1679
1680         * minsyms.c (lookup_minimal_symbol): Doc fix.
1681
1682 2004-09-20  Andrew Cagney  <cagney@gnu.org>
1683
1684         * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
1685         CHILD_RESUME.
1686         * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
1687         * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
1688         KILL_INFERIOR.
1689         * infptrace.c: Update.
1690
1691 2004-09-19  Daniel Jacobowitz  <dan@debian.org>
1692
1693         * symtab.c (output_source_filename): Mark first argument as const.
1694         (sources_info): Use symtab_to_fullname and psymtab_to_fullname
1695         for "info sources" output.
1696
1697 2004-09-20  Mark Kettenis  <kettenis@gnu.org>
1698
1699         * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
1700         <machine/vmparam.h>.
1701         (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
1702         (register_u_addr): Remove prototype.
1703
1704 2004-09-19  Mark Kettenis  <kettenis@gnu.org>
1705
1706         * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
1707         (i386bsd_fetch_inferior_registers): Rename from
1708         fetch_inferior_registers.  Make static.
1709         (i386bsd_store_inferior_registers): Rename from
1710         store_inferior_registers.  Make static.
1711         (i386bsd_target): New function.
1712         * i386bsd-nat.h: New file.
1713         * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
1714         "i386bsd-nat.h".
1715         (i386fbsd_resume): Rename from child_resume.  Make static.
1716         (_initialize_i386fbsd_nat): Construct and add target vector.
1717         * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
1718         (_initialize_i386nbsd_nat): Construct and add target vector.
1719         * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
1720         Remove defines.
1721         * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
1722         and fbsd-nat.o.  Remove inftarg.o and fbsd-proc.o.
1723         * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
1724         inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o.  Remove inftarg.o.
1725         (LOADLIBES): New variable.
1726         * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
1727         inf-ptrace.o.  Remove inftarg.o.
1728         * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
1729         inf-ptrace.o. Remove inftarg.o.
1730         * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
1731         inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o.  Remove inftarg.o.
1732         (LOADLIBES): New variable.
1733         * Makefile.in (i386bsd_nat_h): New variable.
1734         (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
1735         dependencies.
1736
1737         * sparc64nbsd-tdep.c: Include "objfiles.h".
1738         (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
1739         skip_trampoline_code.  Set solib_svr4_fetch_link_map_offsets to
1740         svr4_lp64_fetch_link_map_offsets.
1741         * sparc64obsd-tdep.c: Include "objfiles.h".  Don't include
1742         "nbsd-tdep.h".
1743         (sparc64obsd_init_abi): Set in_solib_call_trampoline and
1744         skip_trampoline_code.  Set solib_svr4_fetch_link_map_offsets to
1745         svr4_lp64_fetch_link_map_offsets.
1746         * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
1747         dependencies.
1748
1749         * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
1750         * fbsd-nat.h: New file.
1751         * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
1752         (fbsd_nat_h): New variable.
1753         (fbsd-nat.o): New dependency.
1754
1755         * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
1756         config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
1757
1758         * inf-child.c (inf_child_post_wait): Remove stray whitespace in
1759         comment.
1760
1761 2004-09-18  Paul N. Hilfinger  <hilfinger@gnat.com>
1762         
1763         * ada-exp.y (type_int): New function to add layer of abstraction
1764         around references to expression types.
1765         (type_long): Ditto.
1766         (type_long_long): Ditto.
1767         (type_float): Ditto.
1768         (type_double): Ditto.
1769         (type_long_double): Ditto.
1770         (type_char): Ditto.
1771         (type_system_address): Ditto.
1772         (simple_exp): Use type_* functions in place of builtin_* 
1773         variables.
1774         (exp): Ditto.
1775         (write_var_from_name): Ditto.
1776         (write_object_renaming): Ditto.
1777         * ada-lang.c (ada_create_fundamental_type): Remove redundant
1778         declaration.
1779         (build_ada_types): Remove, replacing with...
1780         (ada_language_arch_info): New function to initialize primitive
1781         type vector in language_arch_info.
1782         (ada_array_length): Remove use of builtin_type_ada_int.
1783         (value_pos_atr): Ditto.
1784         (ada_evaluate_subexp): Ditto.
1785         (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
1786         builtin_type_ada_long_long, builtin_type_ada_char, 
1787         builtin_type_ada_float, builtin_type_ada_double, 
1788         builtin_type_ada_long_double, builtin_type_ada_natural,
1789         builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
1790         (ada_builtin_types): Remove.
1791         (ada_language_defn): Remove entries for la_builtin_type_vector and
1792         string_char_type and use ada_language_arch_info.
1793         (_initialize_ada_language): Do type-vector initialization along
1794         the lines of c-lang.c.
1795         (ada_create_fundamental_type): Break up line.
1796         (ada_dump_symtab): Remove unused function.
1797         (enum ada_primitive_types): Define.
1798         * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short, 
1799         builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char, 
1800         builtin_type_ada_float, builtin_type_ada_double, 
1801         builtin_type_ada_long_double, builtin_type_ada_natural,
1802         builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
1803         * ada-lex.l: Use type_* functions in place of builtin_* variables.
1804         (processInt): Ditto.
1805         (processReal): Ditto.
1806         (name_lookup): Ditto.
1807         * ada-typeprint.c (print_range): Use builtin_type_int, not
1808         builtin_type_ada_int.
1809         
1810 2004-09-18  Mark Kettenis  <kettenis@gnu.org>
1811
1812         * i386-tdep.c (i386_register_name): Rename regno to regnum.
1813
1814         * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
1815         * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
1816         * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
1817         * configure.in: Improve checks for curses library by checking for
1818         mvwaddstr instead of initscr.  Drop HP curses in favour of
1819         standard curses on HP-UX.
1820         * configure: Regenerated.
1821
1822 2004-09-18  Paul N. Hilfinger  <hilfinger@gnat.com>
1823
1824         * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
1825         ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1): 
1826         Minor formatting changes.
1827         (empty_array): Slight rewrite for formatting.
1828         (emit_char,parse,ada_language_defn,build_ada_types,
1829         ada_is_exception_sym, _initialize_ada_language): Move 
1830         definitions around.
1831         (ada_dump_symtab): Remove unused definition.
1832         (ada_maybe_exception_partial_symbol): Remove unused definition.
1833
1834 2004-09-16  Andrew Cagney  <cagney@gnu.org>
1835
1836         * inf-child.c: Include "gdb_string.h".
1837         (inf_child_core_file_to_sym_file): Delete.
1838         (inf_child_target): Set to_fetch_registers and to_store_registers.
1839         * inf-ptrace.c: Include "gdb_string.h".
1840         * Makefile.in: Update all dependencies.
1841
1842         * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
1843         problem.
1844
1845 2004-09-14  Joel Brobecker  <brobecker@gnat.com>
1846
1847         * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
1848         call to heuristic_proc_desc. Remove code that became redundant
1849         as a consequence.
1850         (read_next_frame_reg): Remove special case for SP_REGNUM.
1851         (set_reg_offset): Fix small typo.
1852         (reset_saved_regs): New procedure.
1853         (mips32_heuristic_proc_desc): No longer compute a fake
1854         procedure descriptor. Compute the full frame cache instead.
1855         Some minor comment reformatting.
1856
1857 2004-09-14  Andrew Cagney  <cagney@gnu.org>
1858
1859         * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
1860         maintainer.
1861
1862         * thread-db.c (thread_db_new_objfile): Assume that there is a
1863         child process.
1864
1865 2004-09-13  Jim Blandy  <jimb@redhat.com>
1866
1867         * valops.c (value_assign): Move 'buffer' to the enclosing block,
1868         so that its storage isn't referenced after its lifetime ends.
1869
1870         * valops.c (value_assign): 'use_buffer' is initialized to zero,
1871         and never assigned to.   Delete it, and the 'if (use_buffer)'
1872         clauses.  Delete 'raw_buffer', since it is now unused.
1873
1874 2004-09-13  Andrew Cagney  <cagney@gnu.org>
1875
1876         * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
1877         * configure: Re-generate.
1878         * nlm/Makefile.in (TAGS): Update.
1879         * Makefile.in (TAGS): Update.
1880         * config/vax/nbsd.mt (TM_FILE): Update.
1881         * config/sparc/vxworks.mt (TM_FILE): Update.
1882         * config/sparc/sol2.mt (TM_FILE): Update.
1883         * config/sparc/sol2-64.mt (TM_FILE): Update.
1884         * config/sparc/obsd64.mt (TM_FILE): Update.
1885         * config/sparc/obsd.mt (TM_FILE): Update.
1886         * config/sparc/nbsd64.mt (TM_FILE): Update.
1887         * config/sparc/nbsd.mt (TM_FILE): Update.
1888         * config/sparc/linux64.mt (TM_FILE): Update.
1889         * config/sparc/linux.mt (TM_FILE): Update.
1890         * config/sparc/fbsd.mt (TM_FILE): Update.
1891         * config/sh/wince.mt (TM_FILE): Update.
1892         * config/sh/nbsd.mt (TM_FILE): Update.
1893         * config/sh/linux.mt (TM_FILE): Update.
1894         * config/sh/embed.mt (TM_FILE): Update.
1895         * config/s390/s390.mt (TM_FILE): Update.
1896         * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
1897         * config/rs6000/rs6000.mt (TM_FILE): Update.
1898         * config/rs6000/aix4.mt (TM_FILE): Update.
1899         * config/powerpc/vxworks.mt (TM_FILE): Update.
1900         * config/powerpc/ppc-sim.mt (TM_FILE): Update.
1901         * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
1902         * config/powerpc/obsd.mt (TM_FILE): Update.
1903         * config/powerpc/nbsd.mt (TM_FILE): Update.
1904         * config/powerpc/linux.mt (TM_FILE): Update.
1905         * config/powerpc/aix.mt (TM_FILE): Update.
1906         * config/pa/obsd.mt (TM_FILE): Update.
1907         * config/pa/linux.mt (TM_FILE): Update.
1908         * config/pa/hppahpux.mt (TM_FILE): Update.
1909         * config/pa/hppa64.mt (TM_FILE): Update.
1910         * config/pa/hppa.mt (TM_FILE): Update.
1911         * config/ns32k/nbsdaout.mt (TM_FILE): Update.
1912         * config/mips/wince.mt (TM_FILE): Update.
1913         * config/mips/vxmips.mt (TM_FILE): Update.
1914         * config/mips/nbsd.mt (TM_FILE): Update.
1915         * config/mips/linux.mt (TM_FILE): Update.
1916         * config/mips/irix6.mt (TM_FILE): Update.
1917         * config/mips/irix5.mt (TM_FILE): Update.
1918         * config/mips/embed.mt (TM_FILE): Update.
1919         * config/m68k/vxworks68.mt (TM_FILE): Update.
1920         * config/m68k/st2000.mt (TM_FILE): Update.
1921         * config/m68k/os68k.mt (TM_FILE): Update.
1922         * config/m68k/obsd.mt (TM_FILE): Update.
1923         * config/m68k/nbsd.mt (TM_FILE): Update.
1924         * config/m68k/monitor.mt (TM_FILE): Update.
1925         * config/m68k/linux.mt (TM_FILE): Update.
1926         * config/m68k/cisco.mt (TM_FILE): Update.
1927         * config/ia64/linux.mt (TM_FILE): Update.
1928         * config/ia64/aix.mt (TM_FILE): Update.
1929         * config/ia64/ia64.mt (TM_FILE): Update.
1930         * config/i386/vxworks.mt (TM_FILE): Update.
1931         * config/i386/obsd64.mt (TM_FILE): Update.
1932         * config/i386/obsd.mt (TM_FILE): Update.
1933         * config/i386/nto.mt (TM_FILE): Update.
1934         * config/i386/nbsd64.mt (TM_FILE): Update.
1935         * config/i386/nbsd.mt (TM_FILE): Update.
1936         * config/i386/linux64.mt (TM_FILE): Update.
1937         * config/i386/linux.mt (TM_FILE): Update.
1938         * config/i386/i386sol2.mt (TM_FILE): Update.
1939         * config/i386/i386lynx.mt (TM_FILE): Update.
1940         * config/i386/fbsd64.mt (TM_FILE): Update.
1941         * config/i386/fbsd.mt (TM_FILE): Update.
1942         * config/i386/cygwin.mt (TM_FILE): Update.
1943         * config/h8300/h8300.mt (TM_FILE): Update.
1944         * config/frv/frv.mt (TM_FILE): Update.
1945         * config/cris/cris.mt (TM_FILE): Update.
1946         * config/arm/wince.mt (TM_FILE): Update.
1947         * config/arm/nbsd.mt (TM_FILE): Update.
1948         * config/arm/linux.mt (TM_FILE): Update.
1949         * config/arm/embed.mt (TM_FILE): Update.
1950         * config/alpha/nbsd.mt (TM_FILE): Update.
1951         * config/alpha/fbsd.mt (TM_FILE): Update.
1952         * config/alpha/alpha.mt (TM_FILE): Update.
1953         * config/alpha/alpha-osf1.mt (TM_FILE): Update.
1954         * config/alpha/alpha-linux.mt (TM_FILE): Update.
1955
1956         Eliminate event_loop_p, always has the value 1.
1957         * defs.h (event_loop_p): Delete macro.
1958         * breakpoint.c (until_break_command): Simplify.
1959         * utils.c (prompt_for_continue): Simplify.
1960         * tracepoint.c (read_actions): Simplify.
1961         * top.c (throw_exception, execute_command, gdb_readline_wrapper) 
1962         (gdb_rl_operate_and_get_next, command_line_input, get_prompt) 
1963         (set_prompt, init_main): Simplify.
1964         (init_signals, disconnect): Delete, unused.
1965         * remote.c (remote_async_resume) 
1966         (extended_remote_async_create_inferior): Simplify.
1967         * mi/mi-interp.c (mi_input): Delete, unused.
1968         (mi_interpreter_resume, mi_command_loop): Simplify.
1969         * interps.c (current_interp_command_loop): Simplify.
1970         * infrun.c (proceed): Simplify.
1971         * infcmd.c (run_command, continue_command, step_1, jump_command)
1972         (until_command, advance_command, finish_command)
1973         (interrupt_target_command): Simplify.
1974         * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
1975
1976         * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1977         * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1978         * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1979         * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1980         * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1981         * mips-tdep.c (mips_dump_tdep): Do not print same.
1982
1983 2004-09-12  Andrew Cagney  <cagney@gnu.org>
1984
1985         * valprint.c (print_longest): Use fputs_filtered.  Make "val"
1986         const.
1987         * Makefile.in (valprint.o): Delete explict rule.
1988
1989         * config/m68k/nbsdelf.mh: Add missing trailing newline.  Problem
1990         reported by Dave Anderson.
1991
1992         * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
1993
1994         * inferior.h (STORE_STRUCT_RETURN): Delete macro.
1995
1996 2004-09-12  Salvador E. Tropea  <set@users.sf.net>
1997             Andrew Cagney  <cagney@gnu.org>
1998
1999         * mi/mi-main.c (mi_cmd_data_list_changed_registers)
2000         (mi_cmd_data_list_register_values)
2001         (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
2002         the register number computation.
2003
2004 2004-09-12  Andrew Cagney  <cagney@gnu.org>
2005
2006         * ppcnbsd-nat.c: Include "inf-ptrace.h".
2007         (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
2008         (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
2009         (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
2010         target.
2011         * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
2012         inf-ptrace.o and inf-child.o.
2013         * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
2014         * Makefile.in: Update dependencies.
2015         
2016 2004-09-11  Andrew Cagney  <cagney@gnu.org>
2017
2018         * language.c (hex_string, hex_string_custom): Move from here ...
2019         * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
2020         (CELLSIZE): Increase to 50.
2021         * language.h (hex_string, hex_string_custom): Move from here ...
2022         * defs.h: ... to here.
2023         * Makefile.in: Update all dependencies.
2024         
2025 2004-09-11  Paul N. Hilfinger  <hilfinger@gnat.com>
2026
2027         * language.c (local_hex_format_custom): Remove.
2028         (local_hex_string): Rename to hex_string, use C format, and move to
2029         utils.c
2030         (local_hex_string_custom): Rename to hex_string_custom and change
2031         interface.  Now uses C format.  Move to utils.c
2032         (local_octal_format_custom): Remove.
2033         (local_decimal_format_custom): Remove.
2034         (unknown_language_defn): Remove language-specific number 
2035         formatting entries.
2036         (auto_language_defn): Ditto.
2037         (local_language_defn): Ditto.
2038         * language.h (struct language_format_info): Delete declaration.
2039         (struct language_defn): Remove language_format_info fields
2040         la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
2041         (local_binary_format): Remove macro.
2042         (local_binary_format_prefix): Remove macro.
2043         (local_binary_format_specifier): Remove macro.
2044         (local_binary_format_suffix): Remove macro.
2045         (local_octal_format): Remove macro.
2046         (local_octal_format_prefix): Remove macro.
2047         (local_octal_format_specifier): Remove macro.
2048         (local_octal_format_suffix): Remove macro.
2049         (local_decimal_format): Remove macro.
2050         (local_decimal_format_prefix): Remove macro.
2051         (local_decimal_format_specifier): Remove macro.
2052         (local_decimal_format_suffix): Remove macro.
2053         (local_hex_format): Remove macro.
2054         (local_hex_format_prefix): Remove macro.
2055         (local_hex_format_specifier): Remove macro.
2056         (local_hex_format_suffix): Remove macro.
2057         (local_decimal_format_custom): Remove.
2058         (local_octal_format_custom): Remove.
2059         (local_hex_format_custom): Remove.
2060         (local_hex_string): Rename to hex_string and move to defs.h.
2061         (local_hex_string_custom): Rename to hex_string_custom, change
2062         interface, and move to defs.h.
2063         * utils.c: (int_string): New function.
2064         (hex_string): New function (from language.c).
2065         (hex_string_custom): New function (from language.c).
2066         (octal2str): New function.
2067         (decimal2str): Add width parameter.
2068         (paddr_u): Use new decimal2str interface.
2069         (paddr_d): Ditto.
2070         * defs.h (hex_string): Declare.
2071         (hex_string_custom): Declare.
2072         (int_string): Declare.
2073         * printcmd.c (print_scalar_formatted): Remove localized binary
2074         formatting.
2075         * valprint.c (print_longest): Use int_string.
2076         (print_floating): Use C hex format.
2077         (print_hex_chars): Ditto.
2078         (print_binary_chars): Remove language-specific formatting.
2079         (print_octal_chars): Use C octal format.
2080         (print_decimal_chars): Delocalize format.
2081         (print_decimal): Remove.
2082         * ada-lang.c (ada_language_defn): Remove language-specific number 
2083         formatting entries.
2084         * p-lang.c (pascal_language_defn): Ditto.
2085         * c-lang.c (c_language_defn): Ditto.
2086         (cplus_language_defn): Ditto.
2087         (asm_language_defn): Ditto.
2088         (minimal_language_defn): Ditto.
2089         * f-lang.c (f_language_defn): Ditto.
2090         * jv-lang.c (java_language_defn): Ditto.
2091         * m2-lang.c (m2_language_defn): Ditto.
2092         * scm-lang.c (scm_language_defn): Ditto.
2093         * objc-lang.c (objc_language_defn): Ditto.
2094         * memattr.c (mem_info_command): Use renamed hex_string_custom with
2095         new interface.
2096         * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
2097         * ui-out.c (ui_out_field_core_addr): Ditto.
2098         * breakpoint.c (breakpoint_adjustment_warning): Ditto.
2099         * exec.c (print_section_info): Ditto.
2100         * i387-tdep.c (print_i387_status_word): Ditto.
2101         (print_i387_control_word): Ditto.
2102         (i387_print_float_info): Ditto.
2103         * maint.c (maint_print_section_info): Ditto.
2104         * solib.c (info_sharedlibrary_command): Ditto.
2105         * somsolib.c (som_sharedlibrary_info_command): Ditto.
2106         * symtab.c (print_msymbol_info): Ditto.
2107         * tracepoint.c (tracepoints_info): Ditto.
2108         * solib-frv.c (lm_base): Ditto.
2109         (frv_current_sos): Ditto.
2110         (enable_break2): Ditto.
2111         (enable_break): Ditto.
2112         * dbxread.c (read_dbx_symtab): Use renamed hex_string.
2113         (process_one_symbol): Ditto.
2114         * infcmd.c (program_info): Ditto.
2115         * mdebugread.c (parse_partial_symbols): Ditto.
2116         * symfile.c (add_symbol_file_command): Ditto.
2117         * cli/cli-cmds.c (edit_command): Ditto.
2118         (list_command): Ditto.
2119         * infcall.c (call_function_by_hand): Ditto.
2120         * remote-vx.c (vx_run_files_info): Ditto.
2121         (vx_wait): Ditto.
2122         (vx_attach): Ditto.
2123         (vx_detach): Ditto.
2124         (vx_kill): Ditto.
2125         * aix-thread.c (pdc_symbol_addrs): Ditto.
2126         (pdc_read_regs): Ditto.
2127         (pdc_write_regs): Ditto.
2128         (pdc_read_data): Ditto.
2129         (pdc_write_data): Ditto.
2130         * d10v-tdep.c (display_trace): Ditto.
2131         * rs6000-nat.c (find_toc_address): Ditto.
2132         * aix-thread.c: Don't include language.h.
2133         * buildsym.c: Ditto.
2134         * dbxread.c: Ditto.
2135         * mdebugread.c: Ditto.
2136         * rs6000-nat.c: Ditto.
2137         * buildsym.c (make_blockvector): Use renamed hex_string.
2138         
2139 2004-09-10  Jason Molenda  (jmolenda@apple.com)
2140
2141         * cli/cli-script.c (read_next_line): Accept zero or more whitespace
2142         chars after 'if' or 'while' commands in user-defined commands.
2143
2144 2004-09-08  Jim Blandy  <jimb@redhat.com>
2145
2146         Fix bug reported and analyzed by Olivier Crete:
2147         * symfile.c (copy_section_addr_info): New function.
2148         (symbol_file_add_with_addrs_or_offsets): Use it to save the
2149         original set of address arguments, instead of handwritten code
2150         that uses one length to allocate and a different length to
2151         initialize.  Use make_cleanup_free_section_addr_info.
2152         * symfile.h (copy_section_addr_info): New declaration.
2153         * utils.c: #include "symfile.h".
2154         (do_free_section_addr_info, make_cleanup_free_section_addr_info):
2155         New functions.
2156         * defs.h (make_cleanup_free_section_addr_info): New declaration.
2157         * Makefile.in (utils.o): Update dependencies.
2158
2159 2004-09-08  Andrew Cagney  <cagney@gnu.org>
2160
2161         * thread-db.c (keep_thread_db): Delete.
2162         (thread_db_new_objfile, thread_db_create_inferior)
2163         (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
2164
2165 2004-09-08  Mark Kettenis  <kettenis@gnu.org>
2166
2167         * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
2168         (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
2169         (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
2170         (i386_frameless_signal_p): Remove prototype.
2171         * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
2172         (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
2173         I386_SSE_NUM_REGS.
2174         * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
2175         instead of FP0_REGNUM.
2176         (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
2177         of FP0_REGNUM and FPC_REGNUM.
2178
2179         * solib-sunos.c (sunos_relocate_main_executable): Remove function.
2180         (sunos_solib_create_inferior_hook): Don't call
2181         sunos_relocate_main_executable.
2182
2183         * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
2184         solib_svr4_fetch_link_map_offsets to
2185         svr4_ilp32_fetch_link_map_offsets.
2186         * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
2187         (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
2188         svr4_ilp32_fetch_link_map_offsets.
2189         * Makefile.in (sparcobsd-tdep.o): Update dependencies.
2190
2191 2004-09-07  Jim Blandy  <jimb@redhat.com>
2192
2193         * frame.h (frame_register): Doc fix.
2194
2195 2004-09-07  Andrew Cagney  <cagney@gnu.org>
2196
2197         * vx-share/wait.h: Delete #ifdef USG.
2198         * utils.c (request_quit): Ditto.
2199         * tui/tui.c (tui_reset): Ditto.
2200         * remote.c: Ditto.
2201         * remote-sds.c: Ditto.
2202         * remote-rdi.c: Ditto.
2203         * mdebugread.c: Ditto.
2204         * m68klinux-nat.c: Ditto.
2205         * infttrace.c: Ditto.
2206         * infptrace.c: Ditto.
2207         * i386v-nat.c: Ditto.
2208         * exec.c: Ditto.
2209         * dbxread.c: Ditto.
2210         * core-aout.c: Ditto.
2211
2212 2004-09-05  Joel Brobecker  <brobecker@gnat.com>
2213
2214         * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
2215         heuristic_proc_desc.
2216         (mips_insn32_frame_cache): Likewise.
2217
2218 2004-09-04  Joel Brobecker  <brobecker@gnat.com>
2219
2220         * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
2221         left behind by error.
2222
2223 2004-09-04  Joel Brobecker  <brobecker@gnat.com>
2224
2225         * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
2226         * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
2227
2228 2004-09-04  Joel Brobecker  <brobecker@gnat.com>
2229
2230         * config/rs6000/xm-aix4.h: Remove this file.
2231         * config/rs6000/aix4.mh (XM_FILE): Delete.
2232
2233 2004-09-04  Joel Brobecker  <brobecker@gnat.com>
2234
2235         * config/rs6000/xm-rs6000.h: Remove this file.
2236         * config/rs6000/rs6000.mh (XM_FILE): Remove.
2237
2238 2004-09-03  Andrew Cagney  <cagney@gnu.org>
2239
2240         * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
2241         (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
2242         only use.
2243
2244         * mips-tdep.c (temp_saved_regs): Delete.
2245         (set_reg_offset): Replace saved_regs parameter with this_cache.
2246         (heuristic_proc_desc, mips16_heuristic_proc_desc)
2247         (mips32_heuristic_proc_desc): Add this_cache parameter.
2248         (mips_insn32_frame_cache, mips_insn16_frame_cache)
2249         (after_prologue): Pass a NULL this_cache.
2250
2251         * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
2252         non-kernel trap prologues.
2253
2254         * mips-tdep.c (find_proc_desc): Delete function.
2255         (mips_mdebug_frame_cache): Inline call to find_proc_desc,
2256         simplify.
2257         (mips_insn16_frame_cache): Replace find_proc_desc with code from
2258         mips_insn32_frame_cache.
2259
2260         * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
2261         Simplify as NEXT_FRAME is NULL.
2262         (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
2263
2264         * mips-tdep.c (after_prologue): Replace proc_desc parameter with
2265         local variable.
2266         (mips_skip_prologue): Update.
2267
2268         * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
2269         "cur_frame" parameter.
2270         (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
2271         (mips_insn32_frame_cache, find_proc_desc): Update
2272
2273         * config/vax/nm-obsd.h: Delete file.
2274         * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2275         * config/vax/nm-nbsd.h: Delete file.
2276         * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
2277         * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2278         * config/sh/nm-nbsd.h: Delete file.
2279         * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2280         * config/rs6000/nm-rs6000ly.h: Delete file.
2281         * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
2282         * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2283         * config/powerpc/nm-obsd.h: Delete file.
2284         * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2285         * config/powerpc/nm-nbsd.h: Delete file.
2286         * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2287         * config/pa/nm-obsd.h: Delete file.
2288         * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2289         * config/mips/nm-nbsd.h: Delete file.
2290         * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2291         * config/m88k/nm-obsd.h: Delete file.
2292         * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2293         * config/m68k/nm-nbsd.h: Delete file.
2294         * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
2295         * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2296         * config/i386/nm-nbsd.h: Delete file.
2297         * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
2298         * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2299         * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2300         * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2301         * config/i386/nm-i386lynx.h: Delete file.
2302         * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2303         * config/arm/nm-nbsd.h: Delete file.
2304         * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
2305         * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2306
2307         * config/i386/tm-fbsd.h: Delete file.
2308         * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
2309         * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
2310
2311         * config/rs6000/tm-rs6000-aix4.h: Delete file.
2312         * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
2313         * config/rs6000/aix4.mt (TM_FILE): Set to
2314         config/rs6000/tm-rs6000.h.
2315         * config/powerpc/tm-ppc-aix.h: Delete file.
2316         * config/powerpc/aix.mt (TM_FILE): Set to
2317         config/rs6000/tm-rs6000.h.
2318         * config/m68k/tm-linux.h: Delete file.
2319         * config/m68k/linux.mt (TM_FILE): Set to solib.h
2320         * config/i386/tm-linux64.h: Delete file.
2321         * config/i386/linux64.mt (TM_FILE): Set to solib.h.
2322         * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
2323         
2324         * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
2325         * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
2326         * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
2327         * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
2328         * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
2329         * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
2330         * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
2331         * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper. 
2332         * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
2333
2334         * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
2335         gdb_host_cpu.
2336
2337 2004-09-02  Joel Brobecker  <brobecker@gnat.com>
2338
2339         * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
2340         Minor reformatting. Some code factoring.
2341
2342 2004-09-02  Andrew Cagney  <cagney@gnu.org>
2343
2344         * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
2345         * config/vax/tm-nbsd.h: Delete file.
2346         * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
2347         * config/sparc/tm-vxworks.h: Delete file.
2348         * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
2349         * config/sparc/tm-nbsd.h: Delete file.
2350         * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
2351         * config/sparc/linux.mt (TM_FILE): Set to solib.h.
2352         * config/sparc/tm-linux.h: Delete file.
2353         * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
2354         * config/s390/tm-linux.h: Delete file.
2355         * config/pa/obsd.mt (TM_FILE): Set to solib.h.
2356         * config/pa/tm-bsd.h: Delete file.
2357         * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
2358         * config/m68k/tm-obsd.h: Delete file.
2359         * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
2360         * config/m68k/tm-nbsd.h: Delete file.
2361         * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
2362         * config/i386/tm-vxworks.h: Delete file.
2363         * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
2364         * config/i386/obsd.mt (TM_FILE): Set to solib.h.
2365         * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
2366         * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
2367         * config/i386/tm-nbsd.h: Delete file.
2368         * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
2369         * config/i386/tm-i386lynx.h: Delete file.
2370         * config/cris/cris.mt (TM_FILE): Set to solib.h.
2371         * config/cris/tm-cris.h: Delete file.
2372
2373         * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
2374         * configure: Re-generate.
2375         * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
2376         * config/arm/tm-nbsd.h: Delete file.
2377         
2378         * config/powerpc/tm-ppcle-sim.h: Delete.
2379         * config/powerpc/tm-ppcle-eabi.h: Delete.
2380         * config/powerpc/tm-nbsd.h: Delete.
2381         * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
2382         * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
2383         tm-ppcle-eabi.h.
2384
2385         * config/i386/nto.mh (NAT_FILE): Delete.
2386         * config/i386/nm-nto.h: Delete.
2387
2388         * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
2389         * config/m68k/tm-os68k.h: Ditto.
2390         * config/m68k/tm-monitor.h: Ditto.
2391         * config/m68k/tm-cisco.h: Ditto.
2392         * config/m68k/st2000.mt (TM_FILE): Delete.
2393         * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
2394         * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
2395         * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
2396         * m68k-tdep.c (m68k_get_longjmp_target): Make static.
2397
2398         * config/m68k/tm-st2000.h: Delete.
2399         * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
2400         * config/sparc/fbsd.mt (TM_FILE): Delete.
2401         * config/sparc/tm-fbsd.h: Delete.
2402
2403         * acconfig.h (GDB_MULTI_ARCH): Delete undef.
2404         * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM) 
2405         (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
2406
2407         * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
2408         GDB_TM_FILE and GDB_XM_FILE.
2409         * gdbarch.c: Re-generate.       
2410         * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
2411         quotes in macro definition.
2412         * configure.in: Re-generate.
2413
2414         * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
2415         validating architecture methods.
2416         * gdbarch.c: Re-generate.
2417         
2418         * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
2419         and GDB_TM_FILE.  Check for GDB_TM_FILE instead of
2420         GDB_MULTI_ARCH_PARTIAL.
2421         * gdbarch.h: Re-generate.
2422         
2423         * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
2424         * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
2425         * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
2426         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
2427         * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
2428         * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
2429         * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
2430         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
2431         * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
2432         * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
2433         * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
2434         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
2435
2436 2004-09-01  Andrew Cagney  <cagney@gnu.org>
2437
2438         * objfiles.h (struct entry_info): Delete fields main_func_lowpc
2439         and main_func_highpc.
2440         (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
2441         * objfiles.c (init_entry_point_info, objfile_relocate): Update
2442         * nlmread.c (nlm_symfile_read): Update.
2443
2444 2004-09-01  Joel Brobecker  <brobecker@gnat.com>
2445
2446         * mips-tdep.c (linked_proc_desc_table): Delete, not used.
2447         (mips_insn32_frame_cache): Inline call to find_proc_desc.
2448         (find_proc_desc): Remove dead code.
2449
2450 2004-09-01  Joel Brobecker  <brobecker@gnat.com>
2451
2452         * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
2453
2454 2004-09-01  Jeff Johnston  <jjohnstn@redhat.com>
2455
2456         * observer.sh: Add struct so_list declaration.
2457         * Makefile.in: Add dependencies on observer.h for solib.c and
2458         breakpoint.c.
2459         * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
2460         function.
2461         (_initialize_breakpoint): Register 
2462         disable_breakpoints_in_unloaded_shlib as an observer of the 
2463         "solib unloaded" observation event.
2464         (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
2465         call decode_line_1 so unfound breakpoint errors are silent.
2466         * solib.c (update_solib_list): When a solib is discovered to have
2467         been unloaded by the program, notify all observers of the
2468         "solib unloaded" observation event.
2469
2470 2004-09-01  Andrew Cagney  <cagney@gnu.org>
2471
2472         * frame.c: Include "objfiles.h".
2473         (inside_main_func): New function.
2474         (get_prev_frame): Use new inside_main_func.
2475         * Makefile.in (frame.o): Update dependencies.
2476         * defs.h (inside_main_func): Delete declaration.
2477         * blockframe.c (inside_main_func): Delete function.
2478
2479 2004-08-31  Jim Blandy  <jimb@redhat.com>
2480
2481         * dwarf2read.c (is_vtable_name): New function, based on logic from
2482         read_structure_type, but passing the correct length to strncmp,
2483         and using 'sizeof' instead of 'strlen'.
2484         (read_structure_type): Call it.
2485
2486 2004-08-31  Joel Brobecker  <brobecker@gnat.com>
2487
2488         * config/powerpc/aix.mh: Add comment.
2489
2490 2004-08-31  Paul GIlliam  <pgilliam@us.ibm.com>
2491
2492         * MAINTAINERS: Add self to Write-After-Approval.
2493
2494 2004-08-30  Manoj Iyer  <manjo@austin.ibm.com>
2495
2496         * MAINTAINERS: Add self to Write-After-Approval.
2497
2498 2004-08-30  Andrew Cagney  <cagney@gnu.org>
2499
2500         Fix PR breakpoints/1757.
2501         * infrun.c (struct execution_control_state): Replace
2502         remove_breakpoints_on_following_step with
2503         step_after_step_resume_breakpoint.
2504         (init_execution_control_state): Update.
2505         (handle_inferior_event): For signals, when stepping off a
2506         breakpoint, set step_after_step_resume_breakpoint.  When
2507         BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
2508         (keep_going): Delete code handling
2509         remove_breakpoints_on_following_step.
2510
2511 2004-08-29  David Lecomber  <david@streamline-computing.com>
2512         
2513         Fix PR gdb/648
2514         * language.h (enum array_ordering): New enum.
2515         * language.h (struct language_defn): New la_array_ordering 
2516         attribute.
2517         * language.c (unknown_language_defn, auto_language_defn)
2518         (local_language_defn): Ditto.
2519         * ada-lang.c (ada_language_defn): Ditto.
2520         * c-lang.c (c_language_defn, cplus_language_defn)
2521         (asm_language_defn, minimal_language_defn): Ditto.
2522         * f-lang.c (f_language_defn): Ditto.
2523         * jv-lang.c (java_language_defn): Ditto.
2524         * m2-lang.c (f_language_defn): Ditto.
2525         * objc-lang.c (objc_language_defn): Ditto.
2526         * p-lang.c (pascal_language_defn): Ditto.
2527         * scm-lang.c (scm_language_defn): Ditto.
2528         * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
2529         oriented large to small in type structure.
2530         * dwarf2read.c (read_array_order): New function.
2531         (read_array_type): Use read_array_order to check row/column
2532         major ordering.
2533
2534 2004-08-27  Nathan J. Williams  <nathanw@wasabisystems.com>
2535
2536         * target.c (target_resize_to_sections): Check
2537         current_target.to_sections for an old value when updating.
2538
2539 2004-08-27  Joel Brobecker  <brobecker@gnat.com>
2540
2541         * procfs.c (dbx_link_bpt_addr): New static global variable.
2542         (dbx_link_shadow_contents): New static global variable.
2543         (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
2544         (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
2545         if we just hit it.
2546         (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
2547         Reset dbx_link_bpt_addr as the address of __dbx_link() may change
2548         from run to run.
2549         (procfs_create_inferior): Remove syssgi syscall-exit notifications
2550         after the inferior has been forked.
2551         (remove_dbx_link_breakpoint): New function.
2552         (dbx_link_addr): New function.
2553         (insert_dbx_link_bpt_in_file): New function.
2554         (insert_dbx_link_bpt_in_region): New function.
2555         (insert_dbx_link_breakpoint): New function.
2556         (proc_trace_syscalls_1): New function, extracted from
2557         proc_trace_syscalls.
2558         (proc_trace_syscalls): Replace extract code by call to
2559         proc_trace_syscalls_1.
2560         * solib-irix.c (disable_break): Remove stop_pc assertion, as it
2561         is no longer valid.
2562
2563 2004-08-25  Jim Blandy  <jimb@redhat.com>
2564
2565         * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
2566
2567 2004-08-25  Andrew Cagney  <cagney@gnu.org>
2568
2569         * infrun.c (struct execution_control_state): Delete field
2570         "stepping_through_sigtramp".
2571         (init_execution_control_state): Do not set same.
2572         (context_switch): Do not pass same to save_infrun_state and
2573         load_infrun_state.
2574         * gdbthread.h (struct thread_info): Delete field
2575         stepping_through_sigtramp.
2576         (save_infrun_state, load_infrun_state): Delete parameter
2577         stepping_through_sigtramp.
2578         * thread.c (load_infrun_state, save_infrun_state): Update.
2579
2580         * infrun.c: Re-indent.  Move expression operators to the beginning
2581         of the line.  Remove long disabled #if 0 code.
2582
2583 2004-08-24  Andrew Cagney  <cagney@gnu.org>
2584
2585         * doublest.h (floatformat_ieee_quad): Rename
2586         floatformat_ia64_quad.
2587         * doublest.c (floatformat_ieee_quad): Rename
2588         floatformat_ia64_quad.
2589         (_initialize_doublest): Update.
2590
2591 2004-08-24  Jim Blandy  <jimb@redhat.com>
2592
2593         * dwarf2expr.h (struct dwarf_expr_context): New members
2594         'num_pieces' and 'pieces', for returning the result of an
2595         expression that uses DW_OP_piece.
2596         (struct dwarf_expr_piece): New struct type.
2597         * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
2598         pieces.
2599         (free_dwarf_expr_context): Free pieces, if any.
2600         (add_piece): New function.
2601         (execute_stack_op): Implement DW_OP_piece.
2602         * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
2603         expression is a list of pieces, print an error message.
2604         (dwarf2_loc_desc_needs_frame): If the expression yields
2605         pieces, and any piece is in a register, then we need a frame.
2606
2607         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
2608         the stack until we've decided what sort of result the evaluation
2609         has produced.  Use separate variables, with more specific names.
2610
2611 2004-08-23  Richard Earnshaw  <rearnsha@arm.com>
2612
2613         * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
2614         (arm_nbsd_thumb_[lb]e_breakpoint): Define.
2615         (arm_netbsd_init_abi_common): Register them.
2616
2617 2004-08-22  Mark Kettenis  <kettenis@gnu.org>
2618
2619         * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
2620
2621         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
2622         safe_frame_unwind_memory instead of target_read_memory.
2623
2624         * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
2625         Reorder includes.
2626         (fetch_register, store_register): Remove prototypes.
2627         (child_resume): Reorganize code and comments such that it is
2628         grouped a bit more logically.
2629         (attach): Explicitly compare errno against 0.
2630         (detach): Likewise.  Use perror_with_name instead of
2631         print_sys_errmsg.
2632         * Makefile.in (infptrace.o): Update dependencies.
2633
2634         * ia64-linux-nat.c: Update copyright year.
2635         (fetch_debug_register, store_debug_register)
2636         (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
2637         PTRACE_TYPE_ARG3.
2638         * config/ia64/nm-linux.h: Update copyright year.
2639          (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
2640
2641         * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
2642         from CORE_ADDR to struct frame_info *.  Use
2643         safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
2644         (amd64_linux_sigtramp_p): Adjust for changed signature of
2645         and64_linux_sigtramp_start
2646
2647         * gdb_ptrace.h: GNU/Linux.
2648
2649         * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
2650         Remove defines.
2651
2652         * infptrace.c: Include "gdb_assert.h".
2653         (PTRACE_XFER_TYPE): Remove define.
2654         (offsetof): Only define if U_REGS_OFFSET isn't defined.
2655         (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
2656         Tweak comment.
2657         (fetch_inferior_registers, store_inferior_registers): Remove
2658         redundant culry braces.  Tweak comment.  s/regno/regnum.
2659         * Makefile.in (infptrace.o): Update dependencies.
2660
2661         * configure.in: Change test for return type of ptrace to default
2662         to `long' instead of `int'.
2663         * configure: Regenerate.        
2664
2665 2004-08-21  Mark Kettenis  <kettenis@gnu.org>
2666
2667         * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
2668
2669         * configure.in: Check for ttrace function.
2670         * configure, config.in: Regenerate.     
2671
2672         * gdb_ptrace.h: New file.
2673         * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
2674         <sys/ptrace.h>.
2675         (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
2676         (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
2677         (attach): Don't define PT_ATTACH.
2678         (detach): Don't define PT_DETACH.
2679         * Makefile.in (gdb_ptrace_h): New variable.
2680         (infptrace.o): Update dependencies.
2681
2682 2004-08-16  Mark Kettenis  <kettenis@gnu.org>
2683
2684         * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
2685         instead of `int' if not already defined.
2686         (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
2687         PTRACE_TYPE_ARG3.
2688         * infptrace.c (call_ptrace): Revert change that replaced
2689         PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2690
2691 2004-08-15  Mark Kettenis  <kettenis@gnu.org>
2692
2693         * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
2694         Remove defines.
2695
2696         * linux-nat.c (kill_inferior): Add missing third and fourth
2697         arguments to ptrace call.  Don't use PTRACE_ARG3_TYPE.
2698
2699         * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
2700         PTRACE_TYPE_RET.
2701
2702         * proc-why.c (proc_prettyfprint_why): Fix format string.
2703
2704         * solib-osf.c (osf_current_sos): Remove unsused label.
2705
2706         * configure.in: Add <ncurses/ncurses.h> to the list of possible
2707         curses headers.
2708         * configure, config.in: Regenerate.     
2709         * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
2710         <ncurses/ncurses.h>.
2711
2712         * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
2713         * config/nm-nbsd.h: Update copyright year.
2714         (PTRACE_ARG3_TYPE): Remove define.
2715
2716         * sparc-nat.c (fetch_inferior_registers)
2717         (store_inferior_registers, sparc_xfer_wcookie): 
2718         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2719
2720         * alphabsd-nat.c (fetch_inferior_registers):
2721         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2722         PTRACE_TYPE_ARG3.
2723         * amd64bsd-nat.c (fetch_inferior_registers)
2724         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2725         PTRACE_TYPE_ARG3.
2726         * armnbsd-nat.c: Update copyright year.
2727         (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
2728         (store_register, store_regs, store_fp_register, store_fp_regs):
2729         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2730         * hppabsd-nat.c (fetch_inferior_registers)
2731         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2732         PTRACE_TYPE_ARG3.
2733         * i386bsd-nat.c (fetch_inferior_registers)
2734         (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
2735         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2736         * m68kbsd-nat.c (fetch_inferior_registers)
2737         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2738         PTRACE_TYPE_ARG3.
2739         * m88kbsd-nat.c (fetch_inferior_registers)
2740         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2741         PTRACE_TYPE_ARG3.
2742         * mipsnbsd-nat.c: Update copyright year.
2743         (fetch_inferior_registers, store_inferior_registers):
2744         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2745         * ns32knbsd-nat.c: Update copyright year.
2746         (fetch_inferior_registers, store_inferior_registers):
2747         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2748         * ppcnbsd-nat.c (fetch_inferior_registers):
2749         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2750         PTRACE_TYPE_ARG3.
2751         * ppcobsd-nat.c (fetch_inferior_registers):
2752         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2753         PTRACE_TYPE_ARG3.
2754         * shnbsd-nat.c: Update copyright year.
2755         (fetch_inferior_registers, store_inferior_registers):
2756         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2757         * vaxbsd-nat.c (fetch_inferior_registers)
2758         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2759         PTRACE_TYPE_ARG3.
2760         
2761         * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
2762         PTRACE_TYPE_ARG3.
2763         * infptrace.c (call_ptrace, child_resume, attach, detach)
2764         (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
2765         (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2766         * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
2767         PTRACE_TYPE_ARG3.
2768
2769 2004-08-14  Mark Kettenis  <kettenis@gnu.org>
2770
2771         * defs.h: Remove out-of-date comment.
2772         [!FCLOSE_PROVIDED] (fclose): Remove prototype.
2773         [!GETENV_PROVIDED] (getenv): Remove prototype.
2774
2775         * standalone.c: Remove file.
2776         * Makefile.in (standalone.o): Remove dependency.
2777
2778         * i386-linux-nat.c (dummy_sse_values): Remove function and
2779         prototype.
2780         (i386_linux_dr_get): Fix typo in comment.
2781         (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
2782
2783         * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
2784
2785         * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
2786         from declaration.
2787         * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
2788         from definition.
2789
2790 2004-08-13  Mark Kettenis  <kettenis@gnu.org>
2791
2792         * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
2793         parenthesis in definition.
2794         * configure: Regenerated.
2795
2796 2004-08-12  Michael Chastain  <mec.gnu@mindspring.com>
2797
2798         * PROBLEMS: Mention build/1411.
2799
2800 2004-08-09  Robert Millan  <robertmh@gnu.org>
2801
2802         Committed by Nathanael Nerode.
2803         * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
2804         * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
2805
2806 2004-08-12  Andrew Cagney  <cagney@gnu.org>
2807
2808         * NEWS: Mention fixes in GDB 6.2.1.
2809         * PROBLEMS: Remove mention of mips-irix.
2810
2811 2004-08-11  Joel Brobecker  <brobecker@gnat.com>
2812
2813         * config/powerpc/xm-aix.h: Delete.
2814         * config/powerpc/aix.mh (MH_FILE): Remove.
2815         * config/powerpc/aix432.mh (MH_FILE): Remove.
2816
2817 2004-08-11  Joel Brobecker  <brobecker@gnat.com>
2818
2819         * config/powerpc/aix.mh: Remove obsolete comment.
2820         * config/powerpc/aix432.mh: Likewise.
2821
2822 2004-08-11  Joel Brobecker  <brobecker@gnat.com>
2823
2824         * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
2825
2826 2004-08-11  Joel Brobecker  <brobecker@gnat.com>
2827
2828         * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
2829         this file is now empty.
2830         * config/xm-aix4.h: Remove, this file is no longer included
2831         anywhere.
2832
2833 2004-08-11  Joel Brobecker  <brobecker@gnat.com>
2834
2835         * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
2836         that file is now empty.
2837         (termdef): Remove prototype, function no longer used.
2838
2839 2004-08-11  Joel Brobecker  <brobecker@gnat.com>
2840
2841         * doc/gdbint.texinfo (Host Definition): Remove documentation
2842         for USE_O_NOCTTY, no longer used.
2843         * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
2844         * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
2845
2846 2004-08-11  Joel Brobecker  <brobecker@gnat.com>
2847
2848         * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
2849         * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
2850         * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
2851
2852 2004-08-11  Mark Kettenis  <kettenis@gnu.org>
2853
2854         * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
2855         instead of FIVE_ARG_PTRACE.
2856
2857         * inflow.c (O_NOCTTY): Define to zero if not already defined.
2858         (new_tty): Use O_NOCTTY unconditionally.
2859
2860 2004-08-10  Mark Kettenis  <kettenis@gnu.org>
2861
2862         * procfs.c (procfs_detach): Cleanup.  Print process ID, not LWP
2863         ID.  Use comma in output.  Use gdb_flush on gdb_stdout instead of
2864         fflush on stdout.
2865
2866 2004-08-10  Joel Brobecker  <brobecker@gnat.com>
2867
2868         * xcoff_symfile_finish: Replace last call to xmfree by call
2869         to xfree.
2870
2871 2004-08-10  Andrew Cagney  <cagney@gnu.org>
2872
2873         * main.c (captured_main): Delete call to init_malloc.
2874         * defs.h (init_malloc): Delete declaration.
2875         * utils.c (mmalloc, mrealloc, mcalloc, mfree)
2876         (init_malloc): Delete functions.
2877
2878         * defs.h (xmfree): Delete.
2879         * utils.c (xmfree): Delete function.
2880         (xfree): Inline calls to xmfree and mfree.
2881         * symmisc.c (free_symtab_block, free_symtab): Use xfree.
2882         * symfile.c (reread_symbols, init_psymbol_list): Ditto.
2883         * source.c (forget_cached_source_info, find_and_open_source): Ditto.
2884         * somread.c (som_symfile_finish): Ditto.
2885         * objfiles.c (allocate_objfile, free_objfile): 
2886         * nlmread.c (nlm_symfile_finish): Ditto.
2887         * hpread.c (hpread_symfile_finish): Ditto.
2888         * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
2889         * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
2890         * coffread.c (coff_symfile_finish): Ditto.
2891
2892         * defs.h (xmcalloc): Delete declaration.
2893         * utils.c (xmcalloc): Delete.
2894         (xcalloc): Inline calls to xmcalloc and mcalloc.
2895         * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
2896         xcalloc and xfree.
2897         * symtab.c (create_demangled_names_hash): Ditto.
2898
2899         * defs.h (xmrealloc): Delete.
2900         * utils.c (xmrealloc): Delete.
2901         (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
2902         * symmisc.c (extend_psymbol_list): Use xrealloc.
2903         * source.c (find_source_lines): Ditto.
2904         * hpread.c (hpread_lookup_type): Ditto.
2905         * dbxread.c (add_bincl_to_list): Ditto.
2906
2907         * utils.c (xmmalloc): Delete.
2908         (xmalloc): Inline xmmalloc and mmalloc calls.
2909         (msavestring): Use xmalloc.
2910         * defs.h (xmmalloc): Delete declaration.
2911         * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
2912         xmmalloc.
2913         * symmisc.c (extend_psymbol_list): Ditto.
2914         * symfile.c (init_psymbol_list): Ditto.
2915         * source.c (find_source_lines): Ditto.
2916         * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
2917         * elfread.c (elf_symtab_read): Ditto.
2918         * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
2919         * coffread.c (coff_symfile_init): Ditto.
2920
2921 2004-08-10  David Carlton  <carlton@bactrian.org>
2922
2923         * MAINTAINERS: Remove David Carlton from c++ testsuite
2924         maintainers.
2925
2926 2004-08-10  Jerome Guitton  <guitton@gnat.com>
2927
2928         * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
2929         print a line feed before the prompt.
2930
2931 2004-08-10  Mark Kettenis  <kettenis@gnu.org>
2932
2933         * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
2934
2935 2004-08-09  Joel Brobecker  <brobecker@gnat.com>
2936
2937         General cleanup of the AIX xm include file:
2938         * config/xm-aix4.h (fd_set): Remove undefine.
2939         Remove include of <sys/select.h>.
2940         (HAVE_TERMIO): Remove define.
2941         (USG): Likewise.
2942         (NULL): Remove redefine.
2943         (alloca): Remove #pragma.
2944         (vfork): Remove define.
2945         (termdef): Remove.
2946         (SIGWINCH_HANDLER): Remove.
2947         (SIGWINCH_HANDLER_BODY): Remove.
2948
2949 2004-08-09  Mark Kettenis  <kettenis@gnu.org>
2950
2951         * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
2952         GDB_OSABI_OPENBSD_ELF.
2953
2954 2004-08-07  Robert Millan  <robertmh@gnu.org>
2955
2956         * bsd-kvm.c: Check for nlist.h before including it.
2957
2958 2004-08-09  Mark Kettenis  <kettenis@gnu.org>
2959
2960         * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
2961         sigcontext' offset consistency checks for ancient BSD.
2962
2963         * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
2964
2965         * configure.in: Check for <sys/types.h>.  Check return and
2966         argument types of ptrace.
2967         * configure, config.in: Regenerate.     
2968
2969 2004-08-09  Jim Blandy  <jimb@redhat.com>
2970
2971         * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
2972         rs6000_register_sim_regno): Doc fixes.
2973
2974 2004-08-08  Joel Brobecker  <brobecker@gnat.com>
2975
2976         * mips-tdep.c: Include "floatformat.h".
2977         (n32n64_floatformat_always_valid): New function.
2978         (floatformat_n32n64_long_double_big): New constant.
2979         (mips_gdbarch_init): Set size and format of long double
2980         for N32 and N64 ABIs.
2981         * Makefile.in (mips-tdep.o): Update dependencies.
2982
2983 2004-08-08  Andrew Cagney  <cagney@gnu.org>
2984
2985         * gdbarch.sh: Delete "fmt" and "attrib" fields.  Always use %s to
2986         print.  Improve script's error messages.
2987         * gdbarch.h: Re-generate.
2988
2989         * gdbarch.sh (pformat): New function.
2990         (float_format, double_format, long_double_format): List with bit
2991         members.  Use pformat when printing.
2992         * gdbarch.c, gdbarch.h: Re-generate.
2993         
2994 2004-08-08  Nathan J. Williams  <nathanw@wasabisystems.com>
2995
2996         * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
2997         "gdbcore.h", "regcache.h", and "bsd-kvm.h".
2998         (ppcnbsd_supply_pcb): New function.
2999         (_initialize_ppcnbsd_nat): New prototype and function.
3000         * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
3001         (LOADLIBES): New variable.
3002         * Makefile.in (ppcnbsd-nat.o): Update dependencies.
3003
3004 2004-08-08  Andrew Cagney  <cagney@gnu.org>
3005
3006         * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
3007         (builtin_type_ieee_double, builtin_type_ia64_quad)
3008         (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
3009         BE/LE floating-point types.
3010         * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
3011         (builtin_type_ieee_double, builtin_type_ia64_quad)
3012         (builtin_type_ia64_spill): Declare.
3013         * doublest.c (_initialize_doublest, floatformat_ieee_single)
3014         (floatformat_ieee_double, floatformat_arm_ext)
3015         (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
3016         of LE/BE floatformats.  
3017         * doublest.h: (struct floatformat, floatformat_ieee_single)
3018         (floatformat_ieee_double, floatformat_arm_ext)
3019         (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
3020
3021 2004-08-08  Mark Kettenis  <kettenis@gnu.org>
3022
3023         * i386gnu-nat.c (gnu_store_registers): Fix typo.
3024
3025         * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
3026         instead of regcache_raw_supply when storing the registers.
3027
3028         * i386gnu-nat.c: Update copyright year.
3029         (gnu_store_registers): Don't use deprecated_registers and
3030         deprecated_registers_valid.  Use regcache_valid_p and
3031         regcache_raw_supply instead.
3032
3033         * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
3034         frame_pc_unwind.
3035
3036         * procfs.c (procfs_pid_to_str): Remove redundant and unused
3037         variables.  Incapitalized "process".
3038
3039         * configure.in: Add cursesX to the list of possible curses libs.
3040         Add cursesX.h to the list of possible curses headers. 
3041         * configure, config.in: Regenerate.     
3042
3043 2004-08-07  Nathan J. Williams  <nathanw@wasabisystems.com>
3044
3045         * configure.in: Test for struct lwp in <sys/lwp.h>.
3046         * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
3047         the offset of l_addr in struct lwp.
3048
3049 2004-08-07  Nathan J. Williams  <nathanw@wasabisystems.com>
3050
3051         * bsd-kvm.c: Include "gdbcore.h"
3052         (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
3053
3054 2004-08-07  Andrew Cagney  <cagney@gnu.org>
3055
3056         * gdbtypes.c (build_flt, build_complex): New functions.
3057         (gdbtypes_post_init): Use.
3058
3059         * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
3060
3061         * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
3062         through to builtin_type_uint128.
3063
3064         * c-exp.y: Use builtin_type function to obtain builtin types.
3065
3066         * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
3067         builtin_uint128.
3068         * gdbtypes.c (gdbtypes_post_init): Update.
3069         (build_gdbtypes): Move initialization of builtin_type_int0
3070         through to builtin_type_uint128 from here ...
3071         (_initialize_gdbtypes): ... to here.
3072         * d10v-tdep.c (d10v_register_type): Update.
3073
3074         * doublest.c: Update copyright.
3075         (floatformat_from_length): Call error when floatformat is NULL.
3076         (extract_floating_by_length): Remove NULL fmt check.
3077         (store_floating_by_length): Ditto.
3078
3079 2004-08-07  Andrew Cagney  <cagney@gnu.org>
3080
3081         * regcache.c (regcache_raw_read): For the moment, #ifdef assert
3082         that the register is valid.
3083
3084 2004-08-05  Mark Kettenis  <kettenis@chello.nl>
3085
3086         * i386-linux-tdep.c (i386_linux_sigtramp_start)
3087         (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
3088         struct frame_info *.  Use safe_frame_unwind_memory instead of
3089         deprecated_read_memory_nobpt.
3090         (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
3091         changed signature of i386_linux_sigtramp_start and
3092         i386_linux_rt_sigtramp_start.
3093
3094         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
3095         CORE_ADDR to struct frame_info *.  Use safe_frame_unwind_memory
3096         instead of deprecated_read_memory_nobpt.
3097         (i386nbsd_sigtramp_p): Adjust for changed signature of
3098         i386nbsd_sigtramp_offset.
3099
3100         * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
3101         safe_frame_unwind_memory instead of target_read_memory.
3102
3103         * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3104         !NO_SYS_FILE.
3105         [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
3106         [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
3107         (_initialize_kernel_u_addr): Remove prototype and function.
3108         * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3109         !NO_SYS_FILE.
3110         * xcoffread.c: Likewise.
3111
3112 2004-08-06  Mark Kettenis  <kettenis@gnu.org>
3113
3114         * vax-nat.c: New file.
3115         * vaxbsd-nat.c: Tweak comment.
3116         * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
3117         vaxnbsd-tdep.c.
3118         (vax-nat.o): New dependency.
3119         * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
3120         (vax-*-ultrix2*): Remove.
3121         * config/vax/vax.mh: New file.
3122         * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
3123         (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
3124         (vax_register_u_addr): New prototype.
3125         (REGISTER_U_ADDR): Define using vax_register_u_addr.
3126         * config/vax/vaxult2.mh: Remove file.
3127         * config/vax/vaxult.mh: Remove file.
3128         * config/vax/vaxbsd.mh: Remove file.
3129         * config/vax/vax.mt (TM_FILE): Remove.
3130         * config/vax/tm-vaxbsd.h: Remove file.
3131
3132 2004-08-06  Joel Brobecker  <brobecker@gnat.com>
3133
3134         * aix-thread.c (get_signaled_thread): New function.
3135         (iter_trap): Delete, no longer used.
3136         (iter_tid): New function.
3137         (pd_update): Find the thread that received the SIGTRAP signal
3138         by first locating the kernel thread, and then finding its
3139         associated thread.
3140
3141 2004-08-06  Ulrich Weigand  <uweigand@de.ibm.com>
3142
3143         * lin-lwp.c (child_wait): Continue inferior after processing
3144         PTRACE_EVENT_CLONE event.
3145
3146 2004-08-05  Nathanael Nerode  <neroden@gcc.gnu.org>
3147
3148         * MAINTAINERS: Add self to Write-After-Approval.
3149
3150 2004-08-05  Jeff Johnston  <jjohnstn@redhat.com>
3151
3152         * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
3153         libunwind-xxxx.so" where xxxx is UNW_TARGET.
3154
3155 2004-08-05  Andrew Cagney  <cagney@gnu.org>
3156
3157         * config/xm-sysv4.h: Delete file.
3158         * config/mips/xm-irix5.h: Delete file.
3159         * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
3160         * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
3161         * config/ia64/xm-aix.h: Delete file.
3162         * config/ia64/aix.mh (XM_FILE): Delete.
3163         * config/pa/xm-hppah.h: Delete file.
3164         * config/pa/hpux11w.mh (XM_FILE): Delete.
3165         * config/pa/hpux11.mh (XM_FILE): Delete.
3166         * config/pa/hpux1020.mh (XM_FILE): Delete.
3167         * config/pa/hppahpux.mh (XM_FILE): Delete.
3168
3169         * config/alpha/xm-alphalinux.h: Delete file.
3170         * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
3171         * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
3172         * config/alpha/xm-alphaosf.h: Delete file.
3173         * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
3174         * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
3175         * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
3176         * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
3177
3178         * config/i386/xm-i386v.h: Delete file.
3179         * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
3180         * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
3181         * config/i386/xm-i386sco.h: Delete file.
3182         * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
3183         * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
3184         * config/i386/xm-i386v4.h: Delete file.
3185         * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
3186         * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
3187         * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
3188         * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
3189
3190         * config/vax/xm-vax.h: Delete file.
3191         * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
3192         * config/vax/xm-vaxult2.h: Delete file.
3193         * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
3194         * config/vax/vaxult2.mh (XM_FILE): Delete.
3195         * config/vax/xm-vaxult.h: Delete file.
3196         * config/vax/vaxult.mh (XM_FILE): Delete.
3197         * config/vax/xm-vaxbsd.h: Delete file.
3198         * config/vax/vaxbsd.mh (XM_FILE): Delete.
3199
3200         * gdbarch.sh (deprecated_frame_saved_pc): Delete.
3201         * gdbarch.h, gdbarch.c: Re-generate.
3202         * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
3203         * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
3204         * frame.h: Delete deprecated_read_fp from comments.
3205         * arch-utils.c (deprecated_init_frame_pc_default): Delete.
3206         * arch-utils.h (deprecated_init_frame_pc_default): Delete.
3207
3208 2004-08-04  Mark Kettenis  <kettenis@gnu.org>
3209
3210         * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
3211         trampoline in OpenBSD 3.5-current.
3212
3213         * i387-tdep.c (i387_supply_fsave): Provide summy values for the
3214         SSE registers.
3215
3216         * Makefile.in: Remove embedded page breaks.
3217
3218 2004-08-04  Jim Blandy  <jimb@redhat.com>
3219
3220         * regcache.c (regcache_raw_read): Assert that, after calling
3221         target_fetch_registers, the register we're reading is cached.
3222
3223         * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
3224         a call to 'internal_error', with a more helpful error message.
3225         * rs6000-tdep.c (e500_pseudo_register_read,
3226         e500_pseudo_register_write, rs6000_store_return_value): Same.
3227
3228 2004-08-04  Andrew Cagney  <cagney@gnu.org>
3229
3230         * Makefile.in: Update dependencies.
3231
3232 2004-08-04  Jim Blandy  <jimb@redhat.com>
3233
3234         Change the layout of the PowerPC E500 raw register cache to allow
3235         the lower 32-bit halves of the GPRS to be their own raw registers,
3236         not pseudoregisters.
3237         * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
3238         add ppc_ev0_upper_regnum flag.
3239         * rs6000-tdep.c: #include "reggroups.h".
3240         (spe_register_p): Recognize the ev upper half registers as SPE
3241         registers.
3242         (init_sim_regno_table): Build gdb->sim mappings for the upper-half
3243         registers.
3244         (e500_move_ev_register): New function.
3245         (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
3246         vector registers are the pseudo-registers now, formed by splicing
3247         together the gprs and the upper-half registers.
3248         (e500_register_reggroup_p): New function.
3249         (P): Macro deleted.
3250         (P8, A4): New macro.
3251         (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
3252         (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
3253         macros.
3254         (registers_e500): Rearrange register set so that the raw register
3255         set contains 32-bit GPRs and upper-half registers, and the SPE
3256         vector registers become pseudo-registers.
3257         (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
3258         it has been deleted.  Initialize ppc_ev0_upper_regnum.  Many other
3259         register numbers are now the same for the E500 as they are for
3260         other PowerPC variants.  Register e500_register_reggroup_p as the
3261         register group function for the E500.
3262         * Makefile.in (rs6000-tdep.o): Update dependencies.
3263
3264         Adapt PPC E500 native support to the new raw regcache layout.
3265         * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
3266         (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
3267         (fetch_spe_register, store_spe_register): Handle fetching/storing
3268         all the SPE registers at once, if regno == -1.  These now take
3269         over the job of fetch_spe_registers and store_spe_registers.
3270         (fetch_spe_registers, store_spe_registers): Deleted.
3271         (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
3272         unconditionally; they're always raw.  Fetch/store SPE upper half
3273         registers, if present, instead of ev registers.
3274         (fetch_register, store_register): Remove sanity checks: gprs are
3275         never pseudo-registers now, so we never need to even mention any
3276         registers that are ever pseudoregisters.
3277
3278         Use a fixed register numbering when communicating with the PowerPC
3279         simulator.
3280         * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
3281         * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
3282         (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno): 
3283         New functions.
3284         (rs6000_gdbarch_init): Register rs6000_register_sim_regno.  Call
3285         init_sim_regno_table.
3286         * Makefile.in (gdb_sim_ppc_h): New variable.
3287         (rs6000-tdep.o): Update dependencies.
3288
3289 2004-08-02  Andrew Cagney  <cagney@gnu.org>
3290
3291         * cris-tdep.c (cris_register_size): Restore function, still used
3292         locally.
3293
3294         * gdbarch.sh (deprecated_target_read_fp)
3295         (deprecated_frame_locals_address, deprecated_frame_args_address)
3296         (deprecated_frame_chain_valid, deprecated_frame_chain)
3297         (deprecated_init_extra_frame_info, deprecated_pop_frame)
3298         (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
3299         (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
3300         * gdbarch.h, gdbarch.c: Re-generate.
3301         * regcache.c (deprecated_read_fp): Do not call
3302         DEPRECATED_TARGET_READ_FP_P.
3303         * infcmd.c (default_print_registers_info): Do not call
3304         DEPRECATED_DO_REGISTERS_INFO.
3305         * frame-base.c (default_frame_locals_address): Do not call
3306         DEPRECATED_FRAME_LOCALS_ADDRESS.
3307         (default_frame_args_address): Do not call
3308         DEPRECATED_FRAME_ARGS_ADDRESS.
3309
3310         * gdbarch.sh (deprecated_register_raw_size)
3311         (deprecated_register_virtual_size:int): Delete.
3312         * gdbarch.h, gdbarch.c: Re-generate.
3313         * cris-tdep.c (cris_register_size): Delete.
3314         (cris_gdbarch_init): Update.
3315         * alpha-tdep.c (alpha_register_raw_size)
3316         (alpha_register_virtual_size): Delete.
3317         (alpha_gdbarch_init): Update.
3318
3319         * gdbarch.sh (deprecated_register_virtual_type)
3320         (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
3321         (deprecated_dummy_write_sp): Delete.
3322         * gdbarch.h, gdbarch.c: Re-generate.
3323
3324         * gdbarch.sh (deprecated_register_bytes): Delete.
3325         * gdbarch.h, gdbarch.c: Re-generate.
3326         * regcache.c (deprecated_register_bytes): New function.
3327         * regcache.h (deprecated_register_bytes): Declare.
3328         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3329         * v850-tdep.c (v850_gdbarch_init): Update.
3330         * sh64-tdep.c (sh64_gdbarch_init): Update.
3331         * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
3332         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3333         * mcore-tdep.c (mcore_gdbarch_init): Update.
3334         * cris-tdep.c (cris_gdbarch_init): Update.
3335         * arm-tdep.c (arm_gdbarch_init): Update.
3336         * remote.c (init_remote_state): Update.
3337         * remote-vx.c (vx_prepare_to_store): Update.
3338         * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
3339         * irix5-nat.c (fetch_core_registers): Update.
3340         * cris-tdep.c (cris_register_bytes_ok): Update.
3341         * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
3342
3343         * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
3344         (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
3345         (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
3346         (mips_insn16_frame_base_address, mips_insn16_frame_base)
3347         (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
3348         (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
3349         (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
3350         (mips_insn32_frame_base_address, mips_insn32_frame_base)
3351         (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
3352         with mips_insn16 and mips_insn32.
3353
3354         Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
3355         * rs6000-tdep.c (rs6000_push_dummy_call)
3356         (rs6000_extract_return_value): Use register_size.
3357         * xstormy16-tdep.c (xstormy16_get_saved_register) 
3358         (xstormy16_extract_return_value): Ditto.
3359         * valops.c (value_assign): Ditto.
3360         * v850ice.c (v850ice_fetch_registers, v850ice_store_registers): 
3361         * v850-tdep.c (v850_extract_return_value): Ditto.
3362         * tracepoint.c (collect_symbol): Ditto.
3363         * target.c (debug_print_register): Ditto.
3364         * stack.c (frame_info): Ditto.
3365         * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
3366         * rom68k-rom.c (rom68k_supply_one_register): Ditto.
3367         * remote.c (struct packet_reg, remote_wait, remote_async_wait)
3368         (store_register_using_P): Ditto.
3369         * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
3370         * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
3371         * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
3372         * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
3373         * regcache.c (deprecated_read_register_bytes) 
3374         (deprecated_write_register_bytes, read_register) 
3375         (write_register): Ditto.
3376         * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
3377         (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
3378         * monitor.c (monitor_supply_register, monitor_fetch_register) 
3379         (monitor_store_register): Ditto.
3380         * mn10300-tdep.c (mn10300_pop_frame_regular) 
3381         (mn10300_print_register): Ditto.
3382         * mipsv4-nat.c (fill_fpregset): Ditto.
3383         * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset) 
3384         (mips64_fill_fpregset): Ditto.
3385         * mi/mi-main.c (register_changed_p, get_register)
3386         (mi_cmd_data_write_register_values): Ditto.
3387         * lynx-nat.c (fetch_inferior_registers, store_inferior_registers): 
3388         * irix5-nat.c (fill_gregset, fetch_core_registers): 
3389         * infrun.c (write_inferior_status_register): Ditto.
3390         * infptrace.c (fetch_register, store_register): Ditto.
3391         * infcmd.c (default_print_registers_info): Ditto.
3392         * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
3393         * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
3394         * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
3395         * hpux-thread.c (hpux_thread_fetch_registers)
3396         (hpux_thread_store_registers): Ditto.
3397         * hppah-nat.c (store_inferior_registers, fetch_register): 
3398         * findvar.c (value_from_register): Ditto.
3399         * dve3900-rom.c (fetch_bitmapped_register): 
3400         * cris-tdep.c (cris_gdbarch_init): Ditto.
3401         * alpha-tdep.h: Ditto.
3402         * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
3403
3404         * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
3405         DEPRECATED_REGISTER_RAW_SIZE from comments.
3406         * regcache.c (init_regcache_descr, regcache_dump): Do not check or
3407         use DEPRECATED_REGISTER_VIRTUAL_SIZE and
3408         DEPRECATED_REGISTER_RAW_SIZE.
3409         * findvar.c (value_of_register): Simplify by assuming that the
3410         registers raw and virtual sizes are identical.
3411         * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
3412         comment.
3413         * arch-utils.c (generic_register_size): Simplify by assuming
3414         register_type.
3415
3416         * regcache.c (legacy_read_register_gen, real_register) 
3417         (legacy_write_register_gen): Delete, not used.
3418
3419         * regcache.c (struct regcache_descr): Delete legacy_p.
3420         (init_legacy_regcache_descr): Delete function.
3421         (init_regcache_descr): Delete call to init_legacy_regcache_descr.
3422         Do not use deprecated register functions.
3423         (regcache_raw_read, deprecated_write_register_gen):
3424         (deprecated_read_register_gen, regcache_raw_write): Delete code
3425         predicated on legacy_p.
3426         (register_size): Delete check against register raw size.
3427
3428         * cris-tdep.c (cris_register_type): Replace
3429         cris_register_virtual_type.
3430         (cris_gdbarch_init): Update, set register_type.
3431
3432         * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
3433         * gdbarch.h, gdbarch.c: Re-generate.
3434         * arm-tdep.c    (arm_frameless_function_invocation): Delete.
3435         (arm_gdbarch_init) Do not set frameless function invocation.
3436         * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
3437         * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
3438         * frv-tdep.c (frv_frameless_function_invocation): Delete.
3439         (frv_gdbarch_init): Do not set frameless function invocation.
3440         * sh64-tdep.c (sh64_gdbarch_init): Ditto.
3441         * sh-tdep.c (sh_gdbarch_init): Ditto.
3442         * m32r-tdep.c (m32r_gdbarch_init): Ditto.
3443         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3444         * avr-tdep.c (avr_gdbarch_init): Ditto.
3445
3446         * blockframe.c (legacy_frame_chain_valid): Delete function.
3447
3448         * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
3449         and pc.  Update comments.
3450         (pc_in_dummy_frame): Delete function.
3451         (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
3452         use the "id".
3453         (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
3454         call_hi, top and pc, use the id.
3455         (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
3456
3457         * dummy-frame.c: Include "gdb_string.h".
3458         (generic_save_call_dummy_addr, generic_push_dummy_frame)
3459         (generic_save_dummy_frame_tos): Delete.
3460         (dummy_frame_push): New function, replaces above.
3461         * dummy-frame.h: Update copyright.
3462         (dummy_frame_push): Declare.
3463         * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
3464         (generic_save_call_dummy_addr): Delete declarations.
3465         * infcall.c: Include "dummy-frame.h".
3466         (call_function_by_hand): Add locals caller_regcache,
3467         caller_regcache_cleanup and dummy_id.  Replace push_dummy_frame
3468         with call to frame_save_as_regcache plus cleanup.  Delete calls to
3469         generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
3470         Move clear_proceed_status to just before the resume, add call to
3471         dummy_frame_push (discard cleanup).
3472         * Makefile.in (infcall.o): Add $(dummy_frame_h).
3473         (dummy-frame.o): Add $(gdb_string_h).
3474
3475 2004-08-01  Andrew Cagney  <cagney@gnu.org>
3476
3477         * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
3478         * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
3479         * dummy-frame.c (find_dummy_frame): Delete.
3480         (struct dummy_frame_cache, dummy_frame_sniffer)
3481         (dummy_frame_prev_register, dummy_frame_this_id)
3482         (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
3483         frame unwinder using a dummy_frame_cache.
3484
3485 2004-08-01  Andrew Cagney  <cagney@gnu.org>
3486
3487         * frame.h (frame_save_as_regcache): Declare.
3488         * frame.c (frame_save_as_regcache): New function.
3489         (do_frame_read_register): Replace do_frame_unwind_register.
3490         (frame_pop): Use frame_save_as_regcache.
3491         * dummy-frame.c (generic_push_dummy_frame): Use
3492         frame_save_as_regcache.
3493
3494 2004-08-01  Joel Brobecker  <brobecker@gnat.com>
3495
3496         * dwarf2read.c (dwarf_decode_lines): Do not consider the current
3497         file as included until we record the first line in the linetable.
3498
3499 2004-08-01  Andrew Cagney  <cagney@gnu.org>
3500
3501         * frame.h (deprecated_pop_dummy_frame)
3502         (deprecated_read_register_dummy)
3503         (deprecated_generic_find_dummy_frame): Delete.
3504         * dummy-frame.c (deprecated_generic_find_dummy_frame)
3505         (deprecated_read_register_dummy)
3506         (deprecated_find_dummy_frame_regcache)
3507         (discard_innermost_dummy)
3508         (deprecated_pop_dummy_frame): Delete.
3509         (dummy_frame_this_id): Simplify.
3510         (struct dummy_frame): Delete "fp" and "sp".
3511         (find_dummy_frame): Simplify.
3512         (generic_push_dummy_frame): Do not set "fp" or "sp".
3513         (fprint_dummy_frames): Do not print "fp" and "sp"
3514
3515 2004-08-01  Mark Kettenis  <kettenis@gnu.org>
3516
3517         * i386-tdep.c (I386_MAX_INSN_LEN): New define.
3518         (struct i386_insn): New structure.
3519         (i386_match_insn): New function.
3520         (i386_frame_setup_skip_insns): New variable.
3521         (i386_analyze_frame_setup): Change to use i386_match_insn and the
3522         array i386_frame_setup_insns of instructions that should be
3523         skipped inside the frame setup sequence.
3524
3525 2004-08-01  Andrew Cagney  <cagney@gnu.org>
3526
3527         * frame.h (deprecated_frame_xmalloc_with_cleanup)
3528         (frame_saved_regs_zalloc, frame_extra_info_zalloc)
3529         (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
3530         * stack.c (frame_info): Delete references to
3531         DEPRECATED_FRAME_INIT_SAVED_REGS and
3532         deprecated_get_frame_saved_regs.
3533         * frame.c (struct frame_info): Delete saved_regs and extra_info.
3534         (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
3535         (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
3536         (frame_unwind_register_signed)
3537         (frame_unwind_register_unsigned)
3538         (frame_unwind_unsigned_register): Use register_size.
3539         (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
3540         (deprecated_frame_xmalloc_with_cleanup)
3541         (frame_saved_regs_zalloc, frame_extra_info_zalloc)
3542         (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
3543
3544         * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
3545         * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
3546         * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
3547         * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
3548
3549         * infcall.c (call_function_by_hand): Do not use
3550         DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
3551         DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
3552         DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
3553         DEPRECATED_STACK_ALIGN.
3554
3555 2004-07-30  Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
3556
3557         Committed by Andrew Cagney.
3558         * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
3559
3560 2004-08-01  Andrew Cagney  <cagney@gnu.org>
3561
3562         * mips-tdep.c (mips16_frame_cache)
3563         (mips16_frame_this_id, mips16_frame_prev_register)
3564         (mips16_frame_unwind, mips16_frame_sniffer)
3565         (mips16_frame_base_address, mips16_frame_base)
3566         (mips16_frame_base_sniffer, mips32_frame_cache)
3567         (mips32_frame_this_id, mips32_frame_prev_register)
3568         (mips32_frame_unwind, mips32_frame_sniffer)
3569         (mips32_frame_base_address, mips32_frame_base)
3570         (mips32_frame_base_sniffer): Clone the mdebug unwinder into
3571         separate heuristic mips16 and mips32 unwinders.
3572         (mips_stub_frame_cache, mips_stub_frame_this_id)
3573         (mips_stub_frame_prev_register)
3574         (mips_stub_frame_unwind, mips_stub_frame_sniffer)
3575         (mips_stub_frame_base_address, mips_stub_frame_base)
3576         (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
3577         (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
3578         match true mdebug frames.
3579         (non_heuristic_proc_desc): Add forward declaration.
3580
3581 2004-08-01  Andrew Cagney  <cagney@gnu.org>
3582
3583         * config/mips/tm-irix6.h: Delete file.
3584         * config/mips/tm-irix5.h: Delete file.
3585         * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
3586         * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
3587
3588         * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
3589         * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
3590         * config/nm-gnu.h (NO_CORE_OPS): Delete.
3591         * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
3592         * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
3593         * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
3594         * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
3595         * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
3596         * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
3597         * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
3598         * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
3599         (TARGET_SIGNAL_RAW_VALUES): Delete.
3600         * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
3601         Delete.
3602         * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT) 
3603         (TARGET_HW_WATCH_LIMIT): Delete.
3604         * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
3605         * minimon.h: Delete file.
3606
3607         * trad-frame.c (trad_frame_get_this_base)
3608         (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
3609         functions.
3610         * trad-frame.h (trad_frame_set_this_base)
3611         (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
3612
3613 2004-07-31  Andrew Cagney  <cagney@gnu.org>
3614
3615         * trad-frame.c (trad_frame_get_prev_register): Rename
3616         trad_frame_get_prev_register.
3617         * vax-tdep.c (vax_frame_prev_register): Update.
3618         * trad-frame.h: Update.
3619         * trad-frame.c (trad_frame_get_register): Update.
3620         * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
3621         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
3622         Update.
3623         * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
3624         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
3625         Update.
3626         * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
3627         Update.
3628         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
3629         Update.
3630         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
3631         Update.
3632         * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
3633         Update.
3634         * s390-tdep.c (s390_frame_prev_register) 
3635         (s390_stub_frame_prev_register) 
3636         (s390_sigtramp_frame_prev_register): Update.
3637         * rs6000-tdep.c (rs6000_frame_prev_register): Update.
3638         * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
3639         * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
3640         * m88k-tdep.c (m88k_frame_prev_register) 
3641         * m68hc11-tdep.c (m68hc11_frame_prev_register) 
3642         * m32r-tdep.c (m32r_frame_prev_register): Update.
3643         * hppa-tdep.c (hppa_frame_prev_register_helper) 
3644         * frv-tdep.c (frv_frame_prev_register): Update.
3645         * d10v-tdep.c (d10v_frame_prev_register): Update.
3646         * cris-tdep.c (cris_frame_prev_register): Update.
3647         * avr-tdep.c (avr_frame_prev_register): Update.
3648         * arm-tdep.c (arm_prologue_prev_register) 
3649         (arm_sigtramp_prev_register): Update.
3650
3651 2004-07-31  Andrew Cagney  <cagney@gnu.org>
3652
3653         * frame.h (legacy_saved_regs_unwind)
3654         (legacy_frame_chain_valid, legacy_frame_p)
3655         (enum frame_type): Delete UNKNOWN_FRAME.
3656         * dummy-frame.c (dummy_frame_this_id): Simplify.
3657         * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
3658         * frame.c (struct frame_info): Delete the field "type".
3659         (legacy_saved_regs_prev_register, legacy_get_prev_frame)
3660         (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
3661         (legacy_saved_regs_unwind, legacy_frame_p)
3662         (frame_type_from_pc): Delete.
3663         (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
3664         (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
3665
3666 2004-07-31  Mark Kettenis  <kettenis@gnu.org>
3667
3668         * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
3669         indentation.
3670
3671         * mips-nat.c: Remove file.
3672         * Makefile.in (ALLDEPFILES): Remove mips-nat.c
3673         (mips-nat.o): Remove dependency.
3674
3675         * infptrace.c: Update copyright year.
3676         (fetch_register): Pass NULL in regcache_raw_supply call instead of
3677         explicitly setting the buffer to all zeroes.
3678
3679         * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
3680         (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
3681
3682 2004-07-30  Andrew Cagney  <cagney@gnu.org>
3683
3684         * GDB 6.2 released from gdb_6_2-branch.
3685
3686 2004-07-30  Baurjan Ismagulov  <ibr@ata.cs.hun.edu.tr>
3687
3688         * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
3689
3690         * exec.c (exec_file_attach):
3691         * nto-tdep.c (nto_find_and_open_solib):
3692         * pa64solib.c (pa64_solib_sizeof_symbol_table):
3693         * solib.c (solib_open):
3694         * somsolib.c (som_solib_sizeof_symbol_table):
3695         * source.c (is_regular_file, openp, open_source_file):
3696         * symfile.c (symfile_bfd_open):
3697         * wince.c (upload_to_device): Differentiate between the search for
3698         binary and source files.
3699
3700 2004-07-30  Andrew Cagney  <cagney@gnu.org>
3701
3702         * complaints.c (_initialize_complaints): Pass NULL to
3703         add_setshow_zinteger_cmd for help_doc.
3704         * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
3705
3706 2004-07-30  Andrew Cagney  <cagney@gnu.org>
3707
3708         Fix PR i18n/761.
3709         * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
3710         (.PHONY): Add all-po install-po, uninstall-po, clean-po,
3711         $(PACKAGE).pot and update-po.
3712         (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
3713         (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
3714         (update-po): New rules.
3715         (localedir): Define using autoconf.
3716         (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
3717         (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
3718         (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
3719         * configure.in: Generate CATALOGS and LINGUAS from contents of
3720         src/gdb/po/ directory.  Set @localedir@ in Makefile.in.
3721         * configure: Re-generate.
3722         * po/gdbtext: New file
3723         
3724 2004-07-30  Jerome Guitton  <guitton@gnat.com>
3725
3726         * MAINTAINERS: Reorder Write After Approval list in alphabetical
3727         order.
3728
3729 2004-07-30  David Lecomber  <dsl@sources.redhat.com>
3730
3731         * dwarf2read.c (read_file_scope): Set producer if attribute 
3732         present.
3733         (struct dwarf2_cu): Added new member producer.
3734
3735 2004-07-30  Jerome Guitton  <guitton@gnat.com>
3736
3737         * inflow.c (kill_command): release file handles in BFD.
3738         * exec.c (exec_file_attach): Ditto.
3739         * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
3740
3741 2004-07-29  Andrew Cagney  <cagney@gnu.org>
3742
3743         * PROBLEMS (mips-irix): Note that it is broken.
3744
3745 2004-07-29  Andrew Cagney  <cagney@gnu.org>
3746
3747         * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
3748         * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
3749
3750         * config/xm-nbsd.h: Delete file.
3751         * config/arm/xm-nbsd.h: Delete file.
3752         * config/i386/xm-nbsd.h: Delete file.
3753         * config/ns32k/xm-nbsd.h: Delete file.
3754         * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
3755         * config/i386/nbsdelf.mh (XM_FILE): Delete.
3756         * config/i386/nbsdaout.mh (XM_FILE): Delete.
3757         * config/arm/nbsdelf.mh (XM_FILE): Delete.
3758         * config/arm/nbsdaout.mh (XM_FILE): Delete.
3759
3760         * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
3761         * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
3762         * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
3763         * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
3764         * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
3765         * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
3766
3767         * config/powerpc/xm-linux.h: Delete empty file.
3768         * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
3769         * config/powerpc/linux.mh (XM_FILE): Delete.
3770         * config/m68k/xm-linux.h: Delete empty file.
3771         * config/m68k/linux.mh (XM_FILE): Delete.
3772         * config/ia64/xm-linux.h: Delete empty file.
3773         * config/ia64/linux.mh (XM_FILE): Delete.
3774         * config/arm/xm-linux.h: Delete empty file.
3775         * config/arm/linux.mh (XM_FILE): Delete.
3776         
3777         * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3778         * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
3779         * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3780         * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
3781         * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3782         * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
3783         * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3784         * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
3785
3786         * config/m68k/xm-m68k.h: Delete file.
3787         * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h".  Update
3788         copyright.
3789         (HOST_LONG_DOUBLE_FORMAT): Delete macro.
3790         * config/pa/xm-linux.h: Delete empty file.
3791         * config/pa/linux.mh (XM_FILE): Delete.
3792         * config/i386/xm-i386.h: Delete empty file.
3793         * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
3794         "i386/xm-i386.h".
3795         * config/i386/obsdaout.mh (XM_FILE): Delete.
3796         * config/i386/obsd64.mh (XM_FILE): Delete.
3797         * config/i386/fbsd64.mh (XM_FILE): Delete.
3798         * config/i386/nto.mh (XM_FILE): Delete.
3799         * config/i386/obsd.mh (XM_FILE): Delete.
3800         * config/i386/linux64.mh (XM_FILE): Delete.
3801         * config/i386/linux.mh (XM_FILE): Delete.
3802         * config/i386/i386sol2.mh (XM_FILE): Delete.
3803         * config/i386/i386gnu.mh (XM_FILE): Delete.
3804         * config/i386/fbsd.mh (XM_FILE): Delete.
3805         * config/i386/nbsd64.mh (XM_FILE): Delete.
3806
3807 2004-07-29  Andrew Cagney  <cagney@gnu.org>
3808
3809         * config/pa/xm-linux.h: Do not include "floatformat.h".
3810         (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3811         (HOST_LONG_DOUBLE_FORMAT): Delete macros.
3812         * config/i386/xm-i386.h: Do not include "floatformat.h".
3813         (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT) 
3814         (HOST_LONG_DOUBLE_FORMAT): Delete macros.
3815         * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3816         (HOST_LONG_DOUBLE_FORMAT): Delete macros.  Use
3817         GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
3818         GDB_HOST_LONG_DOUBLE_FORMAT instead.
3819         * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
3820         (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
3821         * configure, config.in: Regenerate.     
3822         * configure.host (gdb_host_float_format, gdb_host_double_format)
3823         (gdb_host_long_double_format): Set according to the host.
3824         
3825 2004-07-29  Andrew Cagney  <cagney@gnu.org>
3826
3827         * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
3828
3829 2004-07-28  Andrew Cagney  <cagney@gnu.org>
3830
3831         * PROBLEMS: Mention threads/1650.
3832         * NEWS: Mention the NPTL fix.
3833
3834 2004-07-28  Andrew Cagney  <cagney@gnu.org>
3835
3836         * cli/cli-decode.c (add_setshow_cmd): Delete function.
3837         (add_setshow_cmd_full): Make static.
3838         * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
3839         (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
3840         * cli/cli-decode.c (add_setshow_filename_cmd) 
3841         (add_setshow_string_cmd): New functions.
3842         * nto-tdep.c (_initialize_nto_tdep): Update.  Fix parameters.
3843         * mips-tdep.c (_initialize_mips_tdep): Update.
3844         * m32r-rom.c (_initialize_m32r_rom): Update.  Update copyright.
3845         * cli/cli-logging.c (_initialize_cli_logging): Update.
3846         * complaints.c (_initialize_complaints): Update.
3847         * remote.c (_initialize_remote): Update.
3848         
3849 2004-07-28  Andrew Cagney  <cagney@gnu.org>
3850
3851         * cli/cli-decode.c (add_setshow_zinteger_cmd)
3852         (add_setshow_cmd, add_setshow_auto_boolean_cmd)
3853         (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
3854         print parameters.  Make string parameters constant.
3855         * command.h: Update.  Update copyright.
3856         * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
3857         * observer.c (_initialize_observer): Ditto.
3858         * frame.c (_initialize_frame): Ditto.
3859         * complaints.c (_initialize_complaints): Ditto.
3860         * maint.c (_initialize_maint_cmds): Ditto.
3861         * target.c (initialize_targets): Ditto.
3862         * cli/cli-logging.c (_initialize_cli_logging): Ditto.
3863         * infcall.c (_initialize_infcall): Ditto.
3864         * arm-tdep.c (_initialize_arm_tdep): Ditto.
3865         * m32r-rom.c (_initialize_m32r_rom): Ditto.
3866         * remote-rdi.c (_initialize_remote_rdi): Ditto.
3867         * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
3868         * mips-tdep.c (_initialize_mips_tdep): Ditto.
3869
3870 2004-07-28  Andrew Cagney  <cagney@gnu.org>
3871
3872         * gdbtypes.c (lookup_primitive_typename): Delete function.
3873         * gdbtypes.h (lookup_primitive_typename): Delete declaration.
3874         * ada-lex.l: Use language_lookup_primitive_type_by_name.
3875         * gdbtypes.c (lookup_typename): Ditto.
3876         * f-exp.y (yylex): Ditto.
3877         * c-exp.y (yylex): Ditto, eliminate assignment in "if".
3878
3879         * scm-lang.c (c_builtin_types): Delete extern declaration.
3880         (scm_language_defn): Replace
3881         string_char_type and primitive_type_vector with
3882         la_language_arch_info.
3883         * jv-lang.c (java_language_defn): Replace
3884         string_char_type and primitive_type_vector with
3885         la_language_arch_info.
3886         * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
3887         c_builtin_types in comment.
3888         * c-lang.h (struct language_arch_info): Declare opaque.
3889         (c_language_arch_info): Declare.
3890         (c_builtin_types): Delete declaration.
3891         * c-lang.c (c_language_arch_info): Set string_char_type to
3892         builtin_char, not builtin_true_char.  Make global.
3893         (c_builtin_types): Delete array.
3894         (asm_language_defn, minimal_language_defn): Replace
3895         string_char_type and primitive_type_vector with
3896         la_language_arch_info.
3897
3898 2004-07-28  Andrew Cagney  <cagney@gnu.org>
3899
3900         * gdbtypes.h (struct builtin_type): Rename true_char to
3901         builtin_true_char.
3902         * gdbtypes.c (gdbtypes_post_init): Update.
3903         * c-lang.c (arch_info): New function.
3904         (enum c_primitive_types): New enum.
3905         (c_language_defn): Instead of string_char_type and
3906         primitive_type_vector set la_language_arch_info.
3907
3908 2004-07-28  Andrew Cagney  <cagney@gnu.org>
3909
3910         * language.h (struct language_arch_info): Fix typo
3911         s/primative/primitive/.
3912         * gdbtypes.c (lookup_primitive_typename): Ditto.
3913         * language.c (language_lookup_primitive_type_by_name)
3914         (unknown_language_arch_info): Ditto.
3915
3916 2004-07-27  Andrew Cagney  <cagney@gnu.org>
3917
3918         * defs.h (enum language): Add nr_languages.
3919         * language.h (struct language_arch_info): Define.
3920         (struct language_defn): Add la_language_arch_info.
3921         (language_lookup_primative_type_by_name): Declare.
3922         (language_string_char_type): Declare.
3923         * language.c (_initialize_language, language_gdbarch_post_init)
3924         (struct language_gdbarch, language_gdbarch_data): Implement
3925         per-architecture language information.
3926         (unknown_language_arch_info, language_string_char_type)
3927         (language_lookup_primative_type_by_name): New functions.
3928         (unknown_language_defn, auto_language_defn)
3929         (local_language_defn): Set la_language_arch_info to
3930         unknown_language_arch_info.
3931         (unknown_builtin_types): Delete.
3932         * gdbtypes.c (lookup_primitive_typename): Use
3933         language_lookup_primative_type_by_name.
3934         (create_string_type): Use language_string_char_type.
3935         * values.c (value_from_string): Use language_string_char_type.
3936         * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
3937         * p-lang.c (pascal_language_defn): Ditto.
3938         * m2-lang.c (m2_language_defn): Ditto.
3939         * jv-lang.c (java_language_defn): Ditto.
3940         * objc-lang.c (objc_language_defn): Ditto.
3941         * f-lang.c (f_language_defn): Ditto.
3942         * c-lang.c (c_language_defn, cplus_language_defn) 
3943         (asm_language_defn, minimal_language_defn): Ditto.
3944         
3945 2004-07-27  Andrew Cagney  <cagney@gnu.org>
3946
3947         * gdbtypes.h (struct builtin_type): Declare.
3948         (builtin_type): Declare.
3949         * d10v-tdep.c (d10v_register_type): Use builtin_type.
3950         * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
3951         (gdbtypes_post_init): New function.
3952         (builtin_type): New function.
3953
3954 2004-07-27  Kei Sakamoto  <sakamoto.kei@renesas.com>
3955
3956         * remote-m32r-sdi.c: Fix breakpoint bug.
3957         (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
3958         recv_char_data, recv_long_data): New functions to replace communication
3959         sequences.
3960
3961 2004-07-26  Michael Chastain  <mec.gnu@mindspring.com>
3962
3963         Document PR threads/1650.
3964         * PROBLEMS (Threads): Document problem with many threads
3965
3966 2004-07-26  Andrew Cagney  <cagney@gnu.org>
3967
3968         * gdb-mi.el: Move from here ...
3969         * mi/gdb-mi.el: ... to here.
3970
3971 2004-07-26  Andrew Cagney  <cagney@gnu.org>
3972
3973         Problem reported by Ashley Pittman <ashley@quadrics.com>.
3974         * main.c (captured_main): When in batch mode always detach.
3975
3976 2004-07-26  Andrew Cagney  <cagney@gnu.org>
3977
3978         * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
3979         and h8300 as broken.
3980         * NEWS: END-OF-LIFE frame compatibility module.
3981         * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
3982         specific comments.
3983
3984 2004-07-26  Andrew Cagney  <cagney@gnu.org>
3985
3986         * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
3987         * xcoffsolib.c (_initialize_xcoffsolib): Update.
3988         * wince.c (_initialize_wince): Update.
3989         * win32-nat.c (_initialize_win32_nat): Update.
3990         * varobj.c (_initialize_varobj): Update.
3991         * valops.c (_initialize_valops): Update.
3992         * utils.c (initialize_utils, initialize_utils): Update.
3993         * tui/tui-win.c (_initialize_tui_win): Update.
3994         * top.c (init_main): Update.
3995         * symfile.c (_initialize_symfile): Update.
3996         * source.c (_initialize_source): Update.
3997         * somsolib.c (_initialize_som_solib): Update.
3998         * solib.c (_initialize_solib): Update.
3999         * solib-frv.c (_initialize_frv_solib): Update.
4000         * serial.c (_initialize_serial): Update.
4001         * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
4002         * remote.c (_initialize_remote, _initialize_remote): Update.
4003         * remote-vx.c (_initialize_vx): Update.
4004         * remote-utils.c (_initialize_sr_support): Update.
4005         * remote-sds.c (_initialize_remote_sds): Update.
4006         * remote-mips.c (_initialize_remote_mips): Update.
4007         * remote-e7000.c (_initialize_remote_e7000): Update.
4008         * proc-api.c (_initialize_proc_api): Update.
4009         * printcmd.c: Update.
4010         * parse.c (_initialize_parse): Update.
4011         * pa64solib.c (_initialize_pa64_solib): Update.
4012         * p-valprint.c (_initialize_pascal_valprint): Update.
4013         * monitor.c (_initialize_remote_monitors): Update.
4014         * mips-tdep.c (_initialize_mips_tdep): Update.
4015         * mcore-tdep.c (_initialize_mcore_tdep): Update.
4016         * maint.c (_initialize_maint_cmds): Update.
4017         * lin-lwp.c (_initialize_lin_lwp): Update.
4018         * language.c (_initialize_language): Update.
4019         * kod.c (_initialize_kod): Update.
4020         * infrun.c (set_schedlock_func, _initialize_infrun): Update.
4021         * i386-tdep.c (_initialize_i386_tdep): Update.
4022         * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
4023         * gdbarch.sh: Update.
4024         * gdbarch.c: Re-generate.
4025         * gdb-events.sh: Update.
4026         * gdb-events.c: Re-generate.
4027         * frame.c (_initialize_frame): Update.
4028         * exec.c: Update.
4029         * demangle.c (_initialize_demangler): Update.
4030         * dcache.c (_initialize_dcache): Update.
4031         * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
4032         * cp-valprint.c (_initialize_cp_valprint): Update.
4033         * corefile.c (_initialize_core): Update.
4034         * command.h: Update.
4035         * cli/cli-decode.h: Update.
4036         * cli/cli-cmds.c (init_cli_cmds): Update.
4037         * charset.c (_initialize_charset): Update.
4038         * breakpoint.c (_initialize_breakpoint): Update.
4039         * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
4040         * alpha-tdep.c (_initialize_alpha_tdep): Update.
4041         * aix-thread.c (_initialize_aix_thread): Update.
4042
4043 2004-07-24  Mark Kettenis  <kettenis@gnu.org>
4044
4045         Partial fix for PR backtrace/1718.
4046         * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
4047         that GCC migrates into the prolugue.  Don't handle any
4048         instructions that clobber %ebx.
4049
4050 2004-07-23  Andrew Cagney  <cagney@gnu.org>
4051
4052         Use regcache_raw_collect instead of regcache_collect.
4053         * regcache.h (regcache_collect): Delete declaration.
4054         * regcache.c (regcache_colect): Delete function.
4055         * win32-nat.c (do_child_store_inferior_registers): Update.
4056         * sol-thread.c (sol_thread_store_registers): Update.
4057         * shnbsd-tdep.c (shnbsd_fill_reg): Update.
4058         * rs6000-nat.c (store_register): Update.
4059         * remote.c (store_register_using_P, remote_store_registers): Update.
4060         * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
4061         * ppc-linux-nat.c (store_altivec_register, store_spe_register) 
4062         (fill_vrregset, store_spe_registers, fill_gregset)
4063         (fill_gregset): Update.
4064         * nto-procfs.c (procfs_store_registers): Update.
4065         * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
4066         * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
4067         * m68klinux-nat.c (store_register, fill_gregset): Update.
4068         * m68k-tdep.c (fill_gregset): Update.
4069         * infptrace.c (store_register): Update.
4070         * i386-nto-tdep.c (i386nto_regset_fill): Update.
4071         * i386-linux-nat.c (store_register, fill_gregset): Update.
4072         * hppa-linux-nat.c (fill_gregset): Update.
4073         * go32-nat.c (store_register): Update.
4074         * armnbsd-nat.c (store_register, store_regs, store_fp_register)
4075         (store_fp_regs): Update.
4076         * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double) 
4077         (store_nwfpe_extended, store_fpregister, store_fpregs) 
4078         (store_register, store_regs, fill_gregset, fill_fpregset): Update.
4079         * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
4080         * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
4081         (store_regs_user_thread, store_regs_kernel_thread): Update.
4082
4083 2004-07-24  Mark Kettenis  <kettenis@gnu.org>
4084
4085         * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
4086         (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
4087         encoding.
4088         (dwarf2_build_frame_info): Adjust for removal of `addr_size'
4089         member of `struct comp_unit'.
4090
4091 2004-07-23  Andrew Cagney  <cagney@gnu.org>
4092
4093         * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
4094         DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
4095
4096 2004-07-23  Martin Hunt  <hunt@redhat.com>
4097         Kevin Buettner <kevinb@redhat.com>
4098
4099         * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
4100         alignment was being added to the offset instead of multiplied.
4101
4102 2004-07-23  Mark Kettenis  <kettenis@gnu.org>
4103
4104         * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
4105         changed signal trampoline in OpenBSD 3.5-current.
4106
4107         * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
4108         <machine/pcb.h> and "bsd-kvm.h".
4109         (sparc64nbsd_supply_pcb): New function.
4110         (_initialize_sparc64nbsd_nat): Renamed from
4111         _initialize_sparcnbsd_nat.  Enable libkvm interface.
4112         * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
4113         * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
4114         (LOADLIBES): New variable.
4115
4116         * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
4117
4118         * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
4119
4120 2004-07-21  Andrew Cagney  <cagney@gnu.org>
4121
4122         Use regcache_raw_supply instead of supply_register.
4123         * regcache.h (supply_register): Delete declaration.
4124         * regcache.c (supply_register): Delete function.
4125         * wince.c (do_child_fetch_inferior_registers): Update.
4126         * win32-nat.c (do_child_fetch_inferior_registers) 
4127         (fetch_elf_core_registers): Update.
4128         * v850ice.c (v850ice_fetch_registers): Update.
4129         * thread-db.c (thread_db_store_registers): Update.
4130         * sol-thread.c (sol_thread_store_registers): Update.
4131         * shnbsd-tdep.c (shnbsd_supply_reg): Update.
4132         * rs6000-nat.c (fetch_register): Update.
4133         * rom68k-rom.c (rom68k_supply_one_register): Update.
4134         * remote.c (remote_wait, remote_async_wait): Update.
4135         * remote-st.c (get_hex_regs): Update.
4136         * remote-sim.c (gdbsim_fetch_register): Update.
4137         * remote-sds.c (sds_fetch_registers): Update.
4138         * remote-rdp.c (remote_rdp_fetch_register): Update.
4139         * remote-rdi.c (arm_rdi_fetch_registers): Update.
4140         * remote-mips.c (mips_wait, mips_fetch_registers): Update.
4141         * remote-m32r-sdi.c (m32r_fetch_register): Update.
4142         * remote-hms.c (init_hms_cmds): Update.
4143         * remote-est.c (init_est_cmds): Update.
4144         * remote-e7000.c (get_hex_regs, fetch_regs_from_dump) 
4145         (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
4146         * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
4147         * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register) 
4148         (fetch_register, supply_vrregset, supply_vrregset)
4149         (fetch_spe_registers): Update.
4150         * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
4151         * monitor.c (monitor_supply_register): Update.
4152         * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
4153         * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
4154         (mipsnbsd_supply_fpreg): Update.
4155         * mips-nat.c (fetch_inferior_registers)
4156         (fetch_core_registers): Update.
4157         * mips-linux-tdep.c (supply_32bit_reg, supply_gregset) 
4158         (supply_fpregset, mips64_supply_gregset)
4159         (mips64_supply_fpregset): Update.
4160         * m68klinux-nat.c (fetch_register, supply_gregset)
4161         (supply_fpregset): Update.
4162         * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
4163         * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
4164         * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
4165         * irix5-nat.c (supply_gregset, supply_fpregset): Update.
4166         * infptrace.c (fetch_register): Update.
4167         * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
4168         * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
4169         * i386gnu-nat.c (fetch_fpregs, supply_gregset) 
4170         (gnu_fetch_registers, gnu_store_registers): Update.
4171         * i386-nto-tdep.c (i386nto_supply_gregset): Update.
4172         * i386-linux-nat.c (fetch_register, supply_gregset)
4173         (dummy_sse_values): Update.
4174         * hpux-thread.c (hpux_thread_fetch_registers): Update.
4175         * hppah-nat.c (fetch_register): Update.
4176         * hppa-linux-nat.c (fetch_register, supply_gregset) 
4177         (supply_fpregset): Update.
4178         * go32-nat.c (fetch_register): Update.
4179         * dve3900-rom.c (fetch_bitmapped_register)
4180         (_initialize_r3900_rom): Update.
4181         * cris-tdep.c (supply_gregset): Update.
4182         * abug-rom.c (init_abug_cmds): Update.
4183         * core-aout.c (fetch_core_registers): Update.
4184         * armnbsd-nat.c (supply_gregset, supply_fparegset)
4185         (fetch_register, fetch_fp_register): Update.
4186         * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
4187         (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
4188         (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
4189         * alphanbsd-tdep.c (fetch_core_registers): Update.
4190         * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
4191         * alpha-nat.c (fetch_osf_core_registers) 
4192         (fetch_osf_core_registers, fetch_osf_core_registers): Update.
4193         * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs) 
4194         (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
4195
4196 2004-07-21  Andrew Cagney  <cagney@gnu.org>
4197
4198         * PROBLEMS: Mention breakpoints/1702.
4199         * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
4200         that is known to work.
4201
4202 2004-07-21  Andrew Cagney  <cagney@gnu.org>
4203
4204         * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
4205         * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
4206         * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
4207         (handle_inferior_event): Wrap call to deprecated
4208         IGNORE_HELPER_CALL in #ifdef.
4209         * config/mips/tm-nbsd.h: Update.
4210
4211 2004-07-20  Jim Blandy  <jimb@redhat.com>
4212
4213         * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
4214         bfd_mach_ppc has no segment registers.
4215
4216         Include PowerPC SPR numbers for special-purpose registers.
4217         * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
4218         (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
4219         new member in initializer.
4220         (S, S4, SN4, S64): New macros for defining special-purpose
4221         registers.
4222         (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
4223         registers_403, registers_403GC, registers_505, registers_860,
4224         registers_601, registers_602, registers_603, registers_604,
4225         registers_750, registers_e500): Use them.
4226
4227         * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
4228         replace references with expression used to initialize variable.
4229
4230 2004-07-20  Andrew Cagney  <cagney@gnu.org>
4231
4232         * breakpoint.c (deprecated_read_memory_nobpt): Rename
4233         read_memory_nobpt.
4234         * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
4235         * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
4236         (s390_sigtramp_frame_sniffer): Update.
4237         * mn10300-tdep.c (mn10300_analyze_prologue): Update.
4238         * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
4239         * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction) 
4240         (mips32_fetch_instruction): Update.
4241         * mcore-tdep.c (get_insn): Update.
4242         * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
4243         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
4244         * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
4245         * i386-linux-tdep.c (i386_linux_sigtramp_start) 
4246         (i386_linux_rt_sigtramp_start): Update.
4247         * i386-linux-nat.c (child_resume): Update.
4248         * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
4249         * hppa-linux-tdep.c (insns_match_pattern): Update.
4250         * gdbcore.h: Update.
4251         * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
4252         * frame.c (safe_frame_unwind_memory): Update.
4253         * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
4254         * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
4255         * alpha-tdep.c (alpha_read_insn): Update.
4256
4257 2004-07-20  Andrew Cagney  <cagney@gnu.org>
4258
4259         * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
4260         containing both bytes and mask.  Add "frame_type".
4261         * tramp-frame.c (tramp_frame_start): Update.
4262         (tramp_frame_prepend_unwinder): Update.
4263         * mips-linux-tdep.c (mips_linux_o32_sigframe)
4264         (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
4265         (mips_linux_n64_rt_sigframe): Update.  Make "static const".
4266         * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
4267
4268 2004-07-19  Eli Zaretskii  <eliz@gnu.org>
4269
4270         * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
4271         bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
4272         sim/testsuite/sim/mips/hilo-hazard-[123].s, and
4273         sim/testsuite/sim/mips/fpu64-ps-sb1.s.
4274
4275 2004-07-17  Andrew Cagney  <cagney@gnu.org>
4276
4277         * NEWS, PROBLEMS: Update for 6.2.
4278
4279         * README: Update to 6.2.
4280
4281         * utils.c (xvasprintf): Call xstrvprintf.
4282
4283         * parse.c: Update copyright.
4284         (null_post_parser): Eliminate ARGSUSED.
4285
4286         * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
4287         * tui/tui-win.c (tui_get_cmd_list): Ditto.
4288         * symfile-mem.c (_initialize_symfile_mem): Ditto.
4289         
4290         * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
4291         * ppc-linux-nat.c: Use "Linux kernel".
4292         * hppa-linux-tdep.c: Use GNU/Linux.
4293         * hppa-linux-nat.c: Use GNU/Linux.
4294         * dwarfread.c: Add [sic] to use of Linux.
4295
4296         * hppa-linux-nat.c: Do not include <string.h>.
4297         (supply_fpregset): Remove "register" attribute.
4298
4299         * solib-frv.c (fetch_loadmap): Use xfree, not free.
4300
4301 2004-07-17  Mark Kettenis  <kettenis@gnu.org>
4302
4303         * configure.in: Define _MSE_INT_H on Solaris 9 too.
4304         * configure, config.in: Regenerated.
4305
4306         * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
4307         "bsd-kvm.h".
4308         (vaxbsd_supply_pcb): New function.
4309         (_initialize_vaxbsd_nat): New prototype and function.
4310         * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
4311         solib-sunos.o.
4312         (LOADLIBES): New variable.
4313         * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4314         (LOADLIBES): New variable.
4315         * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
4316         (LOADLIBES): New variable.
4317         * Makefile.in (vaxbsd-nat.o): Update dependencies.
4318
4319 2004-07-16  Andrew Cagney  <cagney@gnu.org>
4320
4321         * defs.h (event_loop_p): Replace variable declaration with macro,
4322         always 1.
4323         * main.c (captured_main): Delete options "-async" and "-noasync".
4324         (event_loop_p): Delete variable.
4325         * NEWS: Mention that "-async" and "-noasync" were removed.
4326
4327 2004-07-16  Andrew Cagney  <cagney@gnu.org>
4328
4329         * remote-m32r-sdi.c: Re-indent.
4330
4331 2004-07-16  Jim Blandy  <jimb@redhat.com>
4332
4333         * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
4334         (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
4335         (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
4336         missing MPC823 SPRs.
4337         (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
4338         incorrect.  (This was corrected in GDB's register name tables on
4339         2004-07-14.)
4340
4341         * rs6000-tdep.c (registers_602): Correct register name: "esassr"
4342         should be "esasrr" ("ESA Save and Restore Register").
4343
4344 2004-07-16  Andrew Cagney  <cagney@gnu.org>
4345
4346         * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
4347         calls, no longer applicable.  Update comments and rename parameter
4348         "step_frame" to "return_frame".
4349
4350 2004-07-16  Andrew Cagney  <cagney@gnu.org>
4351
4352         * frame.c (fprint_field): New function.
4353         (fprint_frame_id): Use fprint_field.
4354
4355 2004-07-15  Joel Brobecker  <brobecker@gnat.com>
4356
4357         * ada-lang.c (ada_language_defn): Remove commented out code.
4358
4359 2004-07-15  Jim Blandy  <jimb@redhat.com>
4360
4361         * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
4362         * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
4363
4364 2004-07-14  Jim Blandy  <jimb@redhat.com>
4365
4366         * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
4367
4368         * ppc-tdep.h (ppc_num_vrs): New enum constant.
4369
4370         * ppc-tdep.h (ppc_num_srs): New enum constant.
4371
4372         * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
4373         (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
4374         (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
4375         (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
4376         (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
4377         (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
4378         (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
4379         (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
4380         (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
4381         (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
4382         (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
4383         (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
4384         (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
4385         (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
4386         (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
4387         (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
4388         (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
4389         (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
4390         (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
4391         (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
4392         (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
4393         (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
4394         (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
4395         (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
4396         (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
4397         (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
4398         (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
4399         (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
4400         (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
4401         (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
4402         (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
4403         (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
4404         (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
4405         (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
4406         (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
4407         (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
4408         (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
4409         (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
4410         (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
4411         special-purpose register numbers.
4412
4413         * rs6000-tdep.c (registers_860): Correct register name.  (No PPC
4414         manual mentions 'md_twb', but many mention 'm_twb', and at that
4415         point in the register list.)
4416
4417 2004-07-14  Andrew Cagney  <cagney@gnu.org>
4418
4419         * utils.c (internal_warning_problem): Fix typo, "internal-warning"
4420         instead of "internal-error".
4421
4422 2004-07-10  Joel Brobecker  <brobecker@gnat.com>
4423
4424         * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
4425         that was inserted inside a comment.
4426
4427 2004-07-10  Randolph Chung  <tausq@debian.org>
4428
4429         * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New 
4430         function.
4431         (hppa_hpux_push_dummy_code): New function.
4432         (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
4433         Set find_global_pointer method.
4434
4435 2004-07-10  Mark Kettenis  <kettenis@gnu.org>
4436
4437         * NEWS: Mention BSD libkvm interface.
4438
4439 2004-07-10  Michael Snyder  <msnyder@redhat.com>
4440
4441         * symfile.c (generic_load): Comment typo.
4442         * stack.c (get_selected_block): Ditto.
4443         * regcache.c (regcache_cooked_read): Ditto.
4444         * monitor.c (monitor_debug): Ditto.
4445         * mips-tdep.c (mips_read_pc): Ditto.
4446         * i386-linux-nat.c (ps_get_thread_area): Ditto.
4447         * gdb_mbuild.sh: Ditto.
4448         * gdbarch.sh: Ditto.
4449         * gdbarch.h: Ditto.
4450
4451 2004-07-09  Paul N. Hilfinger  <Hilfinger@gnat.com>
4452
4453         * ada-tasks.c: Remove file.
4454         
4455         Remove ARI problems:
4456         
4457         * ada-exp.y (write_var_from_sym): Reformat to put operator at
4458         beginning of line.
4459
4460         * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
4461         Add comment.
4462         Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
4463         (MIN_OF_SIZE): Rename min_of_size.  Add comment.
4464         (UMAX_OF_SIZE): Renmae umax_of_size.  Add comment.
4465         (UMIN_OF_SIZE): Remove.
4466         (max_of_type): New function to replace orphan macro in gdbtypes.h
4467         (min_of_type): Ditto.
4468         (discrete_type_high_bound): Use max_of_type.
4469         (discrete_type_low_bound): Use min_of_type.
4470         (possible_user_operator_p): Move operator to beginning of line.
4471         (ada_is_variant_part): Ditto.
4472         (ensure_lval): Rewrite to avoid deprecated operations.
4473         (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
4474         rather than adding DEPRECATED_FUNCTION_START_OFFSET.
4475         (ada_enum_name): Remove assignments in 'if' statements.
4476         (build_ada_types): Add gdbarch parameter.
4477         (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
4478         with gdbarch_data_register_post_init.
4479         Use add_setshow_uinteger_cmd rather than add_set_cmd and 
4480         add_show_from_set.
4481
4482         * ada-valprint.c (inspect_it): Remove declaration.
4483         (repeat_count_threshold): Remove declaration.
4484         (ada_print_floating): Remove assignments in 'if' statements.
4485         (print_str): Move operator to beginning of line.
4486         
4487 2004-07-08  Jim Blandy  <jimb@redhat.com>
4488
4489         * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
4490
4491 2004-07-08  Bob Rossi  <bob@brasko.net>
4492
4493         * symtab.c (lookup_symtab): check return value of symtab_to_fullname
4494
4495 2004-07-06  Jeff Johnston <jjohnstn@redhat.com>
4496
4497         * language.h (struct_language_defn): Add new function pointer:
4498         la_class_name_from_physname.  Also add new prototype for
4499         language_class_name_from_physname.
4500         * language.c (language_class_name_from_physname): New function.
4501         (unk_lang_class_name): Ditto.
4502         (unknown_language_defn, auto_language_defn): Change
4503         to add unk_lang_class_name function pointer for
4504         la_class_name_from_physname.
4505         (local_language_defn): Ditto.
4506         * dwarf2read.c (guess_structure_name): Change to call
4507         language_class_name_from_physname.
4508         (determine_class_name): Ditto.
4509         * cp-support.c (class_name_from_physname): Renamed.
4510         (cp_class_name_from_physname): New name of function.
4511         * cp-support.h: Ditto.
4512         * c-lang.c (c_language_defn): Change to add NULL
4513         for class_name_from_physname function pointer.
4514         (cplus_language_defn): Change to add cp_class_name_from_physname.
4515         * jv-lang.c (java_class_name_physname): New function.
4516         (java_find_last_component): New static routine.
4517         (java_language_defn): Add java_class_name_from_physname pointer.
4518         * ada-lang.c (ada_language_defn): Change to add NULL
4519         for class_name_from_physname function pointer.
4520         * f-lang.c (f_language_defn): Ditto.
4521         * m2-lang.c (m2_language_defn): Ditto.
4522         * objc-lang.c (objc_language_defn): Ditto.
4523         * p-lang.c (pascal_language_defn): Ditto.
4524         * scm-lang.c (scm_language_defn): Ditto. 
4525
4526 2004-07-06  Andrew Cagney  <cagney@gnu.org>
4527
4528         Patch from Bart Robinson.
4529         * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
4530         (O_LARGEFILE): Define to 0, if not defined.
4531
4532 2004-07-03  Mark Kettenis  <kettenis@gnu.org>
4533
4534         * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
4535         <machine/pcb.h> and "bsd-kvm.h".
4536         (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
4537         (m68kbsd_supply_pcb): New function.
4538         (_initialize_m68kbsd_nat): New prototype and function.
4539         * Makefile.in (m68kbsd-nat.o): Update dependencies.
4540         * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4541         (LOADLIBES): New variable.
4542         * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
4543         (LOADLIBES): New variable.
4544
4545         * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
4546
4547 2004-07-03  Mark Kettenis  <kettenis@gnu.org>
4548
4549         * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
4550         <sys/proc.h>.
4551         (bsd_kvm_cmdlist): New variable.
4552         (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
4553         (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
4554         command and "kvm proc" command.
4555         * Makefile.in (bsd-kvm.o): Update dependencies.
4556
4557 2004-07-02  Mark Kettenis  <kettenis@gnu.org>
4558
4559         * osabi.c: Update copyright year.
4560         (generic_elf_osabi_sniffer): Tweak comment.  Look for OS-specific
4561         notes if EI_OSABI is set to ELFOSABI_HPUX.
4562
4563 2004-07-01  Michael Snyder  <msnyder@redhat.com>
4564
4565         * win32-nat.c (core_dll_symbols_add): Re-indent a small section
4566         that seems to have gotten whacked out of line.
4567
4568 2004-07-01  Mark Kettenis  <kettenis@gnu.org>
4569
4570         * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
4571         code.
4572
4573 2004-07-01  Paul N. Hilfinger  <Hilfinger@gnat.com>
4574
4575         * ada-lang.c (decode_packed_array): Minor change to comment.
4576         (ada_value_slice_ptr): New function. 
4577         (ada_value_slice): New function. 
4578         (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
4579         test.  Don't know why it is there.
4580         Change slice code to use ada_value_slice_ptr and ada_value_slice, and
4581         to avoid dereferencing huge arrays from which one is slicing.  
4582         (empty_array): Correct to return an array rather than
4583         a subrange value.
4584         * ada-valprint.c (print_optional_low_bound): Don't print lower bound
4585         on empty arrays (let'em use 'FIRST instead).
4586
4587 2004-07-01  Paul N. Hilfinger  <Hilfinger@gnat.com>
4588
4589         Address complaints from gdb_ari.sh:
4590         
4591         * ada-exp.y: Include gdb_string.h rather than string.h.
4592         (convert_char_literal): Reformat declaration.
4593         * ada-lang.h: Include opaque struct declaration for struct frame_info.
4594         * ada-lex.l: Change use of free to xfree (the macro would do so
4595         anyway, but this is harmless).
4596         Include gdb_string.h rather than string.h.
4597         * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
4598         
4599         * ada-lang.c (parse): Remove K&Rism in parameter list.
4600         (is_name_suffix): Correct Linux => GNU/Linux in comment.
4601         
4602 2004-06-30  Mark Kettenis  <kettenis@gnu.org>
4603
4604         * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
4605         dead code.
4606
4607 2004-06-30  Mark Kettenis  <kettenis@gnu.org>
4608
4609         * alphabsd-nat.c: Update copyright year.
4610         (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
4611
4612 2004-06-29  Joel Brobecker  <brobecker@gnat.com>
4613
4614         * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
4615         (i386_cygwin_in_solib_call_trampoline): New function.
4616         (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
4617         and skip_trampoline_code gdbarch methods.
4618
4619 2004-06-29  Jim Blandy  <jimb@redhat.com>
4620
4621         * Makefile.in (gdb_callback_h): Renamed from callback_h to the
4622         name actually used in the dependency lists.
4623
4624 2004-06-29  Randolph Chung  <tausq@debian.org>
4625
4626         * NEWS (New native configurations): Mention GNU/Linux/hppa.
4627
4628 2004-06-29  Corinna Vinschen  <vinschen@redhat.com>
4629
4630         * win32-nat.c (child_pid_to_exec_file): New function.
4631         (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
4632         functionality.
4633
4634 2004-06-28  Andrew Cagney  <cagney@gnu.org>
4635
4636         * defs.h (xstrvprintf): Declare.
4637         * utils.c (xstrvprintf): New function.
4638         (internal_vproblem, xstrprintf, xasprintf) 
4639         (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
4640         * serial.c (serial_printf): Ditto.
4641         * complaints.c (vcomplaint): Ditto.
4642
4643 2004-06-29  Corinna Vinschen  <vinschen@redhat.com>
4644
4645         * infcmd.c (attach_command): Move call to target_terminal_inferior
4646         behind loading symbol table.
4647
4648 2004-06-28  Andrew Cagney  <cagney@gnu.org>
4649
4650         * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
4651         change - add back extern deprecated_ui_loop_hook declaration.
4652
4653 2004-06-28  Andrew Cagney  <cagney@gnu.org>
4654
4655         * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
4656         xstrprintf.
4657         * varobj.c (varobj_gen_name, create_child, c_name_of_child)
4658         (c_value_of_variable): Ditto.
4659         * utils.c (internal_vproblem): Ditto.
4660         * solib-aix5.c (build_so_list_from_mapfile): Ditto.
4661         * remote.c (add_packet_config_cmd): Ditto.
4662         * remote-rdp.c (rdp_set_command_line): Ditto.
4663         * regcache.c (regcache_dump): Ditto.
4664         * frv-tdep.c (new_variant, new_variant): Ditto.
4665         * fbsd-proc.c (child_pid_to_exec_file): Ditto.
4666         (fbsd_find_memory_regions): Ditto.
4667         * breakpoint.c (create_thread_event_breakpoint) 
4668         (create_breakpoints): Ditto.
4669         * aix-thread.c (aix_thread_pid_to_str): Ditto.
4670         * ada-lang.c (is_package_name): Ditto.  Also delete xmalloc call.
4671
4672 2004-06-28  Joel Brobecker  <brobecker@gnat.com>
4673
4674         * ada-lang.c: Re-indent file, with some massaging to help indent
4675         a bit when the result is otherwise really too ugly.
4676
4677 2004-06-27  Ulrich Weigand  <uweigand@de.ibm.com>
4678
4679         * frame.h (struct frame_id): Change bit field type of stack_addr_p, 
4680         code_addr_p and special_addr_p to 'unsigned int'.
4681
4682 2004-06-27  Mark Kettenis  <kettenis@gnu.org>
4683
4684         * i386v4-nat.c: Update copyright year and tweak comment.
4685         (regmap): Remove trailing comma.
4686         (supply_gregset): Rename local variable i to regnum.  Call
4687         regcache_raw_supply instead of supply_register.
4688         (fill_gregset): Rename argument regno to regnum.  Call
4689         regcache_raw_collect instead of regcache_collect.
4690
4691 2004-06-27  Ulrich Weigand  <uweigand@de.ibm.com>
4692
4693         * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
4694         and special_addr_p.
4695         (frame_id_build, frame_id_build_special): Update comments.
4696         (frame_id_build_wild): New prototype.
4697         * frame.c (frame_id_build, frame_id_build_special): Fill in new
4698         struct frame_id fields.
4699         (frame_id_build_wild): New function.
4700         (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
4701
4702 2004-06-27  Mark Kettenis  <kettenis@gnu.org>
4703
4704         * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
4705         hppabsd-tdep.c.
4706
4707 2004-06-27  Joel Brobecker  <brobecker@gnat.com>
4708
4709         * ada-lang.c: Minor reformatting to conform to GNU coding standards.
4710
4711 2004-06-27  Joel Brobecker  <brobecker@gnat.com>
4712
4713         * ada-lang.c: Re-indent file.
4714
4715 2004-06-27  Joel Brobecker  <brobecker@gnat.com>
4716
4717         * ada-lang.c (symtab_symbol_info): Remove unused declaration.
4718         (no_symtab_msg): Likewise.
4719
4720 2004-06-27  Andreas Schwab  <schwab@suse.de>
4721
4722         * source.c: Fix whitespace.
4723
4724 2004-06-27  Mark Kettenis  <kettenis@gnu.org>
4725
4726         * configure.in: Include <sys/param.h> for td_pcb test.
4727         * configure: Regenerated.
4728
4729         * i386nbsd-nat.c: New file.
4730         * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
4731         i386obsd-nat.c and i386obsd-tdep.c.
4732         (i386nbsd-nat.o): New dependency.
4733         * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
4734         bsd-kvm.o.
4735         (LOADLIBES): New variable.
4736         * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
4737         bsd-kvm.o.
4738         (LOADLIBES): New variable.
4739
4740         * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
4741         (LOADLIBES): New variable.
4742
4743         * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
4744         fetching from BSD_KVM_PADDR.  Correctly lookup address for
4745         "_thread0".
4746
4747         * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
4748         "bsd-kvm.h".
4749         (amd64fbsd_supply_pcb): New funcion.
4750         (_initialize_amd64fbsd_nat): Enable libkvm interface.
4751
4752 2004-06-27    <david@streamline-computing.com>
4753
4754         Partial fix for PR cli/1056.
4755         * valarith.c: Check for zero in division and remainder 
4756         evaluation.
4757
4758 2004-06-27  Mark Kettenis  <kettenis@gnu.org>
4759
4760         * i387-tdep.c: Remove excessive whitespace.
4761
4762 2004-06-26  Andrew Cagney  <cagney@gnu.org>
4763
4764         * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
4765         * gdb-events.h, gdb-events.c: Re-generate.
4766         * tui/tui-hooks.c (tui_install_hooks): Update.
4767         (tui_remove_hooks): Update.
4768         * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
4769
4770 2004-06-26  Mark Kettenis  <kettenis@gnu.org>
4771
4772         * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
4773         (gregset_t, fpregset_t): Remove typedefs.
4774         (REG_OFFSET): Rename argument.
4775         (amd64bsd_r_reg_offset): Rename from reg_offset.
4776         (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
4777         Remove functions.
4778         (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
4779         of reg_offset.
4780         * Makefile.in (amd64fbsd-nat.o): Update dependencies.
4781
4782         * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
4783
4784         * vax-tdep.c: Tweak comment.
4785
4786         Add OpenBSD/hppa support.
4787         * NEWS (New native configurations): Mention OpenBSD/hppa.
4788         * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
4789         config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
4790         files.
4791         * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
4792         (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
4793         * configure.host: Add hppa*-*-openbsd*.
4794         * configure.tgt: Add hppa*-*-openbsd*.
4795
4796 2004-06-25  Andrew Cagney  <cagney@gnu.org>
4797
4798         * defs.h (deprecated_ui_loop_hook): Deprecated.
4799         * wince.c (child_wait): Update.
4800         * win32-nat.c (child_wait): Update.
4801         * v850ice.c (v850ice_wait): Update.
4802         * top.c (deprecated_ui_loop_hook): Update.
4803         * serial.h: Update.
4804         * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar) 
4805         (do_unix_readchar): Update.
4806         * ser-tcp.c (net_open): Update.
4807         * remote-sim.c (gdb_os_poll_quit): Update.
4808         * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
4809
4810 2004-06-24  Andrew Cagney  <cagney@gnu.org>
4811
4812         * defs.h (deprecated_pre_add_symbol_hook)
4813         (deprecated_post_add_symbol_hook): Deprecated.
4814         * symfile.c (symbol_file_add_with_addrs_or_offsets) 
4815         (symbol_file_add_with_addrs_or_offsets): Update references.
4816
4817 2004-06-24  Andrew Cagney  <cagney@gnu.org>
4818
4819         * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
4820         (ui_loop_hook, selected_frame_level_changed_hook): Declare.
4821         * wince.c (ui_loop_hook): Delete extern declaration.
4822         * win32-nat.c (ui_loop_hook): Delete extern declaration..
4823         * v850ice.c (ui_loop_hook): Delete extern declaration..
4824         * ser-unix.c (ui_loop_hook): Delete extern declaration..
4825         * ser-tcp.c (ui_loop_hook): Delete extern declaration..
4826         * remote-sim.c (ui_loop_hook): Delete extern declaration..
4827         * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
4828         ui_loop_hook declaration.
4829
4830 2004-06-24  Andrew Cagney  <cagney@gnu.org>
4831
4832         * objfiles.h (struct entry_info): Delete entry_func_lowpc and
4833         entry_func_highpc fields.
4834         * objfiles.c (init_entry_point_info): Do not clear
4835         entry_func_lowpc and entry_func_highpc.
4836         (objfile_relocate): Do not relocate entry_func_lowpc and
4837         entry_func_highpc.
4838         * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
4839         entry_func_highpc.
4840         * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
4841         entry_func_highpc.
4842         * blockframe.c (legacy_frame_chain_valid): Replace tests against
4843         entry_func_lowpc and entry_func_highpc with call to
4844         inside_entry_func.
4845
4846 2004-06-24  Mark Kettenis  <kettenis@gnu.org>
4847
4848         * sparc64-tdep.c (sparc64_store_arguments): Fix passing
4849         quad-precision floating point arguments in registers.
4850
4851 2004-06-24  Mark Kettenis  <kettenis@gnu.org>
4852
4853         From Michael Mueller <m.mueller99@kay-mueller.de>:
4854         * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
4855         account.
4856
4857 2004-06-22  Jeff Johnston  <jjohnstn@redhat.com>
4858
4859         * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
4860         to -1.
4861         * breakpoint.c (bpstat_stop_status): Move check for ignoring
4862         untriggered watchpoints to a separate if clause.  Update function
4863         comment regarding STOPPED_BY_WATCHPOINT argument.
4864
4865 2004-06-22  Jim Blandy  <jimb@redhat.com>
4866
4867         * gdbarch.sh: Doc fix.
4868
4869 2004-06-21  Martin Hunt  <hunt@redhat.com>
4870         Kevin Buettner <kevinb@redhat.com>
4871
4872         * config/mips/tm-mips.h (SP_REGNUM): Delete define.
4873         * mips-tdep.h (MIPS_SP_REGNUM): Define.
4874         * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
4875         to set_gdbarch_sp_regnum().  Use cooked register number.
4876         (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
4877
4878 2004-06-21  Andrew Cagney  <cagney@gnu.org>
4879
4880         * gdbarch.sh: When the macro field is empty, do not generate a
4881         macro definition.  When the macro field is "=", generate the macro
4882         name from the upper-case function name.
4883         (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
4884         (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
4885         (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
4886         (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
4887         (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
4888         (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
4889         (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
4890         (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
4891         (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
4892         (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
4893         (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
4894         (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
4895         (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
4896         (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
4897         (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
4898         (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
4899         (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
4900         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
4901         (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
4902         (DEPRECATED_USE_STRUCT_CONVENTION)
4903         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4904         (DEPRECATED_FRAME_INIT_SAVED_REGS)
4905         (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
4906         (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
4907         (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
4908         (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
4909         (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
4910         (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
4911         (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
4912         (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
4913         (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
4914         (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
4915         (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
4916         (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
4917         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
4918         (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
4919         (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
4920         (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
4921
4922 2004-06-21  Andrew Cagney  <cagney@gnu.org>
4923
4924         * gdbarch.sh: For gdbarch_dump, print the "function" rather than
4925         macro name, and the function rather than macro value.  Only wrap
4926         macro print statements in #ifdef.  Move format logic to where it
4927         is needed.
4928         * gdbarch.c: Re-generate.
4929         
4930         * gdbarch.sh (read): Delete "print_p" and "description", add
4931         "garbage_at_eol".  Check for non-empty garbage at end-of-line.
4932         Delete references to print_p.
4933         (TARGET_ARCHITECTURE): Delete print predicate.
4934         * gdbarch.c: Re-generate.
4935         
4936         * gdbarch.sh: Check that multi-arch methods do not provide a
4937         macro.
4938         (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
4939         (print_registers_info, print_float_info, print_vector_info)
4940         (adjust_breakpoint_address, remote_translate_xfer_address)
4941         (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
4942         (address_class_type_flags_to_name, unwind_sp): Remove the macro
4943         name from the multi-arch definition.
4944         
4945 2004-06-20  Andrew Cagney  <cagney@gnu.org>
4946
4947         * gdbarch.sh: Sort by the function, instead of macro name.
4948         * gdbarch.c: Re-generate.
4949         
4950 2004-06-20  Andrew Cagney  <cagney@gnu.org>
4951
4952         * gdbarch.sh: Use the function, instead of macro name in
4953         errors and the log file.
4954         (return_value): Remove stray ":" in spec.
4955
4956         * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
4957         * gdbarch.h, gdbarch.c: Re-generate.
4958         * Makefile.in (arch-utils.o): Update dependencies.
4959         * values.c (using_struct_return): Move code calling
4960         USE_STRUCT_CONVENTION to legacy_return_value, simplify.
4961         * stack.c (return_command): Move code calling STORE_RETURN_VALUE
4962         to legacy_return_value, simplify.
4963         * infcmd.c (print_return_value): Move code calling
4964         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
4965         to legacy_return_value, simplify.
4966         * infcall.c (call_function_by_hand): Move code calling
4967         EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
4968         * arch-utils.c: Update copyright.  Include "gdbcore.h".
4969         (legacy_return_value): New function.
4970         * arch-utils.h: Update copyright.
4971         (legacy_return_value): Declare.
4972         
4973 2004-06-20  Andrew Cagney  <cagney@gnu.org>
4974
4975         * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
4976         * gdbarch.h, gdbarch.c: Re-generate.
4977         * values.c (using_struct_return): Update call.
4978         * mcore-tdep.c: Update comment.
4979         * infcall.c (call_function_by_hand): Update comment.
4980         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4981         * arch-utils.h (always_use_struct_convention): Update.
4982         * v850-tdep.c (v850_gdbarch_init): Update.
4983         * sh64-tdep.c (sh64_gdbarch_init): Update.
4984         * sh-tdep.c (sh_gdbarch_init): Update.
4985         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4986         * mips-tdep.c (mips_gdbarch_init): Update.
4987         * mcore-tdep.c (mcore_gdbarch_init): Update.
4988         * m32r-tdep.c (m32r_gdbarch_init): Update.
4989         * ia64-tdep.c (ia64_gdbarch_init): Update.
4990         * h8300-tdep.c (h8300_gdbarch_init): Update.
4991         * frv-tdep.c (frv_gdbarch_init): Update.
4992         * cris-tdep.c (cris_gdbarch_init): Update.
4993         * arm-tdep.c (arm_gdbarch_init): Update.
4994         * alpha-tdep.c (alpha_gdbarch_init): Update.
4995
4996 2004-06-18  Michael Chastain  <mec.gnu@mindspring.com>
4997
4998         * PROBLEMS: Add more specific information, and a work-around,
4999         for PR gdb/1458.
5000
5001 2004-06-18  Andrew Cagney  <cagney@gnu.org>
5002
5003         * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
5004         * gdbarch.h, gdbarch.c: Re-generate.
5005         * ada-lang.c (ada_finish_decode_line_1): Update.
5006         * infrun.c (handle_inferior_event): Update.
5007         * infcall.c (find_function_addr): Update.
5008         * linespec.c (minsym_found): Update.
5009         * symtab.c (find_function_start_sal, skip_prologue_using_sal):
5010         Update.
5011         * blockframe.c (legacy_frameless_look_for_prologue): Update.
5012         * cli/cli-cmds.c (disassemble_command): Update.
5013         * vax-tdep.c (vax_gdbarch_init): Update.
5014
5015 2004-06-18  Mark Kettenis  <kettenis@gnu.org>
5016
5017         * i386-tdep.c (i386_collect_fpregset): Fix comment.
5018
5019 2004-06-17  Andrew Cagney  <cagney@gnu.org>
5020
5021         GDB 6.1.1 released from the GDB 6.1 branch.
5022         * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
5023         * PROBLEMS: Ditto.
5024
5025 2004-06-16  Daniel Jacobowitz  <dan@debian.org>
5026
5027         PR gdb/1658
5028         * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
5029         operation as a uleb128.  Found by Michael Coulter.
5030
5031 2004-06-16  Paul N. Hilfinger  <Hilfinger@gnat.com>
5032         
5033         * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
5034         make it non-static.
5035         * ada-lang.h (task_control_block): declaration moved from ada-task.c
5036         to ada-lang.h; this is needed to be able to implement the kill command
5037         in multi-task mode.
5038         (task_ptid): Ditto.
5039         (task_entry): Ditto.
5040         (task_list): Ditto.
5041         (ada_build_task_list): Ditto.
5042         
5043         * ada-lang.c: Conditionalize routines and data structures related 
5044         to breakpoints, exceptions, completion, and symbol caching on 
5045         GNAT_GDB, since these are not yet used in the submitted public sources.
5046         (ada_main_name): Editorial: Move definition out of exception-related 
5047         code.
5048
5049 2004-06-15  Andrew Cagney  <cagney@gnu.org>
5050
5051         * mips-tdep.c (non_heuristic_proc_desc): Delete call to
5052         deprecated_pc_in_call_dummy.
5053
5054 2004-06-15  Alan Modra  <amodra@bigpond.net.au>
5055
5056         * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
5057         bfd_get_section_size_before_reloc or _raw_size.
5058         * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
5059         * dwarf2read.c (dwarf2_locate_sections): Likewise.
5060         (dwarf2_read_section): Likewise.
5061         * elfread.c (elf_locate_sections): Likewise.
5062         * gcore.c (derive_heap_segment): Likewise.
5063         * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
5064         * remote-e7000.c (e7000_load): Likewise.
5065         * remote-m32r-sdi.c (m32r_load): Likewise.
5066         * remote-mips.c (mips_load_srec): Likewise.
5067         (pmon_load_fast): Likewise.
5068         * remote.c (compare_sections_command): Likewise.
5069         * symfile.c (add_section_size_callback): Likewise.
5070         (load_section_callback): Likewise.
5071         (pc_in_unmapped_range): Likewise.
5072         (pc_in_mapped_range): Likewise.
5073         (sections_overlap): Likewise.
5074         (list_overlays_command): Likewise.
5075         (simple_overlay_update_1): Likewise.
5076         (simple_overlay_update): Likewise.
5077         * tracepoint.c (remote_set_transparent_ranges): Likewise.
5078         * win32-nat.c (core_section_load_dll_symbols): Likewise.
5079
5080 2004-06-14  Randolph Chung  <tausq@debian.org>
5081
5082         * Makefile.in (hppa-hpux-tdep.o): Update dependency.
5083         * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make 
5084         static.
5085         (hppa_hpux_inferior_created): New function.
5086         (hppa_hpux_init_abi): Register observer.
5087         * symfile.c (hp_cxx_exception_support_initialized)
5088         (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
5089         (symbol_file_add_main_1, symbol_file_clear): Likewise.
5090
5091 2004-06-14  Randolph Chung  <tausq@debian.org>
5092
5093         * MAINTAINERS (Write After Approval): Alphabetize my entry
5094         correctly.
5095
5096 2004-06-14  Andrew Cagney  <cagney@gnu.org>
5097
5098         * MAINTAINERS (testsuite): List Michael Chastain as the lead
5099         testsuite maintainer.
5100
5101 2004-06-13  Andrew Cagney  <cagney@gnu.org>
5102
5103         * infcmd.c (print_return_value): Fix logic, allow
5104         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
5105
5106         * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
5107         defining any macros.
5108         * gdbarch.h: Re-generate.
5109
5110         * gdbarch.sh: Delete "level" attribute.  Only check for a macro
5111         redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
5112         * gdbarch.h: Re-generate.
5113
5114         * values.c (generic_use_struct_convention): Don't check gcc_p.
5115
5116         * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
5117         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
5118         * gdbarch.h, gdbarch.c: Regenerate.
5119         * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE) 
5120         (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
5121         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5122         deprecated_max_register_raw_size and
5123         deprecated_max_register_virtual_size.
5124         * v850-tdep.c (v850_gdbarch_init): Ditto.
5125         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5126         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5127         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5128         * cris-tdep.c (cris_gdbarch_init): Ditto.
5129
5130         * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
5131         * gdbarch.h, gdbarch.c: Re-generate.
5132         * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
5133         (m68hc11_use_struct_convention): Delete function.
5134         (m68hc11_extract_struct_value_address): Delete function.
5135         (m68hc11_return_value): New function.
5136         (m68hc11_gdbarch_init): Instead of store_return_value,
5137         extract_return_value, return_value_on_stack,
5138         deprecated_extract_struct_value_address and use_struct_convention,
5139         set return_value.
5140         * values.c (using_struct_return): Do not call
5141         RETURN_VALUE_ON_STACK.
5142         * arch-utils.h (generic_return_value_on_stack_not): Delete
5143         declaration.
5144         * arch-utils.c (generic_return_value_on_stack_not): Delete
5145         function.
5146         
5147 2004-06-12  Andrew Cagney  <cagney@gnu.org>
5148
5149         * values.c (register_value_being_returned): Delete function.
5150         * infcmd.c (legacy_return_value): Delete function.
5151         * infcall.c (call_function_by_hand): Inline
5152         "register_value_being_returned", simplify.
5153         * values.c (using_struct_return): Update comment, refer to
5154         print_return_value instead of register_value_being_returned.
5155         * infcmd.c (print_return_value): Inline calls to
5156         register_value_being_returned and legacy_return_value.  Simplify.
5157
5158 2004-06-11  Randolph Chung  <tausq@debian.org>
5159
5160         * somread.c (som_symtab_read): Exclude gcc local symbols.
5161
5162 2004-06-11  Randolph Chung  <tausq@debian.org>
5163
5164         * infrun.c (handle_inferior_event): Handle the case when a
5165         trampoline ends up in the runtime resolver, and if the trampoline
5166         has no name.  Rearrange the code so that all the trampoline
5167         processing happens before other step-out-of-range handling.
5168
5169 2004-06-11  Martin Hunt  <hunt@redhat.com>
5170
5171         * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
5172         has no fpu.
5173
5174 2004-06-10  Andrew Cagney  <cagney@gnu.org>
5175
5176         * blockframe.c (legacy_inside_entry_func): Delete.
5177         (legacy_frame_chain_valid): Inline call to
5178         legacy_inside_entry_func, simplify.
5179
5180 2004-06-10  Bob Rossi  <bob@brasko.net>
5181
5182         * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
5183         * dwarf2read.c (partial_die_info): Add dirname field.
5184         (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
5185         (read_partial_die): Save away DW_AT_comp_dir.
5186         * defs.h (symtab_to_filename): Removed.
5187         * source.c (find_and_open_source): Added.
5188         (open_source_file): Just calls find_and_open_source.
5189         (symtab_to_filename): Removed.
5190         (symtab_to_fullname, psymtab_to_fullname): Added.
5191         * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
5192         * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
5193         symtab_to_filename.
5194         * symtab.h (partial_symtab): Add dirname field.
5195         * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
5196         (mi_cmd_file_list_exec_source_file): Call new function
5197         symtab_to_fullname to find fullname.
5198         (mi_cmd_file_list_exec_source_files): Added.
5199         * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
5200         * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
5201
5202 2004-06-10  Andrew Cagney  <cagney@gnu.org>
5203
5204         * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
5205         to generic_use_struct_convention, the default value.
5206
5207         * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
5208         of abort.
5209
5210         * ns32k-tdep.c (ns32k_push_arguments): New function.
5211         (ns32k_gdbarch_init): Set deprecated_push_arguments.
5212         * infcall.c (call_function_by_hand): Call error instead of
5213         legacy_push_arguments.
5214         * value.h (legacy_push_arguments): Delete declaration.
5215         * valops.c (legacy_push_arguments): Delete function.
5216         (value_push): Delete function.
5217
5218 2004-06-10  Brian Ford  <ford@vss.fsi.com>
5219
5220         * coffread.c (coff_symfile_read): Prevent mixed debugging formats
5221         from corrupting/reinitializing the psymtab.  Support DWARF 2 frame
5222         info.
5223         * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
5224
5225 2004-06-10  Andrew Cagney  <cagney@gnu.org>
5226
5227         * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
5228         * gdbarch.h, gdbarch.c: Re-generate.
5229         * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
5230         parameters.
5231         * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
5232         * arm-tdep.c (arm_pc_is_thumb_dummy): Call
5233         deprecated_pc_in_call_dummy instead of
5234         DEPRECATED_PC_IN_CALL_DUMMY.
5235         (arm_skip_prologue): Ditto.
5236         * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
5237         (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
5238         * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
5239         (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
5240         Ditto.
5241         * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr) 
5242         (sh64_init_extra_frame_info, sh64_get_saved_register) 
5243         (sh64_pop_frame): Ditto.
5244         * mips-tdep.c (non_heuristic_proc_desc): Ditto.
5245         * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc) 
5246         (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
5247         * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc) 
5248         (h8300_pop_frame): Ditto.
5249         * blockframe.c (legacy_inside_entry_func) 
5250         (legacy_frame_chain_valid): Ditto.
5251         * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
5252         to deprecated_pc_in_call_dummy.
5253         
5254 2004-06-09  Andrew Cagney  <cagney@gnu.org>
5255
5256         * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
5257         provide a default value.
5258         (CONVERT_REGISTER_P): Default to generic_convert_register_p.
5259         * gdbarch.h, gdbarch.c: Re-generate.
5260         * arch-utils.c (generic_convert_register_p): Rename
5261         legacy_convert_register_p
5262         (legacy_register_to_value, legacy_value_to_register): Delete
5263         functions.
5264         * arch-utils.h (generic_convert_register_p): Rename
5265         legacy_convert_register_p.
5266         (legacy_register_to_value, legacy_value_to_register): Delete
5267         declarations.
5268
5269         * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
5270         (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
5271         (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
5272         * gdbarch.h, gdbarch.c: Re-generate.
5273         * infcmd.c (default_print_registers_info): Simplify.
5274         * findvar.c (value_of_register): Simplify.
5275         * mi/mi-main.c (get_register): Simplify.
5276         * arch-utils.c (legacy_convert_register_p): Always return 0.
5277         (legacy_register_to_value, legacy_value_to_register): Always call
5278         internal_error.
5279
5280         * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
5281         #ifdef CLEAR_INSN_CACHE code.
5282         * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
5283         Delete #ifdef CLEAR_DEFERRED_STORES code.
5284
5285         * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
5286
5287         * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
5288         copyright.
5289         * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
5290
5291         * config/mips/mipsv4.mh: Delete file.
5292
5293         * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
5294         unreferenced macro.
5295         (hpread_adjust_stack_address): Delete declaration.
5296
5297 2004-06-08  Andrew Cagney  <cagney@gnu.org>
5298
5299         * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5300         (attach, detach): When neither PT_ATTACH / PT_DETACH nor
5301         PTRACE_ATTACH / PTRACE_DETACH available call error.
5302         (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
5303         * infttrace.c (update_thread_state_after_attach, attach, detach):
5304         Remove #ifdef wrappers.
5305         * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
5306         * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5307         * config/nm-bsd.h (ATTACH_DETACH): Delete.
5308         * config/nm-sysv4.h (ATTACH_DETACH): Delete.
5309         * config/nm-nbsd.h (ATTACH_DETACH): Delete.
5310         * config/nm-linux.h (ATTACH_DETACH): Delete.
5311         * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
5312         * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
5313         * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
5314         * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
5315         * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
5316
5317 2004-06-08  Corinna Vinschen  <vinschen@redhat.com>
5318
5319         * configure.in: Set $configdir to the right OS specific value.
5320         Use value when setting $tcldir and $tkdir.
5321         * configure: Regenerate.
5322
5323 2004-06-06  Paul Brook  <paul@codesourcery.com>
5324
5325         * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
5326         records.
5327
5328 2004-06-08  Paul N. Hilfinger  <Hilfinger@gnat.com>
5329
5330         * ada-lang.c (lookup_symbol_in_language): New function to allow
5331         re-use of another language's symbol lookup code.  (Placed here
5332         temporarily while Ada support is being integrated into the public
5333         tree).  
5334         (restore_language): New auxiliary function for 
5335         lookup_symbol_in_language.
5336         * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
5337         temporarily while Ada support is being integrated into the public
5338         tree).
5339         
5340 2004-06-08  Alexandre Oliva  <aoliva@redhat.com>
5341
5342         * Makefile.in (check//%): New.
5343
5344         * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
5345         (mn10300_store_return_value): Rewrite.
5346         (mn10300_type_align): New.
5347         (mn10300_use_struct_convention): Rewrite.
5348         (mn10300_return_value): New, using all of the above.
5349         (mn10300_pop_frame_regular): Add saved_regs_size.
5350         (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
5351
5352         * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
5353         regs if PC is on movm.
5354
5355 2004-06-07  Jim Blandy  <jimb@redhat.com>
5356
5357         Add native Linux support for the PowerPC E500.
5358         * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
5359         * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
5360         all architectures except the E500.
5361         * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
5362         #definitions.
5363         (struct gdb_evrregset_t): New type.
5364         (have_ptrace_getsetevrregs): New variable.
5365         (get_spe_registers, read_spliced_spe_reg, fetch_spe_register, 
5366         fetch_spe_registers): New functions.
5367         (fetch_register): Call fetch_spe_register as appropriate.
5368         Assert that we're only passed raw register numbers.
5369         (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
5370         Don't fetch gprs if they're pseudoregisters.
5371         (set_spe_registers, write_spliced_spe_reg, store_spe_register,
5372         store_spe_registers): New functions.
5373         (store_register): Call store_spe_register as appropriate.
5374         Assert that we're only passed raw register numbers.
5375         (store_ppc_registers): Call store_spe_registers as appropriate.
5376         Don't store gprs if they're pseudoregisters.
5377         
5378 2004-06-07  Jeff Johnston  <jjohnstn@redhat.com>
5379
5380         * thread-db.c (thread_get_info_callback): Fill in the thread_info
5381         struct if one exists, even if we are dealing with a zombie thread.
5382
5383 2004-06-07  Andrew Cagney  <cagney@gnu.org>
5384
5385         * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
5386         * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
5387         Rename PC_REQUIRES_RUN_BEFORE_USE.
5388         * breakpoint.c (breakpoint_sals_to_pc): Update.  Wrap reference in
5389         #ifdef.
5390
5391 2004-06-07  Randolph Chung  <tausq@debian.org>
5392
5393         * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
5394         unwinding after sp has been saved to the stack but before the end
5395         of the prologue, and after the fp has been modified but before it has
5396         been saved to the stack.
5397         (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer): 
5398         Remove superfluous definitions.
5399         (hppa_gdbarch_init): Remove superfluous frame base sniffer.
5400
5401 2004-06-07  Guy Martin  <gmsoft@gentoo.org>
5402
5403         Committed by Randolph Chung.
5404         * hppa-linux-nat.c: Include the correct version of the header file
5405         depending on the kernel version.
5406
5407 2004-06-06  Randolph Chung  <tausq@debian.org>
5408
5409         * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
5410         (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
5411
5412 2004-06-06  Randolph Chung  <tausq@debian.org>
5413
5414         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline) 
5415         (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
5416         * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
5417         * hppa-tdep.c (hppa_symbol_address): New function definition.
5418         * hppa-tdep.h (hppa_symbol_address): New function declaration.
5419
5420 2004-06-06  Randolph Chung  <tausq@debian.org>
5421
5422         * hppa-tdep.h (struct value): Forward declaration.
5423         (gdbarch_tdep): Define tdep find_global_pointer method.
5424         * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
5425         associated with the function we are trying to call, and write it
5426         to the gp register.
5427         (hppa32_convert_from_funct_ptr_addr): New function.
5428         (hppa_find_global_pointer): New function.
5429         (hppa_gdbarch_init): Set default find_global_pointer method; set
5430         convert_from_func_ptr_addr method.
5431         * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
5432         (hppa_linux_init_abi): Set find_global_pointer method.
5433         * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
5434
5435 2004-06-06  Randolph Chung  <tausq@debian.org>
5436
5437         * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
5438         to struct value *function.
5439         * gdbarch.c: Regenerate.
5440         * gdbarch.h: Likewise.
5441         * infcall.c (call_function_by_hand): Pass entire function value
5442         to push_dummy_call.
5443
5444         * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
5445         (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
5446         * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
5447         * amd64-tdep.c (amd64_push_dummy_call): Likewise.
5448         * arm-tdep.c (arm_push_dummy_call): Likewise.
5449         * avr-tdep.c (avr_push_dummy_call): Likewise.
5450         * cris-tdep.c (cris_push_dummy_call): Likewise.
5451         * d10v-tdep.c (d10v_push_dummy_call): Likewise.
5452         * frv-tdep.c (frv_push_dummy_call): Likewise.
5453         * h8300-tdep.c (h8300_push_dummy_call): Likewise.
5454         * hppa-tdep.c (hppa32_push_dummy_call)
5455         (hppa64_push_dummy_call): Likewise.
5456         * i386-tdep.c (i386_push_dummy_call): Likewise.
5457         * ia64-tdep.c (ia64_push_dummy_call): Likewise.
5458         * m32r-tdep.c (m32r_push_dummy_call): Likewise.
5459         * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
5460         * m68k-tdep.c (m68k_push_dummy_call): Likewise.
5461         * m88k-tdep.c (m88k_push_dummy_call): Likewise.
5462         * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
5463         (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
5464         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
5465         (ppc64_sysv_abi_push_dummy_call): Likewise.
5466         * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
5467         (ppc64_sysv_abi_push_dummy_call): Likewise.
5468         * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
5469         * s390-tdep.c (s390_push_dummy_call): Likewise.
5470         * sh-tdep.c (sh_push_dummy_call_fpu)
5471         (sh_push_dummy_call_nofpu): Likewise.
5472         * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
5473         * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
5474         * vax-tdep.c (vax_push_dummy_call): Likewise.
5475
5476 2004-06-04  Jim Blandy  <jimb@redhat.com>
5477
5478         * ppc-linux-nat.c (fetch_register): Don't forget to pass the
5479         gdbarch argument to register_size.
5480
5481         * rs6000-tdep.c (rs6000_store_return_value): Use
5482         regcache_cooked_write_part instead of
5483         deprecated_write_register_bytes.
5484         (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
5485         not gdbarch_deprecated_store_return_value.
5486
5487         * ppc-linux-nat.c (store_register, fetch_register): Remove
5488         incorrect assertions.  Simplify and generalize handling of
5489         transfers whose sizes are not multiples of, or less than, sizeof
5490         (PTRACE_XFER_TYPE).
5491
5492 2004-06-04  Jeff Johnston  <jjohnstn@redhat.com>
5493
5494         * infrun.c (handle_inferior_event): Don't treat an invalid ptid
5495         as a new thread event.
5496         * thread-db.c (thread_get_info_callback): If the thread is a
5497         zombie, return TD_THR_ZOMBIE.
5498         (thread_from_lwp): If thread_get_info_callback returns
5499         TD_THR_ZOMBIE, check if the thread is still on the thread list
5500         and return a -1 ptid if not found.
5501         (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
5502         change the status to TARGET_WAITKIND_SPURIOUS.
5503
5504 2004-06-03  Corinna Vinschen  <vinschen@redhat.com>
5505
5506         * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
5507         double values in little endian mode.
5508
5509 2004-06-02  Albert Chin-A-Young  <china@thewrittenword.com>
5510
5511         Committed by Andrew Cagney.
5512         * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
5513         after last enum constant to avoid error from IBM C
5514         compiler.
5515
5516 2004-06-02  Jim Blandy  <jimb@redhat.com>
5517
5518         * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
5519         to 'message', and make it local to the lone block that uses it.
5520
5521         * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
5522
5523 2004-06-02  Paul N. Hilfinger  <hilfinger@gnat.com>
5524
5525         * ada-exp.y: Update copyright notice.
5526         Include block.h.
5527         
5528         Replace REGNAME, LAST, INTERNAL_VARIABLE with
5529         SPECIAL_VARIABLE and unify the treatment of these cases.
5530
5531         (write_attribute_call0): Remove.
5532         (write_attribute_call1): Remove.
5533         (write_attribute_calln): Remove.
5534         (save_qualifier): Add missing semicolon.
5535
5536         (simple_exp,exp): Decomment (i.e., reactivate) code that was 
5537         temporarily disabled to allow compilation with FSF head version.
5538
5539         (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and 
5540         use individual operators (OP_*) for all attributes.
5541         (exp syntax): Use write_int.
5542         Handle STRING literals with OP_STRING.
5543         (variable syntax): Add limit parameter to calls to 
5544         write_object_renaming.  
5545
5546         (temp_parse_space): New definition to hold entities that need
5547         only live until the next call to ada_parse.
5548         (string_to_operator): Rename fields of ada_opname_table entries.
5549
5550         (write_var_from_sym): Record block.
5551         (write_var_from_name): Minor reformatting.
5552         Make sure saved name is properly encoded in the case of multiple 
5553         matches, and set its language to Ada.
5554         Update comment.
5555         Modify to indicate unresolved name as symbol in the UNRESOLVED 
5556         namespace, allocated in temp_parse_space.
5557         (write_int): New function.
5558
5559         (write_object_renaming): Add max_depth parameter to limit
5560         chains of object renamings.
5561         Handle case where root of renaming expression is itself a renaming.
5562         Use temp_parse_space for temporary name buffer.
5563         Handle renamings to dereferenced pointers (___XEXA suffices).
5564         
5565         (ada_parse, yyerror, string_to_operator, 
5566         write_var_from_sym, write_var_from_name, write_attribute_call0, 
5567         write_attribute_call1, write_attribute_calln, 
5568         write_object_renaming): Protoize.
5569
5570         (_initialize_ada_exp): New function.
5571         
5572         * ada-lang.c: Update copyright notice.
5573         General terminology change to conform to GNAT compiler usage:
5574         mangle => encode, demangle => decode
5575         Include gdb_obstack.h.
5576         Include gdb_regex.h
5577         Include frame.h
5578         Include hashtab.h
5579         Include completer.h
5580         Include gdb_stat.h
5581         Include block.h
5582         Include infcall.h
5583         
5584         (ADA_RETAIN_DOTS): Make sure this is defined.
5585         (TRUNCATION_TOWARDS_ZERO): Define.
5586         (struct string_vector): Define.
5587         (unresolved_names): Remove definition.
5588         (xnew_string_vector): New function.
5589         (string_vector_append): New function.
5590         (extract_string): Make static.
5591         (ada_unqualified_name): New function.
5592         (add_angle_brackets): New function.
5593         (function_name_from_pc): New function.
5594         (place_on_stack): Rename to ensure_lval.
5595
5596         (ensure_lval): Renamed from place_on_stack.
5597         Make identity on lvals.
5598         Update comment.
5599         (is_nonfunction): New interface.
5600         Only symbols in LOC_CONST class can be enumerals.
5601         (fill_in_ada_prototype): Remove; now independent of language.
5602         (add_defn_to_vec): Add obstack and symtab arguments.
5603         Use obstack to hold collected definitions.
5604         (num_defns_collected): New function.
5605         (defns_collected): New function.
5606         (ada_resolve_subexp): Rename to resolve_subexp.
5607         (resolve_subexp): Renamed from ada_resolve_subexp.
5608         (ada_op_name): Return non-const result.
5609         (ada_decoded_op_name): Renamed from ada_op_name, now used for
5610         other purposes.
5611
5612         (to_fixed_array_type): Add declaration.
5613         (coerce_unspec_val_to_type): Remove offset parameter.
5614         (find_sal_from_funcs_and_line): New interface.
5615         (find_line_in_linetable): Ditto.
5616
5617         (all_sals_for_line): Rename to ada_sals_for_line and make
5618         global.
5619         Add new parameter. When set, do not ask the user to choose the 
5620         instance, but use the first one found instead.
5621         Use given line number in returned sals.
5622         Fix comment. 
5623         Skip the prologue if funfirstline is set.
5624         Correct for memory leak when 0 lines found.
5625
5626         (value_pos_atr): Use pos_atr.
5627         (pos_atr): New function.
5628         (standard_lookup): Add block parameter.
5629
5630         (makeTimeStart): Remove declaration and uses.
5631         (makeTimeStop): Remove declaration and uses.
5632
5633         (ada_completer_word_break_characters): Allow for VMS.
5634         (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
5635         (raise_sym_name): New constant.
5636         (raise_unhandled_sym_name): New constant.
5637         (raise_assert_sym_name): New constant.
5638         (process_raise_exception_name): New constant.
5639         (longest_exception_template): New constant.
5640         (warning_limit): New variable to limit warnings during expression
5641         evaluation.
5642         (warnings_issued): New variable to keep track of warnings issued.
5643         (known_runtime_file_name_patterns): New constant.
5644         (known_auxiliary_function_name_patterns): New constant.
5645         (symbol_list_obstack): New variable.
5646         
5647         (field_name_match,is_suffix,is_suppressed_name,ada_encode,
5648         ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
5649         lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
5650         find_sal_from_funcs_and_line, ada_breakpoint_rewrite, 
5651         ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field, 
5652         ada_variant_discrim_name, field_alignment, dynamic_template_type,
5653         ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type): 
5654         Replace use of deprecated STREQ and STREQN macros by calls to strncmp 
5655         and strcmp. 
5656
5657         (ada_get_field_index): New function.
5658         (lim_warning): New function.
5659         (ada_translate_error_message): New function.
5660         (MAX_OF_SIZE): New function.
5661         (MIN_OF_SIZE): New function.
5662         (UMAX_OF_SIZE): New function.
5663         (UMIN_OF_SIZE): New function.
5664         (discrete_type_high_bound): New function.
5665         (discrete_type_low_bound): New function.
5666         (base_type): New function.
5667         (do_command): Remove.
5668         
5669         (ada_update_initial_language): Use language_ada, not language_unknown.
5670         (ada_encode): Renamed from ada_mangle.
5671         Obey ADA_RETAIN_DOTS.
5672         (ada_decode): Renamed from ada_demangle.
5673         Update coding conventions.
5674         (decoded_names_store): New hash table.
5675         (ada_decode_symbol): New function.
5676         (ada_la_decode): New function.
5677         
5678         (modify_general_field): Correct computations of offset and bit 
5679         position.
5680         (desc_base_type): Handle ref types, too.
5681         (ada_is_direct_array_type): New function.
5682
5683         (ada_is_simple_array): Rename to ada_is_simple_array_type.
5684         (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
5685         (ada_is_bogus_array_descriptor,ada_type_of_array,
5686         ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
5687         ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed 
5688         ada_is_array_descriptor_type.
5689         
5690         (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
5691         (ada_is_packed_array_type): Handle pointers or 
5692         references to packed arrays as well.
5693         (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
5694         (decode_packed_array_type): Search for the packed array type 
5695         symbol in the currently selected block and associated 
5696         superblocks too.
5697         Use lookup_symbol again.
5698
5699         (decode_packed_array): Handle pointers and references.
5700         Update call to coerce_unspec_val_to_type.
5701         (decode_packed_array_type,value_subscript_packed): Limit warnings.
5702         (ada_value_primitive_packed_val): Improve comment.
5703         
5704         (ada_index_type): Substitute int type for "undefined".
5705         (ada_index_type,ada_array_bound_from_type,ada_array_bound,
5706         ada_array_langth, ada_is_string_type): Use renamed 
5707         ada_is_simple_array_type.
5708         (empty_array): New function.
5709
5710         (ada_resolve):  Rename to resolve.
5711         (resolve): Make static.
5712         Call renamed resolve_subexp.
5713         Update comment.
5714         (ada_resolve_subexp): Rename to resolve_subexp.
5715         (resolve_subexp): Update comment.
5716         Decomment disabled code.
5717         Add LOC_COMPUTED* cases.
5718         Modify to use temporary struct symbols (marked as being in 
5719         UNDEF_NAMESPACE) to indicate unresolved names, instead of 
5720         OP_UNRESOLVED_VALUE.
5721         Remove OP_ATTRIBUTE; use individual opcodes for attributes.     
5722         Add OP_STRING case.
5723         Remove OP_ARRAY.
5724         Use SYMBOL_PRINT_NAME instead of ada_demangle.
5725         Use new ada_lookup_symbol_list interface.
5726         Use new ada_resolve_function interface.
5727         Remove OP_TYPE case.
5728
5729         (ada_args_match): Idiot proof against null actuals.
5730         Use intermediate variables to clarify.
5731         (ada_resolve_function): Update comment and interface.
5732         (mangled_ordered_before): Rename to encoded_ordered_before and
5733         update comment.
5734         (sort_choices): Update comment and interface.
5735         Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
5736         (user_select_syms): New interface.
5737         Use new sort_choices interface.
5738         Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
5739         (possible_user_operator_p): Idiot-proof against null values.
5740         (ada_simple_renamed_entity): Don't make cleanup; rely on 
5741         caller to free result string.
5742         Remove const from return type.
5743         (make_array_descriptor): Rename uses of place_on_stack to 
5744         ensure_lval.
5745         Make sure that arrays are on stack.
5746         
5747         (HASH_SIZE): Define.
5748         (struct cache_entry): Define.
5749         (cache_space): Define.
5750         (cache): Define.
5751         (clear_ada_sym_cache): New function.
5752         (find_entry): New function.
5753         (lookup_cached_symbol): New function.
5754         (defn_vector_size): Define.
5755         (cache_symbol): New function.
5756         (defn_symbols): Remove.
5757         
5758         (standard_lookup): Use lookup_symbol_in_language to get effect of
5759         C lookup.
5760         Cache results.
5761         
5762         (symbol_completion_match): New function.
5763         (symbol_completion_add): New function.
5764         (ada_make_symbol_completion_list): New function.
5765
5766         (ada_lookup_partial_symbol,ada_lookup_simple_minsym, 
5767         add_symbols_from_enclosing_procs,remove_extra_symbols): Replace 
5768         DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME. 
5769         (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
5770         
5771         (ada_lookup_simple_minsym): New function.
5772         (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
5773
5774         (add_symbols_from_enclosing_procs): New interface.
5775         Conditionalize more helpfully.
5776         Don't bother if program isn't running.
5777         Use new interface to get_frame_block.
5778         Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
5779         
5780         (remove_extra_symbols): New interface.
5781         (xget_renaming_scope): New function.
5782         (is_package_name): New function.
5783         (renaming_is_visible): New function.
5784         (remove_out_of_scope_renamings): New function.
5785
5786         (ada_lookup_symbol_list): New interface.
5787         Properly reinitialize the symbol list obstack.
5788         Don't call add_symbols_from_enclosing_procs if we start from a
5789         static or global block.
5790         Use new interfaces to ada_add_block_symbols, add_defn_to_vec, 
5791         add_symbols_from_enclosing_procs.
5792         Add symtab data to cached entries.
5793         Handle symbols prefixed with
5794         "standard__" specially; strip prefix and don't look in local symbols.
5795         Do not include out of scope renaming symbols in list of 
5796         symbols returned.
5797         Add const to block parameter.
5798         Move check for non-local, non-global symbols earlier.  
5799         Remove timing stuff.
5800         (ada_lookup_symbol): New interface.
5801         Find symtab as well.
5802         (ada_lookup_symbol_nonlocal): New function.
5803
5804         (is_name_suffix): Enhance suffix detection to recognize
5805         an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
5806         (is_dot_digits_suffix): New function.
5807         (wild_match): Ignore ".[:digit:]*" suffixes during matches.
5808         
5809         (ada_add_block_symbols): New interface.  Use obstack to return results
5810         in a vector of struct ada_symbol_infos.  Add symtab argument.
5811         Use new interface to add_defn_to_vec.
5812         Remove calls to fill_in_ada_prototype.
5813         Use BLOCK_BUCKETS, BLOCK_BUCKET.
5814         
5815         (ada_finish_decode_line_1): Add const qualification to local to fix
5816         warning.
5817         Start looking in static block for functions to avoid attempts 
5818         to search frame chain for up-level variables.
5819         Adapt to new ada_sals_for_line interface.
5820         Use new interfaces to ada_lookup_symbol_list and user_select_syms.
5821         Handle quoting of the function name inside the spec string.
5822         Skip prologue when funfirstline is set and update the 
5823         function documentation to that effect.
5824
5825         (debug_print_lines, debug_print_block, debug_print_blocks, 
5826         debug_print_symtab): Remove.
5827
5828         (ada_main_name): New function.  
5829         (ada_exception_breakpoint_type): New function.
5830         (is_known_support_routine): New function.
5831         (ada_find_printable_frame): Renamed from find_printable_frame and made
5832         global.
5833         Remove level parameter.
5834         Use new interface to select_frame.
5835
5836         (begin_command): Remove.
5837         (ada_adjust_exception_stop): New function.
5838         (ada_print_exception_stop): New function.
5839         (exception_name_from_cond): New function.
5840         (ada_report_exception_break): Replace disabled code with 
5841         conditionalization on GNAT_GDB.
5842         Get the exception name from the condition string.
5843         Remove and move functionality into new functions 
5844         ada_print_exception_breakpoint_task and 
5845         ada_print_exception_breakpoint_nontask.
5846         (error_breakpoint_runtime_sym_not_found): New function.
5847         (is_runtime_sym_defined): New function.
5848         (ada_breakpoint_rewrite): Uncomment suppressed code.
5849         Use symbolic error-message and runtime-symbol names.
5850         Surround runtime symbol names in quotes.
5851         Allow non-specific breakpoints on exceptions and assertions before
5852         program starts.
5853         
5854         (ada_is_tagged_type): Add parameter.
5855         (ada_is_tag_type): New function.
5856         (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
5857         (ada_variant_discrim_type): Ditto.
5858         (value_tag_from_contents_and_address): New function.
5859         (type_from_tag): New function.
5860         (struct tag_args): New structure used to communicate with
5861         ada_tag_name_1.
5862         (ada_tag_name_1): New function.
5863         (ada_tag_name): New function.
5864
5865         (ada_scan_number): Update comment.
5866         (find_struct_field): New function.
5867         (ada_search_struct_field): Make static.
5868         (ada_value_struct_elt): New version that returns references when
5869         given pointers or references to structs.
5870         (ada_lookup_struct_elt_type): Add 'refok' parameter.
5871         (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
5872         interface.
5873         (ada_value_ind): Use new ada_to_fixed_value interface.
5874         (ada_coerce_ref): Ditto.
5875         (field_offset): Remove.
5876
5877         (ada_find_any_symbol): New function, extracted from ada_find_any_type.
5878         (ada_find_renaming_symbol): New function.
5879         (ada_prefer_type): Prefer named types over unnamed ones.
5880         (variant_field_index): New function.
5881         (contains_variant_part): Removed: subsumed by variant_field_index.
5882         (ada_template_to_fixed_record_type): New function, mostly from
5883         template_to_fixed_record_type.
5884         (template_to_fixed_record_type): 
5885         Do not scan the type fields beyond the last one; prevents a 
5886         potential SEGV.
5887         Handle case where variant field is listed BEFORE discriminant it 
5888         depends on.
5889         Fix calculation of record length when bit length is 
5890         not evenly divisible by char length.
5891         Move code to ada_template_to_fixed_record_type and call it.
5892
5893         (template_to_static_fixed_type): Revise comment.  
5894         Modify to work on ordinary record types as well as templates, 
5895         so as to handle fields that use ___XVE or ___XVU encodings. 
5896         (to_record_with_fixed_variant_part): Fill out comment.
5897         Initialize C++ stuff in right type.
5898         Allow case where DVAL is null.
5899         Handle case where variant field is not last.
5900         Fix typo concerning record length.
5901         (to_fixed_record_type): Decomment disabled code.
5902         (to_fixed_record_type): Use variant_field_index instead of 
5903         contains_variant_part.
5904         (to_fixed_variant_branch_type): Ditto.
5905         (to_fixed_array_type): Decomment disabled code.
5906         (ada_to_fixed_type): Convert tagged types to the specific type.
5907         Deactivate the size-check for array types in order to avoid 
5908         some false size alarms.
5909         (to_static_fixed_type): Decomment disabled code.
5910         Modify to call template_to_static_fixed_type
5911         on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
5912         (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
5913         Remove valaddr argument, as it is never really used.
5914         (ada_to_fixed_value): Change interface to act on single struct value*
5915         operand.
5916         (adjust_pc_past_prologue): New function.
5917         (ada_attribute_name): Modify to take enum exp_opcode argument.
5918                 
5919         (ada_enum_name): Recognize new homonym-distinguishing convention.
5920         Adjust local variable's type to remove compiler warning.
5921         Fix a small problem in the part that unqualifies the enumeration name.
5922         (ada_value_binop): New function.
5923         (ada_value_equal): New function.
5924
5925         (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
5926         Don't give error message when not doing normal evaluation 
5927         and a tagged type doesn't seem to contain a structure member.
5928         Give error message for packed arrays.
5929         For indexing arrays, handle pointers to packed arrays correctly.
5930         Handle case of 'first and 'last attributes of bare integral type 
5931         without encoded subtype info.  
5932         Remove some unnecessary casts.
5933         Fix uninitialized value of type in computing 'first, 'last, or 'length
5934         of array object.  
5935         Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
5936         Remove binop_user_defined_p tests and value_x_binop and value_x_unop
5937         calls.
5938         Attributes are now exp_opcode values.
5939         Correct treatment of 'modulus.
5940         Better error message for taking 'length of wrong kind of type; 
5941         improve comment.
5942         Change EVAL_NORMAL to noside for consistency.
5943         Use ada_value_binop for DIV, MOD, REM.
5944         Make special case out of array of length 0, since an argument 
5945         of 0 upsets some platforms' malloc.
5946         Use OP_STRING instead of OP_ARRAY.
5947         For slice, add check that we have an array type before extracting 
5948         a slice out of it.  Avoids a SEGV.
5949         When evaluating an array slice, if the array type is a reference to 
5950         an aligner type, then replace the aligner type by the actual type.
5951         Decomment disabled code.
5952         Remove some dead code.
5953         Use temporary struct symbols (marked as being in UNDEF_NAMESPACE) 
5954         to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
5955         Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE, 
5956         and UNOP_MBR to UNOP_IN_RANGE.
5957         If an array type has a parallel ___XVE type, then use it.
5958         Turn arrays into pointers for lvalue arrays.
5959         Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
5960         bounds error and handle 0-length slices.
5961         Use lim_warning.
5962         When selecting fields, apply ada_to_fixed_value (because the fields 
5963         might have ___XVU or ___XVE encodings even if not dynamic.)
5964         Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
5965         (ada_is_system_address_type): New function.
5966
5967         (get_var_value): Use new interface to ada_lookup_symbol_list.
5968         (get_int_var_value): New interface.
5969         (to_fixed_range_type): Allow unknown bound, with warning.
5970         (ada_is_modular_type): Decomment disabled code.
5971         (ADA_OPERATORS): New definition.
5972         (ada_operator_length): New function.
5973         (ada_expr_op_name): New function.
5974         (ada_forward_operator_length): New function.
5975         (ada_dump_subexp_body): New function.
5976         (ada_print_subexp): New function.
5977         (ada_exp_descriptor): New constant.
5978         (ada_op_print_tab): Add 'size.  Remove FIXMEs.
5979         (ada_language_defn): Add ada_exp_descriptor entry.
5980         Change ada_parse => parse.
5981         Add post-parser entry.
5982         Use ada-specific non-local symbol lookup.
5983         Don't use C-style arrays. 
5984         String lower-bound is 1.
5985         Decomment disabled code.        
5986         (parse): New function.
5987         New fields ada_translate_error_message, ada_lookup_symbol, 
5988         ada_lookup_minimal_symbol.
5989         
5990         * ada-lang.h: Update copyright dates.
5991         Replace the mangle/demangle terminology throughout by the
5992         more appropriate encode/decode one. 
5993         Include breakpoint.h.
5994         Forward declare struct partial_symbol, struct block.
5995         (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
5996         (EXTRACT_ADDRESS): Remove.
5997         (EXTRACT_INT): Remove.
5998         (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
5999         (MAX_ENCLOSING_FRAME_LEVELS): Define.
6000         (MAX_RENAMING_CHAIN_LENGTH): Define.
6001         (struct ada_opname_map): mangled => decoded, demangled=>encoded.
6002
6003         (enum task_states): Remove.
6004         ada_task_states: Remove.
6005         (fat_string): Remove.
6006         (struct entry_call): Remove.
6007         (struct task_fields): Remove.
6008         (struct task_entry): Remove.
6009
6010         (struct ada_symbol_info): Define.
6011         (enum ada_attribute): Remove.
6012         (enum ada_operator): Define.
6013         
6014         (ada_get_field_index): Declare.
6015         (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
6016         (ada_is_simple_array): Rename to ada_is_simple_array_type.
6017         (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6018         (ada_lookup_symbol_list): New interface.
6019         (ada_decode_symbol): Declare.
6020         (ada_decode): Declare.
6021         (ada_lookup_symbol): New interface.
6022         (ada_update_initial_language): Declare.
6023         (ada_lookup_simple_minsym): Declare.
6024         (user_select_syms): New interface.
6025         (ada_sals_for_line): Declare.
6026         (ada_is_tagged_type): New interface.
6027         (ada_tag_name): Declare.
6028         (ada_lookup_struct_elt_type): Remove declaration.
6029         (ada_search_struct_field): Remove declaration.
6030         (ada_attribute_name): New interface.
6031         (ada_is_system_address_type): Declare.
6032         (ada_to_fixed_value): Remove declaration.
6033         (ada_template_to_fixed_record_type_1): Declare.
6034         (get_int_var_value): New interface.
6035         (ada_find_any_symbol): Declare.
6036         (ada_find_renaming_symbol): Declare.
6037         (ada_mangle): Rename to ada_encode.
6038         (ada_simple_renamed_entity): Remove const.
6039         (ada_main_name): Declare.
6040         (get_current_task): Rename to ada_get_current_task.
6041         (get_entry_number): Remove declaration.
6042         (ada_report_exception_break): Remove declaration.
6043         (ada_print_exception_breakpoint_nontask): Declare.
6044         (ada_print_exception_breakpoint_task): Declare.
6045         (ada_find_printable_frame): Declare.
6046
6047         * ada-lex.l: Update copyright notices.
6048         Use xmalloc and xfree instead of malloc and free.
6049         Use new interface to name_lookup.
6050         Use new interface to 
6051         ada_mangle=>ada_encode.
6052         Redo handling of '$...' variable to parallel current treatment 
6053         in c-exp.y.  
6054         (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
6055         digit_to_int, strtoulst, processInt, processReal, processId, 
6056         block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
6057         yywrap): Protoize.
6058         
6059         (processInt): Use cast to remove harmless warning.
6060         (processReal): Modify to get rid of compiler warning on scan formats.
6061
6062         (processId): Replace xmalloc with obstack_alloc for name and remove
6063         call to ada_name_string_cleanup.
6064         Remove obsolete disabled code.
6065         (name_lookup): Ditto. 
6066         New interface.
6067         Use obsavestring on temp_parse_space instead of savestring 
6068         on name, and remove call to ada_name_string_cleanup.  
6069         Free string returned from ada_simple_renamed_entity.
6070         Use new interface to ada_lookup_symbol_list.
6071         Decomment disabled code.
6072         Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables, 
6073         not types.
6074         When a type name lookup succeeds as a result of 
6075         lookup_primitive_typename, check for regular type entry that has not 
6076         yet been read in.
6077         Limit length of chain of renamed symbols we are willing to follow.  
6078         Do not break names beginning with "standard__" into segments.  
6079         (block_lookup): Use new interface to ada_lookup_symbol_list.
6080         
6081         * ada-typeprint.c: Update copyright notice.
6082         (demangled_type_name): Rename to decoded_type_name.
6083         (ada_typedef_print): Use SYMBOL_PRINT_NAME.
6084         (print_range_bound):  Correct handling of negative
6085         bounds that make the index type looked unsigned under STABS.  
6086         (print_dynamic_range_bound): Use new interface to get_int_var_value.
6087         (print_range_type_named):  Use the builtin int type if no type 
6088         corresponding to the given type name could be found.
6089         (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
6090         Add some bullet-proofing.
6091         (print_variant_clauses): Allow for variant branches with ___XVU 
6092         encodings that are not dynamic fields.  
6093         Use new interface to ada_is_tagged_type.
6094         (print_record_type): Allow for fields with ___XVE encodings that 
6095         are not dynamic fields. 
6096         Use new interface to ada_is_tagged_type.
6097         (ada_print_type): ada_is_array_descriptor => 
6098         ada_is_array_descriptor_type.
6099
6100         * ada-valprint.c: Update copyright notice.
6101         Include gdb_string.h
6102         Include infcall.h
6103         (ui_memcpy): New function.
6104         (ada_print_floating): New function.
6105         (ada_print_str): Order arguments correctly.
6106         Correct handling of empty arrays and arrays of 0-length items. 
6107         ada_is_array_descriptor => ada_is_array_descriptor_type 
6108         Print values of type System.Address in hexadecimal format.
6109         Use ada_print_floating to print floating-point numbers in Ada format.
6110         Print class tag values with type names.  
6111         No longer print the address of reference values. Avoids 
6112         a potential confusion.  
6113         (ada_value_print): Stop printing the object type for reference
6114         values, but preserve that behavior for access types. Avoids
6115         a potential confusion.
6116         Simplify one conditional expression, as the first part is now
6117         necessarily true.
6118         ada_is_array_descriptor => ada_is_array_descriptor_type 
6119         Add check for arrays for null records, and print them by hand.
6120         
6121 2004-06-01  Jim Blandy  <jimb@redhat.com>
6122
6123         * ppc-tdep.h: Delete unused 'regoff' member.
6124         * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
6125
6126 2004-06-01  Michael Chastain  <mec.gnu@mindspring.com>
6127
6128         Fix PR symtab/1661.
6129         * hpread.c (hpread_pxdb_needed): Call memset after alloca.
6130         (hpread_read_struct_type): Likewise.
6131
6132 2004-06-01  Andrew Cagney  <cagney@gnu.org>
6133
6134         * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
6135         instead of xasprintf.
6136         * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt) 
6137         (mi_cmd_thread_select, mi_cmd_thread_list_ids) 
6138         (mi_cmd_data_list_register_names) 
6139         (mi_cmd_data_list_changed_registers) 
6140         (mi_cmd_data_list_register_values) 
6141         (get_register, mi_cmd_data_write_register_values) 
6142         (mi_cmd_data_write_register_values) 
6143         (mi_cmd_data_assign, mi_cmd_data_evaluate_expression) 
6144         (mi_cmd_target_download, mi_cmd_target_select) 
6145         (mi_cmd_data_read_memory, mi_cmd_data_write_memory) 
6146         (mi_execute_cli_command, mi_execute_async_cli_command) 
6147         (mi_execute_async_cli_command): Ditto.
6148         * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
6149         * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
6150
6151         * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
6152         * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
6153         error_last_message instead of mi_error_last_message.
6154         * mi/mi-main.c (mi_error_last_message): Delete function.
6155
6156         * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
6157         "invalid number of columns" error.  Delete redundant "out of
6158         memory" check.
6159
6160 2004-05-31  Mark Kettenis  <kettenis@gnu.org>
6161
6162         * i386bsd-nat.c: Don't include <sys/procfs.h>.
6163         (gregset_t, fpregset_t): Remove typedefs.
6164         (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
6165         (REG_OFFSET): Rename argument.
6166         (i386bsd_r_reg_offset): Rename from reg_offset.
6167         (REG_ADDR): Remove macro.
6168         (cannot_fetch_register, supply_gregset, fill_gregset): Remove
6169         functions.
6170         (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
6171         (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
6172         instead of gregset_t and fpregset_t.  Use i386bsd_supply_gregset
6173         instead of supply_gregset.
6174         (store_inferior_registers): Use `struct reg' and `struct fpreg'
6175         instead of gregset_t and fpregset_t.  Use i386bsd_collect_gregset
6176         instead of fill_gregset.
6177         (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
6178
6179         * i386bsd-nat.c: Don't include "gregset.h".
6180         (supply_gregset, fill_gregset): Make static.
6181         (supply_fpregset, fill_fpregset): Remove.
6182         * Makefile.in (i386bsd-nat.o): Update dependencies.
6183
6184 2004-05-30  Mark Kettenis  <kettenis@gnu.org>
6185
6186         * fbsd-proc.c: Include "regcache.h", "regset.h" and
6187         "gdb_assert.h".  Con't include "gregset.h".
6188         (fbsd_make_corefile_notes): Use regset-based core file support
6189         instead off fill_gregset and fill_fpregset.
6190         * Makefile.in (fbsd-proc.o): Update dependencies.
6191
6192         * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
6193         instructions.
6194         (m88k_frame_prev_register): Simplify code a bit.
6195
6196         * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
6197         (amd64_collect_fpregset): New function.
6198         (amd64_regset_from_core_section): Use amd64_collect_fpregset.
6199
6200         * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
6201
6202         * i386-tdep.c (i386_supply_gregset): Adjust comment.
6203         (i386_collect_gregset): New function.
6204         (i386_supply_fpregset): Adjust comment.
6205         (i386_collect_fpregset): New function.
6206         (i386_regset_from_core_section): Use i386_collect_gregset and
6207         i386_collect_fpregset.
6208
6209         * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
6210         handle VALUEP being null.
6211
6212         * regset.h (collect_regset_ftype): Unconstify fourth argument.
6213
6214 2004-05-29  Mark Kettenis  <kettenis@gnu.org>
6215
6216         * MAINTAINERS: Undelete m88k.  Add myself as maintainer.
6217
6218         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
6219         assembler in OpenBSD 3.5-current.
6220         (amd64obsd_sigcontext_addr): Likewise.
6221
6222 2004-05-28  Jim Blandy  <jimb@redhat.com>
6223
6224         * rs6000-tdep.c: Use the modern gdbarch methods for handling the
6225         register set, so our regcache isn't declared "legacy" and our E500
6226         pseudoregister read and write functions aren't ignored.
6227         (rs6000_register_byte, rs6000_register_raw_size,
6228         rs6000_register_virtual_type, rs6000_register_convertible,
6229         rs6000_register_convert_to_virtual,
6230         rs6000_register_convert_to_raw): Deleted.
6231         (rs6000_register_type, rs6000_convert_register_p,
6232         rs6000_register_to_value, rs6000_value_to_register): New
6233         functions.
6234         (rs6000_gdbarch_init): Don't register
6235         gdbarch_deprecated_register_size,
6236         gdbarch_deprecated_register_bytes,
6237         gdbarch_deprecated_register_byte,
6238         gdbarch_deprecated_register_raw_size,
6239         gdbarch_deprecated_register_virtual_type,
6240         gdbarch_deprecated_register_convertible,
6241         gdbarch_deprecated_register_convert_to_virtual, or
6242         gdbarch_deprecated_register_convert_to_raw methods.  Instead,
6243         register gdbarch_register_type, gdbarch_convert_register_p,
6244         gdbarch_register_to_value, and gdbarch_value_to_register methods.
6245
6246 2004-05-26  Jim Blandy  <jimb@redhat.com>
6247
6248         * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
6249         (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
6250         functions, updated to match the register numberings used in GCC.
6251         (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
6252         rs6000_dwarf2_reg_to_regnum as register number conversions
6253         functions for STABS and Dwarf2.
6254
6255 2004-05-26  Randolph Chung  <tausq@debian.org>
6256
6257         * infttrace.h (target_waitkind): Forward declare type instead of pulling
6258         in header file.
6259
6260 2004-05-25  Joel Brobecker  <brobecker@gnat.com>
6261
6262         * NEWS: Document new "start" command.
6263
6264 2004-05-25  Randolph Chung  <tausq@debian.org>
6265
6266         * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
6267         hppa-linux.
6268
6269 2004-05-25  Randolph Chung  <tausq@debian.org>
6270
6271         * hppa-hpux-tdep.c (offsetof): Define.
6272         (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
6273         (hppa32_hpux_frame_base_before_sigtramp)
6274         (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
6275         (hppa64_hpux_frame_saved_pc_in_sigtramp)
6276         (hppa64_hpux_frame_base_before_sigtramp)
6277         (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused 
6278         functions.
6279         (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
6280         (hppa_hpux_sigtramp_frame_unwind_cache)
6281         (hppa_hpux_sigtramp_frame_this_id)
6282         (hppa_hpux_sigtramp_frame_prev_register)
6283         (hppa_hpux_sigtramp_frame_unwind)
6284         (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
6285         (hppa_hpux_init_abi): Register sigtramp unwinder.
6286         * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
6287
6288 2004-05-25  Randolph Chung  <tausq@debian.org>
6289
6290         * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
6291         and multiple stack unwinds.
6292         (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
6293
6294 2004-05-25  Andrew Cagney  <cagney@gnu.org>
6295
6296         * symfile.h (symbol_file_add_from_memory): Delete declaration.
6297         * symfile-mem.h: Delete file.
6298         * symfile-mem.c: Do not include "symfile-mem.h".
6299         (symbol_file_add_from_memory): Make static. Use "struct bfd" and
6300         "struct bfd_section".  When an error do not bother returning NULL.
6301         (add_symbol_file_from_memory_command): Use "struct bfd" and
6302         "struct bfd_section".
6303         * Makefile.in (symfile_mem_h): Delete.
6304         (symfile-mem.o): Update dependencies.
6305
6306 2004-05-25  Nick Roberts  <nickrob@gnu.org>
6307
6308         * gdb-mi.el: New file.
6309
6310 2004-05-25  Andrew Cagney  <cagney@gnu.org>
6311
6312         * inftarg.c: Include "observer.h".
6313         (child_attach, child_create_inferior): Notify inferior_created.
6314         * corelow.c: Include "observer.h".
6315         (core_open): Notify inferior_created.
6316         * Makefile.in (inftarg.o, corelow.o): Update dependencies.
6317
6318 2004-05-25  Andrew Cagney  <cagney@gnu.org>
6319
6320         * target.h (struct target_ops): Add from_tty to
6321         to_create_inferior.
6322         (target_create_inferior, find_default_create_inferior): Update.
6323         * infcmd.c (run_command): Update.
6324         * wince.c (child_create_inferior): Update.
6325         * win32-nat.c (child_create_inferior): Update.
6326         * uw-thread.c (uw_thread_create_inferior): Update.
6327         * thread-db.c (thread_db_create_inferior): Update.
6328         * target.c (debug_to_create_inferior) 
6329         (find_default_create_inferior): Update.
6330         (maybe_kill_then_create_inferior): Update.
6331         * sol-thread.c (sol_thread_create_inferior): Update.
6332         * remote.c (extended_remote_async_create_inferior) 
6333         (extended_remote_create_inferior): Update.
6334         * remote-vx.c (vx_create_inferior): Update.
6335         * remote-st.c (st2000_create_inferior): Update.
6336         * remote-sim.c (gdbsim_create_inferior): Update.
6337         * remote-sds.c (sds_create_inferior): Update.
6338         * remote-rdp.c (remote_rdp_create_inferior): Update.
6339         * remote-rdi.c (arm_rdi_create_inferior): Update.
6340         * remote-m32r-sdi.c (m32r_create_inferior): Update.
6341         * remote-e7000.c (e7000_create_inferior): Update.
6342         * procfs.c (procfs_create_inferior): Update.
6343         * ocd.c (ocd_create_inferior): Update.
6344         * ocd.h (ocd_create_inferior): Update.
6345         * nto-procfs.c (procfs_create_inferior): Update.
6346         * monitor.c (monitor_create_inferior): Update.
6347         * lin-lwp.c (lin_lwp_create_inferior): Update.
6348         * inftarg.c (child_create_inferior): Update.
6349         * hpux-thread.c (hpux_thread_create_inferior): Update.
6350         * gnu-nat.c (gnu_create_inferior): Update.
6351
6352 2004-05-25  Andrew Cagney  <cagney@gnu.com>
6353
6354         * MAINTAINERS: Update e-mail address.
6355
6356 2004-05-24  Randolph Chung  <tausq@debian.org>
6357
6358         * thread.c (info_threads_command, thread_apply_all_command)
6359         (thread_apply_command, thread_command, do_captured_thread_select):
6360         Remove HPUXHPPA-specific code.
6361
6362 2004-05-24  Randolph Chung  <tausq@debian.org>
6363
6364         * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
6365         unused symbols.
6366         * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
6367         references.
6368
6369 2004-05-24  Joel Brobecker  <brobecker@gnat.com>
6370
6371         * infcmd.c (kill_if_already_running): New function, extracted
6372         from run_command().
6373         (run_command): Replace extracted code by call to
6374         kill_if_already_running().
6375         (start_command): New function.
6376         (_initialize_infcmd): Add "start" command.
6377
6378 2004-05-24  Mark Kettenis  <kettenis@gnu.org>
6379
6380         Add OpenBSD/m88k support.
6381         * NEWS (New native configurations): Mention OpenBSD/m88k.
6382         * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
6383         config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
6384         * Makefile.in (m88k_tdep_h): New variable.
6385         (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
6386         (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
6387         * configure.host: Add m88*-*-openbsd*.
6388         * configure.tgt: Add m88*-*-openbsd*.
6389
6390 2004-05-24  Jim Blandy  <jimb@redhat.com>
6391
6392         * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
6393         to approve changes.
6394
6395 2004-05-24  Kevin Buettner  <kevinb@redhat.com>
6396
6397         * symtab.c (fixup_section): Search section table when lookup by
6398         name fails.
6399
6400 2004-05-24  Randolph Chung  <tausq@debian.org>
6401
6402         * hppa-tdep.c: Fix handling of 8-byte structures; they should not 
6403         be "small_struct".
6404
6405 2004-05-24  Mark Kettenis  <kettenis@gnu.org>
6406
6407         * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
6408         register number in regcache_raw_collect call.
6409         (m68kbsd_collect_fpregset): Likewise.
6410         * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
6411
6412         * regset.h (struct regset): Add back `regset' member.
6413
6414 2004-05-23  Mark Kettenis  <kettenis@gnu.org>
6415
6416         * configure.in: Check for td_pcb in `struct thread'.
6417         * configure, config.in: Regenerated.
6418
6419         * dpx2-nat.c: Remove file.
6420         * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
6421         (dpx2-nat.o): Remove dependencies.
6422
6423         * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
6424         <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
6425         (amd64obsd_supply_pcb): New function.
6426         (_initialize_amd64obsd_nat): Enable libkvm interface.
6427         * Makefile.in (amd64obsd-nat.o): Update dependencies.
6428         * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
6429         (LOADLIBES): New variable.
6430
6431         * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
6432         <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
6433         (sparc32nbsd_supply_pcb): New function.
6434         (_initialize_sparcnbsd_nat): Enable libkvm interface.
6435         * Makefile.in (sparcnbsd-nat.o): Update dependencies.
6436         * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
6437         (LOADLIBES): New variable.
6438
6439 2004-05-22  Mark Kettenis  <kettenis@gnu.org>
6440
6441         * bsd-kvm.c, bsd-kvm.h: New files.
6442         * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
6443         "bsd-kvm.h".
6444         (i386fbsd_supply_pcb): New function.
6445         * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
6446         (i386fbsd-nat.o): Update dependencies.
6447         (bsd_kvm_h): New variable.
6448         (bsd-kvm.o): New dependency.
6449         * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
6450         (LOADLIBES): New variable.
6451
6452         * regset.c: Tweak comment.
6453         (regset_alloc): Remove descr argument.  Use GDBARCH_OBSTACK_ZALLOC
6454         macro.
6455         * regset.h: Update copyright year.
6456         (struct regset): Remove `descr' member, add `gdbarch' member.
6457         (regset_alloc): Adjust prototype and comment.
6458         * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
6459         (i386_supply_fpregset): Likewise.
6460         (i386_regset_from_core_section): Update call to regset_alloc.
6461         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
6462         REGSET->arch.
6463         (i386obsd_aout_regset_from_core_section): Update call to
6464         regset_alloc.
6465         * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
6466         REGSET->arch.
6467         (i386nbsd_aout_regset_from_core_section): Update call to
6468         regset_alloc.
6469         * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
6470         REGSET->arch.
6471         (amd64_regset_from_core_section): Update call to regset_alloc.
6472         * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
6473         REGSET->arch.
6474         (amd64obsd_regset_from_core_section): Update call to regset_alloc.
6475         * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
6476         &sparc32nbsd_gregset in sparc32_supply_gregset call.
6477         (sparc32nbsd_init_abi): Update call to regset_alloc.
6478         * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
6479         &sparc64obsd_core_gregset in sparc64_supply_gregset call.
6480         (sparc64obsd_init_abi): Update call to regset_alloc.
6481         * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
6482         &sparc64nbsd_gregset in sparc64_supply_gregset call.
6483         (sparc64nbsd_init_abi): Update call to regset_alloc.
6484         * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
6485         &sparc64fbsd_gregset in sparc64_supply_gregset call.
6486         (sparc64fbsd_init_abi): Update call to regset_alloc.
6487
6488 2004-05-22  Jim Blandy  <jimb@redhat.com>
6489
6490         * ppc-tdep.h (spe_register_p): New declaration.
6491         (struct gdbarch_tdep): New members: ppc_acc_regnum and
6492         ppc_spefscr_regnum.
6493         * rs6000-tdep.c (spe_register_p): New function.
6494         (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
6495         spefscr.
6496         (rs6000_gdbarch_init): Initialize the new members of the tdep
6497         structure.
6498
6499 2004-05-21  Jim Blandy  <jimb@redhat.com>
6500
6501         * ppc-linux-nat.c (fetch_register): Move code back to be next
6502         to the comment that describes it.  (Moved code, instead of
6503         comment, for symmetry with store_register.)
6504
6505         Allocate regset structures in the gdbarch's obstack, not using
6506         xmalloc.
6507         * regset.c (regset_alloc): Renamed from regset_xmalloc.
6508         Add 'arch' argument.  Allocate the regset on arch's obstack, not
6509         using xmalloc.
6510         * regset.h (regset_alloc): Update declaration.
6511         * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
6512         gdbarch argument.
6513         * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
6514         * i386-tdep.c (i386_regset_from_core_section): Same.
6515         * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
6516         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
6517         * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
6518         * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
6519         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
6520         * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
6521
6522 2004-05-21  Joel Brobecker  <brobecker@gnat.com>
6523
6524         * config/djgpp/fnchange.lst: Undo previous change, was useless.
6525
6526 2004-05-21  Jim Blandy  <jimb@redhat.com>
6527
6528         * dwarf2expr.c (execute_stack_op): Add 'break' statements after
6529         cases for DW_OP_div and DW_OP_shr.  (Thanks to Reva Cuthbertson.)
6530
6531 2004-05-20  Jim Blandy  <jimb@redhat.com>
6532
6533         * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
6534
6535 2004-05-20  Mark Kettenis  <kettenis@gnu.org>
6536
6537         * regset.h: Make prototype const-correct.
6538         * regset.c (regset_xmalloc): Make const-correct.
6539
6540 2004-05-20  Paul N. Hilfinger  <hilfinger@gnat.com>
6541
6542         * symtab.h (SYMBOL_SEARCH_NAME): New definition.
6543         (SYMBOL_MATCHES_SEARCH_NAME): New definition.
6544         (symbol_search_name): Declare.
6545         
6546         * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
6547         (iter_name_next_hashed): Ditto.
6548         (iter_name_next_linear): Ditto.
6549         (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
6550
6551         * symtab.c (lookup_partial_symbol): Assume symbols ordered by 
6552         search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
6553         (symbol_search_name): New function.
6554         
6555         * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
6556         
6557         * minsyms.c (build_minimal_symbol_hash_tables): Change
6558         test for adding to demangled hash table to check for difference
6559         between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
6560         
6561 2004-05-19  Jim Blandy  <jimb@redhat.com>
6562
6563         Use a constructor function to create regset structures.
6564         * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
6565         (struct regset): Use supply_regset_ftype.  Add new
6566         'collect_regset' member.
6567         (regset_xmalloc): New declaration.
6568         * regset.c: New file.
6569         * am64-tdep.c (amd64_regset_from_core_section): Use
6570         regset_xmalloc to construct regset structures.
6571         * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
6572         * i386-tdep.c (i386_regset_from_core_section): Same.
6573         * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
6574         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
6575         * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
6576         * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
6577         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
6578         * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
6579         * Makefile.in (COMMON_OBS): Add regset.o.
6580         (regset.o): New rule.
6581
6582 2004-05-19  Joel Brobecker  <brobecker@gnat.com>
6583
6584         * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
6585         and pthread_cond_wait.c.
6586
6587 2004-05-18  Jim Blandy  <jimb@redhat.com>
6588
6589         * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
6590         before the mach-specific switch, and then let the individual cases
6591         override the defaults, rather than leaving them uninitialized
6592         until the switch and then setting them in each case.
6593
6594 2004-05-18  Randolph Chung  <tausq@debian.org>
6595
6596         * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
6597         millicode functions.
6598
6599 2004-05-18  Randolph Chung  <tausq@debian.org>
6600
6601         * somsolib.c (som_solib_remove_inferior_hook): Make all the size
6602         references to dld_flags_buffer consistent.
6603
6604 2004-05-18  Randolph Chung  <tausq@debian.org>
6605
6606         * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
6607         it for unwinding the stack.
6608
6609 2004-05-18  Randolph Chung  <tausq@debian.org>
6610
6611         * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
6612         Undefine these so we can overide them using gdbarch.
6613
6614 2004-05-18  Randolph Chung <tausq@debian.org>
6615
6616         * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
6617         handling for 64-bit HPUX (elf).
6618
6619 2004-05-18  Daniel Jacobowitz  <dan@debian.org>
6620
6621         * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
6622         constants.
6623         * amd64-tdep.c (amd64_skip_prologue): Likewise.
6624         * ia64-tdep.c (examine_prologue): Likewise.
6625         * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
6626         * v850-tdep.c (v850_fix_call_dummy): Likewise.
6627
6628 2004-05-18  Mark Kettenis  <kettenis@gnu.org>
6629
6630         * vax-tdep.c (vax_return_value): Implement
6631         RETURN_VALUE_ABI_RETURNS_ADDRESS.
6632
6633 2004-05-17  Mark Kettenis  <kettenis@gnu.org>
6634
6635         * vax-tdep.c (vax_return_value): Fix typo.
6636
6637 2004-05-17  Andrew Cagney  <cagney@redhat.com>
6638
6639         * MAINTAINERS: Mark Salter was also responsible for
6640         testsuite/config/
6641
6642         * NEWS: Mention signal fixes.
6643
6644 2004-05-17  Randolph Chung  <tausq@debian.org>
6645
6646         * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
6647         check to see if we are unwinding an export stub.  Export stubs clobber
6648         the %rp in the call path and stores the original rp in a stack slot.
6649
6650 2004-05-17  Jim Blandy  <jimb@redhat.com>
6651
6652         * MAINTAINERS: Update address for J.T. Conklin.
6653
6654 2004-05-17  Randolph Chung  <tausq@debian.org>
6655
6656         * hppa-tdep.c: Remove superfluous #include's.
6657         * Makefile.in (hppa-tdep.o): Update dependencies.
6658
6659 2004-05-17  Randolph Chung  <tausq@debian.org>
6660
6661         * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
6662         (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
6663         (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
6664         (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
6665         (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
6666         Remove static function declarations.
6667
6668 2004-05-17  Mark Kettenis  <kettenis@gnu.org>
6669
6670         * alphabsd-nat.c: Update copyright year.
6671         (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
6672
6673         * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
6674         and M68K_A2_REGNUM.
6675
6676         * m68k-tdep.c (m68k_svr4_return_value): Implement
6677         RETURN_VALUE_ABI_RETURNS_ADDRESS.
6678
6679 2004-05-16  Mark Kettenis  <kettenis@gnu.org>
6680
6681         * sol-thread.c Update copyright year.  Fix various coding
6682         standards violations.  Tweak a few comments.
6683         (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
6684         Delete prototypes.
6685
6686 2004-05-15  Randolph Chung  <tausq@debian.org>
6687
6688         * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
6689         as pointer instead of array reference since HPUX compiler does
6690         not accept unsized array arguments.
6691         * somsolib.c (dld_flags_buffer): Use constant array size.
6692
6693 2004-05-15  Mark Kettenis  <kettenis@gnu.org>
6694
6695         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
6696         offset with decimal offset.
6697         (amd64obsd_sigcontext_addr): Return correct address for entire
6698         signal trampoline.
6699
6700         * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
6701         instead of get_frame_base.
6702
6703         * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
6704         (fill_gregset): Use regcache_raw_collect.
6705
6706         * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
6707         ppcobsd-tdep.c.
6708
6709         * config/sparc/tm-nbsd64.h: Remove file.
6710         * config/tm-sunos.h: Remove file.
6711
6712 2004-05-15  Joel Brobecker  <brobecker@gnat.com>
6713
6714         * rs6000-tdep.c (store_param_on_stack_p): New function,
6715         an improved version of some code extracted from skip_prologue().
6716         (skip_prologue): Use store_param_on_stack_p() to detect
6717         instructions saving a parameter on the stack. Detect when r0
6718         is used to save a parameter.
6719         Do not mark "li rx, SIMM" instructions as part of the prologue,
6720         unless the following instruction is also part of the prologue.
6721
6722 2004-05-14  Andrew Cagney  <cagney@redhat.com>
6723
6724         * infrun.c (handle_inferior_event): Simplify
6725         STEP_OVER_UNDEBUGGABLE.
6726
6727         * infrun.c (handle_step_into_function): Delete function.
6728         (handle_inferior_event): Inline calls to
6729         handle_step_into_function.
6730
6731 2004-05-14  Jerome Guitton  <guitton@gnat.com>
6732
6733         * rs6000-nat.c: Fix a comment.
6734
6735 2004-05-12  David Anderson <davea@sgi.com>
6736
6737         Committed by Jim Blandy <jimb@redhat.com>:
6738         * regcache.c (struct regcache_descr): fix comment spelling.
6739
6740 2004-05-13  J. Brobecker  <brobecker@gnat.com>
6741
6742         * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
6743         Fixes a link link failure.
6744
6745 2004-05-13  J. Brobecker  <brobecker@gnat.com>
6746
6747         * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
6748         error that was causing the build to fail.
6749
6750 2004-05-13  J. Brobecker  <brobecker@gnat.com>
6751
6752         * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
6753         * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
6754
6755 2004-05-13  Andrew Cagney  <cagney@redhat.com>
6756
6757         * infrun.c (handle_inferior_event): Check for
6758         STEP_OVER_UNDEBUGGABLE after signal trampolines and function
6759         calls.  Update comments.
6760
6761 2004-05-13  Jim Blandy  <jimb@redhat.com>
6762
6763         * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
6764         (fetch_regs_user_thread, fetch_regs_kernel_thread)
6765         (store_regs_user_thread, store_regs_kernel_thread): Use
6766         ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
6767         * ppc-linux-nat.c (fill_gregset): Same.
6768         * ppc-linux-tdep.c (ppc_linux_supply_gregset) 
6769         (ppc_linux_sigtramp_cache): Same.
6770         * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg) 
6771         (ppcnbsd_sigtramp_cache_init): Same.
6772         * rs6000-nat.c (fetch_core_registers): Same.
6773         * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset) 
6774         (rs6000_frame_cache): Same.
6775
6776         * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
6777         (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
6778         of assuming that the gprs are numbered starting with zero.
6779         * ppc-linux-nat.c (fill_gregset): Same.
6780         * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
6781         * ppcnbsd-nat.c (getregs_supplies): Same.
6782         * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
6783         * rs6000-nat.c (fetch_core_registers): Same.
6784         * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
6785
6786 2004-05-07  Michael Snyder  <msnyder@redhat.com>
6787
6788         * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
6789         LOC_COMPUTED_ARG, and LOC_INDIRECT.
6790
6791 2004-05-13  Andrew Cagney  <cagney@redhat.com>
6792
6793         * infrun.c (handle_inferior_event): Use frame_unwind_id.
6794
6795 2004-05-13  Bryce McKinlay  <mckinlay@redhat.com>
6796
6797         * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
6798         base_address for shared libraries.
6799
6800 2004-05-13  Bryce McKinlay  <mckinlay@redhat.com>
6801
6802         * MAINTAINERS (write after approval): Add myself.       
6803
6804 2004-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
6805
6806         * breakpoint.c (bpstat_stop_status): Add new argument
6807         STOPPED_BY_WATCHPOINT.  Use it instead of testing
6808         target_stopped_data_address agaist 0 to check whether
6809         or not we stopped due to a hardware watchpoint.
6810         * breakpoint.h (bpstat_stop_status): Adapt prototype.
6811         * infrun.c (handle_inferior_event): Call bpstat_stop_status
6812         with new argument.
6813
6814 2004-05-12  Jim Blandy  <jimb@redhat.com>
6815
6816         * configure.in: When checking whether we should use the -bbigtoc
6817         option, don't forget to restore the original value of LDFLAGS.
6818         * configure: Regenerated.
6819
6820 2004-05-12  Andrew Cagney  <cagney@redhat.com>
6821
6822         * thread.c (load_infrun_state): Delete step_sp.
6823         * infrun.c (context_switch): Ditto.
6824         * inferior.h (step_sp): Ditto.
6825         * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
6826         * gdbthread.h (struct thread_info, save_infrun_state)
6827         (restore_infrun_state): Ditto.
6828
6829 2004-05-12  Ulrich Weigand  <uweigand@de.ibm.com>
6830
6831         * MAINTAINERS (write after approval): Add myself.
6832
6833 2004-05-12  Andrew Cagney  <cagney@redhat.com>
6834
6835         * infrun.c (adjust_pc_after_break): Rewrite decr logic,
6836         eliminate reference to step_sp.
6837         (struct execution_control_state, init_execution_control_state)
6838         (handle_inferior_event, keep_going): Delete update_step_sp and
6839         step_sp.
6840         * infcmd.c (step_sp): Note that variable is unused.
6841
6842 2004-05-11  Andrew Cagney  <cagney@redhat.com>
6843
6844         * infrun.c (step_over_function): Delete function.
6845         (handle_step_into_function): Use insert_step_resume_breakpoint.
6846         (insert_step_resume_breakpoint): Fix assertion.
6847
6848 2004-05-11  Nick Roberts  <nickrob@gnu.org>
6849
6850         * utils.c (defaulted_query): Just use the normal query input type
6851         when printing the annotations.
6852
6853 2004-05-11  Andrew Cagney  <cagney@redhat.com>
6854
6855         * infrun.c (handle_inferior_event): Simplify code handling
6856         step-into or return-from a signal trampoline.
6857
6858 2004-05-11  Andrew Cagney  <cagney@redhat.com>
6859
6860         * ppcnbsd-tdep.c: Include "gdb_assert.h".
6861         * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
6862
6863 2004-05-10  Jim Blandy  <jimb@redhat.com>
6864
6865         * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
6866         with a call to internal_error.
6867
6868         * ppc-tdep.h (struct gdbarch_tdep): Change definition of
6869         ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
6870         processor variant lacks those registers.
6871         (ppc_floating_point_unit_p): Change description to make it clear
6872         that this returns info about the ISA, not the ABI.
6873         * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
6874         return true or false by checking tdep->ppc_fp0_regnum and
6875         tdep->ppc_fpscr_regnum.  The original code replicated the BFD
6876         arch/mach switching done in rs6000_gdbarch_init; it's better to
6877         keep that logic there, and just check the results here.
6878         (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
6879         tdep->ppc_fpscr_regnum to -1 to indicate that we have no
6880         floating-point registers.
6881         (ppc_supply_fpregset, ppc_collect_fpregset)
6882         (rs6000_push_dummy_call, rs6000_extract_return_value)
6883         (rs6000_store_return_value): Assert that we have floating-point
6884         registers.
6885         (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
6886         (rs6000_frame_cache): Don't note the locations at which
6887         floating-point registers were saved if we have no fprs.
6888         * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
6889         registers.
6890         (fetch_regs_user_thread, fetch_regs_kernel_thread)
6891         (store_regs_user_thread, store_regs_kernel_thread): Only call
6892         supply_fprs / fill_fprs if we actually have floating-point
6893         registers.
6894         (special_register_p): Check ppc_fpscr_regnum before matching
6895         against it.
6896         (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
6897         supply / collect fpscr if we don't have it.
6898         * ppc-bdm.c: #include "gdb_assert.h".
6899         (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
6900         have floating-point registers, since I can't test this code on
6901         FP-free systems to adapt it.
6902         * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
6903         fpscr and floating point register numbers if they don't exist.
6904         (fetch_register): Assert that we have floating-point registers
6905         before we reach the code that handles them.
6906         (store_register): Same.  And use tdep instead of calling
6907         gdbarch_tdep again.
6908         (fill_fpregset): Don't try to collect FP registers and fpscr if we
6909         don't have them.
6910         (ppc_linux_sigtramp_cache): Don't record the saved locations of
6911         fprs and fpscr if we don't have them.
6912         (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
6913         don't have them.
6914         * ppcnbsd-nat.c: #include "gdb_assert.h".
6915         (getfpregs_supplies): Assert that we have floating-point registers.
6916         * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
6917         * ppcobsd-tdep.c: #include "gdb_assert.h".
6918         (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
6919         have floating-point registers.
6920         * rs6000-nat.c (regmap): Don't match against the fpscr and
6921         floating point register numbers if they don't exist.
6922         (fetch_inferior_registers, store_inferior_registers,
6923         fetch_core_registers): Only fetch / store / supply the
6924         floating-point registers and the fpscr if we have them.
6925         * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
6926         (ppcobsd-tdep.o): Update dependencies.
6927         
6928 2004-05-10  Andrew Cagney  <cagney@redhat.com>
6929
6930         * infrun.c (through_sigtramp_breakpoint): Delete variable.
6931         (context_switch): Do not switch through_sigtramp_breakpoint.
6932         * gdbthread.h (save_infrun_state, load_infrun_state)
6933         (struct thread_info): Delete through_sigtramp_breakpoint parameter
6934         and structure member.
6935         * thread.c (load_infrun_state, save_infrun_state): Update.
6936
6937 2004-05-10  Mark Kettenis  <kettenis@gnu.org>
6938
6939         * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
6940
6941 2004-05-10  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
6942
6943         * acinclude.m4: Quote macro names being defined by AC_DEFUN 
6944         throughout.
6945         * aclocal.m4: Regenerate.
6946
6947 2004-05-10  Nathan J. Williams  <nathanw@wasabisystems.com>
6948
6949         * alphanbsd-tdep.c: Fix include of "gdb_string.h".
6950
6951 2004-05-10  Andrew Cagney  <cagney@redhat.com>
6952
6953         * infrun.c (check_sigtramp2): Delete function.
6954         (handle_inferior_event): When single stepping, and taking a
6955         signal, set a breakpoint at the signal return address.  Delete
6956         redundant calls to check_sigtramp2.
6957         (insert_step_resume_breakpoint): New function.
6958         (through_sigtramp_breakpoint, handle_inferior_event)
6959         (follow_exec, wait_for_inferior, fetch_inferior_event)
6960         (currently_stepping, keep_going): Delete most uses of
6961         through_sigtramp_breakpoint, not that it should be deleted.
6962         (delete_breakpoint_current_contents): Delete function.
6963
6964 2004-05-10  Randolph Chung  <tausq@debian.org>
6965
6966         * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
6967         target.
6968         * config/pa/tm-linux.h: New file.
6969
6970 2004-05-10  Daniel Jacobowitz  <drow@mvista.com>
6971
6972         * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
6973         of prefixes.  Don't print the prefix twice in the CLI.
6974
6975 2004-05-10  Jim Blandy  <jimb@redhat.com>
6976
6977         * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
6978         collect all the gprs.
6979
6980         * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
6981         loop collecting gprs.
6982
6983 2004-05-09  Andrew Cagney  <cagney@redhat.com>
6984
6985         * remote-vx.c (net_step): Delete step-range code.
6986         * remote.c (remote_resume, init_all_packet_configs)
6987         (set_remote_protocol_E_packet_cmd)
6988         (show_remote_protocol_E_packet_cmd)
6989         (remote_protocol_E, show_remote_cmd, _initialize_remote)
6990         (remote_protocol_e, set_remote_protocol_e_packet_cmd)
6991         (show_remote_protocol_e_packet_cmd): Ditto.
6992
6993 2004-05-09  Mark Kettenis  <kettenis@gnu.org>
6994
6995         * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
6996
6997         * hppa-tdep.h: Update copyright year.
6998         (struct trad_frame_saved_reg): Add opaque declaration.
6999
7000         * amd64-tdep.c (amd64_return_value): Implement
7001         RETURN_VALUE_ABI_RETURNS_ADDRESS.
7002
7003         * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
7004         (m68k_value_to_register): New functions.
7005         (m68k_gdbarch_init): Set convert_register_p, register_to_value and
7006         value_to_register.
7007
7008         * defs.h (enum return_value_convention): Add
7009         RETURN_VALUE_ABI_RETURNS_ADDRESS and
7010         RETURN_VALUE_ABI_PRESERVES_ADDRESS.
7011         * infcmd.c (legacy_return_value): New function.
7012         (print_return_value): Rwerite to implement
7013         RETURN_VALUE_ABI_RETURNS_ADDRESS.
7014         * values.c (using_struct_return): Check for inequality to
7015         RETURN_VALUE_REGISTER_CONVENTION instead of equality to
7016         RETURN_VALUE_STRUCT_CONVENTION.
7017         * i386-tdep.c (i386_return_value): Implement
7018         RETURN_VALUE_ABI_RETURNS_ADDRESS.
7019
7020         * vax-tdep.c: Tweak comments.  Reorder include files.  Don't
7021         include "symtab.h", "opcode/vax.h" and "inferior.h".
7022         (vax_skip_prologue): Replace calls to read_memory_integer by calls
7023         to read_memory_unsigned_integer.
7024         (vax_gdbarch_init): Reorder.
7025         (_initialize_vax_tdep): Spell out prototype.
7026         * Makefile.in (vax-tdep.o): Update dependencies.
7027
7028 2004-05-08  Andrew Cagney  <cagney@redhat.com>
7029
7030         * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
7031         * target.c (target_detach, target_disconnect): Ditto.
7032
7033         * infcall.c (call_function_by_hand): When no
7034         DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
7035         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
7036         DEPRECATED_SAVE_DUMMY_FRAME_TOS.
7037         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7038         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7039         
7040         * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
7041         * gdbarch.h, gdbarch.c: Re-generate.
7042         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7043         deprecated_fix_call_dummy.
7044         * v850-tdep.c (v850_gdbarch_init): Ditto.
7045         * infcall.c (call_function_by_hand): Do not call
7046         DEPRECATED_FIX_CALL_DUMMY.
7047
7048         * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
7049         (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
7050         * gdbarch.h, gdbarch.c: Re-generate.
7051         * arm-linux-tdep.c (arm_linux_call_dummy_words)
7052         (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
7053         deprecated_sizeof_call_dummy_words.
7054         * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
7055         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7056         * v850-tdep.c (v850_gdbarch_init): Ditto.
7057         * sh64-tdep.c (sh64_gdbarch_init): Ditto.
7058         * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
7059         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7060         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7061         * arch-utils.h (legacy_call_dummy_words)
7062         (legacy_sizeof_call_dummy_words): Delete declarations.
7063         * arch-utils.c (legacy_call_dummy_words)
7064         (legacy_sizeof_call_dummy_words): Delete variables.
7065
7066         * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
7067         * gdbarch.h, gdbarch.c: Re-generate.
7068         * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
7069         * infcall.c (call_function_by_hand): Eliminate call to
7070         DEPRECATED_PUSH_DUMMY_FRAME.
7071         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7072         push_dummy_frame.
7073         (ns32k_push_dummy_frame): Delete function.
7074
7075         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7076         deprecated_call_dummy_breakpoint_offset or
7077         deprecated_call_dummy_start_offset.
7078         * dummy-frame.c, arm-tdep.c: Update comments.
7079         * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
7080         (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
7081         * gdbarch.h, gdbarch.c: Re-generate.
7082         
7083         * infcall.c (legacy_push_dummy_code): Delete function.
7084         (push_dummy_code): Delete call.
7085
7086         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
7087         * gdbarch.h, gdbarch.c: Re-generate.
7088         * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
7089         DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
7090         * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
7091         * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
7092
7093         * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
7094         (struct frame_info): Delete opaque declaration.
7095         * breakpoint.c (deprecated_frame_in_dummy): Delete function.
7096         * frame.c (get_frame_type): Delete call.
7097
7098         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7099         pc_in_call_dummy.
7100         * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
7101         * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
7102
7103 2004-05-08  Mark Kettenis  <kettenis@gnu.org>
7104
7105         * alphanbsd-tdep.c: Include "gdb_string.h".
7106         * armnbsd-tdep.c: Update copyright year.
7107         Include "gdb_string.h".
7108         * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
7109         dependencies.
7110
7111         * delta68-nat.c: Remove file.
7112         * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
7113         (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
7114         * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
7115         (delta68-nat.o): Remove dependency.
7116
7117         * m68k-tdep.c (m68k_frameless_function_invocation): Remove
7118         function.
7119         (m68k_gdbarch_init): Don't set
7120         deprecated_frameless_function_invocation.
7121
7122 2004-05-07  Randolph Chung  <tausq@debian.org>
7123
7124         * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use 
7125         read_memory_nobpt for code reading when doing frame unwinding.
7126         * hppa-linux-tdep.c (insns_match_pattern): Likewise.
7127
7128 2004-05-07  Randolph Chung  <tausq@debian.org>
7129
7130         * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
7131         instead of sp, handle sigaltstack case.
7132         (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to 
7133         hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
7134         signal handler and not that of the caller.
7135         (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
7136         hppa_linux_sigtramp_find_sigcontext.
7137
7138 2004-05-07  Randolph Chung  <tausq@debian.org>
7139
7140         * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
7141         hppa-linux-nat.c.
7142         (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
7143         * hppa-linux-nat.c (fetch_register, store_register): Define.
7144         (fetch_inferior_registers, store_inferior_registers): Define.
7145         (supply_gregset): Add comment and clean up some unneeded code.
7146         (fill_gregset): Add comment and fix so that it saves registers in
7147         the right place in the gregset.
7148         (fill_fpregset): Fix buffer overrun problem.
7149         * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
7150
7151 2004-05-07  Randolph Chung  <tausq@debian.org>
7152
7153         * hppa-tdep.c (hppa_frame_prev_register_helper): New function to 
7154         do common handling of the pcoqt register.
7155         (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
7156         to use helper function.
7157         (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
7158         (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
7159         (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
7160         generic fallback unwinder when all else fails.
7161         (hppa_gdbarch_init): Add fallback sniffer.
7162         * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
7163         * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
7164         to use helper function.
7165
7166 2004-05-08  Joel Brobecker  <brobecker@gnat.com>
7167
7168         * config/djgpp/fnchange.lst: Add translation rules for
7169         gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
7170
7171 2004-05-08  Mark Kettenis  <kettenis@gnu.org>
7172
7173         * frame.c (get_prev_frame_1): Work around GCC bug.
7174         * frame.h: Add comment about GCC bug.
7175
7176 2004-05-07  Andrew Cagney  <cagney@redhat.com>
7177
7178         * observer.c: Include "commands.h" and "gdbcmd.h".
7179         (observer_debug, _initialize_observer): Add the
7180         command "set/show debug observer".
7181         * observer.sh: When observer debugging, log notify calls.
7182         * Makefile.in (observer.o): Update dependencies.
7183
7184 2004-05-07  Jason Molenda  (jmolenda@apple.com)
7185
7186         * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
7187
7188 2004-05-07  Jim Blandy  <jimb@redhat.com>
7189
7190         * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
7191         fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
7192         to recognize gpr regnums, instead of assuming that
7193         tdep->ppc_fp0_regnum marks the end of the general-purpose
7194         registers.
7195
7196         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
7197         the given architecture has floating-point registers. 
7198
7199 2004-05-07  Andrew Cagney  <cagney@redhat.com>
7200
7201         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
7202         macro defined to 1.
7203         * gdbarch.h, gdbarch.c: Re-generate.
7204         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7205         deprecated_use_generic_dummy_frames.
7206
7207 2004-05-07  Brian Ford  <ford@vss.fsi.com>
7208
7209         * NEWS: Mention Cygwin DWARF 2 support.
7210
7211 2004-05-07  Andrew Cagney  <cagney@redhat.com>
7212
7213         * objfiles.h (struct entry_info): Delete unused fields
7214         deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
7215         * objfiles.c (init_entry_point_info, objfile_relocate): Update.
7216         * mipsread.c (mipscoff_symfile_read): Update.
7217         * mdebugread.c (parse_partial_symbols): Update.
7218         * dwarfread.c (read_file_scope): Update.
7219         * dwarf2read.c (read_file_scope): Update.
7220         * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
7221         * coffread.c (complete_symtab): Update.
7222
7223 2004-05-07  Mark Kettenis  <kettenis@gnu.org>
7224
7225         * infcall.c (_initialize_infcall): Fix typo.
7226
7227 2004-05-07  Andrew Cagney  <cagney@redhat.com>
7228
7229         * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
7230         * command.h (add_setshow_zinteger_cmd): Declare.
7231
7232 2004-05-06  Randolph Chung  <tausq@debian.org>
7233
7234         * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
7235         (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
7236         (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
7237         (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
7238         (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
7239         (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
7240         (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM 
7241         definitions ...
7242         * hppa-tdep.h: ... to here, with HPPA_ prefix.
7243         * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
7244         * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
7245         (hppa64_hpux_frame_find_saved_regs_in_sig)
7246         (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
7247         * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
7248         * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
7249         (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
7250         (hppa_linux_sigtramp_frame_prev_register): Likewise.
7251         * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
7252         (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
7253         (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
7254         (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
7255         (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
7256         (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
7257         (hppa32_register_type, hppa_cannot_store_register)
7258         (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
7259         * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
7260         * hpread.c (hpread_process_one_debug_symbol): Likewise.
7261         * pa64solib.c (pa64_solib_have_load_event)
7262         (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
7263         (pa64_solib_unloaded_library_pathname): Likewise.
7264         * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
7265         (som_solib_library_pathname): Likewise.
7266
7267 2004-05-05  Jim Ingham  <jingham@apple.com>
7268         
7269         * breakpoint.c (create_breakpoints): Copy the ignore count and
7270         thread id over from the pended breakpoint to the actual
7271         breakpoint.
7272         
7273 2004-05-05  Andrew Cagney  <cagney@redhat.com>
7274
7275         * gdbarch.sh (PARM_BOUNDARY): Delete.
7276         gdbarch.h, gdbarch.c: Re-generate.
7277         * valops.c (PARM_BOUNDARY): Delete macro.
7278         (value_push): Delete PARM_BOUNDARY code.
7279         * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
7280
7281 2004-05-04  Jim Blandy  <jimb@redhat.com>
7282
7283         * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
7284         Don't assume that the gprs, fprs, and UISA sprs are
7285         contiguous, start at register number zero, and end with fpscr.
7286         Instead, use the numbers from the tdep structure.
7287
7288         * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
7289         should no longer be used in code specific to the RS6000 and its
7290         derivatives.
7291         * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
7292         * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
7293         tdep->ppc_fp0_regnum.
7294         (ppc_supply_fpregset, ppc_collect_fpregset)
7295         (rs6000_push_dummy_call, rs6000_extract_return_value)
7296         (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
7297         (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
7298         FP0_REGNUM. 
7299         * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
7300         (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
7301         Same.
7302         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
7303         bdm_ppc_store_registers): Same.
7304         * ppc-linux-nat.c (ppc_register_u_addr, fetch_register) 
7305         (store_register, fill_fpregset): Same.
7306         * ppc-linux-tdep.c (ppc_linux_sigtramp_cache) 
7307         (ppc_linux_supply_fpregset): Same.
7308         * ppcnbsd-nat.c (getfpregs_supplies): Same.
7309         * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
7310         Same.
7311         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
7312         do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
7313         ppc64_sysv_abi_return_value): Same.
7314         * rs6000-nat.c (regmap, fetch_inferior_registers) 
7315         (store_inferior_registers, fetch_core_registers): Same.
7316
7317 2004-05-01  Mark Kettenis  <kettenis@gnu.org>
7318
7319         * m68knbsd-nat.c: Remove file.
7320         * m68knbsd-tdep.c: Remove file.
7321         * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
7322         dependencies.
7323         * configure.host: Add m68k-*-netbsdelf*.
7324         * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
7325         * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
7326         solib.o and solib-sunos.o.  Remove m68knbsd-nat.o, corelow.o.
7327         (XM_FILE): Remove.
7328         * config/m68k/nbsdelf.mh: New file.
7329         * config/m68k/nbsd.mt: New file.
7330         * config/m68k/nbsdaout.mt: Remove file.
7331         * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
7332         <machine/vmparam.h> and "m68k/tm-m68k.h".  Include "solib.h".
7333         (BPT_VECTOR, STACK_END_ADDR): Remove defines.
7334         (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
7335         (use_struct_convention): Remove prototype.
7336         (USE_STRUCT_CONVENTION): Remove define.
7337         * config/m68k/xm-nbsd.h: Remove file.
7338
7339 2004-05-04  Michael Snyder  <msnyder@redhat.com>
7340
7341         * m68k-tdep.c (m68k_gdbarch_init): Default to using 
7342         reg_struct_return method (as gcc usually does for cross targets).
7343
7344 2004-05-04  Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7345
7346         Committed by Andrew Cagney.
7347         * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
7348         alignment padding when accessing ucontext struct members.
7349
7350 2004-05-04  Jim Blandy  <jimb@redhat.com>
7351
7352         * config/ppc-tdep.h (struct gdbarch_tdep): Delete
7353         'ppc_gplast_regnum' member.
7354         (ppc_num_gprs): New enum constant.
7355         * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
7356         and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
7357         * rs6000-nat.c (regmap, fetch_inferior_registers,
7358         store_inferior_registers): Same.
7359         * rs6000-tdep.c (e500_pseudo_register_read)
7360         (e500_pseudo_register_write): Same.
7361         (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
7362
7363         * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
7364         * ppc-tdep.h (ppc_num_fprs): New enum constant.
7365         * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
7366         store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
7367         FPLAST_REGNUM.
7368         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7369         Same.
7370         * ppc-linux-nat.c (ppc_register_u_addr): Same.
7371         * rs6000-nat.c (regmap, fetch_inferior_registers) 
7372         (store_inferior_registers): Same.
7373
7374         * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
7375         with FPLAST_REGNUM.
7376
7377 2004-05-03  Joel Brobecker  <brobecker@gnat.com>
7378
7379         * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
7380         failure detected by recent versions of GCC.
7381         (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
7382         to be consistent with the usage in dwarf2_create_include_psymtab.
7383
7384 2004-05-03  Michael Snyder  <msnyder@redhat.com>
7385
7386         * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
7387         (heuristic_proc_start): Whitespace cleanup.
7388
7389 2004-05-04  Mark Kettenis  <kettenis@gnu.org>
7390
7391         * sun3-nat.c: Remove file.
7392         * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
7393         dependencies.
7394         (ALLDEPFILES): Remove sun3-nat.c.
7395         (sun3-nat.o): Remove dependencies.
7396
7397         * i386-interix-nat.c, i386-interix-tdep.c,
7398         config/i386/nm-interix.h, config/i386/interix.mh,
7399         config/i386/interix.mt: Remove files.
7400         * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
7401         dependencies.
7402
7403 2004-05-03  Mark Kettenis  <kettenis@gnu.org>
7404
7405         * m68k-tdep.h (struct gdbarch_tdep): Add member
7406         struct_value_regnum.
7407         (m68k_svr4_init_abi): New prototype.
7408         * m68k-tdep.c: Include "floatformat.h".  Add comment about all the
7409         different calling conventions.
7410         (m68k_extract_return_value): Remove code dealing with single-field
7411         structs.
7412         (m68k_store_return_value): Remove code dealing with single-field
7413         structs.  Correctly store return values of 5, 6, 7 or 8 bytes.
7414         (m68k_extract_struct_value_address): Remove function.
7415         (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
7416         (m68k_reg_struct_return_p, m68k_return_value)
7417         (m68k_svr4_return_value): New functions.
7418         (m68k_use_struct_convention): Remove function.
7419         (m68k_push_dummy_call): Use new struct_value_regnum member of
7420         `struct gdbarch_tdep' instead of hardcoded register number to
7421         store STRUCT_ADDR.
7422         (m68k_svr4_init_abi): New function.
7423         (m68k_gdbarch_init): Don't set extract_return_value,
7424         store_return_values, deprecated_extract_struct_value_address and
7425         use_struct_convention.  Set return_value instead.  Initialize new
7426         struct_value_regnum member of `struct gdbarch_tdep'.
7427         * m68klinux-tdep.c: Update copyright year.
7428         (m68k_linux_extract_return_value, m68k_linux_store_return_value)
7429         (m68k_linux_extract_struct_value_address): Remove function.
7430         (m68k_linux_init_abi): Don't set extract_return_value,
7431         store_return_values, deprecated_extract_struct_value_address and
7432         use_struct_convention.  Call m68k_svr4_init_abi but override the
7433         new struct_value_regnum member of `struct gdbarch_tdep'.
7434         * Makefile.in (m68k-tdep.o): Update dependencies.
7435
7436 2004-05-03  J. Brobecker  <brobecker@gnat.com>
7437
7438         * dwarf2read.c (line_header): Add new included_p field in
7439         field file_names.
7440         (partial_die_info): New field has_stmt_list. New field line_offset.
7441         (dwarf2_create_include_psymtab): New function.
7442         (dwarf2_build_include_psymtabs): New function.
7443         (add_file_name): Add forward declaration. Initialize new field.
7444         (dwarf_decode_lines): Add new parameter. Enhance this procedure
7445         to be able to determine the list of files included by the
7446         given unit, and build their associated psymtabs.
7447         (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
7448         files as well.
7449         (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
7450         (read_file_scope): Update call to dwarf_decode_lines.
7451         (read_partial_die): Handle DW_AT_stmt_list attributes.
7452
7453 2004-05-02  Michael Chastain  <mec.gnu@mindspring.com>
7454
7455         Unfix PR gdb/1626.
7456         * configure.in: Revert special case for osf5.*.
7457         * configure: Regenerate.
7458
7459 2004-05-02  Jim Blandy  <jimb@redhat.com>
7460
7461         Move the symbol-file-from-memory functions into their own file.
7462         * symfile-mem.c, symfile-mem.h: New files.
7463         * symfile.c (symbol_file_add_from_bfd): New function.
7464         (symbol_file_add): Call symbol_file_add_from_bfd.
7465         (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
7466         Moved to symfile-mem.c.
7467         (_initialize_symfile): Move definition of
7468         add-symbol-file-from-memory command to symfile-mem.c.
7469         * symfile.h (symbol_file_add_from_bfd): New declaration.
7470         * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
7471         * config/powerpc/linux.mt (TDEPFILES): Same.
7472         * Makefile.in (SFILES): Add symfile-mem.c.
7473         (symfile_mem_h): New variable.
7474         (HFILES_NO_SRCDIR): Add symfile-mem.h.
7475         (symfile-mem.o): New rule.
7476
7477 2004-05-01  Andrew Cagney  <cagney@redhat.com>
7478
7479         * breakpoint.c (insert_bp_location): Use get_frame_id, and
7480         frame_find_by_id instead of frame_relative_level.
7481         (do_enable_breakpoint): Ditto.
7482         * thread.c: Update copyright.
7483         (info_threads_command): Ditto, simplify.
7484
7485         * frame.c (deprecated_generic_get_saved_register): Delete
7486         function, moved to "xstormy16-tdep.c".
7487         * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
7488         deprecated_generic_get_saved_register from "frame.c".
7489         (xstormy16_frame_saved_register): Call
7490         xstormy16_get_saved_register.
7491         * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
7492         static.
7493         * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
7494         * frame.h (deprecated_generic_get_saved_register): Delete.
7495
7496 2004-05-01  Michael Chastain  <mec.gnu@mindspring.com>
7497
7498         * dwarfread.c: Update documentation on the state of dwarf-1.
7499
7500 2004-05-01  Andrew Cagney  <cagney@redhat.com>
7501
7502         * stack.c (select_frame_command): Delete call to
7503         frame_relative_level.
7504         (print_frame, set_backtrace_limit_command, backtrace_limit_info):
7505         Delete #if0 code.
7506         (frame_info): Do not print FRAMELESS.
7507         (print_block_frame_labels): Replace DEPRECATED_STREQ.
7508         (catch_info): Delete #if0 code.
7509
7510         * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
7511         * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
7512         of frame_relative_level.
7513         * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
7514         to SENTINEL_FRAME.
7515         * frame.h (enum frame_type): Add SENTINEL_FRAME.
7516         * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
7517         frame_relative_level.
7518
7519         * frame.h (deprecated_set_frame_type): Delete declaration.
7520         * frame.c (deprecated_set_frame_type): Delete function, update
7521         comments.
7522
7523         * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
7524         * gdbarch.h, gdbarch.c: Re-generate.
7525         * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
7526         (shnbsd_pc_in_sigtramp): Delete.
7527         * i386-interix-tdep.c (i386_interix_init_abi): Do not set
7528         pc_in_sigtramp.
7529         * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
7530         pc_in_sigtramp.
7531         * frame.h: Update comments.
7532         * ppc-linux-tdep.c: Update comments.
7533         * breakpoint.c (bpstat_what): Update comments.
7534
7535         * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
7536         m68klinux-tdep.o's dependencies, were previously added to
7537         m68klinux-nat.o.
7538
7539         * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
7540         * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
7541         * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
7542         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
7543         * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
7544
7545         * Makefile.in (m68klinux-nat.o): Update dependencies.
7546         * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
7547         (m68k_linux_sigtramp_frame_cache)
7548         (m68k_linux_sigtramp_frame_this_id)
7549         (m68k_linux_sigtramp_frame_prev_register)
7550         (m68k_linux_sigtramp_frame_unwind)
7551         (m68k_linux_sigtramp_frame_sniffer)
7552         (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
7553         m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
7554         names, use trad-frame.h.
7555         * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
7556         (struct m68k_sigtramp_info): Delete.
7557         * m68k-tdep.c (m68k_sigtramp_frame_cache)
7558         (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
7559         (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
7560         (m68k_gdbarch_init): Delete all the sigtramp code, moved to
7561         "m68klinux-tdep.c".
7562
7563         * infrun.c (check_sigtramp2): Delete check for
7564         DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
7565
7566 2004-05-01  Mark Kettenis  <kettenis@gnu.org>
7567
7568         * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
7569
7570 2004-05-01  Andrew Cagney  <cagney@redhat.com>
7571
7572         * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
7573         (frv_linux_sigtramp_frame_cache)
7574         (frv_linux_sigtramp_frame_this_id)
7575         (frv_linux_sigtramp_frame_prev_register)
7576         (frv_linux_sigtramp_frame_unwind)
7577         (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
7578         include "linux" in function and variable names, directly call
7579         frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
7580         the latest trad-frame code.
7581         (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
7582         not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
7583         * Makefile.in (frv-linux-tdep.o): Update dependencies.
7584         * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
7585         * frv-tdep.c (frv_sigtramp_frame_cache)
7586         (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
7587         (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
7588         frv-linux-tdep.c.
7589         (frv_gdbarch_init): Do not append a sigtramp sniffer.
7590         (struct gdbarch_tdep): Delete sigcontext_reg_addr.
7591         (frv_set_sigcontext_reg_addr): Delete function.
7592
7593         * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
7594         (DEPRECATED_SIGTRAMP_END): Delete.
7595         * gdbarch.h, gdbarch.c: Re-generate.
7596         * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
7597         * config/vax/tm-vaxbsd.h: Update copyright.
7598         (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
7599         (DEPRECATED_IN_SIGTRAMP): Define.
7600         * config/m68k/tm-nbsd.h: Update copyright.
7601         (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
7602         (DEPRECATED_IN_SIGTRAMP): Define.
7603
7604 2004-05-01  Mark Kettenis  <kettenis@gnu.org>
7605
7606         * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
7607         encondings.  Fixes PR gdb/1628.
7608
7609         * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
7610         DW_CFA_restore state without a matching DW_CFA_remember_state
7611         instead of aborting.  Fixes PR backtrace/1589.
7612
7613 2004-04-30  Joel Brobecker  <brobecker@gnat.com>
7614
7615         * MAINTAINERS: Add self as AIX maintainer.
7616         Update my e-mail address in write-after-approval section.
7617
7618 2004-04-30  Andrew Cagney  <cagney@redhat.com>
7619
7620         * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
7621         (legacy_get_prev_frame): Ditto.
7622
7623         * mips-tdep.c (mips_pc_in_sigtramp): Delete.
7624         (mips_gdbarch_init): Do not set pc_in_sigtramp.
7625         * mipsread.c (sigtramp_address): Delete extern variable.
7626         (mipscoff_new_init): Delete reference.
7627         * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
7628         (fixup_sigtramp): Delete function.
7629         * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
7630         (fixup_sigtramp): Delete declarations.
7631
7632         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
7633         deprecated_pc_in_sigtramp.
7634         (ppcnbsd_pc_in_sigtramp): Delete function.
7635
7636 2004-05-01  Mark Kettenis  <kettenis@gnu.org>
7637
7638         * config/m68k/nm-nbsd.h: Tweak comments.
7639         * config/m68k/nm-nbsdaout.h: Likewise.
7640
7641 2004-04-30  Andrew Cagney  <cagney@redhat.com>
7642
7643         * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
7644         legacy_pc_in_sigtramp.
7645         * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
7646
7647 2004-05-01  Mark Kettenis  <kettenis@gnu.org>
7648
7649         Add OpenBSD/m68k support.
7650         * NEWS (New native configurations): Mention OpenBSD/m68k.
7651         * m68kbsd-tdep.c: New file.
7652         * m68kbsd-nat.c: New file.
7653         * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
7654         (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
7655         * configure.host: Add m68k-*-openbsd.
7656         * configure.tgt: Add m68k-*-openbsd.
7657         * config/m68k/tm-obsd.h: New file.
7658         * config/m68k/obsd.mt: New file.
7659         * config/m68k/obsd.mh: New file.
7660         * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
7661         m68kbsd-tdep.c.
7662
7663 2004-04-30  Andrew Cagney  <cagney@redhat.com>
7664
7665         * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
7666         (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
7667
7668 2004-04-30  Mark Kettenis  <kettenis@gnu.org>
7669
7670         * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
7671         * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
7672
7673 2004-04-30  Brian Ford  <ford@vss.fsi.com>
7674
7675         Revert 2004-04-16 change.
7676         * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
7677         (i386_coff_init_abi): Remove.
7678         * i386-tdep.h (i386_coff_init_abi): Remove.
7679         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
7680
7681 2004-04-30  Andrew Cagney  <cagney@redhat.com>
7682
7683         * blockframe.c (find_pc_partial_function): Delete use of
7684         DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
7685         DEPRECATED_SIGTRAMP_END.
7686
7687         * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
7688         * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
7689         * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
7690         * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
7691         * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
7692
7693         * defs.h (deprecated_inside_entry_file): Delete declaration.
7694         * blockframe.c (deprecated_inside_entry_file): Delete function.
7695         (legacy_frame_chain_valid): Delete call.
7696         * sh64-tdep.c (sh64_frame_chain): Delete call.
7697         * objfiles.h: Update comments.
7698         * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
7699         call.
7700         * frame.c (get_prev_frame): Delete call, update comments.
7701
7702 2004-04-30  Brian Ford  <ford@vss.fsi.com>
7703
7704         * MAINTAINERS (Write After Approval): Add myself.
7705
7706 2004-04-30  Andrew Cagney  <cagney@redhat.com>
7707
7708         * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
7709         * gdbarch.h, gdbarch.c: Re-generate.
7710         * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
7711         code.
7712
7713 2004-04-30  Andrew Cagney  <cagney@redhat.com>
7714
7715         * gdb-events.sh (selected_thread_changed)
7716         (selected_frame_level_changed, target_changed): Delete.
7717         * gdb-events.h, gdb-events.c: Re-generate.
7718         * valops.c (value_assign): Update.
7719         * stack.c (select_frame_command, up_silently_base)
7720         (down_silently_base): Update.
7721
7722 2004-04-29  Andrew Cagney  <cagney@redhat.com>
7723
7724         * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
7725         registers correctly.
7726         (print_gp_register_row, mips32_heuristic_proc_desc)
7727         (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
7728         (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
7729         references to mips_isa_regsize.
7730
7731 2004-04-29  Andrew Cagney  <cagney@redhat.com>
7732
7733         * mips-tdep.c (struct gdbarch_tdep): Delete
7734         mips_fp_register_double.
7735         (FP_REGISTER_DOUBLE): Delete macro, replace with test for
7736         mips_abi_regsize.
7737         (mips_gdbarch_init): Do not set mips_fp_register_double.
7738         (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
7739
7740 2004-04-29  Joel Brobecker  <brobecker@gnat.com>
7741
7742         Committed by Andrew Cagney.
7743         * infrun.c (handle_inferior_event): Rely on frame IDs to detect
7744         function calls.
7745
7746 2004-04-29  Andrew Cagney  <cagney@redhat.com>
7747
7748         * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
7749         gdbarch, use mips_abi, update callers.
7750         (mips_stack_argsize): Replace tdep parameter with gdbarch, use
7751         mips_abi_regsize, update callers.
7752         (struct gdbarch_tdep): Delete mips_default_stack_argsize and
7753         mips_default_abi_regsize.
7754         (mips_gdbarch_init): Do not set mips_default_stack_argsize and
7755         mips_default_abi_regsize.
7756
7757 2004-04-29  Andrew Cagney  <cagney@redhat.com>
7758
7759         * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
7760         (mips_abi_regsize_string): Rename mips_saved_regsize_string.
7761         (struct gdbarch_tdep): Rename mips_default_saved_regsize to
7762         mips_default_abi_regsize.
7763         (mips_isa_regsize): Rename mips_regisze.
7764         * mipsnbsd-tdep.c: Update.
7765         * mips-linux-tdep.c: Update.
7766         * irix5-nat.c: Update.
7767         * mips-tdep.h (mips_isa_regsize): Update.
7768
7769         * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
7770         Delete all disabled code.
7771         * gdb-events.h, gdb-events.c: Re-generate.
7772         
7773 2004-04-19  Jerome Guitton  <guitton@gnat.com>
7774             Mark Kettenis  <kettenis@gnu.org>
7775
7776         * i386-tdep.c (i386_skip_prologue): follow the last jump only if
7777         the function begins with a branch instruction.
7778
7779 2004-04-29  Mark Kettenis  <kettenis@gnu.org>
7780
7781         * i386-tdep.c: Fix spelling mistakes.
7782
7783 2004-04-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7784             Andrew Cagney  <cagney@redhat.com>
7785
7786         * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
7787         <sys/proc.h>.
7788         * acconfig.h: Provide default _KMEMUSER value.
7789         * config.in, configure: Re-generate.
7790         * NEWS: Mention fix.
7791
7792 2004-04-24  Randolph Chung  <tausq@debian.org>
7793
7794         * configure.host (hppa*-*-linux*): New target.
7795         * configure.tgt (hppa*-*-linux*): Likewise.
7796         * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
7797         gdbarch_init_osabi() call earlier so that osabi-specific frame
7798         unwinders can be registered first.
7799         * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
7800         hppa-linux-nat.c.
7801         * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
7802         (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
7803         * config/pa/linux.mh: New file.
7804         * config/pa/linux.mt: New file.
7805         * config/pa/nm-linux.h: New file.
7806         * config/pa/xm-linux.h: New file.
7807         * hppa-linux-nat.c: New file.
7808         * hppa-linux-tdep.c: New file.
7809
7810 2004-04-28  Randolph Chung  <tausq@debian.org>
7811
7812         * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
7813         return values.
7814         (hppa32_push_dummy_call): Fix small struct and floating point argument 
7815         passing, and make sure the stack frame is properly aligned.
7816
7817 2004-04-28  Andrew Cagney  <cagney@redhat.com>
7818
7819         * stack.c (print_stack_frame): Fix description.
7820
7821         * NEWS: Mention gdb/gdbserver/configure execute permission
7822         changed.  PR server/519.
7823
7824 2004-04-28  Andrew Cagney  <cagney@redhat.com>
7825
7826         * stack.c (print_stack_frame_stub): Delete declaration.
7827         (struct print_stack_frame_args, print_stack_frame)
7828         (print_frame_info, print_frame): Replace "source" with print what.
7829         Replace "print" with "print_level".  Replace "args" with
7830         "print_args".
7831         * frame.h (show_and_print_stack_frame, print_stack_frame)
7832         (print_frame_info): Update declarations.
7833         * stack.c (select_and_print_frame, frame_command)
7834         (current_frame_command, up_command, down_command): Update calls -
7835         use get_selected_frame, pass "enum print_what" for source, do not
7836         call frame_relative_level.
7837         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
7838         * remote-rdp.c (remote_rdp_open): Ditto.
7839         * remote-mips.c (common_open): Ditto.
7840         * remote-e7000.c (e7000_start_remote): Ditto.
7841         * ocd.c (ocd_start_remote): Ditto.
7842         * mi/mi-main.c (mi_cmd_exec_return): Ditto.
7843         * infrun.c (normal_stop): Ditto.
7844         * inflow.c (kill_command): Ditto.
7845         * infcmd.c (finish_command): Ditto.
7846         * corelow.c (core_open): Ditto.
7847         * tracepoint.c (finish_tfind_command): Ditto.
7848         * thread.c (info_threads_command, info_threads_command) 
7849         (restore_current_thread, do_captured_thread_select): Ditto.
7850         * ada-tasks.c (task_command): Ditto.
7851
7852 2004-04-26  Orjan Friberg <orjanf@axis.com>
7853
7854         * frame.c: Include "observer.h".
7855         (frame_observer_target_changed): New function.
7856         (_initialize_frame): Attach target_changed observer.
7857         * regcache.c: Include "observer.h".
7858         (regcache_observer_target_changed): New function.
7859         (_initialize_regcache): Attach target_changed observer.
7860         * valops.c: Include "observer.h".
7861         (value_assign): Notify target_changed event when modifying register.
7862         * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
7863
7864 2004-04-26  Orjan Friberg <orjanf@axis.com>
7865
7866         From Paul Koning <pkoning@equallogic.com>:
7867         * breakpoint.c (free_valchain): New function.
7868         (insert_bp_location, delete_breakpoint): Use free_valchain.
7869         (remove_breakpoint): Do not remove the valchain.
7870         (bpstat_stop_status): If not stopped by watchpoint, skip
7871         watchpoints when generating stop status list.
7872         * infrun.c (handle_inferior_event): Make
7873         stepped_after_stopped_by_watchpoint a global variable.
7874         * remote.c (remote_stopped_data_address): Return watch data
7875         address rather than zero if stepped_after_stopped_by_watchpoint is
7876         set.
7877
7878 2004-04-25  Michael Chastain  <mec.gnu@mindspring.com>
7879
7880         Fix PR gdb/1626.
7881         * configure.in: Check for curses after termcap.
7882         On osf5.*, do not check for ncurses.
7883         * configure: Regenerate.
7884
7885 2004-04-25  Mark Kettenis  <kettenis@gnu.org>
7886
7887         * ppcobsd-nat.c: Include "ppc-tdep.h".
7888         * Makefile.in (ppcobsd-nat.o): Update dependencies.
7889
7890         * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
7891         Fixes PR tdep/1623 and PR tdep/1624.
7892
7893 2004-04-24  Michael Chastain  <mec.gnu@mindspring.com>
7894
7895         * xmodem.h, xmodem.c: Remove files.
7896         * Makefile.in: Remove references to xmodem.h, xmodem.c.
7897
7898 2004-04-23  Randolph Chung  <tausq@debian.org>
7899
7900         * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
7901         (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
7902         (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
7903         for handling stackless frames.
7904         (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer. 
7905
7906 2004-04-23  Randolph Chung  <tausq@debian.org>
7907
7908         * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
7909         starts at a pc before the frame is created.
7910
7911 2004-04-23  Joel Brobecker  <brobecker@gnat.com>
7912
7913         * ChangeLog-2002: Fix year in one of the ChangeLog entries.
7914
7915 2004-04-23  Jerome Guitton  <guitton@gnat.com>
7916
7917         * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
7918         use convert_typed_floating to get the appropriate format.
7919
7920 2004-04-22  Randolph Chung  <tausq@debian.org>
7921
7922         * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
7923         (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
7924         (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
7925         (hppa_sign_extend): Add prototype.
7926         * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
7927         (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
7928         (sign_extend): Rename with hppa_ prefix and make non-static.  Other
7929         hppa targets will also use these functions.
7930         (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
7931         (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
7932         (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
7933         (hppa_gdbarch_init): Remove gdbarch setting of 
7934         skip_trampoline_code, in_solib_call_trampoline and
7935         in_solib_return_trampoline.
7936         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
7937         (hppa64_hpux_in_solib_call_trampoline): New functions, split from
7938         hppa_in_solib_call_trampoline.
7939         (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
7940         Moved from hppa-tdep.c.
7941         (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code, 
7942         in_solib_call_trampoline and in_solib_return_trampoline.
7943
7944 2004-04-22  Randolph Chung  <tausq@debian.org>
7945
7946         * hppa-tdep.c (hppa_debug): New variable.
7947         (find_unwind_entry, hppa_frame_cache): Add debug output.
7948         (_initialize_hppa_tdep): Add command to set debug flag.
7949
7950 2004-04-22  Andrew Cagney  <cagney@redhat.com>
7951
7952         * ppcnbsd-tdep.c: Update copyright.  Include "tramp-frame.h" and
7953         "trad-frame.h".
7954         (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
7955         signal trampoline unwinder.
7956         (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
7957
7958 2004-04-22  Mark Kettenis  <kettenis@gnu.org>
7959
7960         Add OpenBSD/powerpc support.
7961         * NEWS (New native configurations): Mention OpenBSD/powerpc.
7962         * ppc-tdep.h (struct ppc_reg_offsets): New structure.
7963         (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
7964         (ppc_collect_fpregset): New prototypes.
7965         * ppcobsd-nat.c: New file.
7966         * ppcobsd-tdep.c: New file.
7967         * ppcobsd-tdep.h: New file.
7968         * rs6000-tdep.c: Include "regset.h".
7969         (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
7970         (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
7971         New functions.
7972         * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
7973         (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
7974         (rs6000-tdep.o): Update dependencies.
7975         * configure.host: Add powerpc-*-openbsd.
7976         * configure.tgt: Add powerpc-*-openbsd.
7977         * config/powerpc/obsd.mh: New file.
7978         * config/powerpc/nm-obsd.h: New file.
7979         * config/powerpc/obsd.mt: New file.
7980
7981 2004-04-22  Andrew Cagney  <cagney@redhat.com>
7982
7983         * frame.h (show_frame_info): Delete declaration.
7984
7985         * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
7986         * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
7987         * m32r-tdep.c (m32r_frame_this_id): Ditto.
7988         * frv-tdep.c (frv_frame_this_id): Ditto.
7989         * avr-tdep.c (avr_frame_this_id): Ditto.
7990
7991 2004-04-22  Elena Zannoni  <ezannoni@redhat.com>
7992
7993         * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
7994
7995 2004-04-22  Jim Blandy  <jimb@redhat.com>
7996
7997         * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
7998         register number zero.
7999
8000 2004-04-21  Michael Snyder  <msnyder@redhat.com>
8001
8002         * mips-tdep.c (heuristic_proc_start): 
8003         Warning() already prefixes "Warning: ".
8004
8005 2004-04-21  Andrew Cagney  <cagney@redhat.com>
8006
8007         * annotate.h (deprecated_annotate_starting_hook)
8008         (deprecated_annotate_stopped_hook)
8009         (deprecated_annotate_exited_hook)
8010         (deprecated_annotate_signal_hook)
8011         (deprecated_annotate_signalled_hook): Deprecate.
8012         * tracepoint.h (deprecated_create_tracepoint_hook)
8013         (deprecated_delete_tracepoint_hook)
8014         (deprecated_modify_tracepoint_hook)
8015         (deprecated_trace_find_hook)
8016         (deprecated_trace_start_stop_hook): Deprecate.
8017         * target.h (deprecated_target_new_objfile_hook): Deprecate.
8018         * remote.h (deprecated_target_resume_hook)
8019         (deprecated_target_wait_loop_hook): Deprecate.
8020         * gdbcore.h (deprecated_exec_file_display_hook)
8021         (deprecated_file_changed_hook): Deprecate.
8022         * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
8023         * defs.h (deprecated_modify_breakpoint_hook)
8024         (deprecated_command_loop_hook, deprecated_show_load_progress)
8025         (deprecated_print_frame_info_listing_hook)
8026         (deprecated_query_hook, deprecated_warning_hook)
8027         (deprecated_flush_hook, deprecated_create_breakpoint_hook)
8028         (deprecated_delete_breakpoint_hook)
8029         (deprecated_interactive_hook, deprecated_registers_changed_hook)
8030         (deprecated_readline_begin_hook, deprecated_readline_hook)
8031         (deprecated_readline_end_hook, deprecated_register_changed_hook)
8032         (deprecated_memory_changed_hook, deprecated_init_ui_hook)
8033         (deprecated_context_hook, deprecated_target_wait_hook)
8034         (deprecated_attach_hook, deprecated_detach_hook)
8035         (deprecated_call_command_hook, deprecated_set_hook)
8036         (deprecated_error_hook, deprecated_error_begin_hook)
8037         (deprecated_ui_load_progress_hook): Deprecate.
8038         * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
8039         * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
8040         * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
8041         * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
8042         * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
8043         * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
8044         * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
8045         * annotate.c, aix-thread.c: Update.
8046
8047 2004-04-21  Andrew Cagney  <cagney@redhat.com>
8048
8049         * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
8050         * vaxnbsd-tdep.c: Include "gdb_string.h".
8051
8052         * symfile.c (symbol_file_add_from_memory): #if 0 function.
8053         (add_symbol_file_from_memory_command): #if 0 function body, call
8054         error instead.
8055
8056 2004-04-21  Andrew Cagney  <cagney@redhat.com>
8057
8058         * gdbcore.h: Update copyright.
8059         (deprecated_add_core_fns): Rename add_core_fns.
8060         * win32-nat.c (_initialize_core_win32): Update.
8061         * sun3-nat.c (_initialize_core_sun3): Update.
8062         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
8063         * rs6000-nat.c (_initialize_core_rs6000): Update.
8064         * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
8065         * nto-tdep.c (_initialize_nto_tdep): Update.
8066         * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
8067         * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
8068         * mips-nat.c (_initialize_core_mips): Update.
8069         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8070         * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
8071         * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
8072         * lynx-nat.c (_initialize_core_lynx): Update.
8073         * irix5-nat.c (_initialize_core_irix5): Update.
8074         * i386-interix-nat.c (_initialize_core_interix): Update.
8075         * cris-tdep.c (_initialize_cris_tdep): Update.
8076         * corelow.c (deprecated_add_core_fns): Update.
8077         * core-regset.c (_initialize_core_regset): Update.
8078         * core-aout.c (_initialize_core_aout): Update.
8079         * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
8080         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
8081         * alpha-nat.c (_initialize_core_alpha): Update.
8082
8083 2004-04-21  Jim Blandy  <jimb@redhat.com>
8084
8085         * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
8086
8087 2004-04-19  Daniel Jacobowitz  <drow@mvista.com>
8088
8089         * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
8090         Delete.
8091         (dwarf_alloc_block): Take a CU argument.  Use the comp_unit_obstack.
8092         (read_attribute_value): Update calls to dwarf_alloc_block.
8093         (dwarf2_build_psymtabs_hard): Don't initialize or clean up
8094         dwarf2_tmp_obstack.
8095         (psymtab_to_symtab_1): Likewise.  Clean up using
8096         free_stack_comp_unit.
8097         (add_to_cu_func_list): Use the comp_unit_obstack.
8098
8099 2004-04-19  Joel Brobecker  <brobecker@gnat.com>
8100
8101         * dwarf2read.c (dwarf2_flag_true_p): New function.
8102         (die_is_declaration): Use the function above. Add some comments.
8103
8104 2004-04-19  Mark Kettenis  <kettenis@gnu.org>
8105
8106         * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
8107         architecture when registering sparcnbsd_core_osabi_sniffer.
8108         Adjust comment.
8109
8110 2004-04-18  Mark Kettenis  <kettenis@gnu.org>
8111
8112         * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
8113         return value.
8114
8115         Based on a patch from Brian Ford <ford@vss.fsi.com>:
8116         * i386-tdep.c: Correct register numbering scheme comments
8117         throughout.
8118         (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
8119         (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
8120         (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
8121         (i386_gdb_arch_init): Likewise.
8122
8123         * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
8124         and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
8125         ppcnbsd-tdep.o.
8126
8127         * m68k-tdep.h: Tweak comments.
8128         * m68k-tdep.c: Tweak comment.
8129
8130 2004-04-17  Randolph Chung  <tausq@debian.org>
8131
8132         * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
8133         * hppa-hpux-tdep.c (hppa-tdep.h): Include.
8134         (hppa_hpux_som_init_abi): Set is_elf to 0.
8135         (hppa_hpux_elf_init_abi): Set is_elf to 1.
8136         * hppa-tdep.c (low_text_segment_address): Remove global.
8137         (record_text_segment_lowaddr): Pass in low address as parameter. Use
8138         section offset to calculate segment address.
8139         (internalize_unwinds): Define low_text_segment_address as local and
8140         pass to record_text_segment_lowaddr for ELF targets.
8141         (hppa_gdbarch_init): Zero fill tdep structure.
8142         (hppa_dump_tdep): Print tdep structure.
8143         * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
8144
8145 2004-04-17  Randolph Chung  <tausq@debian.org>
8146
8147         * hppa-tdep.c (hppa_pseudo_register_read): Define.
8148         (hppa_gdbarch_init): Set pseudo_register_read.
8149         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
8150         * regcache.c (supply_register): Remove check for
8151         DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
8152
8153 2004-04-17  Randolph Chung  <tausq@debian.org>
8154
8155         * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
8156         * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
8157         (hpread_adjust_stack_address): Move to hpread.c.
8158         * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8159         obj_private_struct): Move from tm-hppa.h.
8160         * hpread.c (hppa-tdep.h): Include.
8161         (hpread_adjust_stack_address): Move from hppa-tdep.c.
8162         (hpread_read_function_type, hpread_read_doc_function_type)
8163         (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address 
8164         directly.
8165         * pa64solib.c (hppa-tdep.h): Include.
8166         * somsolib.c (hppa-tdep.h): Include.
8167         * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
8168         inferior_status): Remove unused forward declarations.
8169         (INSTRUCTION_SIZE): Move to hppa-tdep.c.
8170         (unwind_table_entry, unwind_stub_types, obj_unwind_info, 
8171         obj_private_struct): Move to hppa-tdep.h.
8172         (HPREAD_ADJUST_STACK_ADDRESS): Remove.
8173
8174 2004-04-17  Randolph Chung  <tausq@debian.org>
8175
8176         * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
8177         (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
8178         (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
8179         (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
8180         Remove forward declaration and make static.
8181         (hppa_reg_struct_has_addr): Remove.
8182
8183 2004-04-16  Joel Brobecker  <brobecker@gnat.com>
8184
8185         * observer.sh: Move comments in sed command to first column.
8186
8187 2004-04-16  Jason Molenda  (jmolenda@apple.com)
8188
8189         * frame.c: Minor typeo corrections in comments.
8190
8191 2004-04-16  Joel Brobecker  <brobecker@gnat.com>
8192
8193         * observer.c (observer_test_first_notification_function): Update
8194         function profile.
8195         (observer_test_second_notification_function): Likewise.
8196         (observer_test_third_notification_function): Likewise.
8197
8198 2004-04-16  Mark Kettenis  <kettenis@gnu.org>
8199
8200         From Brian Ford <ford@vss.fsi.com>:
8201         * i386-tdep.c (i386_coff_init_abi): New function.
8202         * i386-tdep.h (i386_coff_init_abi): New prototype.      
8203         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it.  Use correct
8204         register number translation functions for DWARF and DWARF 2.
8205
8206 2004-04-16  Joel Brobecker  <brobecker@gnat.com>
8207
8208         * dwarf2read.c: Back out my previous change, it was incorrect.
8209
8210 2004-04-16  Daniel Jacobowitz  <drow@mvista.com>
8211
8212         * dwarf2read.c: Include "hashtab.h".
8213         (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
8214         has_namespace_info.
8215         (struct partial_die_info): Add comments.  Use bitfields to reduce
8216         memory footprint.  Add scope, scope_set, has_specification,
8217         spec_offset, die_parent, die_child, and die_sibling.
8218         (peek_die_abbrev): Add prototype.
8219         (partial_read_comp_unit_head): New function, broken out from
8220         dwarf2_build_psymtabs_hard.
8221         (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
8222         Use partial_read_comp_unit_head.  Initialize the CU and
8223         comp_unit_obstack.  Update calls to read_partial_die and
8224         scan_partial_symbols.  Use free_stack_comp_unit and
8225         load_partial_dies.
8226         (scan_partial_symbols): Change PDI to a pointer.  Use the child and
8227         sibling pointers to walk partial DIEs.  Call fixup_partial_die.
8228         Update calls to helper functions.  Remove NAMESPACE argument.
8229         Update comments.
8230         (partial_die_parent_scope, partial_die_full_name): New functions.
8231         (add_partial_symbol): Remove namespace argument.  Update call to
8232         pdi_needs_namespace.  Use partial_die_full_name.  Handle
8233         DW_TAG_namespace.  Check has_namespace_info flag.
8234         (pdi_needs_namespace): Remove NAMESPACE argument.  Just check the
8235         tag.  Handle namespaces.
8236         (add_partial_namespace, add_partial_enumeration): Simplify.
8237         (guess_structure_name): New function, derived from
8238         add_partial_structure.
8239         (add_partial_structure): Remove.
8240         (determine_class_name): Update comment.
8241         (dwarf2_read_abbrevs): Set has_namespace_info flag.
8242         (is_type_tag_for_partial, load_partial_dies): New functions.
8243         (read_partial_die): Pass abbrev and abbrev_len as arguments.
8244         Record specifications instead of following them immediately.
8245         (find_partial_die_in_comp_unit, find_partial_die)
8246         (fixup_partial_die, free_stack_comp_unit)
8247         (hashtab_obstack_allocate, dummy_obstack_deallocate)
8248         (partial_die_hash, partial_die_eq): New functions.
8249         * Makefile.in (hashtab_h): Define.
8250         (dwarf2read.o): Update dependencies.
8251         (observer_inc, observer_h): Move to the correct section.
8252
8253 2004-04-15  Joel Brobecker  <brobecker@gnat.com>
8254
8255         * dwarf2read.c (dwarf2_attribute_true_p): New function.
8256         (die_is_declaration): Use the function above. Add comment.
8257
8258 2004-04-15  Joel Brobecker  <brobecker@gnat.com>
8259
8260         * dwarf2read.c (read_structure_scope): Identify stub types
8261         using die_is_declaration() only.
8262
8263 2004-04-15  Roland McGrath  <roland@redhat.com>
8264
8265         * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
8266         argument instead of NAME.
8267         (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
8268         in call to symbol_file_add_with_addrs_or_offsets.
8269         (build_addr_info): New function, helper for ...
8270         (symbol_file_add_from_memory): New function.
8271         (add_symbol_file_from_memory_command): New function using that.
8272         (_initialize_symfile): Register it for add-symbol-file-from-memory.
8273         (pre_add_symbol_hook): Add const to argument type.
8274         * symfile.h (symbol_file_add_from_memory): Declare it.
8275
8276 2004-04-15  Mark Kettenis  <kettenis@gnu.org>
8277
8278         * NEWS (New native configurations): Mention OpenBSD/vax.
8279         * configure.host: Add vax-*-openbsd*.
8280         * config/vax/obsd.mh: New file.
8281         * config/vax/nm-obsd.h: New file.
8282
8283         * vax-tdep.c: Include "regset.h".
8284         (vax_supply_gregset): New function.
8285         (vax_gregset): New variable.
8286         (vax_regset_from_core_section): New function.
8287         (vax_gdbarch_init): Set regset_from_core_section.
8288         * Makefile.in (vax-tdep.o): Update dependencies.
8289
8290 2004-04-15  Andrew Cagney  <cagney@redhat.com>
8291
8292         * observer.c (normal_stop_subject, observer_notify_normal_stop)
8293         (observer_normal_stop_notification_stub)
8294         (observer_attach_normal_stop, observer_detach_normal_stop):
8295         Delete, replaced by #include "observer.inc".
8296         * infrun.c (normal_stop): Pass "stop_bpstat" to
8297         observer_notify_normal_stop.
8298         * Makefile.in (observer_inc): Define.
8299         (observer.o): Update dependencies.
8300         (observer.h, observer.inc): New rules.
8301         * observer.h: Delete file.
8302         * observer.sh: New file.
8303
8304 2004-04-15  Mark Kettenis  <kettenis@gnu.org>
8305
8306         * vax-tdep.c (vax_frame_cache): Fix typo.
8307
8308 2004-04-14  Mark Kettenis  <kettenis@gnu.org>
8309
8310         * NEWS (New native configurations): Mention NetBSD/vax.
8311         * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
8312         * config/vax/nbsdelf.mh: New file.
8313         * config/vax/nbsdaout.mh: New file.
8314         * config/vax/nm-nbsd.h: New file.
8315         * config/vax/nm-nbsdaout.h: New file.
8316
8317         * vaxnbsd-tdep.c: New file.
8318         * Makefile.in (vaxnbsd-tdep.o): New dependency.
8319         * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
8320         * config/vax/nbsd.mt: New file.
8321         * config/vax/tm-nbsd.h: New file.
8322
8323         * Makefile.in (vaxbsd-nat.o): New dependency.
8324
8325         * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
8326         * vax-tdep.c (vax_store_arguments): Remove struct_return and
8327         struct_addr arguments.  Don't push return value address.
8328         (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
8329         arguments to vax_store_arguments.  Store return value address in
8330         R1.
8331         (vax_store_struct_return, vax_extract_return_value)
8332         (vax_store_return_value): Remove functions.
8333         (vax_return_value): New function.
8334         (vax_gdbarch_init): Set return value.  Don't set
8335         deprecated_store_struct_return, deprecated_extract_struct_return
8336         and deprecated_store_return_value.
8337
8338 2004-04-14  Andreas Schwab  <schwab@suse.de>
8339
8340         * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
8341         value buffer.
8342         * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
8343
8344 2004-04-14  Mark Kettenis  <kettenis@gnu.org>
8345
8346         * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
8347         (vax_unwind_dummy_id): New functions.
8348         (vax_push_dummy_frame, vax_pop_frame): Remove functions.
8349         (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
8350         variables.
8351         (vax_fix_call_dummy): Remove function.
8352         (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
8353         Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
8354         call_dummy_location, deprecated_call_dummy_words,
8355         deprecated_sizeof_call_dummy_words,
8356         deprecated_call_dummy_breakpoint_offset,
8357         deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
8358         and deprecated_dummy_write_sp.
8359
8360 2004-04-13  David Carlton  <carlton@kealia.com>
8361
8362         * MAINTAINERS: Move myself to "paper trail" section.
8363
8364 2004-04-12  Mark Kettenis  <kettenis@gnu.org>
8365
8366         * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
8367         "trad-frame.h".
8368         (vax_frame_init_saved_regs): Remove function.
8369         (vax_sigtramp_saved_pc): Remove function.
8370         (vax_frame_saved_pc): Remove function.
8371         (vax_frame_args_address): Remove function.
8372         (vax_frame_num_args): Rewrite.
8373         (vax_frame_chain): Remove function.
8374         (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
8375         VAX_FP_REGNUM.
8376         (vax_pop_frame): Likewise.
8377         (vax_saved_pc_after_call): Remove function.
8378         (struct vax_frame_cache): New structure.
8379         (vax_frame_cache): New function.
8380         (vax_frame_this_id): New function.
8381         (vax_frame_prev_register): New function.
8382         (vax_frame_unwind): New variable.
8383         (vax_frame_sniffer): New function.
8384         (vax_frame_base_address): New function.
8385         (vax_frame_args_address): New function.
8386         (vax_frame_base): New variable.
8387         (vax_unwind_pc): New function.
8388         (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
8389         deprecated_fp_regnum, deprecated_saved_pc_after_call,
8390         deprecated_frame_chain, deprecated_frame_saved_pc,
8391         deprecated_frame_args_address and
8392         deprecated_frame_init_saved_regs.
8393         * Makefile.in (vax-tdep.o): Update dependencies.
8394
8395         * vaxbsd-nat.c: New file.
8396
8397         * vax-tdep.h: Update copyright year.  Adjust comments.
8398         (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
8399         VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
8400         (vax_regnum): New enum.  Replacing...
8401         (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
8402         (VAX_PS_REGNUM): ... these removed macros.
8403         * vax-tdep.c (vax_register_name): Remove prototype.
8404         (vax_register_name): Reorganize somewhat.  Use ARRAY_SIZE.
8405         (vax_register_byte, vax_register_raw_size,
8406         vax_register_virtual_size, vax_register_virtual_type): Remove
8407         functions.
8408         (vax_register_type): New function.
8409         (vax_breakpoint_from_pc): Reorganize.
8410         (vax_gdbarch_init): Set register_type.  Don't set
8411         deprecated_register_size, deprecated_register_bytes,
8412         deprecated_register_byte, deprecated_register_raw_size,
8413         deprecated_max_register_raw_size,
8414         deprecated_register_virtual_size,
8415         deprecated_max_register_virtual_size and
8416         deprecated_register_virtual_type.  Add comment on stack direction.
8417
8418 2004-04-11  Mark Kettenis  <kettenis@gnu.org>
8419
8420         * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
8421         AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
8422         AMD64_FS_REGNUM and AMD64_GS_REGNUM.
8423
8424 2004-04-10  Randolph Chung  <tausq@debian.org>
8425
8426         * MAINTAINERS (write after approval): Add myself.
8427
8428 2004-04-07  Randolph Chung  <tausq@debian.org>
8429
8430         * hppa-tdep.c (hppa_inner_than): Remove.
8431         (is_pa_2): Remove unused static variable.
8432         (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
8433
8434 2004-03-10  Paul N. Hilfinger  <Hilfinger@gnat.com>
8435
8436         * language.h (language_defn): Add new la_post_parser field.
8437         * parser-defs.h (null_post_parser): New declaration (default for
8438         la_post_parser).
8439
8440         * parse.c (parse_exp_1): Move code to parse_exp_in_context and
8441         insert call to that function.
8442         (parse_exp_in_context): New function, including code formerly in
8443         parse_exp_1.  Calls language-dependent post-parser after
8444         prefixification.
8445         (parse_expression_in_context): New exported function.
8446         (null_post_parser): New definition.
8447         * expression.h (parse_expression_in_context): Add declaration.
8448
8449         * p-lang.c (pascal_language_defn): Add trivial post-parser.
8450         * c-lang.c (c_language_defn): Ditto.
8451         (cplus_language_defn): Ditto.
8452         (asm_language_defn): Ditto.
8453         (minimal_language_defn): Ditto.
8454         * f-lang.c (f_language_defn): Ditto.
8455         * jv-lang.c (java_language_defn): Ditto.
8456         * language.c (unknown_language_defn): Ditto.
8457         (auto_language_defn): Ditto.
8458         (local_language_defn): Ditto.
8459         * m2-lang.c (m2_language_defn): Ditto.
8460         * scm-lang.c (scm_language_defn): Ditto.
8461         * obj-lang.c (objc_language_defn): Ditto.
8462
8463 2004-04-10  Mark Kettenis  <kettenis@gnu.org>
8464
8465         * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
8466         (amd64nbsd_mcontext_addr): New function.
8467         (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
8468         amd64nbsd_mcontext_addr.  Directly initialize TDEP->sc_reg_offset
8469         with amd64nbsd_r_reg_offset, instead of building it on the fly.
8470
8471         * corelow.c (core_xfer_partial): Fix coding standards violation.
8472         Add support for TARGET_OBJECT_WCOOKIE.
8473
8474         * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
8475         deprecated_pc_in_sigtramp.
8476         * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
8477         * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
8478         * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
8479         * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8480         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
8481         * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8482         * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
8483
8484         * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
8485         i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
8486         Fix typo.
8487
8488         * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
8489         I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
8490         (amd64_collect_fxsave): Likewise.
8491
8492         * i386-sol2-tdep.c: Include "gdb_string.h".
8493         (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
8494         name.
8495         * Makefile.in (i386-sol2-tdep.o): Update dependencies.
8496
8497 2004-04-10  Mark Kettenis  <kettenis@gnu.org>
8498
8499         * i386-sol2-tdep.c: Include "solib-svr4.h".
8500         (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8501         * Makefile.in (i386-sol2-tdep.o): Update dependencies.
8502         * config/i386/tm-i386sol2.h: Include :solib.h".
8503         * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
8504         solib-svr4.o and solib-legacy.o.
8505         * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
8506         solib-svr4.o.
8507
8508 2004-04-09  Mark Kettenis  <kettenis@gnu.org>
8509
8510         * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
8511         whether a register is supplied by PTRACE_GETFPREGS.
8512         (store_inferior_registers): Likewise.
8513         * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
8514         whether a register is supplied by PT_GETFPREGS.
8515         (store_inferior_registers): Likewise.
8516
8517         * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
8518         * config/i386/linux64.mt (TDEPFILES): Likewise.
8519
8520         * i386-linux-nat.c: Update copyrigth year.  Tweak comment.
8521
8522         * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
8523         sigtramp_p member of `struct gdbarch_tdep'.  Also check whether
8524         the program counter is in the range specified by `struct
8525         gdbarch_tdep'.
8526         * amd64-linux-tdep.c: Include "symtab.h".
8527         (amd64_linux_pc_in_sigtramp): Remove function.
8528         (amd64_linux_sigtramp_p): New function.
8529         (amd64_linux_init_abi): Initialize TDEP->sigtramp_p.  Don't set
8530         deprecated_pc_in_sigtramp.
8531         * amd64nbsd-tdep.c: Include "symtab.h".
8532         (amd64nbsd_sigtramp_p): New function.
8533         (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p.  Don't set
8534         deprecated_pc_in_sigtramp.
8535         * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h".  Add a
8536         few comments.
8537         (amd64obsd_pc_in_sigtramp): Remove function.
8538         (amd64obsd_sigtramp_p): New function.
8539         (amd64obsd_init_abi): Initialize TDEP->sigtramp_p.  Don't set
8540         deprecated_pc_in_sigtramp.
8541         * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
8542         (i386bsd_pc_ins_sigtramp): Remove prototype.
8543         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
8544         * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
8545         sigtramp_p member of `struct gdbarch_tdep'.  Also check whether
8546         the program counter is in the range specified by `struct
8547         gdbarch_tdep'.
8548         (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
8549         (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
8550         (i386_go32_pc_in_sigtramp): Remove function.
8551         (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
8552         Initialize TDEP->sigtramp_p.
8553         (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
8554         (i386_gdbarch_init): Initialize TDEP->sigtramp_p.  Don't set
8555         deprecated_pc_in_sigtramp.
8556         * i386-linux-tdep.c: Adjust comments.
8557         (i386_linux_pc_in_sigtramp): Remove function.
8558         (i386_linux_sigtramp_p): New function.
8559         (i386_linux_init_abi): Initialize TDEP->sigtramp_p.  Don't set
8560         deprecated_pc_in_sigtramp.
8561         * i386-nto-tdep.c: Update copyright year.
8562         (i386nto_pc_in_sigtramp): Remove function.
8563         (i386nto_sigtramp_p): New function.
8564         (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
8565         SP_REGNUM.
8566         (i386nto_init_abi): Initialize TDEP->sigtramp_p.  Don't set
8567         deprecated_pc_in_sigtramp.
8568         * i386-sol2-tdep.c: Update copyright year.
8569         (i386_sol2_pc_in_sigtramp): Remove function.
8570         (i386_sol2_sigtramp_p): New function.
8571         (i386_sol2_init_abi): Initialize TDEP->sigtramp_p.  Don't set
8572         deprecated_pc_in_sigtramp.
8573         * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
8574         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
8575         (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8576         deprecated_sigtramp_start and deprecated_sigtramp_end.
8577         * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
8578         (i386nbsd_pc_in_sigtramp): Remove function.
8579         (i386nbsd_sigtramp_p): New function.
8580         (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8581         deprecated_sigtramp_start, deprecated_sigtramp_end.  Initialize
8582         TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
8583         * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
8584         (i386obsd_pc_in_sigtramp): Remove function.
8585         (i386obsd_sigtramp_p): New function.
8586         (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
8587         functions.
8588         (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8589         deprecated_sigtramp_start, deprecated_sigtramp_end.  Initialize
8590         TDEP->sigtramp_p.
8591         * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
8592         amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
8593         dependencies.
8594
8595         * config/i386/i386aout.mt: Remove file.
8596
8597         * configure.tgt: Remove i[34567]86-*-go32*,
8598         i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
8599         and i[34567]86-*-isc*.  Set gdb_target to i386 for
8600         i[34567]86-*-netware* and i[34567]86-*-*.
8601         * config/i386/i386.mt: New file.
8602         * config/i386/embed.mt: Remove file.
8603         * config/i386/go32.mt: Remove file.
8604         * config/i386/i386nw.mt: Remove file.
8605         * config/i386/i386v.mt: Remove file.
8606         * config/i386/tm-go32.h: Remove file.
8607
8608         * tui/tui-hooks.c: Include "readline/readline.h" after
8609         "gdb_curses.h" instead of before.
8610         * tui/tui-io.c: Likewise.
8611
8612         * tui/tui.c: Fix typo in comment.
8613
8614         * sparc64-tdep.c (sparc_address_from_register): Remove function.
8615
8616 2004-04-08  Andrew Cagney  <cagney@redhat.com>
8617
8618         * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
8619         (deprecated_exception_support_initialized): Declare.
8620         * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
8621         (initialize_hp_cxx_exception_support)
8622         (child_enable_exception_callback): Update.
8623         * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
8624         (deprecated_exception_support_initialized): Rename
8625         deprecated_exception_catchpoints_are_fragile and
8626         deprecated_exception_support_initialized.
8627         (breakpoint_init_inferior, breakpoint_init_inferior): Update.
8628
8629         * symtab.c (deprecated_hp_som_som_object_present): Rename
8630         hp_som_som_object_present.
8631         * symtab.h (deprecated_hp_som_som_object_present): Declare.
8632         * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
8633         Update.  Delete extern declaration.
8634         * valops.c (hp_som_som_object_present): Ditto.
8635         * parse.c (deprecated_hp_som_som_object_present)
8636         (parse_nested_classes_for_hpacc): Ditto.
8637         * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8638         * hppa-hpux-tdep.c (hp_som_som_object_present)
8639         (initialize_hp_cxx_exception_support): Ditto.
8640         * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8641         * cp-valprint.c (hp_som_som_object_present)
8642         (cp_print_class_method): Ditto.
8643         * c-typeprint.c (hp_som_som_object_present):
8644         (c_type_print_base): Ditto.
8645         * c-exp.y (hp_som_som_object_present): Ditto.
8646
8647 2004-04-08  Andrew Cagney  <cagney@redhat.com>
8648
8649         * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
8650         (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
8651         (frame_unwind_find_by_frame): Re-implement the unwind code so
8652         that it can both prepend and append sniffers.  Replace
8653         frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
8654         * tramp-frame.c (tramp_frame_append): Use
8655         frame_unwind_prepend_unwinder.
8656         * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
8657         frame_unwind_register_unwinder.
8658         * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
8659         tramp_frame_append.
8660         * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8661         * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
8662         (mips_linux_init_abi): Update.
8663
8664 2004-04-08  Kevin Buettner  <kevinb@redhat.com>
8665
8666         * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
8667         (ELF_FPREGSET_SIZE):  Delete constants formerly used in core
8668         file support.
8669
8670 2004-04-07  Kevin Buettner  <kevinb@redhat.com>
8671
8672         * ia64-tdep.c (elf.h): Don't include.
8673         (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
8674
8675 2004-04-07  Jason Molenda  (jmolenda@apple.com)
8676
8677         * frame.h: Typeo corrections in comments.
8678
8679 2004-04-07  Jim Blandy  <jimb@redhat.com>
8680
8681         * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
8682         %esp and %ebp
8683
8684 2004-04-07  Mark Kettenis  <kettenis@gnu.org>
8685
8686         * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
8687         * config/sparc/linux64.mt (TDEPFILES): Likewise.
8688         * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
8689         * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
8690         and solib-legacy.o.
8691         * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
8692         solib-svr4.o.
8693         * config/sparc/tm-sol2.h: Update copyright year.  Include
8694         "solib.h".
8695
8696         * sparc-sol2-tdep.c: Update copyright year.  Include
8697         "solib-svr4.h".
8698         (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8699         * sparc64-sol2-tdep.c: Include "solib-svr4.h".
8700         (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8701         * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
8702         dependencies.
8703
8704 2004-04-06  Andrew Cagney  <cagney@redhat.com>
8705
8706         * infttrace.c: Include "infttrace.h".
8707         * infttrace.h: Include "target.h".
8708         * Makefile.in (infttrace_h): Update.
8709         (infttrace.o): Update.
8710
8711 2004-04-06  Andrew Cagney  <cagney@redhat.com>
8712
8713         * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
8714         (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
8715         move extern declarations from here ...
8716         * infttrace.h: ... to here.
8717         * Makefile.in (hppah-nat.o): Update dependencies.
8718
8719         * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
8720         (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8721         * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
8722         (hppa_breakpoint_from_pc): Delete.
8723
8724         * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
8725
8726 2004-04-05  Andrew Cagney  <cagney@redhat.com>
8727
8728         * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
8729         <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
8730         <sys/file.h>.
8731
8732 2004-04-06  Randolph Chung  <tausq@debian.org>
8733
8734         Committed by Andrew Cagney (mechanical change).
8735         * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
8736         exception_catchpoints_are_fragile, find_stub_with_shl_get,
8737         cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
8738         child_enable_exception_callback, current_ex_event,
8739         null_symtab_and_line, child_get_current_exception_event,
8740         HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
8741         HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
8742         HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
8743         hp_cxx_exception_support_initialized, eh_notify_hook_addr,
8744         eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
8745         eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
8746         Move hpux-specific definitions ...
8747         * hppa-hpux-tdep.c: ... to here.
8748
8749 2004-04-05  Andrew Cagney  <cagney@redhat.com>
8750
8751         * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
8752         skip_prologue_using_sal.
8753
8754 2004-04-05  Andrew Cagney  <cagney@redhat.com>
8755
8756         * config/i386/tm-i386.h: Delete file.
8757         * config/i386/tm-vxworks.h: Update copyright, do not include
8758         "tm-i386.h".
8759         * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
8760         * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
8761         * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
8762         * config/i386/ncr3000.mt (TM_FILE): Delete.
8763         * config/i386/interix.mt (TM_FILE): Delete.
8764         * config/i386/i386v.mt (TM_FILE): Delete.
8765         * config/i386/i386nw.mt (TM_FILE): Delete.
8766         * config/i386/i386gnu.mt (TM_FILE): Delete.
8767         * config/i386/i386aout.mt (TM_FILE): Delete.
8768         * config/i386/embed.mt (TM_FILE): Delete.
8769
8770 2004-04-05  Kevin Buettner  <kevinb@redhat.com>
8771
8772         * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
8773         (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
8774         (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
8775         (accg7_regnum): New constants.
8776         (last_spr_regnum, last_pseudo_regnum): Update.
8777         * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
8778         accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8779         (frv_pseudo_register_read, frv_pseudo_register_write): Add support
8780         for accg registers.
8781         (frv_register_sim_regno): Update spr_map[].
8782
8783 2004-04-04  Andrew Cagney  <cagney@redhat.com>
8784
8785         * config/mips/xm-riscos.h: Delete.
8786         * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
8787         * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
8788         * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
8789         * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
8790         * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
8791         * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
8792         * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
8793         * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
8794         * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
8795         * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
8796         * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
8797         * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
8798         * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
8799         * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
8800         * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
8801         * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
8802         * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
8803         * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
8804         * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
8805         * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
8806         * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
8807         * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
8808         * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
8809         * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
8810         * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
8811         * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8812
8813         * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
8814         m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
8815         m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
8816         * configure.host: Remove m680[01]0-sun-sunos3*,
8817         m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
8818         m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
8819         m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
8820         mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
8821         mips-*-riscos*.
8822         * NEWS: Mention removed systems.
8823
8824 2004-04-04  Andrew Cagney  <cagney@redhat.com>
8825
8826         GDB 6.1 release created from 6.1 branch.
8827
8828 2004-04-04  Andrew Cagney  <cagney@redhat.com>
8829
8830         * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
8831         * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
8832         * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
8833
8834         * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
8835         * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
8836         * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
8837
8838 2004-04-03  Jim Blandy  <jimb@redhat.com>
8839
8840         * MAINTAINERS: Chris Faylor has changed employers; add him to
8841         "paper trail" section, and update his E-mail address.
8842
8843 2004-04-03  Andrew Cagney  <cagney@redhat.com>
8844
8845         * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
8846         generic dummy frames.
8847         * dummy-frame.c: Update copyright.
8848         (dummy_frame_sniffer): Delete check for generic dummy frames.
8849
8850         * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8851         * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
8852         (REG_PARM_STACK_SPACE): Delete.
8853         * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
8854         Inline reference to REG_PARM_STACK_SPACE.
8855
8856         * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
8857         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
8858         (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
8859         (FRAME_BASE_BEFORE_SIGTRAMP)
8860         (hppa32_hpux_frame_base_before_sigtramp)
8861         (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
8862         * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
8863         (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
8864         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
8865         (FRAME_BASE_BEFORE_SIGTRAMP)
8866         (hppa64_hpux_frame_base_before_sigtramp)
8867         (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
8868
8869 2004-04-03  Andrew Cagney  <cagney@redhat.com>
8870
8871         * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
8872
8873 2004-04-02  Andrew Cagney  <cagney@redhat.com>
8874
8875         * sh64-tdep.c (sh64_init_extra_frame_info): Replace
8876         DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
8877         * dummy-frame.h: Delete out-of-date comments.
8878         * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
8879         * gdbarch.h, gdbarch.c: Re-generate.
8880
8881 2004-04-02  Joel Brobecker  <brobecker@gnat.com>
8882
8883         Committed by Andrew Cagney <cagney@redhat.com>.
8884         * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
8885         into account an instruction saving a register if we have already
8886         seen an earlier instruction saving that same register.
8887
8888 2004-04-02  Andrew Cagney  <cagney@redhat.com>
8889
8890         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
8891         * gdbarch.h, gdbarch.c: Re-generate.
8892         * frame.c (legacy_get_prev_frame): Delete references to
8893         DEPRECATED_INIT_FRAME_PC_FIRST.
8894
8895         * infrun.c (pc_in_sigtramp): Delete function.
8896         (check_sigtramp2): Inline call to pc_in_sigtramp, use
8897         get_frame_type.
8898
8899 2004-04-02  Andrew Cagney  <cagney@redhat.com>
8900
8901         * infrun.c (handle_step_into_function): Delete code conditional on
8902         legacy_frame_p.
8903         (handle_inferior_event, step_over_function): Ditto.
8904
8905 2004-04-02  Andrew Cagney  <cagney@redhat.com>
8906
8907         * frame.c (get_prev_frame_1): Exclude signal trampolines from the
8908         "previous frame inner to this frame" test.
8909
8910 2004-04-02  Andrew Cagney  <cagney@redhat.com>
8911
8912         * frame.c (safe_frame_unwind_memory): New function.
8913         * frame.h (safe_frame_unwind_memory): Declare.  Update description
8914         of /safe_/ methods.
8915         * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
8916         "next_frame".  Use safe_frame_unwind_memory.
8917         (tramp_frame_sniffer): Update call to tramp_frame_start.
8918
8919 2004-04-01  Daniel Jacobowitz  <drow@mvista.com>
8920
8921         * dwarf2read.c (dwarf2_objfile_data_key): New.
8922         (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
8923         (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
8924         (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
8925         (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
8926         (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
8927         (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
8928         (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
8929         Remove variables.
8930         (struct dwarf2_pinfo): Remove per-objfile members.  Update comments.
8931         (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
8932         (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
8933         (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
8934         (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
8935         (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
8936         Remove macros.
8937         (dwarf2_has_info): Take an objfile argument.  Allocate per-objfile
8938         data.
8939         (dwarf2_locate_sections, dwarf2_build_psymtabs)
8940         (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
8941         (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
8942         (read_partial_die, read_full_die, read_indirect_string)
8943         (dwarf_decode_line_header, dwarf_decode_macros)
8944         (dwarf2_symbol_mark_computed): Remove use of removed macros.
8945         Update uses of removed variables.
8946         (psymtab_to_symtab_1): Restore per-objfile data pointer.  Remove use
8947         of removed macros.
8948         (_initialize_dwarf2_read): New function.
8949         * symfile.h (dwarf2_has_info): Update prototype.
8950         * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
8951         * elfread.c (elf_symfile_read): Likewise.
8952
8953 2004-04-01  Jim Blandy  <jimb@redhat.com>
8954
8955         * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
8956         function for register numbers on all the rs6000-derived targets.
8957         (rs6000_gdbarch_init): Don't register a separate
8958         gdbarch_dwarf2_reg_to_regnum function for the E500.  Use
8959         rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
8960         variants.
8961
8962         * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
8963         numbering.
8964
8965 2004-04-01  Paul N. Hilfinger  <Hilfinger@gnat.com>
8966
8967         * valarith.c: Update copyright notice.
8968         (value_add): Handle range types.
8969         (value_sub): Ditto.
8970         (value_equal): Ditto.
8971         (value_less): Ditto.
8972         (value_neg): Ditto.
8973         (value_complement): Ditto.
8974         (value_binop): Simplify slightly by using is_integral_type and
8975         eliminiating unnecessary COERCE_ENUMs.
8976
8977 2004-03-31  Andrew Cagney  <cagney@redhat.com>
8978
8979         * frame.h (frame_unwind_id): Declare.
8980         * frame.c (frame_unwind_id): New function.
8981         (get_prev_frame_1): New function.
8982         (frame_debug_got_null_frame): New function.
8983         (get_prev_frame): Use frame_debug_got_null_frame.  Move unwind
8984         code proper to prev_frame, update description.
8985         * infrun.c (step_over_function): Use frame_unwind_id.
8986
8987 2004-04-31  J. Brobecker  <brobecker@gnat.com>
8988
8989         * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
8990         (hppa64_push_dummy_call): Likewise.
8991
8992 2004-03-30  Jim Blandy  <jimb@redhat.com>
8993
8994         From Ulrich Weigand:
8995         * utils.c (query): Do not use a va_list variable multiple times.
8996
8997 2004-03-29  Daniel Jacobowitz  <drow@mvista.com>
8998
8999         * Makefile.in (linux_nat_h): Update dependencies.
9000         * configure.in: Check for <gnu/libc-version.h>.
9001         * configure: Regenerate.
9002         * config.in: Regenerate.
9003         * linux-nat.h: Include "target.h".  Add waitstatus field to
9004         struct lwp_info.
9005         * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
9006         (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
9007         to.
9008         (lin_lwp_handle_extended): New function.  Handle clone events.
9009         (wait_lwp): Use lin_lwp_handle_extended.  Update comment about
9010         thread exit events.
9011         (child_wait): Handle clone events.
9012         (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
9013         * linux-nat.c (linux_enable_event_reporting): Turn on
9014         PTRACE_O_TRACECLONE.
9015         (linux_handle_extended_wait): Handle clone events.
9016         * thread-db.c: Include <gnu/libc-version.h>.
9017         (struct private_thread_info): Add dying flag.
9018         (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
9019         higher.
9020         (attach_thread): Update comments.  Handle dying threads.
9021         (detach_thread): Set the dying flag.
9022         (check_event): Always call attach_thread.
9023
9024 2004-03-29  Daniel Jacobowitz  <drow@mvista.com>
9025
9026         * mips-tdep.c (mips_pdr_data): New.
9027         (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
9028         (_initialize_mips_tdep): Initialize mips_pdr_data.
9029
9030 2004-03-29  Corinna Vinschen  <vinschen@redhat.com>
9031
9032         * minsyms.c (install_minimal_symbols): Move dropping leading
9033         char from linkage name from here...
9034         (prim_record_minimal_symbol_and_info): ...to here.  Simplify
9035         test for "__gnu_compiled*" symbols.
9036
9037 2004-03-28  Jim Blandy  <jimb@redhat.com>
9038
9039         * rs6000-tdep.c (skip_prologue): Recognize moves from argument
9040         registers to temp register r0 and byte stores as prologue
9041         instructions.
9042
9043 2004-03-28  Andrew Cagney  <cagney@redhat.com>
9044
9045         * PROBLEMS (Stack backtraces): Rewrite.  Remove reference to
9046         arm*-*-*.
9047
9048 2004-03-28  Stephane Carrez  <stcarrez@nerim.fr>
9049
9050         * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
9051         and switch the layout to force a display of register window.
9052
9053 2004-02-26  J. Brobecker  <brobecker@gnat.com>
9054
9055         * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
9056         of the INTEGER class.
9057
9058 2004-03-26  Jim Blandy  <jimb@redhat.com>
9059
9060         * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
9061         bytes long on PPC GNU/Linux.
9062
9063 2004-03-26  David Carlton  <carlton@kealia.com>
9064
9065         * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
9066
9067 2004-03-25  Andrew Cagney  <cagney@redhat.com>
9068
9069         * PROBLEMS: Add general section titles, remove references to
9070         specific releases.
9071
9072 2004-03-25  Daniel Jacobowitz  <drow@mvista.com>
9073
9074         * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
9075         INT_REGISTER_SIZE.
9076         (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
9077         FP_REGISTER_VIRTUAL_SIZE.
9078         * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
9079         of DEPRECATED_REGISTER_RAW_SIZE.
9080         (arm_register_type): Add gdbarch argument.
9081         (arm_register_raw_size, arm_register_virtual_size): Delete.
9082         (arm_register_byte, arm_extract_return_value)
9083         (arm_store_return_value, arm_get_longjmp_target): Update references
9084         to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
9085         (arm_gdbarch_init): Likewise.  Don't set
9086         deprecated_register_raw_size, deprecated_register_virtual_size,
9087         deprecated_max_register_raw_size,
9088         deprecated_max_register_virtual_size, or
9089         deprecated_max_register_virtual_type.  Do set register_type.
9090         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
9091         (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
9092         (FP_REGISTER_VIRTUAL_SIZE): Delete.
9093         (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
9094         (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
9095         * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
9096         INT_REGISTER_SIZE.
9097         * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
9098         (remote_rdp_store_register): Likewise.
9099
9100 2004-03-24  Daniel Jacobowitz  <drow@mvista.com>
9101
9102         * Makefile.in (mips-linux-tdep.o): Update dependencies.
9103         * mips-tdep.c (mips_gdbarch_init): Move frame predicates
9104         to after osabi initialization.
9105         * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
9106         (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
9107         functions.
9108         (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
9109         (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
9110         variables.
9111         (mips_linux_init_abi): Append signal trampoline unwinders.
9112
9113 2004-03-24  Andrew Cagney  <cagney@redhat.com>
9114
9115         * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
9116         * tramp-frame.c: Include "gdb_assert.h".
9117         (tramp_frame_start): Use TRAMP_SENTINEL_INSN.  Use ULONGEST and
9118         correct sizeof.
9119         (tramp_frame_append): Validate the tramp frame's instructions.
9120         * Makefile.in (tramp-frame.o): Update dependencies.
9121
9122 2004-03-23  Andrew Cagney  <cagney@redhat.com>
9123
9124         * trad-frame.h (trad_frame_set_reg_addr): Declare.
9125
9126 2004-03-23  Andrew Cagney  <cagney@redhat.com>
9127
9128         * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
9129         Nasser as past testsuite/lib/ (and other) maintainers.
9130
9131 2004-03-23  Daniel Jacobowitz  <drow@mvista.com>
9132
9133         * infcmd.c (attach_command): Reread symbols if we already have
9134         an exec file.
9135
9136 2004-03-23  Andrew Cagney  <cagney@redhat.com>
9137
9138         * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
9139
9140 2004-03-23  Andrew Cagney  <cagney@redhat.com>
9141
9142         * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
9143         * gdbarch.h, gdbarch.c: Re-generate.
9144         * i386obsd-tdep.c (i386obsd_init_abi): Update.
9145         * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9146         * i386bsd-tdep.c (i386bsd_init_abi): Update.
9147         * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
9148         (DEPRECATED_SIGTRAMP_START): Update.
9149         * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
9150         (DEPRECATED_SIGTRAMP_START): Update.
9151         * blockframe.c (find_pc_sect_partial_function): Update.
9152         * arch-utils.c (legacy_pc_in_sigtramp): Update.
9153
9154 2004-03-23  Daniel Jacobowitz  <drow@mvista.com>
9155
9156         * remote.c (remote_open_1): Reopen the exec file and reread symbols
9157         if necessary.
9158
9159 2004-03-23  Andrew Cagney  <cagney@redhat.com>
9160
9161         * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
9162         predicate, deprecate.
9163         * gdbarch.h, gdbarch.c: Re-generate.
9164         * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
9165         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
9166         * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
9167         * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
9168         * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
9169         * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
9170         * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
9171         * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
9172         * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
9173         * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
9174         * blockframe.c (find_pc_partial_function): Update.
9175         * breakpoint.c (bpstat_what): Update.
9176         * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
9177         * frv-linux-tdep.c (frv_linux_init_abi): Update.
9178         * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
9179         * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
9180         * i386-interix-tdep.c (i386_interix_init_abi): Update.
9181         * i386-linux-tdep.c (i386_linux_init_abi): Update.
9182         * i386-nto-tdep.c (i386nto_init_abi): Update.
9183         * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
9184         * i386-tdep.c (i386_sigtramp_frame_sniffer)
9185         (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
9186         * i386bsd-tdep.c (i386bsd_init_abi): Update.
9187         * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9188         * i386obsd-tdep.c (i386obsd_init_abi): Update.
9189         * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
9190         * infrun.c (pc_in_sigtramp): Update.
9191         * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
9192         * m68klinux-tdep.c (m68k_linux_init_abi): Update.
9193         * mips-tdep.c (mips_gdbarch_init): Update.
9194         * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
9195         * ppc-linux-tdep.c: Update comment.
9196         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
9197         * shnbsd-tdep.c (shnbsd_init_abi): Update.
9198         * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
9199         * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
9200         * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
9201         * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
9202         * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
9203         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
9204         * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
9205         * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
9206
9207 2004-03-23  Andrew Cagney  <cagney@redhat.com>
9208
9209         * tramp-frame.h, tramp-frame.h: New files.
9210         * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
9211         Update rules to include "tramp-frame.h" and "tramp-frame.c".
9212
9213         * Makefile.in: Update all dependencies.
9214
9215 2004-03-23  Andrew Cagney  <cagney@redhat.com>
9216
9217         * Makefile.in (trad_frame_h): Add $(frame_h).
9218         * trad-frame.h: Update copyright.  Include "frame.h".
9219         (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
9220         (trad_frame_set_id, trad_frame_get_id): Declare.
9221         (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
9222         * trad-frame.c: Update copyright.
9223         (struct trad_frame_cache): Define.
9224         (trad_frame_cache_zalloc): New function.
9225         (trad_frame_set_id, trad_frame_get_id): New functions.
9226         (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
9227
9228 2004-03-22  Andrew Cagney  <cagney@redhat.com>
9229
9230         * s390-tdep.c (struct s390_stub_unwind_cache): Rename
9231         s390_pltstub_unwind_cache.
9232         (s390_stub_frame_unwind_cache): Rename
9233         s390_pltstub_frame_unwind_cache.
9234         (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
9235         (s390_stub_frame_prev_register): Rename
9236         s390_pltstub_frame_prev_register.
9237         (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
9238         (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
9239
9240         From Ulrich Weigand:
9241         * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
9242         pointer calls like PLT calls.
9243
9244 2004-03-22  Daniel Jacobowitz  <drow@mvista.com>
9245
9246         * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
9247         PC rather than the partial function start address.  Use the start
9248         address to sanity check the found PDR.
9249
9250 2004-03-22  Daniel Jacobowitz  <drow@mvista.com>
9251
9252         * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
9253         linux_handle_extended_wait.
9254
9255 2004-03-22  Andrew Cagney  <cagney@redhat.com>
9256
9257         * rs6000-tdep.c (frame_initial_stack_address): Delete unused
9258         function.
9259
9260         * frame.h (generic_pop_current_frame): Delete declaration.
9261         (deprecate_pop_dummy_frame): Deprecate
9262         generic_pop_dummy_frame.
9263         * dummy-frame.c (deprecated_pop_dummy_frame): Update.
9264         (generic_pop_current_frame): Delete function.
9265         * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
9266         generic_pop_current_frame.
9267         * v850-tdep.c (v850_pop_frame): Update.
9268         * mcore-tdep.c (mcore_pop_frame): Update.
9269         * sh64-tdep.c (sh64_pop_frame): Update.
9270         * h8300-tdep.c (h8300_pop_frame): Update.
9271
9272 2004-03-22  Andrew Cagney  <cagney@redhat.com>
9273
9274         * frame.h (deprecated_pc_in_call_dummy): Rename
9275         generic_pc_in_call_dummy.
9276         * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
9277         * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
9278         generic_pc_in_call_dummy.
9279         (pc_in_dummy_frame): Make static.
9280         * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
9281         * gdbarch.h, gdbarch.c: Re-generate.
9282         * dummy-frame.c (dummy_frame_sniffer): Simplify.
9283         * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
9284         (legacy_get_prev_frame): Ditto.
9285         * inferior.h: Delete reference to generic_pc_in_call_dummy in
9286         comment.
9287
9288 2004-03-21  Andrew Cagney  <cagney@redhat.com>
9289
9290         * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
9291         declaration and out-of-date comment.
9292         * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
9293         Delete function.
9294         * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
9295         deprecated_pc_in_call_dummy.
9296
9297         * infrun.c (handle_inferior_event): For non legacy frames, use the
9298         frame ID and frame type to identify a signal trampoline.  Update
9299         comments.
9300
9301 2004-03-21  Nathan J. Williams  <nathanw@wasabisystems.com>
9302
9303         * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
9304         * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
9305
9306 2004-03-21  Andrew Cagney  <cagney@redhat.com>
9307
9308         * frame-unwind.h: Update copyright.
9309         (struct frame_data): Add opaque declaration.
9310         (frame_sniffer_ftype): Declare.
9311         (struct frame_unwind): Add "unwind_data" and "sniffer".
9312         (frame_unwind_register_unwinder): Declare.
9313         (frame_unwind_find_by_frame): Add parameter "this_cache".
9314         * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
9315         (legacy_get_prev_frame, legacy_get_prev_frame)
9316         (get_frame_type): Pass the prologue_cache to
9317         frame_unwind_find_by_frame.
9318         * frame-unwind.c (struct frame_unwind_table_entry): Add field
9319         "unwinder".
9320         (frame_unwind_register_unwinder): New function.
9321         (frame_unwind_find_by_frame): Handle an unwind sniffer.
9322
9323 2004-03-20  Paul Hilfinger  <hilfingr@nile.gnat.com>
9324
9325         * bcache.c (print_percentage): Use floating point to avoid
9326         incorrect results when portion*100 overflows.
9327
9328 2004-03-19  Kevin Buettner  <kevinb@redhat.com>
9329
9330         * ppc_tdep.h (ppc_linux_frame_saved_pc)
9331         (ppc_linux_init_extra_frame_info)
9332         (ppc_linux_frameless_function_invocation)
9333         (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
9334         (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
9335         (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
9336         (rs6000_frame_chain): Delete declarations.
9337         * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
9338         (ppc_linux_init_extra_frame_info)
9339         (ppc_linux_frameless_function_invocation)
9340         (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
9341         (ppc_linux_init_abi): Remove registration of above deleted functions.
9342         * rs6000-tdep.c (rs6000_init_extra_frame_info)
9343         (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
9344         (rs6000_frame_args_address, rs6000_saved_pc_after_call)
9345         (rs6000_pop_frame, rs6000_frameless_function_invocation)
9346         (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
9347         (rs6000_gdbarch_init): Remove registration of above deleted functions.
9348         Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
9349         rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
9350         frame management for all OSABIs.
9351
9352 2004-03-19  Andrew Cagney  <cagney@redhat.com>
9353
9354         Committed by Kevin Buettner <kevinb@redhat.com>.
9355
9356         * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
9357         Update copyright.
9358         (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
9359         (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
9360         (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
9361         (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
9362         unwinders.  #ifdef legacy frame code.
9363         * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
9364         "frame-base.h".
9365         (rs6000_unwind_pc, rs6000_unwind_dummy_id)
9366         (struct rs6000_frame_cache, rs6000_frame_cache)
9367         (rs6000_frame_this_id, rs6000_frame_prev_register)
9368         (rs6000_frame_sniffer, rs6000_frame_unwind)
9369         (rs6000_frame_base_address, rs6000_frame_base_sniffer)
9370         (rs6000_frame_base): Implement a traditional frame unwinder.
9371         (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
9372         frame unwinder.
9373
9374 2004-03-19  Kevin Buettner  <kevinb@redhat.com>
9375
9376         * breakpoint.c (adjust_breakpoint_address): Don't adjust
9377         breakpoint address for watchpoints or the catch eventpoints.
9378         Add new paramter ``bptype''.  Adjust all callers.
9379
9380 2004-03-19  Andrew Cagney  <cagney@redhat.com>
9381
9382         * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
9383
9384         * PROBLEMS: Delete note that ARM does not use frame code, problem
9385         fixed.
9386
9387 2004-03-18  Andrew Cagney  <cagney@redhat.com>
9388
9389         * stack.c (return_command): Delete code wrapped in #ifdef
9390         DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
9391
9392         * rs6000-tdep.c (skip_prologue): Record only the first LR save.
9393
9394 2004-03-18  Andrew Cagney  <cagney@redhat.com>
9395
9396         * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
9397         DEPRECATED_IN_SIGTRAMP.
9398         * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9399         * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
9400         * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9401         * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9402         * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9403         * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9404         * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9405         * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9406         * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
9407         * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
9408
9409 2004-03-18  Andrew Cagney  <cagney@redhat.com>
9410
9411         * frame-base.c: Update copyright.  Include "gdb_obstack.h".
9412         (struct frame_base_table_entry): Define.
9413         (struct frame_base_table): Re-implement as a linked list.
9414         (frame_base_init): Re-implement.
9415         (frame_base_table): Delete function.
9416         (append_predicate): Delete function.
9417         (frame_base_append_sniffer): Update.
9418         (frame_base_set_default): Update.
9419         (frame_base_find_by_frame): Update.
9420         (_initialize_frame_base): Use gdbarch_data_register_pre_init.
9421         * Makefile.in (frame-base.o): Update dependencies.
9422
9423 2004-03-17  Andrew Cagney  <cagney@redhat.com>
9424
9425         * frame.c (legacy_get_prev_frame): Pass correct frame to
9426         frame_unwind_find_by_frame.
9427
9428 2004-03-17  David Carlton  <carlton@kealia.com>
9429
9430         * NEWS: Mention C++ nested types and namespaces
9431
9432 2004-03-16  Michael Chastain  <mec.gnu@mindspring.com>
9433
9434         * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
9435         and "Regressions since gdb 5.3.".  Add known regressions since
9436         gdb 6.0.
9437
9438 2004-03-16  David Carlton  <carlton@kealia.com>
9439
9440         * dwarf2read.c (process_structure_scope): Process children even
9441         when we're a declaration.
9442
9443 2004-03-16  Andrew Cagney  <cagney@redhat.com>
9444
9445         * symtab.h (find_pc_sect_partial_function): Delete declaration.
9446         * blockframe.c (find_pc_partial_function)
9447         (find_pc_sect_partial_function): Merge into a single
9448         find_pc_partial_function.
9449
9450 2004-03-16  Mark Kettenis  <kettenis@gnu.org>
9451
9452         * i386bsd-nat.c: s/regno/regnum/g.
9453         (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
9454         FP0_REGNUM.
9455         (store_inferior_registers): Likewise.
9456
9457 2004-03-16  Mark Kettenis  <kettenis@gnu.org>
9458
9459         * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
9460         of i387_fill_fsave.
9461         (store_inferior_registers): Call i387_collect_fsave and
9462         i387_collect_fxsave instead of i387_fill_fsave and
9463         i387_fill_fxsave.
9464
9465 2004-03-15  Andrew Cagney  <cagney@redhat.com>
9466
9467         * Makefile.in (frame-unwind.o): Update dependencies.
9468         * frame-unwind.c: Include "gdb_obstack.h".
9469         (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
9470         parameter.
9471         (append_predicate): Delete function.
9472         (struct frame_unwind_table_entry): New structure.
9473         (struct frame_unwind_table): Replace "sniffer" with "head" and
9474         "tail".
9475         (frame_unwind_append_sniffer): Update.
9476         (frame_unwind_find_by_frame): Update.
9477         (_initialize_frame_unwind): Registe frame_unwind_init using
9478         gdbarch_data_register_pre_init.
9479
9480 2004-03-15  Mark Kettenis  <kettenis@gnu.org>
9481
9482         * i386bsd-nat.c: Update copyright year.
9483         (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
9484         define unconditionally.
9485
9486 2004-03-15  Mark Kettenis  <kettenis@gnu.org>
9487
9488         * i387-tdep.h (i387_collect_fsave): New prototype.
9489         * i387-tdep.c (i387_collect_fsave): New function containing most
9490         of the code from i387_fill_fsave.
9491         (i387_fill_fsave): Call i387_collect_fsave.
9492
9493 2004-03-15  Mark Kettenis  <kettenis@gnu.org>
9494
9495         * i386-linux-tdep.c: Update copyright year.
9496         (i386_linux_svr4_fetch_link_map_offsets): Remove function.
9497         (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
9498         svr4_ilp32_link_map_offsets instead of
9499         i386_linux_svr4_fetch_link_map_offsets.
9500
9501 2004-03-15  David Carlton  <carlton@kealia.com>
9502
9503         Fix for PR c++/1553:
9504         * dwarf2read.c (read_structure_type): Determine type name by
9505         calling determine_class_name.
9506         (determine_class_name): New.
9507         (determine_prefix): Look at TYPE_TAG_NAME and call
9508         determine_class_name when appropriate.
9509         (determine_prefix_aux, class_name): Delete.
9510         (read_namespace): Set die->type.
9511
9512 2004-03-15  Kevin Buettner  <kevinb@redhat.com>
9513
9514         * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
9515         unused macro definition.  The definition in target.h (or perhaps
9516         elsewhere) takes precedence.
9517
9518 2004-03-15  Andrew Cagney  <cagney@redhat.com>
9519
9520         * ppc-tdep.h: Update copyright.
9521         (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
9522         function signatures to match "regsets.h".
9523         * ppc-linux-tdep.c: Include "regset.h".
9524         (ELF_GREGSET_SIZE): Delete.
9525         (right_supply_register): New function.
9526         (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
9527         using right_supply_register.
9528         (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
9529         functions.
9530         (ppc64_linux_gregset, ppc32_linux_gregset): Define.
9531         (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
9532         (_initialize_ppc_linux_tdep): Do not register
9533         ppc_linux_regset_core_fns.
9534         (ppc_linux_regset_from_core_section): Replace
9535         fetch_core_registers.
9536         (ppc_linux_regset_core_fns): Delete.
9537         * ppc-linux-nat.c: (right_fill_reg): New function.
9538         (supply_gregset): Update call to ppc_linux_supply_gregset.
9539         (fill_gregset): Clear the register set, use right_fill_reg.
9540         (supply_fpregset): Update call to ppc_linux_supply_fpregset.
9541         (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
9542
9543         * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
9544         unsigned.
9545
9546 2004-03-15  Andrew Cagney  <cagney@redhat.com>
9547
9548         * gdbarch.sh (gdbarch_data_pre_init_fytpe)
9549         (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
9550         (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
9551         and register_gdbarch_data.
9552         (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
9553         (struct gdbarch_data): Replace "init" by "pre_init" and
9554         "post_init".
9555         * gdbarch.h, gdbarch.c: Re-generate.
9556         * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
9557         with"obstack", use OBSTACK_ZALLOC.
9558         (dwarf2_frame_ops): Delete.
9559         (dwarf2_frame_set_init_reg): Use gdbarch_data.
9560         (dwarf2_frame_init_reg): Use gdbarch_data.
9561         (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
9562         * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
9563         (_initialize_svr4_solib): Update.
9564         * user-regs.c (_initialize_user_regs): Update.
9565         * reggroups.c (_initialize_reggroup): Update.
9566         * regcache.c (_initialize_regcache): Update.
9567         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
9568         * libunwind-frame.c (_initialize_libunwind_frame): Update.
9569         * gnu-v3-abi.c (init_gnuv3_ops): Update.
9570         * frame-unwind.c (_initialize_frame_unwind): Update.
9571         * frame-base.c (_initialize_frame_base): Update.
9572         * user-regs.c (user_reg_add): Update.
9573         * reggroups.c (reggroup_add): Update.
9574         * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
9575         * libunwind-frame.c (libunwind_frame_set_descr): Update.
9576         * frame-unwind.c (frame_unwind_append_sniffer): Update.
9577         * frame-base.c (frame_base_table): Update.
9578         * remote.c (_initialize_remote): Update.
9579         * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
9580
9581 2004-03-15  Andrew Cagney  <cagney@redhat.com>
9582
9583         * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
9584
9585 2004-03-15  Kevin Buettner  <kevinb@redhat.com>
9586
9587         * Makefile.in (frv-linux-tdep.o): Add dependencies.
9588         * frv-linux-tdep.c: New file.
9589         * frv-tdep.c (struct gdbarch_tdep): Add new field
9590         ``sigcontext_reg_addr''.
9591         (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
9592         (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
9593         (frv_sigramp_frame_sniffer): New functions.
9594         (frv_sigtramp_frame_unwind): New static global.
9595         (frv_gdbarch_init): Hook in ABI-specific overrides.  Hook up frame
9596         sniffers.
9597         * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
9598         * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
9599
9600 2004-03-15  Kevin Buettner  <kevinb@redhat.com>
9601
9602         * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
9603         but not via a call to error(), when unable to read memory.
9604
9605 2004-03-15  Kevin Buettner  <kevinb@redhat.com>
9606
9607         * frv-tdep.c (frv_call_dummy_words): Delete.
9608         (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
9609
9610 2004-03-15  Andrew Cagney  <cagney@redhat.com>
9611
9612         * infrun.c (handle_step_into_function, step_over_function): Only
9613         update and use STEP_FRAME_ID when the system is using legacy
9614         frames.  Update comments.
9615
9616 2004-03-14  Mark Kettenis  <kettenis@gnu.org>
9617
9618         * amd64-linux-tdep.h: Remove file.
9619         * amd64-linux-tdep.c: Don't include "inferior.h" and
9620         "amd64-linux-tdep.h".  Include "frame.h" and "solib-svr4.h".
9621         (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
9622         (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
9623         (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
9624         (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
9625         macros.
9626         (user_to_gdb_regmap): Remove variable.
9627         (amd64_linux_gregset_reg_offset): New variable.
9628         (amd64_core_fns): Remove variable.
9629         (fetch_core_registers): Remove function.
9630         (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
9631         functions.
9632         (_initialize_amd64_linux_tdep): Don't set add_core_fns.
9633         * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
9634         * Makefile.in (amd64_linux_tdep_h): Remove.
9635         (amd64-linux-nat.o): Update dependencies.
9636         (amd64-linux-tdep.o): Update dependencies.
9637
9638         * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
9639         (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
9640         functions.
9641         (fetch_inferior_registers, store_inferior_registers): Rewrite.
9642
9643         * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
9644         * amd64-tdep.c (amd64_fill_fxsave): Remove function.
9645
9646 2004-03-14  Daniel Jacobowitz  <drow@mvista.com>
9647
9648         * dwarf2read.c (read_structure_type): Rename from
9649         read_structure_scope.  Don't create a symbol or call process_die.
9650         Return immediately if die->type is set.  Call read_type_die before
9651         dwarf2_add_member_fn.
9652         (process_structure_scope): New function.
9653         (read_enumeration_type, process_enumeration_scope): New functions,
9654         broken out from read_enumeration.  Don't create the enumeration
9655         type if it has already been created.
9656         (read_enumeration): Removed.
9657         (process_die): Call read_structure_type, process_structure_scope,
9658         read_enumeration_type, and process_enumeration_scope.  Just call
9659         new_symbol for base and subrange types.  Add a comment about other
9660         type dies.
9661         (read_type_die): Call read_enumeration_type.
9662         (add_partial_structure, new_symbol): Update comments.
9663
9664 2004-03-13  Stephane Carrez  <stcarrez@nerim.fr>
9665
9666         * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
9667
9668 2004-03-13  Stephane Carrez  <stcarrez@nerim.fr>
9669
9670         * tui/tui-win.h (tui_get_cmd_list): Declare.
9671         * tui/tui-win.c (tui_command): New function.
9672         (tui_get_cmd_list): New function.
9673         (_initialize_tui_win): Moved initialization of tui command in
9674         tui_get_cmd_list.
9675
9676         * tui/tui-data.c (init_content_element): Setup new data members.
9677         (init_win_info): Likewise.
9678         (free_content_elements): Free it.
9679         * tui/tui-data.h (struct tui_data_element): Store the register
9680         content to print.
9681         (struct tui_data_info): Keep the current register group.
9682
9683         * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
9684
9685         * tui/tui-regs.h (tui_show_registers): Update prototype.
9686         (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
9687         (tui_resize_all): No need to calculate anything for register window.
9688         * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
9689         (tui_set_register_element, tui_set_general_regs_content): Remove.
9690         (tui_set_special_regs_content): Remove.
9691         (tui_set_general_and_special_regs_content): Remove.
9692         (tui_set_float_regs_content): Remove.
9693         (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
9694         (tui_set_regs_content): Remove.
9695         (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
9696         (tui_v_show_registers_command_support): Remove.
9697         (tui_show_registers): Use a reggroup to specify the registers to show.
9698         (tui_show_register_group): New function.
9699         (tui_display_registers_from): Compute the layout of register window
9700         and refresh with new API; be sure to delete old register windows.
9701         (tui_check_register_values): Update to use tui_get_register and
9702         tui_display_data.
9703         (tui_display_register): Just refresh the register window part.
9704         (tui_register_format): Format registers and save in tui_data_element.
9705         (tui_get_register): New to combine tui_reg_value_has_changed and
9706         tui_get_register_raw_value; fix to use the new gdb API.
9707         (tui_show_float_command): Renamed tui_reg_float_command.
9708         (tui_show_general_command): Renamed tui_reg_general_command.
9709         (tui_show_special_command): Renamed tui_reg_system_command.
9710         (_initialize_tui_regs): Remove unused commands.
9711
9712 2004-03-13  Mark Kettenis  <kettenis@gnu.org>
9713
9714         * NEWS (New native configurations): Mention OpenBSD/amd64.
9715
9716         * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
9717         (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
9718         Remove defines.
9719         * config/i386/nm-fbsd64.h: Likewise.
9720         * config/i386/nm-obsd.h: Likewise.
9721         * config/sparc/nm-fbsd.h: Likewise.  Update copyright year.
9722         * config/alpha/nm-fbsd.h: Likewise.  Update copyright year.
9723
9724 2004-03-12  Kevin Buettner  <kevinb@redhat.com>
9725
9726         * frv-tdep.c (set_variant_scratch_registers): New function.
9727         * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
9728         New constants.
9729
9730         From Richard Sandiford  <rsandifo@redhat.com>:
9731         * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
9732
9733 2004-03-12  Kevin Buettner  <kevinb@redhat.com>
9734
9735         * frv-tdep.c, frv-tdep.h  (first_gpr_regnum, sp_regnum, fp_regnum)
9736         (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
9737         (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
9738         (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
9739         (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
9740         (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
9741         (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
9742         (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
9743         definitions from frv-tdep.c to frv-tdep.h.
9744
9745 2004-03-12  Kevin Buettner  <kevinb@redhat.com>
9746
9747         Add shared library support for FR-V FDPIC ABI:
9748         * Makefile.in (solib-frv.o): Add dependencies.
9749         * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
9750         New functions.
9751         (frv_push_dummy_call): Add support for FDPIC ABI.
9752         (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
9753         for FDPIC ABI.
9754         * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
9755         (frv_fdpic_find_canonical_descriptor): Declare.
9756         * solib-frv.c: New file.
9757         * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
9758         * config/frv/tm-frv.h (solib.h): Include.
9759
9760 2004-03-12  Kevin Buettner  <kevinb@redhat.com>
9761
9762         * Makefile.in (elf_frv_h, frv_tdep_h): Define.
9763         (frv-tdep.o): Update dependencies.
9764         * frv-tdep.h: New file.
9765         * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
9766         (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
9767         constants.
9768         (struct gdbarch_tdep): Add new member ``frv_abi''.
9769         (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
9770         functions.
9771         (new_variant): Set ``frv_abi'' field.
9772         (gdb_arch_init): Detect FDPIC executables.
9773
9774 2004-03-12  Mark Kettenis  <kettenis@gnu.org>
9775
9776         * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
9777         wrapper.
9778
9779 2004-03-11  Andrew Cagney  <cagney@redhat.com>
9780
9781         * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
9782
9783 2004-03-11  Kevin Buettner  <kevinb@redhat.com>
9784
9785         * solist.h (master_so_list): New function.
9786         * solib.c (master_so_list): Likewise.
9787         * solib-svr4.c (enable_break): Iterate over so_list entries
9788         obtained from master list instead of entries obtained directly
9789         via svr4_current_sos().
9790
9791 2004-03-10  Ben Elliston  <bje@gnu.org>
9792
9793         * MAINTAINERS: Update my mail address.
9794
9795 2004-03-10  Kei Sakamoto  <sakamoto.kei@renesas.com>
9796
9797         * remote-m32r-sdi.c: Support hardware watchpoint.
9798
9799 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
9800
9801         * user-regs.c: Update copyright years.
9802         (struct user_regs): Rename to gdb_user_regs.
9803         (append_user_reg, builtin_user_regs, user_regs_init)
9804         (user_reg_add, user_reg_map_name_to_regnum)
9805         (usernum_to_user_reg): Update.
9806
9807 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
9808
9809         * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
9810         (skip_children): New functions.
9811         (locate_pdi_sibling): Call skip_children.
9812
9813 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
9814
9815         * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
9816         * gdbtypes.c (check_typedef): Update comments.
9817
9818 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
9819
9820         * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
9821         (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
9822         pointer.  Update comment about comp_unit_head.
9823         (struct abbrev_info): Shorten two int flags.
9824         (dwarf_alloc_abbrev): Take a CU argument.
9825         (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
9826         each time through the loop.  Update cleanup argument.
9827         (psymtab_to_symtab_1): Update cleanup call.
9828         (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
9829         abbrev_obstack.
9830         (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
9831         Just call obstack_free and clear the pointer.
9832
9833 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
9834
9835         * infrun.c (handle_inferior_event): Remove short-circuit code for
9836         events in a different thread.
9837
9838 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
9839
9840         * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
9841         print the whole transfer.
9842         (initialize_targets): Update description of "set debug target".
9843
9844 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
9845
9846         * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
9847
9848 2004-03-08  Nathan J. Williams  <nathanw@wasabisystems.com>
9849
9850         * MAINTAINERS (write after approval): Add myself.
9851
9852 2004-03-08  Corinna Vinschen  <vinschen@redhat.com>
9853
9854         * sh-tdep.c (sh_print_registers_info): Use for loop.
9855         Don't skip multiple registers when a float register is encountered.
9856
9857 2004-03-08  Corinna Vinschen  <vinschen@redhat.com>
9858
9859         Fix PR tdep/1291.
9860         * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
9861         to official SH documentation.
9862
9863 2004-03-07  Andrew Cagney  <cagney@redhat.com>
9864
9865         * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
9866         unused function.
9867
9868 2004-03-07  Daniel Jacobowitz  <drow@mvista.com>
9869
9870         * arm-tdep.c (thumb_get_next_pc): Handle BX.
9871         (arm_get_next_pc): Handle BX and BLX.
9872
9873 2004-03-07  Andrew Cagney  <cagney@redhat.com>
9874
9875         * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
9876         FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
9877         HPPA_SP_REGNUM.
9878         (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
9879         (hppa_target_read_fp): Delete.
9880         (hppa_gdbarch_init): Do not set deprecated register_raw_size,
9881         register_virtual_size, max_register_raw_size,
9882         max_register_virtual_size, register_byte, register_size,
9883         target_read_fp, fp_regnum, and register_bytes.  Set register_type
9884         instead of register_virtual_type.
9885         (hppa32_register_type, hppa64_register_type): Replace
9886         hppa32_register_virtual_type and hppa64_register_virtual_type.
9887         * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
9888         (HPPA_FP_REGNUM): Define.
9889
9890         * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
9891
9892         * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
9893         (pa_do_registers_info): Delete.
9894         * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
9895         (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
9896         (pa_strcat_fp_reg, pa_register_look_aside): Delete.
9897
9898         * infcall.c (legacy_push_dummy_code): Delete #ifdef
9899         GDB_TARGET_IS_HPPA code.
9900         * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
9901         (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
9902         (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
9903         * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
9904         * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
9905         (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
9906         (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
9907         (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
9908         (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
9909         (hppa_frameless_function_invocation, hppa64_store_return_value)
9910         (hppa_store_struct_return, hppa64_extract_return_value)
9911         (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
9912         (hppa32_call_dummy_length, hppa64_call_dummy_length)
9913         (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
9914         (find_proc_framesize, deposit_21, restore_pc_queue)
9915         (find_return_regnum, pc_in_interrupt_handler, deposit_14)
9916         (rp_saved, pc_in_linker_stub): Delete.
9917
9918         Unconditionally enable 64-bit frame and ABI code.
9919         * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
9920         call_dummy_breakpoint_offset, call_dummy_length, stack_align,
9921         push_dummy_frame, fix_call_dummy, push_arguments,
9922         call_dummy_location, extract_return_value, use_struct_convention,
9923         store_return_value, store_struct_return, saved_pc_after_call,
9924         init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
9925         frame_chain, frame_chain_valid, frameless_function_invocation,
9926         frame_saved_pc, and pop_frame.
9927
9928         * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
9929         (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
9930         (hppa_gdbarch_init): Do not set PC_REGNUM.
9931
9932 2004-03-06  Mark Kettenis  <kettenis@gnu.org>
9933
9934         * config/alpha/tm-fbsd.h: Remove file.
9935         * config/alpha/fbsd.mt: Tweak comment.
9936         (TM_FILE): Set to tm-alpha.h.
9937
9938 2004-03-05  Andrew Cagney  <cagney@redhat.com>
9939
9940         * infrun.c (step_over_function): When non-legacy code, and no
9941         step_frame_id, use the unwinder to get the caller's frame ID.
9942
9943 2004-03-05  Mark Kettenis  <kettenis@gnu.org>
9944
9945         * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
9946         i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
9947         bfd_arch_unknown.  Adjust comment.
9948
9949         * i386-nat.c: Fix typo in comment.  Re-introduce paranoiac.
9950         * i386obsd-tdep.c: Correct spelling in comment.
9951         * i386nbsd-tdep.c: Correct spelling in comment.
9952         * sparc-tdep.c: Correct spelling in comments.
9953
9954 2004-03-05  David Carlton  <carlton@kealia.com>
9955
9956         * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
9957         bug.
9958
9959 2004-03-05  Mark Kettenis  <kettenis@gnu.org>
9960
9961         * sparc-tdep.c: Fix typo in comment.
9962
9963 2004-03-04  J. Brobecker  <brobecker@gnat.com>
9964
9965         * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
9966
9967 2004-03-04  Daniel Jacobowitz  <drow@mvista.com>
9968
9969         * dwarf2read.c: Add comment describing memory lifetimes.
9970         (struct dwarf2_pinfo): Update comment.
9971         (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
9972         (read_enumeration, new_symbol): Don't use obsavestring.
9973
9974 2004-03-04  Mark Kettenis  <kettenis@gnu.org>
9975
9976         * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
9977         instead of amd64_fill_fxsave.
9978         * amd64bsd-nat.c (store_inferior_registers): Likewise.
9979         * amd64fbsd-nat.c (fill_fpregset): Likewise.
9980
9981         * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
9982         Reorganize code a bit.
9983
9984 2004-03-04  Orjan Friberg  <orjanf@axis.com>
9985
9986         * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
9987         when the frame pointer is pushed.  Don't set the frame pointer's
9988         address on the stack unless it's actually located there.
9989         Set the SRP's address on the stack correctly when the PC is still in
9990         the prologue.
9991         (cris_return_value): New function.
9992         (cris_gdbarch_init): Clear deprecated store_return_value,
9993         extract_return_value.
9994
9995 2004-03-02  Jim Blandy  <jimb@redhat.com>
9996
9997         * stabsread.c (reg_value_complaint): The maximum register number
9998         is one less than the number of registers.
9999
10000 2004-03-02  Andrew Cagney  <cagney@redhat.com>
10001
10002         * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
10003         I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM.  Remove
10004         trailing comma and redundant assignment of I386_ST0_REGNUM.
10005         * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
10006         32-bit segment registers.
10007
10008 2004-03-01  Andrew Cagney  <cagney@redhat.com>
10009
10010         * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
10011         use frame_relative_level and get_next_frame.
10012
10013 2004-02-29  Andrew Cagney  <cagney@redhat.com>
10014
10015         * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
10016         (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
10017         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
10018         Delete macro.
10019
10020 2004-02-29  Daniel Jacobowitz  <drow@mvista.com>
10021
10022         * inflow.c (terminal_inferior): Don't give up the terminal if we
10023         previously couldn't get the inferior's terminal state.
10024
10025 2004-02-29  Daniel Jacobowitz  <drow@mvista.com>
10026
10027         * regcache.c (read_pc_pid): Restore inferior_ptid after reading
10028         PC_REGNUM.
10029
10030 2004-02-28  Andrew Cagney  <cagney@redhat.com>
10031
10032         * NEWS: Refer to GDB 6.1.
10033         * README: Refer to GDB 6.1.
10034         * PROBLEMS: Refer to GDB 6.1.
10035
10036 2004-02-28  Daniel Jacobowitz  <drow@mvista.com>
10037
10038         * thread-db.c (disable_thread_signals): Remove unused function.
10039
10040 2004-02-28  Mark Kettenis  <kettenis@gnu.org>
10041
10042         * amd64-nat.c: Include "gdb_string.h".
10043         (amd64_collect_native_gregset): Zero-extend the 32-bit
10044         general-purpose registers and %eip.
10045
10046         * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
10047         * amd64-tdep.c (amd64_collect_fxsave): New function.
10048         (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
10049
10050         * i387-tdep.h: Update copyright year.
10051         (i387_collect_fxsave): New prototype.
10052         * i387-tdep.c: Update copyright year.
10053         (i387_collect_fxsave): New function containing most of the code
10054         from i387_fill_fxsave.
10055         (i387_fill_fxsave): Call i387_collect_fxsave.
10056
10057 2004-02-28  Andrew Cagney  <cagney@redhat.com>
10058
10059         * amd64-linux-nat.c (ps_get_thread_area): When architecture is
10060         i386 use PTRACE_GET_THREAD_AREA.  Suggested by Roland McGrath.
10061
10062 2004-02-28  Mark Kettenis  <kettenis@gnu.org>
10063
10064         * amd64-tdep.c (amd64_frame_cache): Fix comment.
10065
10066 2004-02-28  Andrew Cagney  <cagney@redhat.com>
10067
10068         * utils.c: Use "", instead of <>, to include readline.
10069         tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
10070         * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
10071         * source.c, solib.c, exec.c, event-top.c: Ditto.
10072         * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
10073         * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
10074         * Makefile.in: Update all dependencies.
10075         (readline_tilde_h, readline_history_h): Define.
10076         (readline_headers): Delete.
10077
10078 2004-02-28  Mark Kettenis  <kettenis@gnu.org>
10079
10080         * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
10081         "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
10082         "config/i386/tm-lx64.h".
10083
10084         * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
10085         "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c".  Remove
10086         rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
10087
10088 2004-02-28  Andrew Cagney  <cagney@redhat.com>
10089
10090         * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
10091
10092         * breakpoint.c (_initialize_breakpoint): Use
10093         "add_setshow_auto_boolean_cmd.  Better word-wrap help messages.
10094         Add help to show command.
10095
10096 2004-02-28  Mark Kettenis  <kettenis@gnu.org>
10097
10098         * i386-nat.c: Reformat to be closer to coding standards.
10099         (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
10100         `retval'.  Make variables `align' and `size' local to while-loop.
10101         (i386_stopped_data_address): Rename local variable `ret' to `addr'.
10102         (_initialize_i386_nat): New prototype.
10103
10104         * tui/tui.c: Include <readline/readline.h> instead of
10105         "readline/readline.h".  Include it after <term.h> and
10106         "gdb_curses.h".
10107
10108 2004-02-27  Andrew Cagney  <cagney@redhat.com>
10109
10110         * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
10111         the new frame unwind code.
10112         (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
10113         (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
10114         PCOQ_HEAD_REGNUM.
10115
10116         * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
10117         "return_value" and "push_dummy_call".
10118         (hppa32_use_struct_convention): Delete unused function.
10119         (hppa32_store_return_value): Delete unused function.
10120         (hppa32_extract_return_value): Delete unused function.
10121         (hppa32_stack_align): Delete function.
10122
10123 2004-02-27  Eli Zaretskii  <eliz@elta.co.il>
10124
10125         * coffread.c (enter_linenos): Don't let rawptr reference memory
10126         outside linetab[]'s limits.
10127
10128 2004-02-27  Andrew Cagney  <cagney@redhat.com>
10129
10130         * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
10131         inferior stack space - the stack needs to grow upwards.
10132         (hppa32_frame_align): New function.
10133         (hppa64_frame_align): Replace hppa_frame_align.
10134         (hppa_gdbarch_init): Update.
10135
10136 2004-02-26  Orjan Friberg  <orjanf@axis.com>
10137
10138         * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
10139         (dwarf2-frame.h): Include.
10140         (enum cris_regnums): New enum CRIS_FP_REGNUM.
10141         Remove static variables related to ABI setting.
10142         (struct gdbarch_tdep): Remove cris_abi member.
10143         (struct frame_extra_info): Remove.
10144         (cris_unwind_cache, stack_item): New structs.
10145         (cris_frame_unwind, cris_frame_base): New variables.
10146         (push_stack_item, pop_stack_item)
10147         (cris_frame_unwind_cache, cris_frame_this_id)
10148         (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
10149         (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
10150         (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
10151         (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
10152         (cris_reg_struct_has_addr): New functions.
10153         (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
10154         (cris_frame_saved_pc, cris_saved_pc_after_call,
10155         (cris_store_struct_return, cris_frameless_function_invocation)
10156         (cris_pop_frame, cris_skip_prologue_main)
10157         (cris_abi_original_store_return_value)
10158         (cris_abi_v2_store_return_value)
10159         (cris_abi_original_extract_return_value)
10160         (cris_abi_v2_extract_return_value)
10161         (cris_abi_original_reg_struct_has_addr)
10162         (cris_abi_v2_reg_struct_has_addr)
10163         (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
10164         (cris_push_return_address, cris_abi_update): Remove.
10165         (_initialize_cris_tdep): Remove ABI command.
10166         (cris_dump_tdep): Ditto.
10167         (cris_gdbarch_init): Remove ABI command.
10168         Set store_return_value, extract_return_value, push_dummy_code,
10169         push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
10170         frame_unwind_append_sniffer, frame_base_set_default.
10171         Clear deprecated init_frame_pc, push_arguments, store_return_value,
10172         extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
10173         sizeof_call_dummy_words, get_saved_register, push_return_address,
10174         pop_frame, store_struct_return, frame_init_saved_regs,
10175         init_extra_frame_info, frameless_function_invocation, frame_chain,
10176         frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
10177         dummy_write_sp.
10178
10179 2004-02-26  Jeff Johnston  <jjohnstn@redhat.com>
10180
10181         * valprint.h (print_hex_chars, print_char_chars): New prototypes.
10182         * valprint.c (print_hex_chars): Change from static to external.
10183         (print_char_chars): New function.
10184         * printcmd.c (print_scalar_formatted): For integer and enum types
10185         that are longer than LONGEST, perform processing via appropriate
10186         print_*_chars routines.
10187
10188 2004-02-26  Andrew Cagney  <cagney@redhat.com>
10189
10190         * Makefile.in: Update dependencies.
10191         Changes from Ulrich Weigand,
10192         * s390-tdep.c: Include "dwarf2-frame.h".
10193         (s390_dwarf2_frame_init_reg): New function.
10194         (s390_gdbarch_init): Install dwarf2_frame_sniffer and
10195         dwarf2_frame_base_sniffer.  Call dwarf2_frame_set_init_reg.
10196
10197 2004-02-26  Jeff Johnston  <jjohnstn@redhat.com>
10198
10199         * breakpoint.c (pending_break_support): New setting variable.
10200         (break_command_1): Account for pending_break_support setting
10201         when creating pending breakpoints.
10202         (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
10203         (_initialize_breakpoint): Add "set breakpoint pending" and
10204         "show breakpoint pending" commands.
10205
10206 2004-02-26  Andrew Cagney  <cagney@redhat.com>
10207
10208         Fix PR i18n/1570.
10209         * charset.c (backslashable, backslashed, represented): Remove 'e'
10210         from list of escaped characters, not part of ISO-C.
10211
10212 2004-02-25  J. Brobecker  <brobecker@gnat.com>
10213
10214         From Peter Schauer <schauer@pdf.de>:
10215         * tui/tui.c: Move system header includes after local includes.
10216         Fixes a build failure on solaris systems.
10217
10218 2004-02-25  J. Brobecker  <brobecker@gnat.com>
10219
10220         * configure.in: Refine the previous change.
10221         * configure: Regenerate.
10222
10223 2004-02-25  Mark Kettenis  <kettenis@gnu.org>
10224
10225         * amd64-tdep.h: Renamed from x86-64-tdep.h.
10226         * amd64-tdep.c: Renamed from x86-64-tdep.c.  Include
10227         "amd64-tdep.h" instead of "x86-64-tdep.h".
10228         * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10229         * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
10230         * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c.  Include
10231         "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10232         and "x86-64-tdep.c".
10233         * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c.  Include
10234         "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10235         and "x86-64-tdep.c".
10236         * amd64bsd-nat.c: Update copyright year.
10237         Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10238         * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
10239         "x86-64-tdep.h".
10240         * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
10241         "x86-64-tdep.h".
10242         * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
10243         "x86-64-tdep.h".
10244         * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
10245         "x86-64-tdep.h".
10246         * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
10247         "x86-64-tdep.h".
10248         * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
10249         "x86-64-tdep.h".
10250         * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
10251         * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
10252         * Makefile.in (amd64_linux_tdep_h): Renamed from
10253         x86_64_linux_tdep_h.
10254         (amd64_tdep_h): Renamed from x86_64_tdep_h.
10255         (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
10256         (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
10257         (amd64obsd-tdep.o): Update dependencies.
10258         (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
10259         dependencies.
10260         (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
10261         dependencies.
10262         (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
10263         amd64-linux-nat.c amd64-linux-tdep.c.
10264         * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
10265         * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
10266         * config/i386/linux64.mt: Renamed from x86-64linux.mt.
10267         (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
10268         amd64-tdep.o and amd64-linux-tdep.o.
10269         (TM_FILE): Set to tm-linux64.h.
10270         * config/i386/linux64.mh: Renamed from x86-64linux.mh.
10271         (NAT_FILE): Set to nm-linux64.h.
10272         (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
10273         * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10274         amd64-tdep.o.
10275         * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10276         amd64-tdep.o.
10277         * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10278         amd64-tdep.o.
10279
10280 2004-02-25  Roland McGrath  <roland@redhat.com>
10281
10282         * remote.c (remote_protocol_qPart_auxv): New variable.
10283         (init_all_packet_configs): Initialize it.
10284         (set_remote_protocol_qPart_auxv_packet_cmd): New function.
10285         (show_remote_protocol_qPart_auxv_packet_cmd): New function.
10286         (show_remote_cmd): Call it.
10287         (_initialize_remote): Initialize commands.
10288         (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
10289         service TARGET_OBJECT_AUXV requests.
10290
10291 2004-02-25  J. Brobecker  <brobecker@gnat.com>
10292
10293         * configure.in: Make sure that the wborder function is available.
10294         Otherwise, search for it in the cur_colr library.
10295         * configure: Regenerate.
10296
10297 2004-02-25  Andrew Cagney  <cagney@redhat.com>
10298
10299         * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
10300
10301 2004-02-25  Mark Kettenis  <kettenis@gnu.org>
10302
10303         * config/i386/tm-x86-64linux.h: Tweak comments.
10304
10305 2004-02-25  Richard Sandiford  <rsandifo@redhat.com>
10306
10307         * MAINTAINERS: Add self to write-after-approval list.
10308
10309 2004-02-25  Andrew Cagney  <cagney@redhat.com>
10310
10311         PR cli/1566.  Problem found, and fix suggested by David Allan.
10312         * cli/cli-script.c (execute_control_command): Unconditionally
10313         install a cleanup.  Default "ret" to "invalid_control".  Use
10314         "break" instead of "return" to escape from the switch.
10315
10316 2004-02-24  J. Brobecker  <brobecker@gnat.com>
10317
10318         * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
10319         with the lines macro defined in term.h on AiX.
10320         * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
10321         a collision with the label_width macro defined in term.h on AiX.
10322
10323 2004-02-23  David Mosberger  <davidm@hpl.hp.com>
10324
10325         Committed by Kevin Buettner <kevinb@redhat.com>.
10326
10327         * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
10328         * ia64-tdep.c (ia64_write_pc): Make it a global function.
10329         (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
10330         instead of ia64_write_pc().
10331         * ia64-linux-tdep.c (regcache.h): Include.
10332         (ia64_linux_write_pc): New function.
10333
10334 2004-02-23  Roland McGrath  <roland@redhat.com>
10335
10336         * auxv.c (info_auxv_command): Fix typos in error messages.
10337
10338 2004-02-23  Mark Kettenis  <kettenis@gnu.org>
10339
10340         * x86-64-tdep.h: Tweak comment.
10341         (enum amd64_regnum): New.
10342         (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
10343         (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
10344         (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
10345         (X86_64_XMM1_REGNUM): Removed.
10346         (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
10347         (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
10348         prototypes for renamed functions.
10349         * x86-64-tdep.c: Fix typo.
10350         (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
10351         register numbers.
10352         (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
10353         Use constants from `enum amd64_regnum' for register numbers.
10354         (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
10355         (amd64_analyze_prologue, amd64_frame_cache,
10356         amd64_sigtramp_frame_cache): Use constants from `enum
10357         amd64_regnum' for register numbers.
10358         (amd64_supply_fpregset): Adjust for renamed functions.
10359         (amd64_init_abi): Rename from x86_64_init_abi.  Use constants from
10360         `enum amd64_regnum' for register numbers.
10361         (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
10362         (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
10363         (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
10364         * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
10365         (amd64_linux_fill_gregset): Adjust for renamed macros.
10366         (fetch_core_registers): Adjust for renamed functions.
10367         (amd64_linux_init_abi): Adjust for renamed functions.
10368         * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
10369         renamed functions.
10370         * amd64-nat.c: Adjust for renamed macros.
10371         * amd64bsd-nat.c (fetch_inferior_registers)
10372         (store_inferior_registers): Use constants from `enum amd64_regnum'
10373         for register numbers.  Adjust for renamed variables.
10374         * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
10375         renamed variables.
10376         (_initialize_amd64fbsd_nat): Use constants from `enum
10377         amd64_regnum' for register numbers.
10378         * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
10379         `enum amd64_regnum' for register numbers.
10380         (amd64fbsd_init_abi): Adjust for renamed functions.
10381         * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
10382         `enum amd64_regnum' for register numbers.
10383         (amd64nbsd_init_abi): Adjust for renamed functions.
10384         (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
10385         * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
10386         `enum amd64_regnum' for register numbers.
10387         (amd64obsd_init_abi): Adjust for renamed functions.
10388         (_initialize_amd64obsd_ndep): Adjust for renamed macros.
10389
10390 2004-02-23  Jeff Johnston  <jjohnstn@redhat.com>
10391
10392         * breakpoint.c (print_one_breakpoint): Do not output spaces
10393         after printing <PENDING> for a pending breakpoint.
10394
10395 2004-02-23  Jeff Johnston  <jjohnstn@redhat.com>
10396
10397         * printcmd.c (print_scalar_formatted): Initialize val_long
10398         to remove compiler warning message.
10399
10400 2004-02-23  Jeff Johnston  <jjohnstn@redhat.com>
10401
10402         * defs.h (nquery, yquery): New prototypes.
10403         * breakpoint.c (break_command_1): Use new nquery interface.
10404         * utils.c (defaulted_query, nquery, yquery): New functions.
10405
10406 2004-02-23  Andrew Cagney  <cagney@redhat.com>
10407
10408         * hppa-tdep.c (hppa_frame_align): New function.
10409         (hppa32_push_dummy_call): New function.
10410         (hppa64_push_dummy_call): New function.
10411         (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
10412         disabled.
10413
10414         * infcall.c (legacy_push_dummy_code): Don't call deprecated
10415         FIX_CALL_DUMMY when push_dummy_call is available.
10416         (call_function_by_hand, push_dummy_code): Ditto.
10417
10418 2004-02-22  Andrew Cagney  <cagney@redhat.com>
10419
10420         * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
10421         (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
10422         (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
10423         * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
10424         use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
10425         call_dummy_location to ON_STACK.
10426
10427 2004-02-22  Mark Kettenis  <kettenis@gnu.org>
10428
10429         * x86-64-linux-tdep.c: Tweak comment.
10430         (amd64_linux_supply_gregset): Renamed from
10431         x86_64_linux_supply_gresget.
10432         (amd64_linux_fill_gregset): Renamed from
10433         x86_64_linux_fill_gregset.
10434         (fetch_core_registers): Adjust for renamed functions.
10435         (amd64_core_fns): Renamed from x86_64_core_fns.
10436         (amd64_linux_sigtramp_start): Renamed from
10437         x86_64_linux_sigtramp_start.
10438         (amd64_linux_pc_in_sigtramp): Renamed from
10439         x86_64_linux_pc_in_sigtramp.  Adjust for renamed functions.
10440         (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
10441         X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
10442         (amd64_linux_sigcontext_addr): Renamed from
10443         x86_64_linux_sigcontext_addr.
10444         (amd64_linux_sc_reg_offset): Renamed from
10445         x86_64_linux_sc_reg_offset.
10446         (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
10447         Adjust for renamed functions and variables.
10448         (_initialize_amd64_linux_tdep): Renamed from
10449         _initialize_x86_64_linux_tdep.  Adjust for renamed functions and
10450         variables.
10451         * x86-64-linux-tdep.h: Update copyright year.  Tweak comment.
10452         Adjust for renamed functions.
10453
10454         * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
10455         from x86_64_linux_gregset64_reg_offset.
10456         (amd64_linux_gregset32_reg_offset): Rename from
10457         x86_64_linux_gregset64_reg_offset.
10458         (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
10459         (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
10460         (amd64_linux_dr_set_control): Renamed from
10461         x86_64_linux_dr_set_control.  Adjust for renamed functions.
10462         (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
10463         Adjust for renamed functions.
10464         (amd64_linux_dr_reset_addr): Renamed from
10465         x86_64_linux_dr_reset_addr. Adjust for renamed functions.
10466         (amd64_linux_dr_get_status): Renamed from
10467         x86_64_linux_dr_get_status.  Adjust for renamed functions.
10468         (_initialize_amd64_linux_nat): Renamed from
10469         _initialize_x86_64_linux_nat.  Adjust for renamed variables and
10470         functions.
10471         * config/i386/nm-x86-64linux.h: Update copyright year.
10472         Adjust for renamed functions.
10473
10474         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
10475         amd64fbsd_sigtramp_start.
10476         (amd64fbsd_sigtramp_end_addr): Renamed from
10477         amd64fbsd_sigtramp_end.
10478         (amd64fbsd_init_abi): Adjust for renamed variables.
10479         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
10480         variables.
10481         * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
10482         amd64fbsd_sigtramp_start.
10483         (amd64fbsd_sigtramp_end_addr): Renamed from
10484         amd64fbsd_sigtramp_end.
10485
10486 2004-02-22  Andrew Cagney  <cagney@redhat.com>
10487
10488         * hppa-tdep.c (hppa32_return_value): New function.
10489         (hppa64_return_value): New function.
10490         (hppa_gdbarch_init): Set return_value; keep disabled.
10491
10492         * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
10493         struct-return and inferior function call methods.
10494
10495         * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10496         "frame-base.h".
10497         (struct hppa_frame_cache): Define.
10498         (hppa_frame_cache, hppa_frame_this_id): New functions.
10499         (hppa_frame_prev_register): New function.
10500         (hppa_frame_unwind, hppa_frame_base): New variables.
10501         (hppa_frame_unwind_sniffer): New function.
10502         (hppa_frame_base_address, hppa_unwind_pc): New function.
10503         (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
10504         sniffer, and frame base sniffer; keep disabled.
10505         (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
10506         * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
10507
10508         * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
10509         to predicates for "seriously old code".
10510
10511         * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
10512         runtime if(0).
10513
10514         * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
10515         unsigned.
10516         (hppa_frame_find_saved_regs): Fix "std" instruction pattern
10517
10518         * config/pa/tm-hppa.h: Update copyright.
10519         (DEPRECATED_INIT_FRAME_PC): Delete macro.
10520         (deprecated_init_frame_pc_default): Delete declaration.
10521         (hppa_frame_init_saved_regs): Delete declaration.
10522         (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10523         * hppa-tdep.c: Include "arch-utils.h".
10524         (hppa_gdbarch_init): Set deprecated init_frame_pc
10525         and deprecated frame_init_saved_regs.
10526         (hppa_frame_init_saved_regs): Make static.
10527
10528 2004-02-22  Mark Kettenis  <kettenis@gnu.org>
10529
10530         Remove old 386BSD support.
10531         * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
10532         * configure.host: Remove i[34567]86-*-bsd*.
10533         * configure.tgt: Remove i[34567]86-*-bsd*.
10534         * i386b-nat.c: Removed.
10535         * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
10536         (i386b-nat.o): Remove dependencies.
10537
10538         * config/i386/i386bsd.mh: Removed.
10539         * config/i386/i386bsd.mt: Removed.
10540         * config/i386/nm-i386bsd.h: Removed.
10541         * config/i386/tm-i386bsd.h: Removed.
10542         * config/i386/xm-i386bsd.h: Removed.
10543
10544         * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
10545
10546         * amd64fbsd-tdep.c: Include "solib-svr4.h".
10547         (amd64fbsd_init_abi): Set link map offsets.
10548         * amd64nbsd-tdep.c: Include "slib-svr4.h".
10549         (amd64nbsd_init_abi): Set link map offsets.
10550         * amd64obsd-tdep.c: Include "solib-svr4.h".
10551         (amd64obsd_init_abi): Set link map offsets.
10552         * i386fbsd-tdep.c: Include "solib-svr4.h".
10553         (i386fbsd_init_abi): Set link map offsets.
10554         * i386nbsd-tdep.c: Include "solib-svr4.h".
10555         (i386nbsdelf_init_abi): Set link map offsets.
10556         * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
10557         (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
10558         * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
10559         solib-legacy.o and core-aout.o. Reformat.
10560         * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
10561         solib-svr4.o, solib-legacy.o.  Reformat.
10562         * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o.  Reformat.
10563         * config/i386/nbsdelf.mh: Reformat.
10564         * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
10565         solib-svr4.o, solib-legacy.o and corelow.o.
10566         * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
10567         * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
10568         solib-svr4.o, solib-legacy.o and corelow.o.  Reformat.
10569         * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
10570         * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
10571         (TM_FILE): Set to tm-fbsd.h.
10572         * config/i386/nbsd.mt (TDEPFILES): Reformat.
10573         * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
10574         solib-svr4.o.
10575         * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
10576         solib-svr4.o.
10577         (TM_FILE): Set to nm-nbsd.h.
10578         * config/i386/nm-fbsd.h: Update copyright year.  Tweak comments.
10579         Simplify shared library support.  Don't include "elf/common.h".
10580         (SVR4_SHARED_LIBS): Don't define.
10581         * config/i386/nm-fbsd64.h: Update copyright year.  Don't include
10582         "solib.h".
10583         * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
10584         config/i386/nm-obsd.h: Update copyright year.  Tweak comments.
10585         * config/i386/tm-fbsd.h: Update copyright tear.  Tweak comments.
10586         Don't include "i386/tm-i386.h".  Include "solib.h".
10587         * config/i386/tm-nbsd.h: Update copyright year.  Tweak comments.
10588         Don't include "i386/tm-i386.h".
10589         * config/i386/xm-i386.h: Update copyright year.  Tweak comments.
10590         * config/i386/xm-nbsd.h: Update copyright year.  Tweak comments.
10591         Include "i386/xm-i386.h".
10592         (HOST_LONG_DOUBLE_FORMAT): Remove.
10593
10594         Fix OpenBSD/i386 sigtramp recognition.
10595         * i386-tdep.h: Update copyright year.
10596         (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
10597         (i386bsd_sigtramp_end): New prototypes.
10598         (i386fbsd_sigtramp_start_addr): Renamed from
10599         i386fbsd_sigtramp_start.
10600         (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
10601         (i386obsd_sigtramp_start_addr): Renamed from
10602         i386obsd_sigtramp_start.
10603         (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
10604         * i386bsd-tdep.c: Update copyright year.
10605         (i386bsd_pc_in_sigtramp): Make public.
10606         * i386fbsd-nat.c: Update copyright year.
10607         (_initialize_i386fbsd_nat): Adjust for renamed variables.
10608         * i386fbsd-tdep.c: Update copyright year.
10609         (i386fbsd_sigtramp_start_addr): Renamed from
10610         i386fbsd_sigtramp_start.
10611         (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
10612         (i386fbsdaout_init_abi): Adjust for renamed variables.
10613         * i386obsd-nat.c: Update copyright year.
10614         (_initialize_i386obsd_nat): Adjust for renamed variables.
10615         * i386obsd-tdep.c: Include "target.h".
10616         (i386obsd_page_size): New variable.
10617         (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
10618         (i386obsd_sigtramp_end): New functions.
10619         (i386obsd_sigtramp_start_addr): Renamed from
10620         i386obsd_sigtramp_start.
10621         (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
10622         (i386obsd_init_abi): Adjust for renamed variables.  Set
10623         pc_in_sigtramp, sigtramp_start and sigtramp_end.
10624         * Makefile.in (i386obsd-tdep.o): Update dependencies.
10625
10626         * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
10627         trampoline change in OpenBSD kernel.
10628
10629         * amd64-nat.c: Update copyright year.
10630         (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
10631         architecture from REGCACHE.
10632
10633         * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
10634         symbolic constants from <sys/reg.h> instead of hard-coded numbers.
10635
10636 2004-02-21  Mark Kettenis  <kettenis@gnu.org>
10637
10638         * configure.host: Add i[34567]86-*-openbsd[0-2].* and
10639         i[34567]86-*-openbsd3.[0-3].
10640         * config/i386/obsdaout.mh: New file.
10641
10642         * config/i386/obsd.mh (MH_FLAGS): Remove.
10643
10644         Fix PR build/1549.
10645         * i386obsd-tdep.c: Update copyright years.  Include
10646         "solib-svr4.h".
10647         (i386obsd_init_abi): Don't set regset_from_core_section here.
10648         (i386obsd_aout_init_abi): New function.  Set
10649         regset_from_core_section here.
10650         (i386obsd_elf_init_abi): New function.
10651         (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
10652         * Makefile.in (i386obsd-tdep.o): Update dependecies.
10653         * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
10654         (TM_FILE): Set to tm-nbsd.h.
10655
10656         * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
10657         solib-sunos.o.
10658
10659         * solib-svr4.h: Update copyright year.
10660         (svr4_ilp32_fetch_link_map_offsets)
10661         (svr4_lp64_fetch_link_map_offsets): New prototype.
10662         * solib-svr4.c: Update copyright year.
10663         (svr4_ilp32_fetch_link_map_offsets)
10664         (svr4_lp64_fetch_link_map_offsets): New function.
10665
10666 2004-02-20  Daniel Jacobowitz  <drow@mvista.com>
10667
10668         * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
10669         to the partial symbol table.
10670
10671 2004-02-20  J. brobecker  <brobecker@gnat.com>
10672
10673         * PROBLEMS: Add description of problem documented under gdb/1560.
10674
10675 2004-02-20  Mark Kettenis  <kettenis@gnu.org>
10676
10677         * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h".  Fix
10678         comments.
10679         (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
10680         functions.
10681         (amd64obsd_init_abi): Reorder initializations.  Use
10682         amd64obsd_r_reg_offset to initialize the general-purpose register
10683         set details.  Set regset_from_core_section.
10684         (_initialize_amd64obsd_tdep): Rename from
10685         _initialize_amd64obsd_ndep.  Add OS ABI handler for core dumps.
10686         * Makefile.in (amd64obsd-tdep.o): Update dependencies.
10687         * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
10688
10689         * NEWS (New native configurations): Mention OpenBSD/alpha.
10690         * configure.tgt: Add alpha*-*-openbsd*.
10691         * configure.host: Add alpha*-*-openbsd*.
10692         * alphanbsd-tdep.c: Update copyright year.
10693         (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
10694
10695 2004-02-20  Andrew Cagney  <cagney@redhat.com>
10696
10697         Fix PR tdep/1372.
10698         * configure.tgt: Delete target "none-*-*".
10699         * configure.host: Delete host "none-*-*".
10700         * config/none/none.mh: Delete file.
10701         * config/none/none.mt: Delete file.
10702         * config/none/xm-none.h: Delete file.
10703         * config/none/tm-none.h: Delete file.
10704         * config/none/nm-none.h: Delete file.
10705
10706 2004-02-19  Fred Fish  <fnf@redhat.com>
10707
10708         * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
10709         cache->uses_fp prior to setting it.
10710
10711 2004-02-19  Fred Fish  <fnf@redhat.com>
10712
10713         Fix for PR breakpoint/1558.
10714         * sh-tdep.c (IS_JSR): New macro.
10715         (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
10716
10717 2004-02-19  Jim Blandy  <jimb@redhat.com>
10718
10719         * findvar.c (value_from_register): Doc fix.
10720
10721 2004-02-19  Jeff Johnston  <jjohnstn@redhat.com>
10722
10723         * printcmd.c (print_scalar_formatted): Do not check for sizeof
10724         type being greater than sizeof of host's LONGEST.  Always use
10725         unpack_long() unless format 'f' chosen.
10726
10727 2004-02-19  Joel Brobecker  <brobecker@gnat.com>
10728
10729         Committed by Elena Zannoni  <ezannoni@redhat.com>
10730
10731         * symtab.c (find_pc_sect_psymtab): Return the psymtab that
10732         contains a symbol wich is the best, non-exact match for the given
10733         pc.  Update comments.
10734
10735 2004-02-19  Elena Zannoni  <ezannoni@redhat.com>
10736
10737         * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
10738         macro, which was part of the now removed Mach 3 port.
10739         * utils.c (request_quit): Ditto.
10740
10741 2004-02-18  Mark Kettenis  <kettenis@gnu.org>
10742
10743         * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
10744         "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
10745
10746 2004-02-18  Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10747
10748         Committed by Mark Kettenis  <kettenis@gnu.org>.
10749
10750         * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
10751         Define.
10752
10753 2004-02-18  Andrew Cagney  <cagney@redhat.com>
10754
10755         * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
10756         CONFIG_INSTALL and CONFIG_UNINSTALL.
10757         * configure: Re-generate.
10758         * interps.h (INTERP_TUI): Define.
10759         * Makefile.in: Update dependencies.
10760         (TUI): New macro.
10761         (tui-main.o): Specify dependencies.
10762         (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
10763         * tui/tui-main.c: New file.
10764
10765 2004-02-18  Mark Kettenis  <kettenis@gnu.org>
10766
10767         * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
10768         * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
10769         dependencies.
10770         * configure.host: Add x86_64-*-openbsd*.
10771         * configure.tgt: Add x86_64-*-openbsd*.
10772         * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
10773
10774         * tui/tui.c: Don't include <malloc.h>.
10775
10776         * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
10777         amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
10778         amd64nbsd-tdep.c.
10779
10780         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
10781         static.  Remove extraneous whitespace.
10782         * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
10783         static.
10784
10785 2004-02-17  Jim Blandy  <jimb@redhat.com>
10786
10787         * findvar.c (value_from_register): Doc fix.
10788
10789 2004-02-17  Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10790
10791         Committed by Jim Blandy  <jimb@redhat.com>.
10792
10793         * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
10794         CORE_ADDR as type for selectors.  Correct types for GNU run time
10795         message lookup function to use double indirection.
10796         * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
10797         * objc-lang.h (lookup_child_selector): Adapt prototype.
10798
10799         * s390-nat.c (SUBOFF): New macro.
10800         (supply_gregset, fill_gregset): Use it to handle debugging
10801         of 32-bit exectuables running under a 64-bit kernel.
10802         * s390-tdep.c: Include "solib-svr4.h".
10803         (s390_svr4_fetch_link_map_offset): New function.
10804         (s390x_svr_fetch_link_map_offset): Likewise.
10805         (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
10806         * Makefile.in (s390-tdep.o): Update dependencies.
10807
10808         * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
10809         "frame-unwind.h".
10810         (s390_readinstruction): Reformat.  Use read_memory_nobpt.
10811         (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
10812         (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
10813         (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
10814         S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
10815         S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
10816         S390_SIGNAL_FRAMESIZE,
10817         s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
10818         (struct frame_extra_info): Remove.
10819         (s390_memset_extra_info): Remove.
10820         (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
10821         (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
10822         (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
10823         (is_rse): Renamed to ...
10824         (is_rsy): ... this.  Support long displacements.
10825         (is_rxe): Renamed to ...
10826         (is_rxy): ... this.  Support long displacements.
10827         (compute_x_addr): Support long displacements.
10828         (struct s390_prologue_data): New data type.
10829         (s390_on_stack): Change API to use struct s390_prologue_data.
10830         (s390_store): Reimplement.
10831         (s390_load): New function.
10832         (s390_get_signal_frame_info): Remove.
10833         (s390_get_frame_info): Remove, replace by ...
10834         (s390_analyze_prolog): ... this new function.
10835         (s390_check_function_end): Remove.
10836         (s390_function_start): Remove.
10837         (s390_frameless_function_invokation): Remove.
10838         (s390_is_sigreturn): Remove.
10839         (s390_init_frame_pc_first): Remove.
10840         (s390_init_frame_extra_info): Remove.
10841         (s390_frame_init_saved_regs): Remove.
10842         (s390_frame_saved_pc_nofix): Remove.
10843         (s390_frame_saved_pc): Remove.
10844         (s390_frame_chain): Remove.
10845         (s390_fp_regnum, s390_read_fp): Remove.
10846         (s390_pop_frame_regular, s390_pop_frame): Remove.
10847         (s390_saved_pc_after_call): Remove.
10848         (s390_skip_prologue): Reimplement.
10849         (s390_in_function_epilogue_p): Support long displacements.
10850         (struct s390_unwind_cache): New data structure.
10851         (s390_frame_unwind_cache): New function.
10852         (s390_prologue_frame_unwind_cache): Likewise.
10853         (s390_backchain_frame_unwind_cache): Likewise.
10854         (s390_frame_this_id, s390_frame_prev_register): Likewise.
10855         (s390_frame_unwind): Define.
10856         (s390_frame_sniffer): New function.
10857         (struct s390_pltstub_unwind_cache): New data structure.
10858         (s390_pltstub_frame_unwind_cache): New function.
10859         (s390_pltstub_frame_this_id): Likewise.
10860         (s390_pltstub_frame_prev_register): Likewise.
10861         (s390_pltstub_frame_unwind): Define.
10862         (s390_pltstub_frame_sniffer): New function.
10863         (struct s390_sigtramp_unwind_cache): New data structure.
10864         (s390_sigtramp_frame_unwind_cache): New function.
10865         (s390_sigtramp_frame_this_id): Likewise.
10866         (s390_sigtramp_frame_prev_register): Likewise.
10867         (s390_sigtramp_frame_unwind): Define.
10868         (s390_sigtramp_frame_sniffer): New function.
10869         (s390_frame_base_address, s390_local_base_address): New functions.
10870         (s390_frame_base): Define.
10871         (s390_unwind_pc, s390_unwind_sp): New function.
10872         (s390_push_dummy_call): Use new frame base location.
10873         (s390_unwind_dummy_id): Likewise.
10874         (s390_gdbarch_init): Remove calls to:
10875         set_gdbarch_frameless_function_invocation,
10876         set_gdbarch_deprecated_init_frame_pc,
10877         set_gdbarch_deprecated_frame_chain,
10878         set_gdbarch_deprecated_frame_init_saved_regs,
10879         set_gdbarch_deprecated_pop_frame,
10880         set_gdbarch_deprecated_init_extra_frame_info,
10881         set_gdbarch_deprecated_init_frame_pc_first,
10882         set_gdbarch_deprecated_target_read_fp,
10883         set_gdbarch_deprecated_frame_saved_pc,
10884         set_gdbarch_deprecated_saved_pc_after_call,
10885         set_gdbarch_deprecated_fp_regnum.
10886         Add calls to:
10887         set_gdbarch_in_solib_call_trampoline,
10888         frame_unwind_append_sniffer,
10889         frame_base_set_default,
10890         set_gdbarch_unwind_pc,
10891         set_gdbarch_unwind_sp.
10892         * Makefile.in (s390-tdep.o): Update dependencies.
10893
10894         * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
10895         (S390_STACK_FRAME_OVERHEAD): Remove.
10896         (S390_STACK_PARAMETER_ALIGNMENT): Remove.
10897         (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
10898         (s390_promote_integer_argument): Remove.
10899         (s390_cannot_extract_struct_value_address): Remove.
10900         (s390_use_struct_convention, s390_store_struct_return): Remove.
10901         (s390_extract_return_value, s390_store_return_value): Remove.
10902         (s390_return_value_convention, s390_return_value): New functions.
10903         (is_float_singleton): Handle typedefs.
10904         (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
10905         Remove, replace by ...
10906         (s390_function_arg_pass_by_reference, s390_function_arg_float,
10907         s390_function_arg_integer): ... these new functions.
10908         (s390_push_arguments, s390_push_return_address): Remove, replace by ...
10909         (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
10910         (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
10911         Fill in tdep->abi.
10912         Remove calls to:
10913         set_gdbarch_deprecated_store_struct_return,
10914         set_gdbarch_deprecated_extract_return_value,
10915         set_gdbarch_deprecated_store_return_value,
10916         set_gdbarch_use_struct_convention,
10917         set_gdbarch_extract_struct_value_address,
10918         set_gdbarch_deprecated_pc_in_call_dummy,
10919         set_gdbarch_deprecated_push_arguments,
10920         set_gdbarch_deprecated_save_dummy_frame_tos,
10921         set_gdbarch_deprecated_push_return_address,
10922         set_gdbarch_deprecated_sizeof_call_dummy_words,
10923         set_gdbarch_deprecated_call_dummy_words,
10924         set_gdbarch_deprecated_dummy_write_sp.
10925         Add calls to:
10926         set_gdbarch_push_dummy_call,
10927         set_gdbarch_unwind_dummy_id,
10928         set_gdbarch_return_value.
10929
10930         * config/s390/nm-linux.h: Update comments.
10931         (target_insert_watchpoint, target_remove_watchpoint): Redefine.
10932         (STOPPED_BY_WATCHPOINT): Redefine.
10933         (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
10934         (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
10935         (s390_stopped_by_watchpoint): Likewise.
10936         (watch_area_cnt): Remove.
10937         * s390-nat.c: Update comments.
10938         (watch_area): Remove typedef.
10939         Global replace watch_area by struct watch_area.
10940         (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
10941         (s390_stopped_by_watchpoint): Remove pid argument,
10942         use s390_inferior_tid.  Add short-cut for the no watchpoint case.
10943         (s390_fix_watch_points): Remove pid argument,
10944         use s390_inferior_tid.  Recompute area spanned by watchpoints.
10945         (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
10946         argument.  Reimplement.
10947
10948         * config/s390/nm-linux.h: Update comments.  Do not include "solib.h".
10949         (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
10950         (FETCH_INFERIOR_REGISTERS): Define.
10951         * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
10952         core-regset.o.
10953         * config/s390/s390x.mt: Remove.
10954         * config/s390/tm-s390.h: Remove.
10955         * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
10956         (TARGET_ELF64): Remove.
10957         (SKIP_TRAMPOLINE_CODE): Do not undefine.
10958         * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
10959         s390*-*-* case; always set gdb_target to s390.
10960         * regformats/reg-s390.dat: Remove control registers.
10961         * regformats/reg-s390x.dat: Likewise.
10962         * s390-tdep.h: New file.
10963         * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
10964         Include "inferior.h" and "s390-tdep.h".
10965         Remove private definition of offsetof.
10966         (s390_register_u_addr): Remove.
10967         (regmap_gregset, regmap_fpregset): Define.
10968         (supply_gregset, fill_gregset): Reimplement.
10969         (supply_fpregset, fill_fpregset): Likewise.
10970         (s390_inferior_tid): New function.
10971         (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
10972         (fetch_inferior_registers, store_inferior_registers): Likewise.
10973         * s390-tdep.c: Do not define S390_TDEP.  Include "defs.h" instead
10974         of <defs.h>.  Include "reggroups.h", "regset.h", and "s390-tdep.h".
10975         Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
10976         Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
10977         (struct gdbarch_tdep): Define.
10978         (struct s390_register_info): Define.
10979         (s390_register_info): New variable.
10980         (s390_register_name): Reimplement.
10981         (s390_register_type): New function.
10982         (s390_register_raw_size, s390x_register_raw_size): Remove.
10983         (s390_cannot_fetch_register): Remove.
10984         (s390_register_byte): Remove.
10985         (s390_register_virtual_type, s390x_register_virtual_type): Remove.
10986         (s390_dwarf_regmap): New variable.
10987         (s390_dwarf_reg_to_regnum): New function.
10988         (s390_stab_reg_to_regnum): Remove.
10989         (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
10990         (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
10991         (s390_convert_register_p): Likewise.
10992         (s390_register_to_value, s390_value_to_register): Likewise.
10993         (s390_register_reggroup_p): Likewise.
10994         (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
10995         s390_gregset, s390x_gregset, s390_fpregset): New variables.
10996         (s390_supply_regset, s390_regset_from_core_section): New functions.
10997         (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
10998         (S390_FPR_SIZE): Likewise.
10999         (S390_GPR_SIZE): Likewise.  Redefine in terms of GDB_TARGET_IS_ESAME.
11000         Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
11001         (S390_NUM_GPRS): Move here from tm-s390.h.
11002         (S390_NUM_FPRS): Likewise.
11003         (s390_in_function_epilogue_p): New function.
11004         (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
11005         Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
11006         (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
11007         Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
11008         Replace S390_FP_REGNUM by S390_SP_REGNUM.
11009         Remove calls to:
11010         set_gdbarch_deprecated_max_register_raw_size,
11011         set_gdbarch_deprecated_max_register_virtual_size,
11012         set_gdbarch_deprecated_register_byte,
11013         set_gdbarch_cannot_fetch_register,
11014         set_gdbarch_cannot_store_register,
11015         set_gdbarch_deprecated_register_size,
11016         set_gdbarch_deprecated_register_raw_size,
11017         set_gdbarch_deprecated_register_virtual_size,
11018         set_gdbarch_deprecated_register_virtual_type,
11019         set_gdbarch_deprecated_register_bytes.
11020         Add calls to:
11021         set_gdbarch_num_pseudo_regs,
11022         set_gdbarch_register_type,
11023         set_gdbarch_convert_register_p,
11024         set_gdbarch_register_to_value,
11025         set_gdbarch_value_to_register,
11026         set_gdbarch_register_reggroup_p,
11027         set_gdbarch_regset_from_core_section,
11028         set_gdbarch_pseudo_register_read,
11029         set_gdbarch_pseudo_register_write,
11030         set_gdbarch_in_function_epilogue_p.
11031         * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
11032         (s390_tdep_h): New variable.
11033
11034 2004-02-17  Jim Blandy  <jimb@redhat.com>
11035
11036         * findvar.c (value_from_register): If the type has no length, just
11037         return an acceptable value --- don't report an internal error.
11038
11039         * stabsread.c (read_type): If we find any type numbers that are
11040         forward references, complain if the references aren't resolved by
11041         the time we're finished reading.
11042         (cleanup_undefined_types): Make error message more appropriate for
11043         a complaint.
11044
11045 2004-02-17  Elena Zannoni  <ezannoni@redhat.com>
11046
11047         * Makefile.in (defs_h): Remove dependency on progress_h.
11048         * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
11049         progress.h.
11050         * main.c (captured_main): Delete use of START_PROGRESS and
11051         END_PROGRESS.
11052
11053 2004-02-17  Elena Zannoni  <ezannoni@redhat.com>
11054
11055         * objfiles.c (terminate_minimal_symbol_table): Add back
11056         initialization of MSYMBOL_TYPE.
11057
11058 2004-02-17  David Mosberger  <davidm@hpl.hp.com>
11059
11060         Committed by Andrew Cagney.
11061         * Makefile.in (ia64_tdep_h): New macro.
11062         (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
11063         (ia64-tdep.o): Likewise.
11064         * ia64-tdep.h: New file.
11065         * ia64-tdep.c: Update copyright notice.  Include "ia64-tdep.h".
11066         (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
11067         (ia64_aix_sigcontext_register_address): Likewise.
11068         (ia64_linux_getunwind_table): Delete declaration.
11069         * ia64-linux-tdep.c: Likewise.
11070
11071 2004-02-17  Corinna Vinschen  <vinschen@redhat.com>
11072
11073         * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
11074         * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
11075         DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
11076
11077 2004-02-17  Andrew Cagney  <cagney@redhat.com>
11078
11079         * symtab.c (skip_prologue_using_sal): New function.
11080         * symtab.h (skip_prologue_using_sal): Declare.
11081         * frv-tdep.c: Include "symtab.h".
11082         (skip_prologue_using_sal): Delete function.
11083         * mips-tdep.c (skip_prologue_using_sal): Delete function.
11084         * rs6000-tdep.c (refine_prologue_limit): Mention
11085         skip_prologue_using_sal.
11086         * ia64-tdep.c (refine_prologue_limit): Ditto.
11087         * Makefile.in: Update dependencies.
11088
11089 2004-02-16  Andrew Cagney  <cagney@redhat.com>
11090
11091         * config/alpha/tm-nbsd.h: Update copyright, delete #undef
11092         START_INFERIOR_TRAPS_EXPECTED.
11093         * config/alpha/tm-fbsd.h: Update copyright, delete #undef
11094         START_INFERIOR_TRAPS_EXPECTED.
11095         * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
11096         Delete macro.
11097         * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
11098         macro, moved to "nm-osf.h".  Update copyright.
11099         * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
11100         update copyright.
11101
11102         * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
11103         and function replacing FRAMELESS_FUNCTION_INVOCATION.
11104         * blockframe.c (legacy_frameless_look_for_prologue): Rename
11105         frameless_look_for_prologue.
11106         * frame.h (legacy_frameless_look_for_prologue): Rename
11107         frameless_look_for_prologue.
11108         * gdbarch.h, gdbarch.c: Re-generate.
11109         * sh64-tdep.c (sh64_gdbarch_init): Update.
11110         * sh-tdep.c (sh_gdbarch_init): Update.
11111         * s390-tdep.c (s390_gdbarch_init): Update.
11112         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11113         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11114         * m68k-tdep.c (m68k_gdbarch_init): Update.
11115         (delta68_frame_args_address): Update.
11116         * m32r-tdep.c (m32r_gdbarch_init): Update.
11117         * hppa-tdep.c (hppa_gdbarch_init): Update.
11118         * h8300-tdep.c (h8300_gdbarch_init): Update.
11119         * frv-tdep.c (frv_gdbarch_init): Update.
11120         (frv_frameless_function_invocation): Update.
11121         * cris-tdep.c (cris_gdbarch_init): Update.
11122         (cris_frameless_function_invocation): Update.
11123         * avr-tdep.c (avr_gdbarch_init): Update.
11124         * arm-tdep.c (arm_gdbarch_init): Update.
11125         * stack.c (frame_info): Update, call predicate.
11126         * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
11127         * frame.c (legacy_get_prev_frame): Update, call predicate..
11128         * arch-utils.c (generic_frameless_function_invocation_not): Delete.
11129         * arch-utils.h (generic_frameless_function_invocation_not): Delete.
11130         * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
11131         invocation.
11132         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11133         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11134         * vax-tdep.c (vax_gdbarch_init): Ditto.
11135
11136         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
11137         function.
11138
11139 2004-02-16  Daniel Jacobowitz  <drow@mvista.com>
11140
11141         * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
11142         initializations.
11143
11144 2004-02-16  Andrew Cagney  <cagney@redhat.com>
11145
11146         * tui/tui-windata.c: Include "gdb_string.h".
11147         * tui/tui-source.c, tui/tui-winsource.c: Ditto.
11148         * tui/tui-layout.c, tui/tui-command.c: Ditto.
11149         * Makefile.in: Update dependencies.
11150
11151 2004-02-16  Daniel Jacobowitz  <drow@mvista.com>
11152
11153         * Makefile.in (infrun.o): Add $(gdb_assert_h).
11154         * infrun.c: Include "gdb_assert.h".
11155         (singlestep_ptid, saved_singlestep_ptid)
11156         (stepping_past_singlestep_breakpoint): New variables.
11157         (resume): Set singlestep_ptid.  Check for singlestep thread
11158         hop.
11159         (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
11160         (handle_inferior_event): Handle singlestep thread hop.
11161
11162 2004-02-16  Andrew Cagney  <cagney@redhat.com>
11163
11164         * dwarf2-frame.c (dwarf2_frame_ops): New function.
11165         (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
11166         (dwarf2_frame_init_reg): Ditto.
11167
11168         * printcmd.c (display_command): Check that EXP isn't NULL.  Fix
11169         suggested by Joshua Neuheisel
11170
11171         * configure.in: Always check for curses, including pdcurses.
11172         Warn, instead of error, when no curses are found.  Enable TUI when
11173         curses is available.
11174         * configure: Re-generate.
11175
11176 2004-02-16  Corinna Vinschen  <vinschen@redhat.com>
11177
11178         * sh-tdep.c (sh_register_convert_to_virtual): Rename from
11179         sh_sh4_register_convert_to_virtual.
11180         (sh_register_convert_to_raw): Rename from
11181         sh_sh4_register_convert_to_raw.
11182         (sh_pseudo_register_read): Accomodate above name change.
11183         (sh_pseudo_register_write): Ditto.
11184
11185 2004-02-16  Corinna Vinschen  <vinschen@redhat.com>
11186
11187         * sh-tdep.c (sh_generic_register_name): Remove.
11188         (sh_gdbarch_init): Use sh_sh_register_name in default case.
11189
11190 2004-02-15  Andrew Cagney  <cagney@redhat.com>
11191
11192         * configure.in (build_warnings): Add -Wunused-function.
11193         * configure: Re-generate.
11194
11195         * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
11196         * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
11197
11198         * procfs.c (procfs_init_inferior): Assume that
11199         START_INFERIOR_TRAPS_EXPECTED is defined.
11200         * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
11201         * config/ns32k/tm-nbsd.h: Delete file,
11202         START_INFERIOR_TRAPS_EXPECTED already defined as 2.
11203
11204         * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
11205         * config/vax/tm-vax.h: Delete file.
11206
11207         * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11208         * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11209         * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11210         * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11211         * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
11212         * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11213         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
11214
11215 2004-02-15  Mark Kettenis  <kettenis@gnu.org>
11216
11217         * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
11218         * dwarf2-frame.c (dwarf2_frame_data): New variable.
11219         (struct dwarf2_frame_ops): New.
11220         (dwarf2_frame_default_init_reg): New function, based on
11221         dwarf2_frame_init_reg.
11222         (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
11223         (dwarf2_frame_init_reg): Call architecture-specific function.
11224         (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
11225         (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
11226         instead of dwarf2_frame_data.
11227         (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
11228         Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
11229
11230 2004-02-15  Andrew Cagney  <cagney@redhat.com>
11231
11232         * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
11233         register_gdbarch_swap.
11234         (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
11235         * f-lang.c (_initialize_f_language): Update, use
11236         DEPRECATED_REGISTER_GDBARCH_SWAP.
11237         * remote.c (_initialize_remote): Ditto.
11238         * regcache.c (_initialize_regcache): Ditto.
11239         * parse.c (_initialize_parse): Ditto.
11240         * infrun.c (_initialize_infrun): Ditto.
11241         * mi/mi-main.c (_initialize_mi_main): Ditto.
11242         * gdbtypes.c (_initialize_gdbtypes): Ditto.
11243
11244         * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
11245         poking .cacheable directly.
11246         * symfile.c (symfile_bfd_open): Ditto.
11247
11248         * Makefile.in: Update all dependencies.
11249
11250         * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
11251         (.y.c, .l.c): Specify implicit rule.  Instead of .tab.c, generate
11252         .c.  Update references.  Delete unnecessary .tab.c and -lex.c rules.
11253         (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
11254         (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
11255
11256 2004-02-14  Andrew Cagney  <cagney@redhat.com>
11257
11258         * arch-utils.c (legacy_convert_register_p): Check
11259         DEPRECATED_REGISTER_CONVERTIBLE_P.
11260         * findvar.c (value_of_register): Ditto.
11261
11262         * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
11263         * gdbarch.h, gdbarch.c: Re-generate.
11264         * arch-utils.c (deprecated_register_convertible_not): Delete.
11265         * arch-utils.h (deprecated_register_convertible_not): Delete.
11266         * mi/mi-main.c (get_register): Update.  Update copyright.
11267         * infcmd.c (default_print_registers_info): Update.
11268
11269         * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11270         (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
11271         (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
11272         * gdbarch.h, gdbarch.c: Re-generate.
11273         * frame.c (deprecated_get_next_frame_hack): Delete function.
11274         * frame.h (deprecated_get_next_frame_hack): Delete declaration.
11275         * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
11276         Update.
11277         * infcall.c (call_function_by_hand): Update.
11278
11279 2004-02-14  Elena Zannoni  <ezannoni@redhat.com>
11280
11281         * symfile.c (init_entry_point_info, entry_point_address): Move
11282         from here...
11283         * objfiles.c (init_entry_point_info, entry_point_address):..to
11284         here.
11285         * symfile.h (init_entry_point_info, entry_point_address): Remove
11286         prototypes.
11287         * objfiles.h (init_entry_point_info, entry_point_address):Add
11288         prototypes.
11289         * cris-tdep.c: Remove include of symfile.h. Add include of
11290         objfiles.h.
11291         * infcall.c: Ditto.
11292         * mcore-tdep.c: Ditto.
11293         * mn10300-tdep.c: Ditto.
11294         * sh64-tdep.c: Ditto.
11295         * v850-tdep.c: Ditto.
11296         * arm-tdep.c: Remove include of symfile.h.
11297         * blockframe.c: Ditto.
11298         * coffread.c: Ditto.
11299         * dbxread.c: Ditto.
11300         * dwarf2read.c: Ditto.
11301         * dwarfread.c: Ditto.
11302         * frv-tdep.c: Ditto.
11303         * ia64-tdep.c: Ditto.
11304         * mdebugread.c: Ditto.
11305         * mipsread.c: Ditto.
11306         * rs6000-tdep.c: Ditto.
11307         * s390-tdep.c: Ditto.
11308         * sh-tdep.c: Ditto.
11309         * xstormy16-tdep.c: Ditto.
11310         * gdbarch.sh: Remove include of symfile.h.
11311         * gdbarch.c: Regenerate.
11312         * solib-irix.c (enable_break): Use entry_point_address().
11313         Add comment about include file.
11314         * xcoffread.c: Add comment about include file.
11315         * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
11316         (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
11317         (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
11318         (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
11319         (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
11320
11321 2004-02-13  Andrew Cagney  <cagney@redhat.com>
11322
11323         * corelow.c (core_xfer_partial): Use "struct bfd_section".
11324         * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
11325         copyright.
11326         * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
11327
11328 2004-02-12  Fred Fish  <fnf@redhat.com>
11329
11330         * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
11331          set_gdbarch_store_return_value.
11332
11333 2004-02-12  Andrew Cagney  <cagney@redhat.com>
11334
11335         * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
11336         (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
11337         (interrupt_query): Ditto.
11338         (ofunc): Delete unused variable.
11339         * cris-tdep.c (cris_abi): Delete unused function.
11340         (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
11341         (cris_get_wide_opcode, cris_get_short_size): Ditto.
11342         (cris_get_asr_quick_shift_steps): Ditto.
11343         (cris_skip_prologue_frameless_p): Ditto.
11344         * arm-tdep.c (arm_push_return_address): Delete unused function.
11345         (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
11346         * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
11347         * s390-tdep.c (s390_function_start): Delete unused function.
11348
11349 2004-02-12  Andrew Cagney  <cagney@redhat.com>
11350
11351         * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
11352         gdbarch.h, gdbarch.c: Re-generate.
11353         * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
11354         to generic_prologue_frameless_p.
11355         * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
11356         * arch-utils.c (generic_prologue_frameless_p): Delete function.
11357
11358 2004-02-11  Daniel Jacobowitz  <drow@mvista.com>
11359
11360         * mips-linux-tdep.c: Include "frame.h".
11361         (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
11362         (mips_linux_skip_resolver): New functions.
11363         (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
11364         and set_gdbarch_in_solib_call_trampoline.
11365         * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
11366         to after set_gdbarch_in_solib_return_trampoline.  Only set the
11367         solib hooks to mips16 functions if the OS ABI is unknown.
11368         * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
11369         including "config/tm-linux.h".
11370         (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
11371         * Makefile.in (mips-linux-tdep.o): Update.
11372
11373 2004-02-11  David Carlton  <carlton@kealia.com>
11374
11375         * linespec.c (decode_compound): Only look for a class symbol when
11376         considering all but the rightmost component.
11377
11378 2004-02-11  Andrew Cagney  <cagney@redhat.com>
11379
11380         * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
11381         abi code are are separatly grouped.
11382
11383 2004-02-11  Andrew Cagney  <cagney@redhat.com>
11384
11385         * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
11386         * gdbarch.h, gdbarch.c: Re-generate.
11387         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11388         * v850-tdep.c (v850_gdbarch_init): Update.
11389         * sh64-tdep.c (sh64_gdbarch_init): Update.
11390         * sh-tdep.c (sh_gdbarch_init): Update.
11391         * s390-tdep.c (s390_gdbarch_init): Update.
11392         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11393         * mips-tdep.c (mips_gdbarch_init): Update.
11394         * mcore-tdep.c (mcore_gdbarch_init): Update.
11395         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11396         * m32r-tdep.c (m32r_gdbarch_init): Update.
11397         * ia64-tdep.c (ia64_gdbarch_init): Update.
11398         * hppa-tdep.c (hppa_gdbarch_init): Update.
11399         * h8300-tdep.c (h8300_gdbarch_init): Update.
11400         * frv-tdep.c (frv_gdbarch_init): Update.
11401         * d10v-tdep.c (d10v_gdbarch_init): Update.
11402         * cris-tdep.c (cris_gdbarch_init): Update.
11403         * avr-tdep.c (avr_gdbarch_init): Update.
11404         * arm-tdep.c (arm_gdbarch_init): Update.
11405         * alpha-tdep.c (alpha_gdbarch_init): Update.
11406
11407 2004-02-11  Corinna Vinschen  <vinschen@redhat.com>
11408
11409         * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
11410         comma.
11411         (sh_sh4al_dsp_register_name): Ditto.
11412
11413 2004-02-10  Andrew Cagney  <cagney@redhat.com>
11414
11415         * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
11416         (mips_init_frame_pc_first): Delete function.
11417         (mips_frame_saved_pc): Delete function.
11418         (mips_frame_chain): Delete function.
11419         (mips_init_extra_frame_info): Delete function.
11420         (mips_xfer_register): Delete unused variable "reg".
11421         (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
11422         (mips_n32n64_return_value): Delete unused variable "reg".
11423         (mips_n32n64_return_value): Delete unused variable "pos".
11424         (mips_o32_push_dummy_call): Delete unused variable "valbuf".
11425         (mips_o32_return_value): Delete unused variable "pos".
11426         (mips_o64_push_dummy_call): Delete unused variable "valbuf".
11427         (mips_print_fp_register): Delete unused variable "namelen"
11428         (mips_print_fp_register): Delete unused variable "flt2"
11429         (get_frame_pointer): Delete function.
11430         (cached_proc_desc): Delete static variable.
11431         (mips_pop_frame): Delete function.
11432         (mips_find_saved_regs): Delete function.
11433         (mips_get_saved_register): Delete function.
11434         (mips_saved_pc_after_call): Delete function.
11435         (SIGFRAME_BASE): Delete macro.
11436         (SIGFRAME_FPREGSAVE_OFF): Delete macro.
11437         (SIGFRAME_PC_OFF): Delete macro.
11438         (SIGFRAME_REGSAVE_OFF): Delete macro.
11439         (mips_dump_tdep): Do not print deleted macro definitions.
11440
11441 2004-02-10  Andrew Cagney  <cagney@redhat.com>
11442
11443         * Makefile.in (SFILES): Remove explictly listed tui files.
11444         (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
11445
11446 2004-02-10  Jeff Johnston  <jjohnstn@redhat.com>
11447
11448         * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
11449         to use paddr functions to format ia64 addresses and long values.
11450         (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
11451         (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
11452         (get_kernel_table, ia64_find_proc_info_x): Ditto.
11453         (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
11454         (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
11455
11456 2004-02-10  Andrew Cagney  <cagney@redhat.com>
11457
11458         * defs.h: Do not include "tui.h".
11459         * gdb_curses.h: New file.
11460         * tui/tui-hooks.h: New file.
11461         * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
11462         (tui_install_hooks, tui_remove_hooks): Delete declarations.
11463         (tui_initialize_io): Delete declaration.
11464         (tui_initialize_readline: Delete redundant declaration.
11465         (struct tui_point): Delete definition.
11466         * tui/tui-data.h (struct tui_point): Define.
11467         * cli/cli-decode.c [TUI]: Include "tui/tui.h".
11468         * utils.c: Include "tui/tui.h".
11469         * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
11470         * printcmd.c [TUI]: Include "tui/tui.h".
11471         * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
11472         * tui/tui-command.c: Include "gdb_curses.h".
11473         * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
11474         * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
11475         * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
11476         * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
11477         * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
11478         * Makefile.in: Update all dependencies.
11479         (tui_hooks_h, gdb_curses_h): Define.
11480         (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
11481
11482 2004-02-10  Elena Zannoni  <ezannoni@redhat.com>
11483
11484         * objfiles.h (struct objfile): Remove unused fields auxf1 and
11485         auxf2. Add comments about some other rarely used fields.
11486
11487 2004-02-10  Andrew Cagney  <cagney@redhat.com>
11488
11489         * Makefile.in (init.c): Fix script removing duplicates. Problem
11490         reported by Peter Schauer.
11491
11492 2004-02-09  Elena Zannoni  <ezannoni@redhat.com>
11493
11494         * bcache.c (bcache_xmalloc): Use obstack_init instead of
11495         obstack_specify_allocation.
11496         * objfiles.c (allocate_objfile): Ditto.
11497         * solib-sunos.c (solib_add_common_symbols)
11498         (allocate_rt_common_objfile): Ditto.
11499         * symfile.c (reread_symbols): Ditto.
11500         * gdb_obstack.h: Add comment.
11501
11502 2004-02-09  Elena Zannoni  <ezannoni@redhat.com>
11503
11504         * linespec.c (decode_line_1, locate_first_half)
11505         (decode_compound, lookup_prefix_sym): Update comments. Delete old
11506         commented out code.
11507
11508 2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
11509
11510         * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
11511         obstack_free.
11512
11513 2004-02-09  Andrew Cagney  <cagney@redhat.com>
11514
11515         * blockframe.c (find_pc_partial_function): If find_pc_overlay
11516         fails, try find_pc_section.  Fix PR c++/1267.
11517         * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
11518         instead of find_pc_mapped_section.
11519         (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
11520         not default to the section containing PC.  Fix PR symtab/1519.
11521
11522 2004-02-09  Andrew Cagney  <cagney@redhat.com>
11523
11524         * Makefile.in (mips-tdep.o): Update dependencies.
11525         * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
11526         "trad-frame.h".
11527         (mips_unwind_pc): Return the pseudo PC register.
11528         (mips_unwind_dummy_id): New function.
11529         (mips16_fetch_instruction): New function.
11530         (mips32_fetch_instruction): New function.
11531         (struct mips_frame_cache): Define.
11532         (mips_mdebug_frame_cache): New function.
11533         (mips_mdebug_frame_this_id): New function.
11534         (mips_mdebug_frame_prev_register): New function.
11535         (mips_mdebug_frame_unwind): Define.
11536         (mips_mdebug_frame_sniffer): New function.
11537         (mips_mdebug_frame_base_address): New function.
11538         (mips_mdebug_frame_base): Define.
11539         (mips_mdebug_frame_base_sniffer): New function.
11540         (mips_gdbarch_init): Append unwind and base sniffers.  Set
11541         unwind_dummy_id.
11542
11543 2004-02-08  Andrew Cagney  <cagney@redhat.com>
11544
11545         * frame.c: Print both the register number and name.
11546
11547         * Makefile.in (init.c): Eliminate duplicates.  Combine two greps
11548         and a sed into a single sed.  Make .c and .o patterns more robust.
11549         (OBS): Delete.
11550         (INIT_FILES): Replace OBS with COMMON_OBS.
11551         (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
11552
11553 2004-02-08  Mark Kettenis  <kettenis@gnu.org>
11554
11555         * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
11556         the PT_WCOOKIE request.
11557
11558 2004-02-08  Andrew Cagney  <cagney@redhat.com>
11559
11560         * mips-tdep.c (mips_unwind_pc): New function.
11561         (mips_gdbarch_init): Set mips_unwind_pc.
11562
11563         * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
11564         (get_frame_id): Allow the UNKNOWN_FRAME.
11565         (frame_register_unwind, get_frame_type): Ditto.
11566
11567         * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
11568         and DEPRECATED_FP_REGNUM.  Don't assume that the lack of
11569         unwind_dummy_id indicates a legacy frame.
11570
11571         * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
11572         * configure: Re-generate.
11573
11574         * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
11575         methods.
11576
11577 2004-02-08  Andrew Cagney  <cagney@redhat.com>
11578
11579         * configure.in (CONFIG_ALL): Set to Makefile target, and not
11580         makefile macro.
11581         * configure: Re-generate.
11582         (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
11583         * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
11584         (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
11585         (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
11586         (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
11587         (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
11588         (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
11589         (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
11590         (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
11591         (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
11592
11593 2004-02-07  Andrew Cagney  <cagney@redhat.com>
11594
11595         * Makefile.in: Update all dependencies.
11596
11597         * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
11598         * configure: Re-generate.
11599         * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
11600         (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
11601         (COMMON_OBS): Add "main.o" and "annotate.o".
11602         (ANNOTATE_OBS): Delete.
11603         (OBS): Remove ANNOTATE_OBS.
11604         (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
11605         CONFIG_INITS.
11606         (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
11607         against CONFIG_OBS and "main.o".
11608         (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
11609         (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
11610
11611         * tui/tui-command.c: Include "gdb_string.h", delete register
11612         attribute, use ISO-C function signatures.
11613         * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
11614         * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
11615         * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
11616         * tui/tui.c: Ditto.
11617
11618         * tui/tui-command.c: Change variable and function names to lower
11619         case.
11620         * tui/tui-data.c, tui/tui-disasm.c: Ditto.
11621         * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
11622         * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
11623         * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11624         * tui/tui-winsource.c, tui/tui.c: Ditto.
11625
11626 2004-02-07  Elena Zannoni  <ezannoni@redhat.com>
11627
11628         * buildsym.c (free_pending_blocks, finish_block)
11629         (record_pending_block, make_blockvector, end_symtab): Replace
11630         symbol_obstack with objfile_obstack.
11631         * coffread.c (process_coff_symbol, coff_read_struct_type)
11632         (coff_read_enum_type): Ditto.
11633         * cp-namespace.c (initialize_namespace_symtab)
11634         (check_one_possible_namespace_symbol): Ditto.
11635         * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
11636         (dwarf2_symbol_mark_computed): Ditto.
11637         * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
11638         * elfread.c (elf_symtab_read): Ditto.
11639         * hpread.c (hpread_symfile_init, hpread_symfile_init)
11640         (hpread_read_enum_type, hpread_read_function_type)
11641         (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
11642         Ditto.
11643         * jv-lang.c (get_java_class_symtab, add_class_symbol)
11644         (java_link_class_type): Ditto.
11645         * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
11646         (new_symbol): Ditto.
11647         * minsyms.c (install_minimal_symbols): Ditto.
11648         * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
11649         (terminate_minimal_symbol_table): Replace symbol_obstack with
11650         objfile_obstack.
11651         (free_objfile): Remove freeing of symbol_obstack.
11652         * objfiles.h: Remove symbol_obstack field.
11653         * pa64solib.c (add_to_solist): Replace symbol_obstack with
11654         objfile_obstack.
11655         * solib-sunos.c (allocate_rt_common_objfile): Remove init of
11656         symbol_obstack.
11657         (solib_add_common_symbols): Replace symbol_obstack with
11658         objfile_obstack.
11659         * somsolib.c (som_solib_add): Ditto.
11660         * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
11661         (common_block_start, common_block_end): Ditto.
11662         * symfile.c (reread_symbols): Remove freeing and init of
11663         symbol_obstack.
11664         (allocate_symtab): Rename symbol_obstack to objfile_obstack.
11665         * symfile.h: Update comment.
11666         * symmisc.c (print_objfile_statistics): Remove symbol_obstack
11667         stats printing.
11668         * symtab.c (symbol_set_names): Replace symbol_obstack with
11669         objfile_obstack.
11670         * symtab.h (struct general_symbol_info, struct minimal_symbol):
11671         Update comments.
11672         * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
11673         (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
11674         objfile_obstack.
11675
11676 2004-02-07  Andrew Cagney  <cagney@redhat.com>
11677
11678         * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
11679         "ansidecl.h".  Do not undef "reg" and "chtype".  Fix case of
11680         fields and variables.
11681         * tui/tui-wingeneral.h (m_beVisible): Delete macro.
11682         (m_beInvisible): Delete macro.
11683         * tui/tui-data.h: Fix case case fields and variables.
11684         (m_genWinPtrIsNull): Delete macro.
11685         (tui_win_list): Rename winList.
11686         (TUI_SRC_WIN): Rename srcWin.
11687         (TUI_DISASM_WIN): Rename disassemWin.
11688         (TUI_DATA_WIN): Rename dataWin.
11689         (TUI_CMD_WIN): Rename cmdWin.
11690         (m_genWinPtrNotNull): Delete macro.
11691         (m_winPtrIsNull): Delete macro.
11692         (m_winPtrNotNull): Delete macro.
11693         (tui_win_is_source_type): Replace m_winIsSourceType
11694         (tui_win_is_auxillary): Replace m_winIsAuzillary.
11695         (tui_win_has_locator): Replace m_hasLocator.
11696         (tui_set_win_highlight): Replace m_setWinHighlightOn and
11697         m_setWinHighlightOff.
11698         * tui/tui-data.c: Update references.
11699         (tui_win_is_source_type, tui_set_win_highlight): New functions.
11700         (tui_win_has_locator, tui_win_is_auxillary): New functions.
11701         * tui/tui-command.c, tui/tui-disasm.c: Update references.
11702         * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
11703         * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
11704         * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11705         * tui/tui-winsource.c, tui/tui.c: Ditto.
11706
11707 2004-02-07  Mark Kettenis  <kettenis@gnu.org>
11708
11709         * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
11710         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
11711         StackGhost.
11712
11713         * sparc-tdep.c (sparc32_frame_prev_register): Rename local
11714         variable `i6' to `i7'.
11715         (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
11716
11717 2004-02-07  Andrew Cagney  <cagney@redhat.com>
11718
11719         * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
11720         (TuiPoint, TuiPointPtr): Ditto.
11721         (TuiStatus, TuiStatusPtr): Ditto.
11722         (TuiWinType, TuiWinTypePtr): Ditto.
11723         (struct tui_point): Rename _TuiPoint.
11724         (tui_get_low_disassembly_address): Rename
11725         tuiGetLowDisassemblyAddress.
11726         (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
11727         (tuiFree): Delete declaration.
11728         (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
11729         (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
11730         * tui/tui.c (tuiFree): Delete function.
11731         * cli/cli-cmds.c (disassemble_command): Update references.
11732         * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
11733         * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
11734         * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
11735         * tui/tui-winsource.c: Ditto.
11736
11737 2004-02-07  Elena Zannoni  <ezannoni@redhat.com>
11738
11739         * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
11740         coffstab_build_psymtabs, elfstab_build_psymtabs)
11741         (stabsect_build_psymtabs): Replace psymbol_obstack with
11742         objfile_obstack.
11743         * dwarf2-frame.c (decode_frame_entry_1): Ditto.
11744         * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
11745         Ditto.
11746         * dwarfread.c (scan_compilation_units): Ditto.
11747         * elfread.c (elfstab_offset_sections): Ditto.
11748         * hppa-tdep.c (read_unwind_info): Ditto.
11749         * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
11750         (hpread_end_psymtab): Ditto.
11751         * mdebugread.c (mdebug_build_psymtabs, add_pending)
11752         (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
11753         Ditto.
11754         * mips-tdep.c (non_heuristic_proc_desc): Ditto.
11755         * objfiles.c (add_to_objfile_sections)
11756         (build_objfile_section_table): Ditto.
11757         (allocate_objfile): Remove init of psymbol_obstack.
11758         (free_objfile): Remove freeing of psymbol_obstack.
11759         * objfiles.h (struct objfile): Remove field
11760         psymbol_obstack. Update comments.
11761         * pa64solib.c (pa64_solib_add_solib_objfile): Replace
11762         psymbol_obstack with objfile_obstack.
11763         * solib-sunos.c (allocate_rt_common_objfile): Remove init of
11764         psymbol_obstack.
11765         * somread.c (som_symfile_offsets, init_import_symbols)
11766         (init_export_symbols): Replace psymbol_obstack with
11767         objfile_obstack.
11768         * somsolib.c (som_solib_add_solib_objfile): Ditto.
11769         * symfile.c (default_symfile_offsets, syms_from_objfile)
11770         (reread_symbols): Remove freeing and init of psymbol_obstack.
11771         (cashier_psymtab): Update comment.
11772         * symmisc.c (print_objfile_statistics): Don't report stats for
11773         psymbol obstack.
11774         * symtab.h (struct general_symbol_info, struct partial_symtab):
11775         Update comments.
11776         * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
11777         (xcoff_symfile_offsets): Replace psymbol_obstack with
11778         objfile_obstack.
11779
11780 2004-02-07  Elena Zannoni  <ezannoni@redhat.com>
11781
11782         * objfiles.h (struct objfile): Add objfile_obstack field.
11783         Remove type_obstack field.
11784
11785         * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
11786         read_structure_scope read_enumeration, new_symbol): Replace
11787         type_obstack with objfile_obstack.
11788         * dwarfread.c (struct_type, enum_type): Ditto.
11789         * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
11790         (lookup_fundamental_type): Ditto.
11791         * gdbtypes.h (TYPE_ALLOC): Ditto.
11792         * hpread.c (hpread_read_enum_type, hpread_read_function_type)
11793         (hpread_read_doc_function_type, hpread_read_struct_type)
11794         (fix_static_member_physnames, hpread_read_array_type)
11795         (hpread_read_subrange_type, hpread_type_lookup): Ditto.
11796         * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
11797         (java_link_class_type): Ditto.
11798         * mdebugread.c (parse_type): Ditto.
11799         * objfiles.c (allocate_objfile, free_objfile): Ditto.
11800         * solib-sunos.c (solib_add_common_symbols): Ditto.
11801         * stabsread.c (define_symbol, read_type, read_member_functions,
11802         read_cpp_abbrev, read_one_struct_field): Ditto.
11803         * symfile.c (reread_symbols): Ditto.
11804         * symmisc.c (print_objfile_statistics): Ditto.
11805
11806 2004-02-07  Andrew Cagney  <cagney@redhat.com>
11807
11808         * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
11809         (tui_exec_info_content): Rename TuiExecInfoContent.
11810         (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
11811         (TuiWinInfo, TuiWinInfoPtr): Ditto.
11812         (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
11813         (TuiList, TuiListPtr): Ditto.
11814         (TuiLayoutType, TuiLayoutTypePtr): Ditto.
11815         (TuiDataType, TuiDataTypePtr): Ditto.
11816         (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
11817         (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
11818         (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
11819         (TuiSourceElement, TuiSourceElementPtr): Ditto.
11820         (TuiDataElement, TuiDataElementPtr): Ditto.
11821         (TuiWinElement, TuiWinElementPtr): Ditto.
11822         (TuiDataInfo, TuiDataInfoPtr): Ditto.
11823         (TuiCommandElement, TuiCommandElementPtr): Ditto.
11824         (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
11825         (TuiWhichElement, TuiWhichElementPtr): Ditto.
11826         (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
11827         (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
11828         * tui/tui-command.c, tui/tui-data.c: Update references.
11829         * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
11830         * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
11831         * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11832         * tui/tui-winsource.c, tui/tui.c: Ditto.
11833
11834 2004-02-07  Mark Kettenis  <kettenis@gnu.org>
11835
11836         * dwarf2-frame.h: Update copyright.
11837         (enum dwarf2_frame_reg_rule): New.
11838         (struct dwarf2_frame_state_reg): New.
11839         (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
11840         * dwarf2-frame.c: Update copyright.
11841         (enum dwarf2_reg_rule): Remove.
11842         (struct dwarf2_frame_state): Remove defenition of `struct
11843         dwarf2_frame_state_reg'.
11844         (read_reg): Call get_frame_arch to get the architecture instead of
11845         using CURRENT_GDBARCH.
11846         (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
11847         DWARF2_FRAME_.
11848         (dwarf2_frame_init_reg): New function.
11849         (dwarf2_frame_cache): Call get_frame_arch to get the architecture
11850         instead of using CURRENT_GDBARCH.  Call dwarf2_frame_init_reg to
11851         initialize the register state.  Prefix old `enum dwarf2_reg_rule'
11852         tags with DWARF2_FRAME_.
11853         (dwarf2_frame_prev_register): Call get_frame_arch to get the
11854         architecture instead of using CURRENT_GDBARCH.  Prefix old `enum
11855         dwarf2_reg_rule' tags with DWARF2_FRAME_.
11856
11857 2004-02-06  Andrew Cagney  <cagney@redhat.com>
11858
11859         * tui/tui-data.h (struct tui_list): Rename _TuiList.
11860         (enum tui_data_type): Rename _TuiDataType.
11861         (struct tui_layout_def): Rename _TuiLayoutDef.
11862         (struct tui_source_element): Rename _TuiSourceElement.
11863         (struct tui_data_element): Rename _TuiDataElement.
11864         (struct tui_command_element): Rename _TuiCommandElement.
11865         (struct tui_locator_element): Rename _TuiLocatorElement.
11866         (union tui_which_element): Define.
11867         (struct tui_win_element): Rename _TuiWinElement.
11868         (struct tui_data_info): Rename _TuiDataInfo.
11869         (struct tui_source_info): Rename _TuiSourceInfo.
11870         (struct tui_command_info): Rename _TuiCommandInfo.
11871         (tui_initialize_static_data): Rename initializeStaticData.
11872         (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
11873         (tui_alloc_win_info): Rename allocWinInfo.
11874         (tui_init_generic_part): Rename initGenericPart.
11875         (tui_init_win_info): Rename initWinInfo.
11876         (tui_alloc_content): Rename allocContent.
11877         (tui_add_content_elements): Rename addContentElements.
11878         (tui_init_content_element): Rename initContentElement.
11879         (tui_free_window): Rename freeWindow.
11880         (tui_free_win_content): Rename freeWinContent.
11881         (tui_free_data_content): Rename freeDataContent.
11882         (tui_free_all_source_wins_content): Rename
11883         freeAllSourceWinsContent.
11884         (tui_del_window): Rename tuiDelWindow.
11885         (tui_del_data_windows): Rename tuiDelDataWindows.
11886         (tui_partial_win_by_name): Rename partialWinByName.
11887         (tui_win_name): Rename winName.
11888         (tui_current_layout): Rename currentLayout.
11889         (tui_set_current_layout_to): Rename setCurrentLayoutTo.
11890         (tui_term_height): Rename termHeight.
11891         (tui_set_term_height_to): Rename setTermHeightTo.
11892         (tui_term_width): Rename termWidth.
11893         (tui_set_term_width_to): Rename setTermWidthTo.
11894         (tui_set_gen_win_origin): Rename setGenWinOrigin.
11895         (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
11896         (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
11897         (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
11898         (tui_source_windows): Rename sourceWindows.
11899         (tui_clear_source_windows): Rename clearSourceWindows.
11900         (tui_clear_source_windows_detail): Rename
11901         clearSourceWindowsDetail.
11902         (tui_clear_win_detail): Rename clearWinDetail.
11903         (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
11904         (tui_default_tab_len): Rename tuiDefaultTabLen.
11905         (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
11906         (tui_win_with_focus): Rename tuiWinWithFocus.
11907         (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
11908         (tui_layout_def): Rename tuiLayoutDef.
11909         (tui_win_resized): Rename tuiWinResized.
11910         (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
11911         (tui_next_win): Rename tuiNextWin.
11912         (tui_prev_win): Rename tuiPrevWin.
11913         (tui_add_to_source_windows): Rename addToSourceWindows.
11914         * tui/tui-winsource.c, tui/tui-win.c: Update references.
11915         * tui/tui-layout.c, tui/tui-source.c: Ditto.
11916         * tui/tui-stack.c, tui/tui-io.c: Ditto.
11917         * tui/tui.c, tui/tui-data.c: Ditto.
11918         * tui/tui-interp.c, tui/tui-data.c: Ditto.
11919         * tui/tui-disasm.c, tui/tui-command.c: Ditto.
11920
11921         * tui/tui-source.h: Update copyright.  Include "tui-data.h".
11922         (struct symtab): Declare.
11923         (tui_set_source_content): Rename tuiSetSourceContent.
11924         (tui_show_symtab_source): Rename tuiShowSource.
11925         (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
11926         (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
11927         * tui/tui-source.c: Update copyright.  Update references.
11928         * tui/tui-win.c, tui/tui-winsource.c: Update references.
11929         * tui/tui-stack.c: Update references.
11930
11931         * tui/tui-win.h: Update copyright.  Include "tui-data.h".
11932         (struct tui_win_info): Declare.
11933         (tui_scroll_forward): Rename tuiScrollForward.
11934         (tui_scroll_backward): Rename tuiScrollBackward.
11935         (tui_scroll_left): Rename tuiScrollLeft.
11936         (tui_scroll_right): Rename tuiScrollRight.
11937         (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
11938         (tui_resize_all): Rename tuiResizeAll.
11939         (tui_refresh_all_win): Rename tuiRefreshAll.
11940         (tui_sigwinch_handler): Rename tuiSigwinchHandler.
11941         * tui/tui-layout.c, * tui/tui-io.c: Update references.
11942         * tui/tui-wingeneral.h, * tui/tui.c: Update references.
11943         * tui/tui-disasm.c, * tui/tui-command.c: Update references.
11944
11945         * tui/tui-windata.h: Update copyright.  Include "tui-data.h".
11946         (tui_erase_data_content): Rename tuiEraseDataContent.
11947         (tui_display_all_data): Rename tuiDisplayAllData.
11948         (tui_check_data_values): Rename tuiCheckDataValues.
11949         (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
11950         (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
11951         (tui_first_data_element_no_in_line): Rename
11952         tuiFirstDataElementNoInLine.
11953         (tui_delete_data_content_windows): Rename
11954         tuiDeleteDataContentWindows.
11955         (tui_refresh_data_win): Rename tuiRefreshDataWin.
11956         (tui_display_data_from): Rename tuiDisplayDataFrom.
11957         (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
11958         * tui/tui-windata.c, tui/tui-hooks.c: Update references.
11959         * tui/tui-win.c, tui/tui-regs.c: Update references.
11960         * tui/tui-layout.c, tui/tui.c: Update references.
11961
11962         * tui/tui-wingeneral.h: Update copyright.
11963         (m_allBeVisible): Delete macro.
11964         (m_allBeInvisible): Delete macro.
11965         (struct tui_gen_win_info): Declare.
11966         (struct tui_win_info): Declare.
11967         (tui_unhighlight_win): Rename unhighlightWin.
11968         (tui_make_visible, tui_make_invisible): Replace makeVisible.
11969         (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
11970         (tui_make_window): Rename makeWindow.
11971         (tui_copy_win): Rename copyWin.
11972         (tui_box_win): Rename boxWin.
11973         (tui_highlight_win): Rename highlightWin.
11974         (tui_check_and_display_highlight_if_needed): Rename
11975         checkAndDisplayHighlightIfNeeded.
11976         (tui_refresh_all): Rename refreshAll.
11977         (tui_delete_win): Rename tuiDelwin.
11978         (tui_refresh_win): Rename tuiRefreshWin.
11979         * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
11980         (tui_make_visible, tui_make_invisible): New functions.
11981         (tui_make_all_visible, tui_make_all_invisible): New functions.
11982         (make_all_visible): Rename makeAllVisible.
11983         * tui/tui-winsource.c, tui/tui-windata.c: Update references.
11984         * tui/tui-data.c, tui/tui-winsource.c: Update references.
11985         * tui/tui-windata.c, tui/tui-win.c: Update references.
11986         * tui/tui-regs.c, tui/tui-layout.c: Update references.
11987         * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
11988
11989 2004-02-06  Mark Kettenis  <kettenis@gnu.org>
11990
11991         * proc-api.c (write_with_trace): Initialize local variable to
11992         silence compiler warning.
11993
11994 2004-02-06  Andrew Cagney  <cagney@redhat.com>
11995
11996         * tui/tui-source.h: Do not include "defs.h".
11997         (struct tui_win_info): Declare.
11998         (tui_set_source_content_nil): Declare.
11999         * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
12000         (union tui_line_or_address): Rename _TuiLineOrAddress.
12001         * tui/tui-winsource.h: Update copyright.  Include "tui-data.h".
12002         (tui_update_source_window): Rename tuiUpdateSourceWindow.
12003         (tui_update_source_window_as_is): Rename
12004         tuiUpdateSourceWindowAsIs.
12005         (tui_update_source_windows_with_addr): Rename
12006         tuiUpdateSourceWindowsWithAddr.
12007         (tui_update_source_windows_with_line): Rename
12008         tuiUpdateSourceWindowsWithLine.
12009         (tui_clear_source_content): Rename tuiClearSourceContent.
12010         (tui_erase_source_content): Rename tuiEraseSourceContent.
12011         (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
12012         (tui_show_source_content): Rename tuiShowSourceContent.
12013         (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
12014         (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
12015         (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
12016         (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
12017         (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
12018         (tui_update_exec_info): Rename tuiUpdateExecInfo.
12019         (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
12020         (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
12021         (tui_line_is_displayed): Rename tuiLineIsDisplayed.
12022         (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
12023         (struct tui_win_info): Declare.
12024         * tui/tui-stack.c: Update references.
12025         * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
12026         * tui/tui-win.c, tui/tui-source.c: Ditto.
12027         * tui/tui.c, tui/tui-disasm.c: Ditto.
12028
12029 2004-02-06  Mark Kettenis  <kettenis@gnu.org>
12030
12031         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
12032         of UCONTEXT_ADDR.  Fixes PR backtrace/1545.
12033
12034 2004-02-05  Mark Kettenis  <kettenis@gnu.org>
12035
12036         * infrun.c (handle_inferior_event): Allow for breakpoint
12037         instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
12038         and SIGEMT.  Update comments.
12039         * NEWS (Revised SPARC target): Mention support for non-executable
12040         stack.
12041
12042 2004-02-04  Mark Kettenis  <kettenis@gnu.org>
12043
12044         * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
12045         * inftarg.c: Update copyright year.
12046         (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
12047         * sparc-nat.c: Include "target.h" and "gdb_assert.h".
12048         (sparc_xfer_wcookie): New function.
12049         * sparc-tdep.c (sparc_fetch_wcookie): New function.
12050         * Makefile.in (sparc-nat.o): Update dependencies.
12051         * config/sparc/nm-nbsd.h: Include "target.h".
12052         (NATIVE_XFER_WCOOKIE): New define.
12053         (sparc_xfer_wcookie): New prototype.
12054
12055 2004-02-04  Andrew Cagney  <cagney@redhat.com>
12056
12057         * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
12058         SYSCALL_TRAP function.
12059         (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
12060
12061 2004-02-04  Andrew Cagney  <cagney@redhat.com>
12062             Daniel Jacobowitz  <drow@mvista.com>
12063
12064         * objfiles.h: Delete comments refering to inside_entry_func and
12065         DEPRECATED_FRAME_CHAIN_VALID.
12066         * defs.h (inside_entry_func): Update prototype..
12067         * blockframe.c (inside_entry_func): Rename to
12068         legacy_inside_entry_func.  Add new inside_entry_func taking a frame.
12069         * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
12070
12071 2004-02-03  Jeff Johnston  <jjohnstn@redhat.com>
12072
12073         * breakpoint.c (struct captured_parse_breakpoint_args):  Move
12074         outside of #ifdef SOLIB_ADD region.
12075         (do_restore_lang_radix_cleanup): Ditto.
12076         (resolve_pending_breakpoint): Ditto.
12077
12078 2004-02-03  Andrew Cagney  <cagney@redhat.com>
12079
12080         * ia64-tdep.c (read_sigcontext_register): Delete unused function.
12081         (process_note_abi_tag_sections): Delete unused function.
12082         (ia64_read_fp): Delete unused function.
12083         (gdbarch_extract_struct_value_address): Delete declaration.
12084
12085 2004-02-02  Andrew Cagney  <cagney@redhat.com>
12086
12087         * vax-tdep.c (vax_frame_chain): Delete call to
12088         deprecated_inside_entry_file.
12089         * ns32k-tdep.c (ns32k_frame_chain): Ditto.
12090
12091 2004-02-02  Mark Kettenis  <kettenis@gnu.org>
12092
12093         * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
12094         column that's "empty" or "same value" when eliminating REG_RA
12095         rules.
12096
12097 2004-02-02  Jeff Johnston  <jjohnstn@redhat.com>
12098
12099         * NEWS: Add information about new pending breakpoint support.
12100
12101 2004-02-02  Jeff Johnston  <jjohnstn@redhat.com>
12102
12103         * breakpoint.h (struct breakpoint): Add new flag, from_tty,
12104         and pending fields for pending breakpoint support.
12105         * breakpoint.c (breakpoint_enabled): Add check for not pending.
12106         (condition_command): Only parse condition if not a pending
12107         breakpoint.
12108         (print_one_breakpoint): Add support for pending breakpoints.
12109         (describe_other_breakpoints): Add checks to verify we are not
12110         dealing with pending breakpoints.
12111         (check_duplicates): Don't check pending breakpoints.
12112         (set_raw_breakpoint): Initialize pending flag.
12113         (do_restore_lang_radix_cleanup): New cleanup routine.
12114         (resolve_pending_breakpoint): New function.
12115         (re_enable_breakpoints_in_shlibs): Try and resolve any
12116         pending breakpoints via resolve_pending_breakpoint.
12117         (mention): Add pending breakpoint support.
12118         (parse_breakpoint_sals): Add new parameter to pass to
12119         decode_line_1 to indicate silent errors when files or functions
12120         are not found.  Change all callers.
12121         (do_captured_parse_breakpoint): New function.
12122         (break_command_1): Change prototype to return an rc value and to
12123         take an optional pending breakpoint pointer.  Support creating
12124         a pending breakpoint if a "not found" form of error occurs when
12125         parsing the breakpoint.  Also support resolving an existing pending
12126         breakpoint and be silent if the resolution fails.
12127         (create_breakpoints): Change prototype to take pending breakpoint
12128         pointer.  When resolving a pending breakpoint, use the new pointer
12129         to provide a conditional or commands added by the end-user.
12130         (delete_breakpoint): Add appropriate check for pending.
12131         (breakpoint_re_set_one): Ditto.
12132         (do_enable_breakpoint): Ditto.
12133
12134 2004-02-02  David Carlton  <carlton@kealia.com>
12135
12136         * valops.c (enum oload_classification): New.
12137         (find_overload_match): Break implementation into separate
12138         functions; delete #if 0'd code; look for symbols within
12139         namespaces.
12140         (find_oload_champ_namespace,find_oload_champ_namespace_loop)
12141         (find_oload_champ,oload_method_static,classify_oload_match): New.
12142         * cp-support.h: Add declaration for cp_func_name; update
12143         declaration for make_symbol_overload_list.
12144         * cp-support.c (cp_func_name): New.
12145         (overload_list_add_symbol): Fix comment, use
12146         SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
12147         (make_symbol_overload_list): Take a function name and a namespace
12148         instead of a symbol; change implementation.
12149         (make_symbol_overload_list_using): New.
12150         (make_symbol_overload_list_qualified, read_in_psymtabs): New.
12151
12152 2004-02-02  Fred Fish  <fnf@redhat.com>
12153
12154         * main.c (gdb_stdtarg): Move definition to group with other
12155         gdb_stdtarg definitions and update copyright years.
12156         * remote-sim.c (gdb_os_write_stderr): Write output to
12157         gdb_stdtargerr stream instead of gdb_stdtarg stream.
12158         (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
12159         gdb_stderr stream and update copyright years.
12160
12161 2004-02-01  Daniel Jacobowitz  <drow@mvista.com>
12162
12163         * Makefile.in (mips-linux-nat.o): Update dependencies.
12164         * mips-linux-nat.c: Include mips-tdep.h.
12165
12166 2004-02-01  Roland McGrath  <roland@redhat.com>
12167
12168         * sol-thread.c (sol_thread_xfer_partial): New function.
12169         (init_sol_thread_ops): Use that for to_xfer_partial hook.
12170         (init_sol_core_ops): Likewise.
12171
12172         * procfs.c (procfs_xfer_partial): New function.
12173         (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
12174         * Makefile.in (procfs.o): Add $(auxv_h) dep.
12175
12176         * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
12177         procfs_xfer_auxv function.
12178
12179         * procfs.c (procfs_make_note_section): If we can read
12180         TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
12181         * linux-proc.c (linux_make_note_section): Likewise.
12182
12183         * auxv.h: New file.
12184         * auxv.c: New file.
12185         * Makefile.in (auxv_h): New variable.
12186         (COMMON_OBS): Add auxv.o here.
12187         (auxv.o): New target.
12188
12189         * corelow.c (core_xfer_partial): New function.
12190         (init_core_ops): Use it for core_ops.to_xfer_partial.
12191
12192         * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
12193         * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
12194         macro if that is defined.
12195
12196 2004-02-01  Daniel Jacobowitz  <drow@mvista.com>
12197
12198         * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
12199         and check the specified thread for each breakpoint.
12200         * breakpoint.h (bpstat_stop_status): Update prototype.
12201         * infrun.c (handle_inferior_event): Update calls to
12202         bpstat_stop_status.
12203
12204 2004-02-01  Daniel Jacobowitz  <drow@mvista.com>
12205
12206         * Makefile.in (cli-cmds.o): Add $(readline_h).
12207
12208 2004-02-01  Daniel Jacobowitz  <drow@mvista.com>
12209
12210         * cli/cli-cmds.c: Include readline.h.
12211         (complete_command): Pass the start of the last word to
12212         complete_line.
12213
12214 2004-01-31  Daniel Jacobowitz  <drow@mvista.com>
12215
12216         * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
12217         argument, and change first argument to a CORE_ADDR.
12218         * breakpoint.h (bpstat_stop_status): Update prototype.
12219         * infrun.c (adjust_pc_after_break): Add a new comment.
12220         (handle_inferior_event): Update calls to bpstat_stop_status.
12221
12222 2004-01-31  Daniel Jacobowitz  <drow@mvista.com>
12223
12224         * breakpoint.h: Update copyright years.
12225
12226 2004-01-31  Daniel Jacobowitz  <drow@mvista.com>
12227
12228         * breakpoint.c (software_breakpoint_inserted_here_p): New function.
12229         (bpstat_stop_status): Don't decrement PC.
12230         * breakpoint.h (software_breakpoint_inserted_here_p): Add
12231         prototype.
12232         * infrun.c (adjust_pc_after_break): New function.
12233         (handle_inferior_event): Call it, early.  Remove later references
12234         to DECR_PC_AFTER_BREAK.
12235         (normal_stop): Add commentary.
12236
12237 2004-01-31  Daniel Jacobowitz  <drow@mvista.com>
12238
12239         * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
12240         2004-01-27 double-free fix.
12241
12242 2004-01-31  Mark Kettenis  <kettenis@gnu.org>
12243
12244         * sparc-tdep.c (sparc_fetch_wcookie): New function.
12245         (sparc32_frame_prev_register): Handle StackGhost.
12246         (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12247
12248 2004-01-29  Roland McGrath  <roland@redhat.com>
12249
12250         * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
12251         * configure: Regenerated.
12252
12253         * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
12254         * Makefile.in (procfs.o): Add dep.
12255
12256 2004-01-28  Andrew Cagney  <cagney@redhat.com>
12257
12258         * tui/tui-stack.h: Update copyright.
12259         (struct frame_info): Add opaque declaration.
12260         (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
12261         (tui_show_locator_content): Rename tuiShowLocatorContent.
12262         (tui_show_frame_info): Rename tuiShowFrameInfo.
12263         * tui/tui-stack.c: Update copyright.  Update references.
12264         * tui/tui-winsource.c: Update references.
12265         * tui/tui-win.c: Update references.
12266         * tui/tui-layout.c: Update references.
12267         * tui/tui-hooks.c: Update copyright, update references.
12268         * tui/tui.c: Update copyright, update references.
12269         * tui/tui-disasm.c: Update references.
12270
12271 2004-01-28  David Carlton  <carlton@kealia.com>
12272
12273         * dwarf2read.c (add_partial_structure): Use demangled name if
12274         namespace equals "".
12275
12276 2004-01-27  Jim Blandy  <jimb@redhat.com>
12277
12278         Clean up misapplied patch:
12279         * dwarf2read.c (determine_prefix): Change one of the two forward
12280         declarations for 'determine_prefix_aux' to a declaration for this.
12281         (read_func_scope): Use cu->language, not cu_language.  Pass 'cu'
12282         argument to 'die_specification'.
12283
12284         * dwarf2read.c (read_func_scope): Re-indent comment.
12285
12286 2004-01-27  Paul N. Hilfinger  <hilfinger@gnat.com>
12287
12288         * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
12289         b->exp to NULL after freeing so that error during re-parsing or
12290         evaluation of expressions associated with breakpoint don't
12291         eventually lead to re-freeing of storage.
12292         Committed by Andrew Cagney.
12293
12294 2004-01-27  Andrew Cagney  <cagney@redhat.com>
12295
12296         * source.c (ambiguous_line_spec): Delete undefined declaration.
12297         * m32r-rom.c (m32r_set_board_address): Delete unused function.
12298         (m32r_set_server_address, m32r_set_download_path): Ditto.
12299         * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
12300
12301 2004-01-27  Daniel Jacobowitz  <drow@mvista.com>
12302
12303         * dwarf2read.c: Update calls to changed and renamed functions, and
12304         references to moved variables.
12305
12306         (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
12307         language, language_defn, list_in_scope, and ftypes members.
12308         (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
12309         (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
12310         (baseaddr): Remove globals.
12311
12312         (dwarf_attr): Renamed to dwarf2_attr.  Add CU argument.
12313         (set_cu_language, die_is_declaration, die_specification)
12314         (determine_prefix, determin_prefix_aux, class_name, namespace_name)
12315         (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
12316         (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
12317         (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
12318
12319         (dwarf2_build_psymtabs_hard): Add local baseaddr.  Initialize
12320         cu.list_in_scope.  Don't initialize cu_header_offset.
12321         (add_partial_symbol): Add local baseaddr.
12322         (psymtab_to_symtab_1): Add local baseaddr.  Use
12323         objfile->section_offsets for consistency.  Don't initialize
12324         cu_header_offset; do initialize cu.header.offset and
12325         cu.list_in_scope.
12326         (read_file_scope, read_func_scope, read_lexical_block_scope)
12327         (dwarf_decode_lines, new_symbol): Add local baseaddr.
12328
12329 2004-01-27  Michael Chastain  <mec.gnu@mindspring.com>
12330
12331         * PROBLEMS: Add gdb/1516.
12332
12333 2003-12-29  Robert Millan  <robertmh@gnu.org>
12334
12335         Patch committed by Andrw Cagney.
12336         * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
12337         * configure.tgt: Match knetbsd*-gnu.
12338
12339 2004-01-26  Andrew Cagney  <cagney@redhat.com>
12340
12341         * breakpoint.c (catch_command_1): Delete #ifdef code.
12342         (catch_fork_command_1): Delete #ifdef wrapper.
12343         (catch_exec_command_1): Ditto.
12344         (catch_load_command_1): Ditto.
12345         (catch_unload_command_1): Ditto.
12346
12347         * breakpoint.c (watchpoint_check): Delete #if0ed variable.
12348         (catch_breakpoint): Delete #if0ed function.
12349         (disable_catch_breakpoint): Ditto.
12350         (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
12351         (disable_catch, enable_catch, delete_catch): Ditto.
12352
12353 2004-01-26  Andrew Cagney  <cagney@redhat.com>
12354
12355         * remote.c (echo_check, quit_flag): Delete variables.
12356         (cisco_kernel_mode): Delete variable.
12357         (minitelnet_return, tty_input, escape_count): Delete variables.
12358         (remote_cisco_mode): Delete variable.
12359         (remote_cisco_open, remote_cisco_close): Delete function.
12360         (remote_cisco_mourn, remote_cisco_wait): Delete function.
12361         (init_remote_cisco_ops): Delete function.
12362         (_initialize_remote): Do not install "remote cisco" code.
12363         (read_frame): Delete cisco specific code.
12364         (remote_info_process): Delete function.
12365         (remote_wait): Delete cisco specific code.
12366         (remote_cisco_section_offsets): Delete function.
12367         (remote_cisco_objfile_relocate): Delete function.
12368         (remote_async_wait): Delete cisco specific code.
12369         (minitelnet, readtty, readsocket): Delete function.
12370
12371 2004-01-26  Andrew Cagney  <cagney@redhat.com>
12372
12373         * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate.  Add
12374         comments mentioning extract_returned_value_address.
12375         * infcmd.c (print_return_value): Update.  Add comments on
12376         extract_returned_value_address.
12377         * stack.c (return_command): Add comments on
12378         extract_returned_value_address.
12379         * values.c: Update comment.
12380         * m32r-tdep.c: Update comment.
12381         * sparc-tdep.c: Update comment.
12382         * ia64-tdep.c (ia64_use_struct_convention): Update comment.
12383         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12384         * sh64-tdep.c (sh64_gdbarch_init): Update.
12385         * sh-tdep.c (sh_gdbarch_init): Update.
12386         * s390-tdep.c (s390_gdbarch_init): Update.
12387         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12388         * m68klinux-tdep.c (m68k_linux_init_abi): Update.
12389         * m68k-tdep.c (m68k_gdbarch_init): Update.
12390         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12391         * m32r-tdep.c (m32r_gdbarch_init): Update.
12392         * ia64-tdep.c (ia64_gdbarch_init): Update.
12393         * h8300-tdep.c (h8300_gdbarch_init): Update.
12394         * frv-tdep.c (frv_gdbarch_init): Update.
12395         * arm-tdep.c (arm_gdbarch_init): Update.
12396         * alpha-tdep.c (alpha_gdbarch_init): Update.
12397
12398 2004-01-26  Andrew Cagney  <cagney@redhat.com>
12399
12400         * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
12401         SYMBOL_LOCATION_FUNCS
12402         (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
12403         "struct symbol_ops".
12404         * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
12405         type to "struct symbol_ops".
12406         * symtab.h (struct symbol_ops): Rename "struct location_funcs".
12407         (struct symbol): Replace ".aux_value.loc.funcs" and
12408         ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
12409         (SYMBOL_OBJFILE): Delete macro.
12410         (SYMBOL_LOCATION_FUNCS): Delete macro.
12411         (SYMBOL_LOCATION_BATON): Update.
12412         * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
12413         intead of SYMBOL_LOCATION_FUNCS.
12414         * ax-gdb.c (gen_var_ref): Ditto.
12415         * printcmd.c (address_info): Ditto.
12416         * findvar.c (read_var_value): Ditto.
12417         (symbol_read_needs_frame): Ditto.
12418
12419 2004-01-26  Andrew Cagney  <cagney@redhat.com>
12420
12421         * dwarf2read.c (read_func_scope): Document frame-base hack.
12422
12423 2004-01-25  Mark Kettenis  <kettenis@gnu.org>
12424
12425         * infcmd.c (print_return_value): Plug memory leak; delete
12426         ui_stream object.  Rename argument `structure_return' to
12427         `struct_return'.
12428
12429 2004-01-25  Mark Kettenis  <kettenis@gnu.org>
12430
12431         * infcmd.c (print_return_value): Wrap long lines.
12432         (finish_command_continuation, finish_command): Remove unused
12433         variable `funcaddr'.  Fix some coding-standards problems.
12434
12435         * sparc-tdep.c (sparc_regset_from_core_section): Check whether
12436         SECT_SIZE is large enough, not whether it's exactly the right size.
12437         (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
12438         TDEP->fpregset to zero.
12439
12440         * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
12441         floating-point registers for traditional NetBSD core files.
12442         (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
12443         TDEP->sizeof_fpregset here.
12444
12445 2004-01-25  Mark Kettenis  <kettenis@gnu.org>
12446
12447         * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
12448         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
12449         function with code split out from
12450         sparc32nbsd_sigcontext_frame_cache.
12451         (sparc32nbsd_sigcontext_frame_cache): Use
12452         sparc32nbsd_sigcontext_saved_regs.
12453         (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
12454         OpenBSD.
12455         * sparcobsd-tdep.c: New file.
12456         * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
12457         (sparcobsd-tdep.o): New dependency.
12458         * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
12459         * config/sparc/obsd.mt: New file.
12460
12461         * sparc-tdep.c (sparc32_gdbarch_init): Don't require
12462         TDEP->fpregset to be initialized to enable core file register
12463         sets.
12464
12465 2004-01-24  Mark Kettenis  <kettenis@gnu.org>
12466
12467         * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
12468         Add opaque declarations.
12469         (sparc64nbsd_sigcontext_saved_regs): New prototype.
12470         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
12471         function with code split out from
12472         sparc64nbsd_sigcontext_frame_cache.
12473         (sparc64nbsd_sigcontext_frame_cache): Use
12474         sparc64nbsd_sigcontext_saved_regs.
12475         (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
12476         OpenBSD.
12477         * sparc64obsd-tdep.c: New file.
12478         * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
12479         (sparc64obsd-tdep.o): New dependency.
12480         * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
12481         gdb_osabi to GDB_OSABI_OPENBSD_ELF.
12482         * config/sparc/obsd64.mt: New file.
12483
12484         * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
12485         read the instruction at PC.
12486
12487         * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
12488         value of GDB_OSABI_DEFAULT.
12489         (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
12490         instead of GDB_OSABI_NETBSD_AOUT.
12491
12492 2004-01-24  Nick Roberts  <nick@nick.uklinux.net>
12493
12494         * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
12495         copyright.
12496
12497 2004-01-23  Andrew Cagney  <cagney@redhat.com>
12498
12499         * printcmd.c (display_command): Replace tui_set_display call with
12500         tui_set_layout_for_display_command.
12501         * tui/tui.h (enum tui_win_type): Define.
12502         (tui_set_layout): Delete declaration.
12503         (tui_set_layout_for_display_command): Rename set_tui_layout.
12504         * tui/tui-data.h (enum tui_layout_type): Define.
12505         * tui/tui-layout.h: Update copyright.  Include "tui-data.h" and
12506         "tui.h".
12507         (tui_add_win_to_layout): Rename tuiAddWinToLayout.
12508         (tui_default_win_height): Rename tuiDefaultWinHeight.
12509         (tui_default_win_viewport_height): Rename
12510         tuiDefaultWinViewportHeight.
12511         (tui_set_layout): RenametuiSetLayout.
12512         * tui/tui-layout.c: Update references.
12513         * tui/tui.c: Update references.
12514         * tui/tui-disasm.c: Update references.
12515
12516 2004-01-23  David Carlton  <carlton@kealia.com>
12517
12518         Partial workaround for PR c++/1511:
12519         * cp-namespace.c: Include frame.h.
12520         (cp_lookup_transparent_type): New
12521         (cp_lookup_transparent_type_loop): New.
12522         * cp-support.h: Declare cp_lookup_transparent_type.
12523         * symtab.c (basic_lookup_transparent_type): Renamed from
12524         lookup_transparent_type.
12525         (lookup_transparent_type): Replace old body by a call to
12526         current_language->la_lookup_transparent_type.
12527         * symtab.h: Update copyright.  Declare
12528         basic_lookup_transparent_type.
12529         * language.h: Update copyright.
12530         (struct language_defn): Add la_lookup_transparent_type.
12531         * language.c: Update copyright.
12532         (unknown_language_defn): Add basic_lookup_transparent_type.
12533         (auto_language_defn): Add basic_lookup_transparent_type.
12534         (local_language_defn): Add basic_lookup_transparent_type.
12535         * ada-lang.c: Update copyright.
12536         (ada_language_defn): Add basic_lookup_transparent_type.
12537         * c-lang.c: Update copyright.
12538         (c_language_defn): Add basic_lookup_transparent_type.
12539         (cplus_language_defn): Add basic_lookup_transparent_type.
12540         (asm_language_defn): Add basic_lookup_transparent_type.
12541         (minimal_language_defn): Add basic_lookup_transparent_type.
12542         * f-lang.c: Update copyright.
12543         (f_language_defn): Add basic_lookup_transparent_type.
12544         * jv-lang.c: Update copyright.
12545         (java_language_defn): Add basic_lookup_transparent_type.
12546         * m2-lang.c: Update copyright.
12547         (m2_language_defn): Add basic_lookup_transparent_type.
12548         * objc-lang.c: Update copyright.
12549         (objc_language_defn): Add basic_lookup_transparent_type.
12550         * p-lang.c: Update copyright.
12551         (p_language_defn): Add basic_lookup_transparent_type.
12552         * scm-lang.c: Update copyright.
12553         (scm_language_defn): Add basic_lookup_transparent_type.
12554         * Makefile.in (cp-namespace.o): Depend on frame.h.
12555
12556 2004-01-23  David Carlton  <carlton@kealia.com>
12557
12558         Patch for PR c++/1520:
12559         * dwarf2read.c (read_func_scope): Set processing_current_prefix
12560         properly if we have a specification die.
12561         (determine_prefix_aux): Rename from determine_prefix.
12562         (determine_prefix): Like the old determine_prefix, but never
12563         returns NULL.
12564
12565 2004-01-23  Theodore A. Roth  <troth@openavr.org>
12566
12567         * avr-tdep.c: Update copyright.
12568         (avr_iaddr_p): Delete unused function.
12569         (avr_saddr_p): Delete unused function.
12570
12571 2004-01-23  David Carlton  <carlton@kealia.com>
12572
12573         * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
12574         Fix for PR symtab/1534.
12575
12576 2004-01-23  Mark Kettenis  <kettenis@gnu.org>
12577
12578         * NEWS (New native configurations): Mention OpenBSD/sparc and
12579         OpenBSD/sparc64.
12580         * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
12581         * configure.host: Likewise.
12582         * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
12583         handler for OpenBSD.
12584         * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
12585
12586 2004-01-22  Mark Kettenis  <kettenis@gnu.org>
12587
12588         * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
12589         (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
12590
12591         * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
12592         * cli/cli-cmds.c (shell_escape): Likewise.
12593
12594         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
12595         OpenBSD .note.openbsd.ident sections.
12596
12597 2004-01-22  David Carlton  <carlton@kealia.com>
12598
12599         * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
12600         get_scope_pc_bounds.
12601         (read_file_scope): Ditto.
12602         (get_scope_pc_bounds): New function, produced by extracting code
12603         from the above two functions, consolidating it, and adding support
12604         for DW_TAG_namespace.
12605
12606 2004-01-22  Mark Kettenis  <kettenis@gnu.org>
12607
12608         * osabi.c (MAX_NOTESZ): New define.
12609         (check_note): New function.
12610         (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
12611         check_note.
12612
12613 2004-01-21  Roland McGrath  <roland@redhat.com>
12614
12615         * MAINTAINERS (write after approval): Add myself.
12616
12617 2004-01-21  Eli Zaretskii  <eliz@gnu.org>
12618
12619         * utils.c (init_page_info): Move declarations of `rows' and
12620         `cols' before the __GO32__-specific code.  Move the closing brace
12621         outside the #ifdef __GO32__..#endif block.
12622         [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
12623
12624 2004-01-21  Paul Brook  <paul@codesourcery.com>
12625
12626         * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
12627         BPSTAT_WHAT_CHECK_SHLIBS.
12628
12629 2004-01-21  Paul Brook  <paul@codesourcery.com>
12630
12631         * MAINTAINERS: Add myself to write-after-approval.
12632
12633 2004-01-20  Andrew Cagney  <cagney@redhat.com>
12634
12635         * ax-gdb.c (print_axs_value): Delete unused function.
12636         * jv-lang.c (java_lookup_type): Delete unused function.
12637         * cli/cli-dump.c (dump_filetype): Delete unused function.
12638         * remote-mips.c (remote_mips_insert_hw_breakpoint)
12639         (remote_mips_remove_hw_breakpoint): Delete unused functions.
12640         (mips_getstring): Delete unused function.
12641         (pmon_insert_breakpoint): Delete #if0ed function.
12642         (PMON_MAX_BP): Delete #if0ed MACRO.
12643         (mips_pmon_bp_info): Delete #if0ed variable.
12644         (pmon_remove_breakpoint): Delete #if0ed function.
12645         * monitor.c (monitor_write_even_block): Delete unused function.
12646         (monitor_write_memory_block): Delete #if0ed code.
12647         * dink32-rom.c (dink32_load): Delete unused function.
12648         (_initialize_dink32_rom): Delete #if0ed code.
12649         * d10v-tdep.c (d10v_daddr_p): Delete unused function.
12650
12651         * tui/tui-command.c: Update references.
12652         * tui/tui-io.c: Update references.
12653         * tui/tui-command.h: Update copyright.
12654         (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
12655
12656         * source.c (ambiguous_line_spec): Delete never-defined function.
12657         * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
12658         * gdbtypes.c (add_name, add_mangled_type): Ditto.
12659         * cli/cli-cmds.c (validate_comname): Ditto.
12660
12661         * tui/tui-disasm.h: Update copyright.  Include "tui.h" and
12662         "tui-data.h".
12663         (tui_set_disassem_content): Rename tuiSetDisassemContent.
12664         (tui_show_disassem): Rename tuiShowDisassem.
12665         (tui_show_disassem_and_update_source): Rename
12666         tuiVerticalDisassemScroll.
12667         (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
12668         (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
12669         * tui/tui.h: Update copyright.
12670         (enum tui_status): Define.
12671         * tui/tui-data.h (enum tui_scroll_direction): Define.
12672         * tui/tui-disasm.c: Update copyright.  Update references.
12673         * tui/tui-winsource.c:  Update copyright.  Update references.
12674         * tui/tui-win.c: Update references.
12675         * tui/tui-layout.c: Update references.
12676
12677 2004-01-20  Andrew Cagney  <cagney@redhat.com>
12678
12679         * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
12680         sym2 to start of block.
12681
12682 2004-01-19  Michael Chastain  <mec.gnu@mindspring.com>
12683
12684         * MAINTAINERS: Delete mmalloc.
12685         * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
12686         * NEWS: Mention removal of --with-malloc.
12687         * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
12688         * config.in: Regenerate.
12689         * configure: Regenerate.
12690         * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
12691         USE_MMALLOC, MMCHECK_FORCE.
12692         * gdbinit.in: Remove mmalloc.
12693         * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
12694         * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
12695         * config/i386/go32.mh: Likewise.
12696         * config/i386/interix.mh: Likewise.
12697         * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
12698
12699 2004-01-19  Jeff Johnston  <jjohnstn@redhat.com>
12700
12701         * linespec.c (decode_variable, symtab_from_filename):  Call
12702         error_silent with error message instead of throwing an exception
12703         directly.
12704         * defs.h (error_silent, error_output_message): Add prototypes.
12705         (catch_exceptions_with_msg): Ditto.
12706         * utils.c (error_silent, error_output_message): New functions.
12707         * top.c (catch_exceptions_with_msg): New function.
12708
12709 2004-01-20  Nick Roberts  <nick@nick.uklinux.net>
12710
12711         * mi/mi-cmds.h (enum print_values): Add definition.
12712
12713         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
12714         type and value for simple data types and just the name and type
12715         for complex ones, if required.
12716
12717         * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
12718         children, if required.
12719
12720 2004-01-19  Kevin Buettner  <kevinb@redhat.com>
12721
12722         * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
12723         unused declarations.
12724
12725 2004-01-19  Andrew Cagney  <cagney@redhat.com>
12726
12727         * top.h (mapped_symbol_files): Delete declaration.
12728         * main.c (captured_main): Delete option "m" and "mapped".
12729         * objfiles.c (mapped_symbol_files): Delete variable.
12730         * symfile.c (symbol_file_command): Delete mmap code.
12731         (symbol_file_add_with_addrs_or_offsets): Ditto.
12732         (add_symbol_file_command, reread_separate_symbols): Ditto.
12733         * objfiles.h (OBJF_MAPPED): Delete.
12734         * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
12735         (free_objfile) [USE_MMALLOC]: Ditto.
12736         (open_existing_mapped_file): Delete function.
12737         (open_mapped_file): Delete function.
12738         (map_to_file): Delete function.
12739
12740 2004-01-19  Kevin Buettner  <kevinb@redhat.com>
12741
12742         * infrun.c (step_into_function): Account for possible breakpoint
12743         adjustment when computing ``stop_func_start''.
12744
12745 2004-01-19  Kevin Buettner  <kevinb@redhat.com>
12746
12747         * target.c (default_region_size_ok_for_hw_watchpoint): Compare
12748         the region size against the size of a pointer, not the size of
12749         a register as given by DEPRECATED_REGISTER_SIZE.
12750
12751 2004-01-19  Andrew Cagney  <cagney@redhat.com>
12752
12753         * tui/tui-regs.h: Include "tui-data.h".
12754         (tuiFirstRegElementNoInLine): Delete declaration.
12755         (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
12756         (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
12757         (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
12758         (tui_calculate_regs_column_count): Rename
12759         tuiCalculateRegsColumnCount.
12760         (tui_check_register_values): Rename tuiCheckRegisterValues.
12761         (tui_show_registers): Rename tuiShowRegisters.
12762         (tui_display_registers_from_line): Rename
12763         tuiDisplayRegistersFromLine.
12764         (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
12765         (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
12766         (tui_first_reg_element_no_inline): Rename
12767         tuiFirstRegElementNoInLine.
12768         * tui/tui-data.h: Update copyright.
12769         (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
12770         * tui/tui-windata.c: Update copyright, update references.
12771         * tui/tui-regs.c: Update copyright, update references.
12772         * tui/tui-win.c: Update copyright, update references.
12773         * tui/tui-layout.c: Update copyright, update references.
12774
12775 2004-01-18  Andrew Cagney  <cagney@redhat.com>
12776
12777         * tui/tui-io.c: Update copyright.
12778         (key_is_end_sequence, key_is_backspace): New functions.
12779         (key_is_command_char, key_is_start_sequence): New function.
12780         (tui_getc): Update references.
12781         * tui/tui-io.h: Update copyright.
12782         (m_tuiStartNewLine): Delete macro.
12783         (m_isBackspace, m_isDeleteChar): Delete macros.
12784         (m_isDeleteLine, m_isDeleteToEol): Delete macros.
12785         (m_isNextPage, m_isPrevPage): Delete macros.
12786         (m_isLeftArrow, m_isRightArrow): Delete macros.
12787         (m_isXdbStyleCommandChar): Delete macro.
12788         (key_is_start_sequence): Declare, replace m_isStartSequence.
12789         (key_is_end_sequence): Declare, replace m_isEndSequence.
12790         (key_is_backspace): Declare ,replace m_isBackspace.
12791         (key_is_command_char): Declare, replace m_isCommandChar.
12792         * tui/tui-command.c: Update copyright.
12793         (tuiDispatchCtrlChar): Update references.
12794
12795         * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
12796         tuiSourceWin.h.
12797
12798         * tui/tui-command.c: Rename tui/tuiCommand.c.
12799         * tui/tui-command.h: Rename tui/tuiCommand.h.
12800         * tui/tui-data.c: Rename tui/tuiData.c.
12801         * tui/tui-data.h: Rename tui/tuiData.h.
12802         * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
12803         * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
12804         * tui/tui-io.c: Rename tui/tuiIO.c.
12805         * tui/tui-io.h: Rename tui/tuiIO.h.
12806         * tui/tui-layout.c: Rename tui/tuiLayout.c.
12807         * tui/tui-layout.h: Rename tui/tuiLayout.h.
12808         * tui/tui-regs.c: Rename tui/tuiRegs.c.
12809         * tui/tui-regs.h: Rename tui/tuiRegs.h.
12810         * tui/tui-source.c: Rename tui/tuiSource.c.
12811         * tui/tui-source.h: Rename tui/tuiSource.h.
12812         * tui/tui-stack.c: Rename tui/tuiStack.c.
12813         * tui/tui-stack.h: Rename tui/tuiStack.h.
12814         * tui/tui-win.c: Rename tui/tuiWin.c.
12815         * tui/tui-win.h: Rename tui/tuiWin.h.
12816         * tui/tui-windata.c: Rename tui/tuiDataWin.c.
12817         * tui/tui-windata.h: Rename tui/tuiDataWin.h.
12818         * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
12819         * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
12820         * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
12821         * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
12822         * tui/tui-file.c: Update includes.
12823         * tui/tui-hooks.c: Update includes.
12824         * tui/tui-interp.c: Update includes.
12825         * tui/tui.c: Update includes.
12826         * Makefile.in: Update all tui/ dependencies.
12827         (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
12828
12829         * Makefile.in: Update copyright.  Update dependencies.
12830
12831         * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
12832         problem.
12833
12834 2004-01-18  Andrew Cagney  <cagney@redhat.com>
12835
12836         * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
12837         instead of register_gdbarch_init.
12838
12839         * remote-sds.c (tohex): Delete unused function.  Update copyright.
12840         * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
12841         * v850-tdep.c (v850_register_virtual_size): Ditto.
12842         * target.c (normal_target_post_startup_inferior): Ditto.
12843         * source.c (ambiguous_line_spec): Ditto.
12844         * remote.c (adapt_remote_get_threadinfo): Ditto.
12845         * mi/mi-out.c (out_field_fmt): Ditto.
12846         * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
12847         (output_control_change_notification): Ditto.
12848         * m68k-tdep.c (m68k_register_byte): Ditto.
12849         (m68k_remote_breakpoint_from_pc): Ditto.
12850         * ui-out.c (init_ui_out_state): Delete unused declaration.
12851         * stabsread.c (search_value): Ditto.
12852         * mi/mi-cmd-env.c (env_cli_command): Ditto.
12853         * maint.c (print_section_table): Ditto.
12854         * infrun.c (set_follow_fork_mode_command): Ditto.
12855
12856 2004-01-18  Mark Kettenis  <kettenis@gnu.org>
12857
12858         * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
12859         DW_CFA_def_cfa_exporession.  Add support for
12860         DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
12861         DW_CFA_def_cfa_offset_sf.  This should fix PR backtrace/1391.
12862
12863 2004-01-18  Andrew Cagney  <cagney@redhat.com>
12864
12865         * ocd.c: Update copyright.
12866         (bdm_read_register_command): Delete unused function.
12867         (_initialize_remote_ocd): Delete commented out reference.
12868         (get_quoted_char, reset_packet): Delete #if0ed function.
12869         (output_packet, put_quoted_char): Delete #if0ed function.
12870         (stu_put_packet, stu_get_packet): Delete #if0ed function.
12871         (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
12872         (BDM_BREAKPOINT): Delete #if0ed macro.
12873         (remote_timeout): Delete #if0ed variable.
12874
12875 2004-01-18  Mark Kettenis  <kettenis@gnu.org>
12876
12877         * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
12878         (core-sol2.o): Remove dependency.
12879         * core-sol2.c: Remove file.
12880
12881 2004-01-17  Andrew Cagney  <cagney@redhat.com>
12882
12883         * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
12884         * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
12885         enums.
12886
12887 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
12888
12889         * remote.c: Update copyright years.
12890
12891 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
12892
12893         * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
12894
12895 2004-01-17  Andrew Cagney  <cagney@redhat.com>
12896
12897         * mdebugread.c: Update copyright.
12898         (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
12899         (parse_type, parse_procedure): Ditto.
12900         (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
12901
12902         * cris-tdep.c (cris_store_struct_return): Put back accidently
12903         deleted function.
12904
12905         * gdbarch.sh: Update copyright year.
12906         * gdbarch.h, gdbarch.c: Re-generate.
12907
12908 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
12909
12910         Suggested by George Anzinger.
12911         * dwarf2expr.c (execute_stack_op): Fetch the second item from the
12912         correct stack offset.  Include unknown opcode numbers in the error
12913         message.
12914
12915 2004-01-17  Andrew Cagney  <cagney@redhat.com>
12916
12917         * x86-64-tdep.c (x86_64_init_abi): No need to clear
12918         extract_struct_value_address, i386 does not set it.
12919         * sparc64-tdep.c (sparc64_init_abi): Do not set
12920         extract_struct_value_address, never called.
12921         (sparc64_extract_struct_value_address): Delete function.
12922         * m68hc11-tdep.c: Update copyright.
12923         (m68hc11_gdbarch_init): Delete redundant assignment of
12924         extract_struct_value_address.
12925         * i386-tdep.c: Update copyright.
12926         (i386_gdbarch_init): Do not set extract_struct_value_address,
12927         never called.
12928         (i386_extract_struct_value_address): Delete function.
12929         * sparc-tdep.c (sparc32_gdbarch_init): Do not set
12930         extract_struct_value_address, never called.
12931         (sparc32_extract_struct_value_address): #if 0 function.  Add
12932         comments explaining its future.
12933
12934 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
12935
12936         * arm-tdep.c (arm_write_pc): New function.
12937         (arm_gdbarch_init): Call set_gdbarch_write_pc.
12938
12939 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
12940
12941         * breakpoint.c (must_shift_inst_regs): Delete.
12942         (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
12943         and SHIFT_INST_REGS.
12944         * infcmd.c (step_1, step_1_continuation): Delete references to
12945         SHIFT_INST_REGS.
12946         * infrun.c (keep_going): Likewise.
12947         * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
12948         * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
12949
12950 2004-01-17  Andrew Cagney  <cagney@redhat.com>
12951
12952         * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12953         * gdbarch.h, gdbarch.c: Re-generate.
12954         * infcmd.c (print_return_value): Delete reference to
12955         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
12956
12957         * cris-tdep.c (cris_gdbarch_init): Do not set
12958         deprecated_extract_struct_value_address.
12959
12960         * xstormy16-tdep.c: Update copyright.
12961         (xstormy16_extract_struct_value_address): Update to current
12962         extract struct value address interface.
12963         (xstormy16_gdbarch_init): Set extract_struct_value_address.
12964         * sh64-tdep.c (sh64_extract_struct_value_address): Update to
12965         current extract struct value address interface.
12966         (sh64_gdbarch_init): Set extract_struct_value_address.
12967
12968         * cris-tdep.c: Update copyright.
12969         (cris_extract_struct_value_address): Delete function.
12970         (struct_return_address): Delete variable.
12971         (cris_store_struct_return): Do not set struct_return_address.
12972
12973         * mcore-tdep.c: Update copyright.
12974         (mcore_extract_struct_value_address): Delete function.  Update
12975         comments.
12976         (mcore_gdbarch_init): Update.
12977         * mn10300-tdep.c: Update copyright.
12978         (mn10300_extract_struct_value_address): Delete function.
12979         (mn10300_gdbarch_init): Update.
12980         * v850-tdep.c: Update copyright.
12981         (v850_extract_struct_value_address): Delete.
12982         (v850_gdbarch_init): Update.
12983         * ns32k-tdep.c: Update copyright.
12984         (ns32k_extract_struct_value_address): Delete.
12985         (ns32k_gdbarch_init): Update.
12986         * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
12987         (hppa_gdbarch_init): Update.
12988         * vax-tdep.c: Update copyright.
12989         (vax_extract_struct_value_address): Delete.
12990         (vax_gdbarch_init): Update.
12991
12992         * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
12993         * gdbarch.h, gdbarch.c: Re-generate.
12994         * procfs.c (procfs_fetch_registers): Delete reference to
12995         DEPRECATED_NPC_REGNUM.
12996         (procfs_store_registers): Ditto.
12997         * regcache.c (generic_target_write_pc): Simplify.
12998         * lynx-nat.c: Delete #ifdef SPARC code.  Not used.
12999
13000         * core-sol2.c (fetch_core_registers): Replace
13001         DEPRECATED_NPC_REGNUM with equivalent tdep value.
13002
13003         * hppa-tdep.c: Update copyright year.
13004         (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
13005         NPC_REGNUM.
13006         (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
13007
13008         * mips-tdep.c (mips_write_pc): New function.
13009         (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
13010         (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
13011         (mips_find_saved_regs, mips_software_single_step: Ditto.
13012         (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
13013         mips_init_extra_frame_info, mips_pop_frame): Ditto.
13014
13015 2004-01-17  Andrew Cagney  <cagney@redhat.com>
13016
13017         * mips-tdep.c: Re-indent.  Group functions by ABI.
13018
13019 2004-01-17  Andrew Cagney  <cagney@redhat.com>
13020
13021         * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
13022         * gdbarch.c: Re-generate.
13023         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13024         DECR_PC_AFTER_BREAK to zero.
13025         * vax-tdep.c (vax_gdbarch_init): Ditto.
13026         * v850-tdep.c (v850_gdbarch_init): Ditto.
13027         * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13028         * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13029         * sh-tdep.c (sh_gdbarch_init): Ditto.
13030         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13031         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13032         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13033         * mips-tdep.c (mips_gdbarch_init): Ditto.
13034         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13035         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13036         * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13037         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13038         * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
13039         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13040         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13041         * frv-tdep.c (frv_gdbarch_init): Ditto.
13042         * cris-tdep.c (cris_gdbarch_init): Ditto.
13043         * avr-tdep.c (avr_gdbarch_init): Ditto.
13044         * arm-tdep.c (arm_gdbarch_init): Ditto.
13045         * i386-nto-tdep.c (i386nto_init_abi): Add comment.
13046
13047 2004-01-17  J. Brobecker  <brobecker@gnat.com>
13048
13049         * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
13050         Delete, no longer used.
13051         (read_subrange_type): New function, mostly extracted from
13052         read_array_type().
13053         (read_array_type): Replace extracted code by call to
13054         read_subrange_type().
13055         (dwarf2_get_attr_constant_value): New function.
13056         (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
13057         (add_partial_symbol): Likewise.
13058         (process_die): Likewise.
13059         (new_symbol): Likewise.
13060         (read_type_die): Likewise.
13061
13062 2004-01-16  Andrew Cagney  <cagney@redhat.com>
13063
13064         * symfile.c: Update copyright year.
13065         (compare_symbols): Delete unused function.
13066         * stabsread.c: Update copyright year.
13067         (lrs_general_complaint): Delete unused function.
13068         (ref_search_value): Ditto.
13069         (get_substring): Delete declaration.
13070         * sh64-tdep.c: Update copyright year.
13071         (sh64_get_gdb_regnum): Delete unused function.
13072         * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
13073         Delete unused function.
13074
13075 2004-01-17  Mark Kettenis  <kettenis@gnu.org>
13076
13077         * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
13078         * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
13079
13080 2004-01-16  Andrew Cagney  <cagney@redhat.com>
13081
13082         Changes from Peter Schauer.
13083         * rs6000-tdep.c: Update copyright year.
13084         (rs6000_push_dummy_call): Update the stack pointer before
13085         accessing the corresponding stack region.
13086         * rs6000-nat.c: Update copyright year.
13087         (set_host_arch): Set "info.abfd" to "exec_bfd".
13088
13089 2004-01-15  Mark Kettenis  <kettenis@gnu.org>
13090
13091         * blockframe.c: Update copyright year.
13092         (inside_entry_func): Don't treat a zero PC specially.
13093
13094 2004-01-14  Elena Zannoni  <ezannoni@redhat.com>
13095
13096         * gcore.c (gcore_copy_callback): Use paddr_d to print size
13097         variable.
13098         (gcore_create_callback): Ditto.  Skip any memory segment that has
13099         no permissions set.
13100
13101 2004-01-14  David Carlton  <carlton@kealia.com>
13102
13103         Change symbols for C++ nested types to contain the fully qualified
13104         name, if possible.  (At least in the DWARF-2 case.)  Partial fix
13105         for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
13106         c++/895.
13107         * c-exp.y (qualified_type): Handle types nested within classes.
13108         * cp-namespace.c: Update comments.
13109         (cp_set_block_scope): Delete #if 0.
13110         (cp_lookup_nested_type): Handle types nested within classes.
13111         * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
13112         when appropriate.
13113         (add_partial_symbol): Add the name of the enclosing namespace to
13114         types.
13115         (pdi_needs_namespace): New.
13116         (add_partial_namespace): Tweak comment.
13117         (add_partial_structure): New.
13118         (psymtab_to_symtab_1): Initialize processing_current_prefix
13119         here...
13120         (process_die): instead of here.
13121         (read_structure_scope): Try to figure out the name of the class or
13122         namespace that the structure might be defined within.
13123         (read_enumeration): Generate fully-qualified names, if possible.
13124         (read_namespace): Don't set name to NULL.
13125         (die_specification): New.
13126         (new_symbol): Generate fully-qualified names for types.
13127         (read_type_die): Determine appropriate prefix.
13128         (determine_prefix): New.
13129         (typename_concat): New.
13130         (class_name): New.
13131         * valops.c (value_aggregate_elt): Pass NOSIDE to
13132         value_struct_elt_for_reference.
13133         (value_struct_elt_for_reference): Make static, add NOSIDE
13134         parameter, call value_maybe_namespace_elt as a last resort.
13135         (value_namespace_elt): Break out code into
13136         value_maybe_namespace_elt.
13137         (value_maybe_namespace_elt): New.
13138
13139 2004-01-12  Andrew Cagney  <cagney@redhat.com>
13140
13141         * mips-tdep.c (mips_convert_register_p): Handle both raw and
13142         cooked floating-point registers.
13143         (mips_gdbarch_init): Set convert_register_p, register_to_value,
13144         and value_to_register.
13145
13146 2004-01-13  Andrew Cagney  <cagney@redhat.com>
13147
13148         * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
13149         * gdbarch.c: Re-generate.
13150         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13151         FUNCTION_START_OFFSET.
13152         * v850-tdep.c (v850_gdbarch_init): Ditto.
13153         * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13154         * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13155         * sh-tdep.c (sh_gdbarch_init): Ditto.
13156         * s390-tdep.c (s390_gdbarch_init): Ditto.
13157         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13158         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13159         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13160         * mips-tdep.c (mips_gdbarch_init): Ditto.
13161         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13162         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
13163         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13164         * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13165         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13166         * i386-tdep.c (i386_gdbarch_init): Ditto.
13167         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13168         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13169         * frv-tdep.c (frv_gdbarch_init): Ditto.
13170         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
13171         * cris-tdep.c (cris_gdbarch_init): Ditto.
13172         * avr-tdep.c (avr_gdbarch_init): Ditto.
13173         * arm-tdep.c (arm_gdbarch_init): Ditto.
13174         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
13175
13176 2004-01-13  Daniel Jacobowitz  <drow@mvista.com>
13177
13178         * infrun.c (follow_fork_mode_ask): Remove.
13179         (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
13180         (follow_fork): Simplify and remove internal error for
13181         follow_fork_mode_ask.
13182         (_initialize_infrun): Update "set follow-fork-mode" help text.
13183
13184 2004-01-13  Andrew Cagney  <cagney@redhat.com>
13185
13186         * configure.in: Update copyright year.
13187         (build_warnings): Add -Wunused-label.
13188         * configure: Re-generate.
13189
13190 2004-01-12  Andrew Cagney  <cagney@redhat.com>
13191
13192         * exec.h (exec_ops): Make "extern".
13193
13194         * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
13195         the function is void.
13196         (mips_pseudo_register_write): Ditto.
13197
13198 2004-01-12  Andrew Cagney  <cagney@redhat.com>
13199
13200         * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
13201         call.  Never defined.
13202         * sparc-tdep.h (struct frame_info): Add opaque declaration.
13203         * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
13204         (struct sparc_gregset, struct regcache): Ditto.
13205         * sparc-nat.c: Update copyright.  Specify "GNU/Linux".
13206
13207 2004-01-12  Andrew Cagney  <cagney@redhat.com>
13208
13209         * mi/ChangeLog: Delete file.  Renamed to ...
13210         * mi/ChangeLog-1999-2003: New file.
13211         * tui/ChangeLog: Delete file.  Renamed to ...
13212         * tui/ChangeLog-1998-2003: New file.
13213
13214 2004-01-11  Mark Kettenis  <kettenis@gnu.org>
13215
13216         * sparc64nbsd-tdep.c: Include "regset.h".
13217         (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
13218         Remove variables.
13219         (fetch_core_registers): Remove function.
13220         (sparc64nbsd_core_fns): Remove variable.
13221         (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
13222         functions.
13223         (sparc64nbsd_init_abi): Initialize TDEP->gregset,
13224         TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
13225         (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
13226
13227         * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
13228         sparc_extract_struct_value_address.
13229         (sparc32_gdbarch_init): Set extract_struct_value_address.
13230         * sparc64-tdep.c (sparc64_extract_struct_value_address): New
13231         function.
13232         (sparc64_init_abi): Set extract_struct_value_address.  Don't set
13233         return_value_on_stack.
13234
13235         * NEWS: Mention that %cs and %ss have been added to the AMD64
13236         configurations
13237
13238         * frame.c: Update copyright year.
13239         (get_prev_frame): Improve comment.
13240
13241         * sparc64fbsd-tdep.c: Include "regset.h".
13242         (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
13243         Remove variables.
13244         (fetch_core_registers): Remove function.
13245         (sparc64fbsd_core_fns): Remove variable.
13246         (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
13247         functions.
13248         (sparc64fbsd_init_abi): Initialize TDEP->gregset,
13249         TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
13250         (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
13251
13252         * sparcnbsd-tdep.c: Include "regset.h".
13253         (fetch_core_registers): Remove function.
13254         (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
13255         (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
13256         functions.
13257         (sparc32nbsd_init_abi): Initialize TDEP->gregset and
13258         TDEP->fpregset.
13259         (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
13260
13261         * sparc-tdep.h (struct regset): Provide opaque declaration.
13262         (struct gdbarch_tdep): Add gregset, sizeof_gregset,
13263         fpregset and sizeof_fpregset members.
13264         * sparc-tdep.c (struct regset): Provide opaque declaration.
13265         (sparc_regset_from_core_section): New function.
13266         (sparc32_gdbarch_init): Initialize TDEP->gregset,
13267         TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
13268         Set regset_from_core_section when appropriate.
13269
13270 2004-01-10  Mark Kettenis  <kettenis@gnu.org>
13271
13272         * x86-64-tdep.c (amd64_non_pod_p): New function.
13273         (amd64_classify_aggregate): Return class memory for non-POD
13274         C++ structure types.
13275
13276         * x86-64-tdep.c (amd64_push_arguments): Add struct_return
13277         argument.  Use it to reserve a register if necessary.
13278         (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
13279         amd64_push_arguments.
13280
13281         * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
13282
13283         * x86-64-tdep.c (amd64_register_info): Add %cs and %ss.  Adjust
13284         register numbers in comments.
13285         * x86-64-tdep.h: Update copyright year.
13286         (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
13287         Adjust for addition of %cs and %ss.
13288         * amd64fbsd-nat.c: Update copyright year.
13289         (reg_offset): Add register offsets for %cs and %ss.
13290         * amd64fbsd-tdep.c: Update copyright year.
13291         (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
13292         (amd64fbsd_sc_reg_offset): Likewise.
13293         * x86-64-linux-nat.c: Update copyright year.
13294         (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
13295         and %ss.
13296         * amd64nbsd-nat.c: Update copyright year.
13297         (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
13298         * amd64nbsd-tdep.c: Update copyright year.
13299         (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
13300         * x86-64-linux-tdep.c: Update copyright year.
13301         (user_to_gdb_regmap): Add mapping for %cs and %ss.
13302         (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
13303         * regformats/reg-x86-64.dat: Add %cs and %ss.
13304
13305         * blockframe.c (inside_entry_func): Reformat.  Introduce new local
13306         variables to prevent long lines.  Update comments to reflect
13307         reality.
13308
13309 2004-01-09  David Carlton  <carlton@kealia.com>
13310
13311         Checked in by Elena Zannoni  <ezannoni@redhat.com>.
13312         * dwarf2read.c (read_namespace): Pull out name-generating code
13313         into namespace_name. Rename previous_namespace to previous_prefix
13314         and processing_current_namespace to processing_current_prefix..
13315         (namespace_name): New function.
13316         (add_partial_symbol): Substitute uses of pdi->name with
13317         actual_name.
13318         * cp-support.h: Rename processing_current_namespace to
13319         processing_current_prefix.
13320         Update copyright year.
13321         * cp-namespace.c: Rename processing_current_namespace to
13322         processing_current_prefix.
13323         Update copyright year.
13324
13325 2004-01-09  Andrew Cagney  <cagney@redhat.com>
13326
13327         * jv-valprint.c, ser-unix.c: Add missing copyright years.
13328
13329 2004-01-09  Mark Kettenis  <kettenis@gnu.org>
13330
13331         * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
13332         complaining.
13333         (process_one_symbol): Deal with N_PATCH stabs.
13334
13335 2004-01-09  Elena Zannoni  <ezannoni@redhat.com>
13336
13337         * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
13338         ifdeffed code.
13339         Update copyright year.
13340
13341 2004-01-08  Michael Chastain  <mec.gnu@mindspring.com>
13342
13343         * config/pa/tm-hppa.h: Update extern declarations for
13344         hppa32_hpux_frame_saved_pc_in_sigtramp,
13345         hppa32_hpux_frame_base_before_sigtramp, and
13346         hppa32_hpux_frame_find_saved_regs_in_sigtramp.
13347
13348 2004-01-08  Michael Chastain  <mec.gnu@mindspring.com>
13349
13350         * config/pa/tm-hppah.h: Update copyright years.
13351
13352 2004-01-08  Andrew Cagney  <cagney@redhat.com>
13353
13354         * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
13355         (mips_o32_reg_struct_has_addr): Delete function.
13356         (mips_gdbarch_init): Update.
13357         (mips_extract_struct_value_address): Delete function.
13358
13359 2004-01-08  David Mosberger  <davidm@hpl.hp.com>
13360
13361         * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
13362         reality.
13363
13364 2004-01-07  Andrew Cagney  <cagney@redhat.com>
13365
13366         * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
13367         architecture's elf flags (when available).
13368
13369         * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
13370         FPU to the start, check the MIPS FPU when looking for an old
13371         architecture.
13372         (set_mipsfpu_single_command): Update the architecture.
13373         (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
13374
13375         * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
13376         (mips_mask_address_p): Add "tdep" parameter.
13377         (show_mask_address, mips_addr_bits_remove): Update.
13378         (mips_dump_tdep): Update.
13379         (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
13380         (MIPS_STACK_ARGSIZE): Delete macro.
13381         (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
13382         (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
13383         (mips_o64_push_dummy_call, mips_o32_return_value): Update.
13384         (mips_dump_tdep): Update.
13385         (MIPS_SAVED_REGSIZE): Delete macro.
13386         (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
13387         (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
13388         (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
13389         (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
13390         (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
13391         (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
13392         (mips_pop_frame, return_value_location): Update.
13393         (mips_n32n64_return_value, mips_dump_tdep): Update.
13394
13395         * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
13396         MIPS ABI.
13397
13398         * mips-tdep.c: Update copyright.
13399         (mips_gdbarch_init): Merge two code blocks handling the register
13400         name and number layout.
13401
13402 2004-01-02  Pawel Ostrowski  <pasza@zodiac.mimuw.edu.pl>
13403
13404         * tracepoint.c (validate_actionline): Fix segv at EOF
13405
13406 2004-01-07  Michael Chastain  <mec.gnu@mindspring.com>
13407
13408         * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
13409         properly for static fields.
13410
13411 2004-01-06  Jeff Johnston  <jjohnstn@redhat.com>
13412             Jason Molenda  <jmolenda@apple.com>
13413
13414         * disasm.c: Update copyright to include 2004.
13415         (do_mixed_source_and_assembly): For uiout asm list
13416         and tuple cleanups, initialize to null_cleanup instead of
13417         NULL and do so prior to loop.  Only reset when we close off
13418         the tuple/list.  Move check for whether to close off the
13419         asm tuple/list to after dump_insns call where it will be run
13420         on each loop iteration.
13421
13422 2004-01-05  Andrew Cagney  <cagney@redhat.com>
13423
13424         * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
13425         should be a switch case and not a label.
13426         * mips-tdep.c (mips32_next_pc): Delete unused labels
13427         "greater_equal_branch" and "less_zero_branch".
13428         * jv-valprint.c (java_print_value_fields): Delete unused label
13429         "flush_it".
13430
13431         * target.c (unpush_target): Only close a target that is in the
13432         target stack.
13433
13434 2004-01-05  Mark Kettenis  <kettenis@gnu.org>
13435
13436         * sparc-tdep.c (sparc_extract_struct_value_address): Get the
13437         address from [sp + 64] instead of %o2.
13438
13439         * frame.c (get_prev_frame): Don't try to unwind the PC.  This
13440         fixes PR backtrace/1476.
13441
13442 2004-01-05  Andrew Cagney  <cagney@redhat.com>
13443
13444         * libunwind-frame.h (struct frame_id): Add opaque declaration,
13445         move to start of file.
13446         * i386-tdep.h (struct regcache): Add opaque declaration.
13447         * config/ia64/nm-linux.h (struct target_ops): Add opaque
13448         declaration.
13449         * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
13450         (ia64_gdbarch_init): Use "GNU/Linux" in comment.
13451         * win32-nat.c (fake_create_process): Use ISO C style definition.
13452         * stabsread.c (define_symbol): Delete #ifndef
13453         DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
13454         stabs_argument_has_addr call, macro never defined.
13455
13456 2004-01-04  Michael Chastain  <mec.gnu@mindspring.com>
13457
13458         * op50-rom.c: Delete.
13459         * w89k-rom.c: Delete.
13460         * Makefile.in: Remove references.
13461
13462 2004-01-04  Mark Kettenis  <kettenis@gnu.org>
13463
13464         * x86-64-tdep.c: Update copyright year.
13465         (struct amd64_register_info): Rename from x86_64_register_info.
13466         (amd64_register_info): Rename from x86_64_register_info.
13467         (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
13468         (amd64_register_name): Rename from x86_64_register_name.
13469         (amd64_register_type): Rename from x86_64_register_type.
13470         (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
13471         (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
13472         (amd64_dwarf_reg_to_regnum): Rename from
13473         x86_64_dwarf_reg_to_regnum.
13474         (amd64_convert_register_p): Rename from x86_64_convert_register_p.
13475         (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
13476         (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
13477         (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
13478         (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
13479         (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
13480         (amd64_skip_prologue): Rename from x86_64_skip_prologue.
13481         (amd64_frame_cache): Rename from x86_64_frame_cache.
13482         (amd64_frame_this_id): Rename from x86_64_frame_this_id.
13483         (amd64_frame_prev_register): Rename from
13484         x86_64_frame_prev_register.
13485         (amd64_frame_unwind): Rename from x86_64_frame_unwind.
13486         (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
13487         (amd64_sigtramp_frame_cache): Rename from
13488         x86_64_sigtramp_frame_cache.
13489         (amd64_sigtramp_frame_prev_register): Rename from
13490         x86_64_sigtramp_frame_prev_register.
13491         (amd64_sigtramp_frame_unwind): Rename from
13492         x86_64_sigtramp_frame_unwind.
13493         (amd64_sigtramp_frame_sniffer): Rename from
13494         x86_64_sigtramp_frame_sniffer.
13495         (amd64_frame_base_address): Rename from x86_64_frame_base_address.
13496         (amd64_frame_base): Rename from x86_64_frame_base.
13497         (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
13498         (amd64_frame_align): Rename from x86_64_frame_align.
13499         (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
13500         (amd64_regset_from_core_section): Rename from
13501         x86_64_regset_from_core_section.
13502         (x86_64_init_abi): Update comments.
13503
13504 2004-01-04  Nick Roberts  <nick@nick.uklinux.net>
13505
13506         * MAINTAINERS (write after approval): Add myself.
13507
13508 2004-01-04  Mark Kettenis  <kettenis@gnu.org>
13509
13510         * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
13511         `float' arguments.
13512
13513 2004-01-04  Mark Kettenis  <kettenis@gnu.org>
13514
13515         * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
13516         such that it mentions a specific version of GCC that exhibits this
13517         bug.
13518
13519 2004-01-03  Mark Kettenis  <kettenis@gnu.org>
13520
13521         * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
13522         structure that has a single `float' member, store it in %f1 in
13523         addition to %f0.
13524
13525         * sparc-sol2-nat.c: Add missing '\'.
13526
13527         * sparc-tdep.c (sparc32_return_value): New function.
13528          (sparc32_use_struct_convention, sparc32_return_value_on_stack):
13529         Remove functions.
13530         (sparc32_gdbarch_init): Set return_value, don't set
13531         extract_return_value, store_return_value, use_struct_convention
13532         and return_value_on_stack.
13533
13534         * sparc-sol2-nat.c: Add missing ')'.
13535
13536 2004-01-03  J. Brobecker  <brobecker@gnat.com>
13537
13538         * infrun.c (handle_step_into_function): New function.
13539         (handle_inferior_event): Extract out some code into the new
13540         function above.
13541
13542 2004-01-03  J. Brobecker  <brobecker@gnat.com>
13543
13544         * infrun.c (handle_inferior_event): Move the declaration of
13545         real_stop_pc inside the if blocks where it is used.
13546
13547 2004-01-03  Mark Kettenis  <kettenis@gnu.org>
13548
13549         * sparc64-tdep.c (sparc64_16_byte_align_p)
13550         (sparc64_store_floating_fields, sparc64_store_floating_fields):
13551         Use check_typedef to get subtypes of structures and unions.
13552         (sparc64_store_return_value): Fix calculation of the appropriate
13553         offset into VALBUF when storing a structure or union.
13554         (sparc64_return_value): New function.
13555         (sparc64_use_struct_convention): Remove function.
13556         (sparc64_init_abi): Set return_value, don't set
13557         extract_return_value, store_return_value and
13558         use_struct_convention.
13559
13560 2004-01-03  Eli Zaretskii  <eliz@elta.co.il>
13561
13562         * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
13563         bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
13564         gdb/config/alpha/xm-alphaosf.h,
13565         gdb/config/powerpc/tm-ppcle-eabi.h,
13566         gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
13567         gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
13568         gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
13569         gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
13570         gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
13571         gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
13572         gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
13573         gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
13574         gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
13575         gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
13576         gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
13577         nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
13578         include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
13579         opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
13580         opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
13581         sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
13582         sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
13583         sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
13584         sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
13585         sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
13586         sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
13587         Remove lines for .cvsignore files.
13588
13589 2004-01-03  J. Brobecker  <brobecker@gnat.com>
13590
13591         * infrun.c: Back out the previous change.
13592
13593 2004-01-03  Mark Kettenis  <kettenis@gnu.org>
13594
13595         * NEWS: Mention revised SPARC target.  Add sparc-*-lynxos* and
13596         sparc-*-sunos4* to the list of REMOVED configurations.
13597
13598         * configure.tgt: Add back sparc-*-vxworks*.
13599         * remote-vxsparc.c: Remove all includes except for "defs.h",
13600         "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
13601         Include "sparc-tdep.h".
13602         (SPARC_R_G1): New define.
13603         (vxsparc_gregset): New variable.
13604         (ext_format_sparc): Remove extern declaration.
13605         (vx_read_register): Rewrite to use sparc32_supply_gregset and
13606         sparc32_supply_fpregset.
13607         (vx_write_register): Rewrite to use sparc32_collect_gregset,
13608         sparc_collect_rwindow and sparc32_collect_fpregset.
13609         * config/sparc/tm-vxworks.h: New file, based on recently removed
13610         tm-vxsparc.h.
13611         * config/sparc/vxworks.mt: New file, based on recently removed
13612         vxworks.mt.
13613
13614 2004-01-03  J. Brobecker  <brobecker@gnat.com>
13615
13616         * infrun.c (handle_step_into_function): New function.
13617         (handle_inferior_event): Extract out some code into the new
13618         function above.
13619
13620 2004-01-02  Mark Kettenis  <kettenis@gnu.org>
13621
13622         * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
13623         sparcl-tdep.c.  Add sparc-linux-tdep.c, sparc-sol2-nat.c,
13624         sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
13625         sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
13626         sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
13627         sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
13628         (sparc_nat_h): New variable.
13629         (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
13630         (tm-sun4os4.h): Remove dependency.
13631         (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
13632         (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
13633         sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
13634         sparc-tdep.o): Update dependencies.
13635         (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
13636         sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
13637         sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
13638         dependencies.
13639         * configure.host: Remove existing sparc-*-lynxos*,
13640         sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
13641         ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
13642         sparcv9-*-* and sparc64-*-* triplets.  Add new sparc64-*-linux*,
13643         sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
13644         triplets.
13645         * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
13646         sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
13647         sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
13648         sparcv9-*-* and commented out sparc64-*-solars2* triplets.  Add
13649         new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
13650         sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
13651         sparc64-*-solaris2* and sparc64-*-* triplets.
13652         * sparc64-tdep.c: Update copyright year.  Include "inferior.h",
13653         "symtab.h" and "objfiles.h".
13654         (BIAS): Remove define.
13655         (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
13656         (X_DISP19): Remove macros.
13657         (sparc_fetch_instruction): Remove function.
13658         (struct gdbarch_tdep): Remove definition.
13659         (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
13660         (sparc_breakpoint_from_pc): Remove function.
13661         (struct sparc64_frame_cache): Remove definition.
13662         (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
13663         sparc64_unwind_pc): Remove functions.
13664         (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
13665         `struct sparc64_frame_cache.  Call sparc_analyze_prologue instead
13666         of sparc64_analyze_prologue.  Mark constant as ULL instead of UL.
13667         (sparc64_frame_cache): Change return type to `struct
13668         sparc_frame_cache *'.  Simply call sparc_frame_cache.
13669         (sparc64_frame_this_id, sparc64_frame_prev_register,
13670         sparc64_frame_base_address): Use `struct sparc_frame_cache'
13671         instead of `struct sparc64_frame_cache.
13672         (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
13673         sparc_analyze_control_transfer, sparc_software_single_step,
13674         sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
13675         _initialize_sparc64_tdep): Remove functions.
13676         (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
13677         (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
13678         macros.
13679         (sparc64_supply_gregset, sparc64_collect_gregset,
13680         sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
13681         (sparc64_init_abi): New function.
13682         * sparc64-tdep.h: Update copyright year.  Fix typo in multiple
13683         inclusion guard.  Include "sparc-tdep.h".
13684         (BIAS): Define.
13685         (r_tstate_offset, r_fprs_offset): New defines.
13686         (enum sparc_regnum): Remove defenition.
13687         (enum sparc64_regnum): Reformat.
13688         (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
13689         (sparc64_init_abi, sparc64_supply_gregset,
13690         sparc64_collect_gregset, sparc64_supply_fpregset,
13691         sparc64_collect_fpregset): New prototypes.
13692         (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
13693         Add extern declarations.
13694         (sparc64_sol2_init_abi): New prototype.
13695         (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
13696         (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
13697         prototypes.
13698         * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
13699         "sparnbsd-nat.h".
13700         (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
13701         functions.
13702         (_initialize_sparc64fbsd_nat): Remove initialization of
13703         sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
13704         sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
13705         sparcbsd_fpreg_supplies_p.  Initialize sparc_gregset.
13706         * sparc64fbsd-tdep.c: Update copyright year.  Include "frame.h",
13707         "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
13708         (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
13709         (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
13710         (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
13711         (sparc64fbsd_r_y_offset): Remove variables.
13712         (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
13713         Make static and const.
13714         (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
13715         (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
13716         functions.
13717         (sparc64fbsd_gregset): New variable.
13718         (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
13719         and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
13720         and sparc64_supply_fpregset.
13721         (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
13722         (sparc64fbsd_sigtramp_frame_this_id)
13723         (sparc64fbsd_sigtramp_frame_prev_register): New functions.
13724         (sparc64fbsd_sigtramp_frame_unwind): New variable.
13725         (sparc64fbsd_sigtramp_frame_sniffer): New function.
13726         (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
13727         sparc64fbsd_sigtramp_frame_sniffer.  Call sparc64_init_abi.
13728         * sparcnbsd-tdep.c: Update copyright year.  Include
13729         "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
13730         "trad-frame.h" and "gdb_assert.h", don't include "target.h",
13731         "value.h" and "sparcnbsd-tdep.h".
13732         (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
13733         (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
13734         (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
13735         (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
13736         defines.
13737         (sparcnbsd_gregset): New variable.
13738         (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
13739         (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
13740         (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
13741         (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
13742         (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
13743         variables.
13744         (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
13745         (sparc32nbsd_sigcontext_frame_this_id)
13746         (sparc32nbsd_sigcontext_frame_prev_register): New functions.
13747         (sparc32nbsd_sigcontext_frame_unwind): New variable.
13748         (sparc32nbsd_sigtramp_frame_sniffer): New function.
13749         (sparcnbsd_get_longjmp_target_32,
13750         sparcnbsd_get_longjmp_target_64): Remove functions.
13751         (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
13752         (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
13753         sparcnbsd_init_elf): Remove.
13754         (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
13755         (sparcnbsd_elf_init_abi): New functions.
13756         (_initialize_sparcnbsd_tdep): New prototype.
13757         (_initialize_sparnbsd_tdep): Update.
13758         * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
13759         corelow.o.  Add sparc64-nat.o and sparc-nat.o.
13760         * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
13761         * config/sparc/linux.mh: Update comment.
13762         (XM_FILE, HOST_IPC): Remove variables.
13763         (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o.  Remove
13764         sparc-linux-nat.o.
13765         * config/sparc/linux.mt: Update comment.
13766         (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
13767         * config/sparc/nbsd.mt: Reformat.
13768         * config/sparc/nbsd64.mh: Update comment.
13769         (NATDEPFILES): Add sparc-nat.o.
13770         * config/sparc/nbsd64.mt: Update comment.
13771         (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
13772         (TM_FILE): Set to tm-nbsd.h.
13773         * config/sparc/nbsdelf.mh: Update comment.
13774         (NATDEPFILES): Add sparc-nat.o.
13775         (XM_FILE): Delete.
13776         * config/sparc/nbsdaout.mh: Update comment.
13777         (NATDEPFILES): Add sparc-nat.o
13778         (XM_FILE): Delete.
13779         * config/sparc/nm-linux.h: Update copyright year.  Don't include
13780         "config/nm-svr4.h" and "solib.h".  Add protection against multiple
13781         inclusion.
13782         (KERNEL_U_SIZE): Remove define.
13783         (kernel_u_size): Remove prototype.
13784         (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
13785         * config/sparc/nm-nbsd.h: Update copyright.  Don't include
13786         "regcache.h".
13787         (CHILD_PREPARE_TO_STORE): Remove define.
13788         * config/sparc/nm-nbsdaout.h: Tweak some comments.
13789         * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
13790         sparcnbsd-nat.c: Rewrite files.
13791         * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
13792         * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
13793         sparcnbsd-tdep.h: Remove files.
13794         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
13795         config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
13796         config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
13797         config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
13798         config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
13799         config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
13800         config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
13801         config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
13802         config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
13803         config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
13804         config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
13805         config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
13806         * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
13807         sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
13808         sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
13809         * config/sparc/linux64.mh, config/sparc/linux64.mt,
13810         config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
13811         config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
13812         config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
13813
13814 2004-01-02  Andrew Cagney  <cagney@redhat.com>
13815
13816         From 2003-12-18 Kazuhiro Inaoka:
13817         * configure.host: Add m32r-linux target.
13818
13819 2004-01-02  Michael Chastain  <mec.gnu@mindspring.com>
13820
13821         * top.c (print_gdb_version): Update year to 2004.
13822
13823 2004-01-02  Mark Mitchell  <mark@codesourcery.com>
13824
13825         * MAINTAINERS: Add myself to the write-after-approval category.
13826
13827 2004-01-02  Daniel Jacobowitz  <drow@mvista.com>
13828
13829         From Bernardo Innocenti <bernie@develer.com>:
13830         * configure.tgt: Add uClinux target.
13831
13832 2004-01-02  Andrew Cagney  <cagney@redhat.com>
13833
13834         * utils.c (do_my_cleanups): Make static, add forward declaration.
13835         * defs.h (do_my_cleanups): Delete declaration.
13836
13837 2004-01-02  Eli Zaretskii  <eliz@elta.co.il>
13838
13839         * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
13840         bfd/ChangeLog-0203.
13841
13842 2004-01-02  Mark Kettenis  <kettenis@gnu.org>
13843
13844         * configure.in: Check for <machine/reg.h>.  Check for `struct reg'
13845         in <machine/reg.h>.
13846         * configure, config.in: Regenerate.
13847
13848 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
13849 tui/ChangeLog-1998-2003.
13850 \f
13851 Local Variables:
13852 mode: change-log
13853 left-margin: 8
13854 fill-column: 74
13855 version-control: never
13856 End: