* elf32-arm.c (elf32_arm_symbian_begin_write_processing): Clear
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
ad766c0a
JB
12004-11-04 Jim Blandy <jimb@redhat.com>
2
3 * gdbtypes.c (make_qualified_type): Doc fix. Add assertion to
4 prevent cross-objfile references.
5 (make_cv_type): Doc fix. Don't create cross-objfile references,
6 even for stub types.
7 (replace_type): Add assertion to prevent cross-objfile references.
8 (check_typedef): Never resolve a stub type by copying over a type
9 from another file.
10
c46b0409 112004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
f16d97c9 12
c46b0409
KI
13 * Makefile.in (m32r-tdep.o): Update dependencies.
14 * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
15 ABI-specific overrides.
16
9f0b0322 172004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
f16d97c9 18
9f0b0322
KI
19 * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
20 unnecessary parallel execution bit.
21 (m32r_memory_remove_breakpoint): Ditto.
22 (m32r_breakpoint_from_pc): Update.
23
d5c27f81
RC
242004-11-03 Randolph Chung <tausq@debian.org>
25
26 * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
9f0b0322 27 frame_func_unwind to locate the unwind entry.
d5c27f81
RC
28 (hppa_frame_this_id): Likewise.
29
4577593c
AC
302004-11-03 Andrew Cagney <cagney@gnu.org>
31
32 * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
33 packet, obsolete configurations, end-of-life deprecated_registers.
34
b04de778
MK
352004-11-02 Mark Kettenis <kettenis@gnu.org>
36
37 * dwarf2-frame.c (read_encoded_value): Set proper size for signed
38 encodings as well as unsigned encodings.
39
9f2feefc
AC
402004-11-02 Andrew Cagney <cagney@gnu.org>
41
42 * value.h (COERCE_VARYING_ARRAY): Delete.
43 * valops.c (value_cast, value_slice): Delete use.
44 * valarith.c (value_subscript, value_concat): Delete use.
45
117ea3cf
PH
462004-11-02 Paul Hilfinger <hilfingr@nile.gnat.com>
47
48 * NEWS: GDB understands GNAT Ada.
49
0bbc026e
JM
502004-11-01 Joseph S. Myers <joseph@codesourcery.com>
51
52 * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
53 (amd64-sol2-tdep.o): Add dependencies.
54 * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
55 config/i386/sol2-64.mt: New files.
56 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
57 amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
58 (supply_gregset): Correct order of arguments to
59 amd64_supply_native_gregset.
60 (fill_gregset): Correct order of arguments to
61 amd64_collect_native_gregset.
62 * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
63 * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
64 * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
65 for definition of NEW_PROC_API.
66 * configure: Regenerate.
67
3d38a0a5
JM
682004-11-01 Joseph S. Myers <joseph@codesourcery.com>
69
70 * MAINTAINERS (Write After Approval): Add myself.
71
f81cd1cf
AC
722004-11-01 Andrew Cagney <cagney@gnu.org>
73
74 * configure.tgt: Mark d10v-*-* as obsolete.
75 * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
76
f4e88c8e
PH
772004-11-01 Paul N. Hilfinger <Hilfinger@gnat.com>
78
79 * values.c (modify_field): Correct handling of bit-fields that
80 don't fit in 32 bits. Use unsigned operations throughout and
81 simplify the code a bit. Document preconditions.
82
84674fe1
AC
832004-10-31 Andrew Cagney <cagney@gnu.org>
84
96693b3a
AC
85 * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
86 * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
87 (in_plt_section): Delete.
88
6f296f8f
AC
89 * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
90 (mips_gdbarch_init): Do not set same.
91
618501c0
AC
92 * arch-utils.c (generic_in_solib_call_trampoline): Delete.
93 * arch-utils.h (generic_in_solib_call_trampoline): Delete.
94
b22e8f02
AC
95 * gdbarch.sh (in_solib_call_trampoline): Delete.
96 * gdbarch.h, gdbarch.c: Re-generate.
97
84674fe1
AC
98 * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
99 IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
100 * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
101 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
102 * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
103
c6d1029f
MK
1042004-10-31 Mark Kettenis <kettenis@gnu.org>
105
106 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
107 (mipsnbsd_fetch_inferior_registers): Rename from
108 fetch_inferior_registers. Make static.
109 (mipsnbsd_store_inferior_registers): Rename from
110 store_inferior_registers. Make static.
111 (_initialize_mipsnbsd_nat): New function and prototype.
112 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
113 * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
114 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
115 inf-ptrace.o.
116
bd9ca83f
AC
1172004-10-31 Andrew Cagney <cagney@gnu.org>
118
19d718a3
AC
119 * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
120 (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
121 delete corresponding unused function.
122 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
123 in_solib_call_trampoline.
124 * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
125 * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
126 * config/mips/tm-nbsd.h: Ditto.
127 * config/arm/tm-linux.h: Ditto.
128 * config/mips/tm-linux.h: Ditto.
129
e8ce19c0
AC
130 * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
131 (arm_netbsd_aout_in_solib_call_trampoline): Do not set
132 in_solib_call_trampoline, delete corresponding unused function.
133 * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
134 (vaxnbsd_aout_init_abi): Ditto.
135 * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
136 (sparc32nbsd_aout_init_abi): Ditto.
137 * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
138 (ppc_linux_init_abi): Ditto.
139 * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
140 (ns32knbsd_init_abi_aout): Ditto.
141 * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
142 * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
143 * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
144 (m68kbsd_aout_init_abi): Ditto.
145 * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
146 (i386_cygwin_init_abi): Ditto.
147 * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
148 (i386bsd_init_abi): Ditto.
149
af380d61
AC
150 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
151 in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
152 isn't used by this architecture.
153 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
154 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
155 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
156 * s390-tdep.c (s390_gdbarch_init): Ditto.
157 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
158 * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
159 * i386-tdep.c (i386_svr4_init_abi): Ditto.
160 * i386-nto-tdep.c (i386nto_init_abi): Ditto.
161 * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
162 * amd64-tdep.c (amd64_init_abi): Ditto.
163
0528d9f7
AC
164 * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
165 in_solib_call_trampoline to its default value of
166 generic_in_solib_call_trampoline.
167 * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
168 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
169 * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
170 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
171 * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
172 * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
173
f9f9eacb
AC
174 * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
175
a4ffd1e7
AC
176 * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
177
82e34d2f
AC
178 * config/mips/tm-mips.h: Delete file.
179 * remote-mips.c: Delete tm-mips.h from comment.
180 * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
181 * config/mips/tm-nbsd.h: Don't include tm-mips.h.
182 * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
183 * config/mips/tm-linux.h: Don't include tm-mips.h.
184 * config/mips/tm-vxmips.h: Don't include tm-mips.h.
185 * config/mips/irix5.mt (DEPRECATED_TM_FILE):
186 * config/mips/tm-wince.h: Don't include.
187
75dec9cf
AC
188 * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
189 * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
190 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
191 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
192
bd9ca83f
AC
193 * mdebugread.h (ecoff_relocate_efi): Delete declaration.
194 * mdebugread.c (ecoff_relocate_efi): Delete function.
195 * objfiles.c (objfile_relocate): Delete #ifdef
196 MDEBUG_EFI_SYMBOL_NAME code.
197
3352ef37
AC
1982004-10-31 Orjan Friberg <organ.friberg@axis.com>
199 Andrew Cagney <cagney@gnu.org>
200
201 * gdbarch.sh (single_step_through_delay): Add.
202 * gdbarch.h, gdbarch.c: Re-generate.
203 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
204 (mips_step_skips_delay): Delete.
205 * mips-tdep.c (mips_single_step_through_delay): Replace
206 mips_step_skips_delay.
207 (mips_gdbarch_init): Set single_step_through_delay.
208 (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
209
2440b685
MK
2102004-10-31 Mark Kettenis <kettenis@gnu.org>
211
212 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
213 from TRAMP_FRAME frame type.
214
56a2fed5
AC
2152004-10-31 Andrew Cagney <cagney@gnu.org>
216
9b792b1d
AC
217 * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
218
0a5e8d98
AC
219 * mips-tdep.c (mips_ignore_helper): Delete.
220 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
221 * infrun.c (handle_inferior_event): Delete #ifdef
222 DEPRECATED_IGNORE_HELPER_CALL code.
223
56a2fed5
AC
224 * config/mips/tm-mips.h (RA_REGNUM): Delete.
225
f69c55b2
MK
2262004-10-31 Mark Kettenis <kettenis@gnu.org>
227
228 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
229 (fill_fpregset): Do not compile for 64-bit systems.
230 * i386-sol2-nat.c: Don't include "i386v4-nat.c".
231 * Makefile.in (i386-sol2-nat.o): Update dependencies.
232 * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
233
d37cca3d
AC
2342004-10-30 Andrew Cagney <cagney@gnu.org>
235
36b8628e
AC
236 * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
237 (struct mdebug_extra_func_info): Define.
238 * config/alpha/tm-alpha.h: Delete same.
239 * config/mips/tm-mips.h: Delete same.
240 * mdebugread.c: Delete same.
241 * Makefile.in: Update dependencies.
242 * mips-mdebug-tdep.c: Include "mdebugread.h".
243
5b123146
AC
244 * objfiles.c: Include "mdebugread.h".
245 * mdebugread.c: Include "mdebugread.h".
246 (ecoff_relocate_cfi): Delete.
247 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
248 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
249 * mdebugread.h (ecoff_relocate_efi): New file.
250 * Makefile.in: Update dependencies.
251
b9c3a7de
AC
252 * mips-tdep.c (struct frame_extra_info): Delete.
253 (temp_proc_desc): Delete.
254
f92761ec
AC
255 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
256 MIPS_EFI_SYMBOL_NAME.
257 (mips_extra_func_info_t, mips_extra_func_info): Delete.
258 (struct mdebug_extra_func_info): Replace struct
259 alpha_extra_func_info and alpha_extra_func_info_t.
260 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
261 MIPS_EFI_SYMBOL_NAME.
262 (struct mdebug_extra_func_info): Replace struct
263 alpha_extra_func_info and alpha_extra_func_info_t.
264 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
265 * mdebugread.c, alpha-mdebug-tdep.c:
266
0bb57b31
AC
267 Suggested by Mark Kettenis.
268 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
269 fields frame_adjust and high_addr.
270 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
271 (non_heuristic_proc_desc): Delete references.
272
a5c9623c
AC
273 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
274 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
275 * mips-tdep.c: Update.
276
607fc93c
AC
277 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
278 (MIPS_LAST_EMBED_REGNUM): Add.
279 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
280 (LAST_EMBED_REGNUM): Delete.
281 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
282
24e05951
AC
283 * config/mips/tm-mips.h (PS_REGNUM): Delete.
284 * mips-tdep.h (MIPS_PS_REGNUM): Add.
285 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
286 * mips-linux-nat.c: Update.
287
613e114f
AC
288 * mips-tdep.h: Add comments on registers.
289 (MIPS_UNUSED_REGNUM): Define.
290 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
291 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
292 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
293 * mips-linux-nat.c, remote-mips.c: Update.
294
d37cca3d
AC
295 * config/mips/tm-mips.h (t_insn): Delete.
296 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
297 Replace t_insn with ULONGEST.
298
ceb41096
MK
2992004-10-30 Mark Kettenis <kettenis@gnu.org>
300
d1180b0f
MK
301 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
302 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
303 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
304 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
305 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
306 (mipsnbsd_core_osabi_sniffer): New function.
307 (mipsnbsd_init_abi): Set regset_from_core_section.
308 (_initialize_mipsnbsd_tdep): Remove calls to
309 deprecated_add_core_fns.
310 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
311 (mipsnbsd_regset_from_core_section): New functions.
312 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
313 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
314
ceb41096
MK
315 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
316 Remove optimization for DEPRECATED_FP_REGNUM.
317
ec4045ea
AC
3182004-10-30 Andrew Cagney <cagney@gnu.org>
319
cd65c8f6
AC
320 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
321 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
322 (alpha_setup_arbitrary_frame): Delete.
323 * mips-tdep.c (setup_arbitrary_frame): Delete.
324 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
325 (setup_arbitrary_frame): Delete.
326 * stack.c (parse_frame_specification_1): When specified, call
327 create_new_frame with two parameters. Delete #ifdef
328 SETUP_ARBITRARY_FRAME.
329
95ac2dcf
AC
330 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
331 (MIPS_INSTLEN): Delete.
332 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
333 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
334 * remote-mips.c, mips-tdep.c: Update.
335
1a8da44d
AC
336 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
337 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
338 * mips-tdep.c (mips_mdebug_frame_cache)
339 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
340 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
341 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
342 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
343 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
344 (mips_gdbarch_init): Do not append mdebug sniffers.
345 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
346 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
347 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
348 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
349 * Makefile.in: Update dependencies.
350
e6bc2e8a
AC
351 * mips-tdep.h (mips_abi_regsize): Declare.
352 * mips-tdep.c (mips_abi_regsize): Make non-static.
353
ec4045ea
AC
354 * mips-tdep.c (gdb_print_insn_mips): Simplify.
355 (make_mips16_addr): Delete.
e6bc2e8a 356
6b16acab
MK
3572004-10-30 Mark Kettenis <kettenis@gnu.org>
358
359 * i386-sol2-nat.c: New file.
360 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
361 i386-sol2-tdep.c.
362 (i386-sol2-nat.o): Update dependencies.
363 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
364 i386-sol2-nat.o.
365
8b622e6a
AC
3662004-10-30 Andrew Cagney <cagney@gnu.org>
367
368 Total breakage identified by Joel Brobecker.
369 * mips-tdep.c (after_prologue): Delete.
370 (mips_skip_prologue): Use skip_prologue_using_sal.
371 (heuristic_proc_desc): Delete, unused.
372
772cf8be
MK
3732004-10-30 Mark Kettenis <kettenis@gnu.org>
374
375 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
376 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
377 Cleanup coding style.
378
9c8fdbfa
AC
3792004-10-30 Andrew Cagney <cagney@gnu.org>
380
0fe7e7c8
AC
381 * mips-tdep.h (mips_pc_is_mips16): Declare.
382 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
383 non-static. Update calls.
384
1b295c3d
AC
385 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
386 * command.h (add_setshow_enum_cmd): Declare.
387 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
388
6bcadd06
AC
389 * mips-tdep.c (_initialize_mips_tdep): Use
390 add_setshow_zinteger_cmd.
391
9c8fdbfa
AC
392 * mips-tdep.c (mips_eabi_extract_return_value)
393 (mips_o64_extract_return_value, mips_o64_store_return_value)
394 (return_value_location, mips_eabi_reg_struct_has_addr)
395 (mips_eabi_use_struct_convention)
396 (mips_eabi_store_return_value): Delete.
397 (mips_eabi_store_return_value): New function.
398 (mips_eabi_return_value): New function.
399 (mips_gdbarch_init): For O64 and EABI, delete
400 extract_return_value, store_return_value, use_struct_convention
401 and reg_struct_has_addr, add return_value.
402
1d93fe1a
AC
403 * mips-tdep.c (read_signed_register): Use
404 regcache_cooked_read_signed.
405
303d2914
MK
4062004-10-30 Mark Kettenis <kettenis@gnu.org>
407
408 * mipsread.c: Cleanup coding style.
409 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
410 (mipscoff_symfile_finish): Remove prototypes.
411
4122004-10-29 Mark Kettenis <kettenis@gnu.org>
413
414 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
415 (mips_mdebug_frame_cache, mips16_scan_prologue)
416 (mips32_scan_prologue, mips_stub_frame_cache)
417 (heuristic_proc_start, heuristic_proc_desc)
418 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
419 (mips_n32n64_return_value, mips_o32_push_dummy_call)
420 (mips_o32_return_value, mips_o64_push_dummy_call)
421 (mips_step_skips_delay, mips_skip_trampoline_code)
422 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
423 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
424 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
425 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
426 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
427 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
428 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
429 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
430 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
431 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
432 ZERO_REGNUM.
433 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
434 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
435 ZERO_REGNUM.
436 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
437 A0_REGNUM.
438 * mipsnbsd-nat.c: Include "mips-tdep.h".
439 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
440 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
441
1c8831c5
AC
4422004-10-29 Andrew Cagney <cagney@gnu.org>
443
444 * stack.c (parse_frame_specification_1): New function based on
445 parse_frame_specification. Add message and selected_frame_p
446 paramters. Truely always return non-NULL.
447 (parse_frame_specification): Call parse_frame_specification_1.
448 (frame_info): Update. Eliminate target_has_stack check.
449 (select_frame_command): Update.
450
b04f3ab4
AC
4512004-10-29 Andrew Cagney <cagney@gnu.org>
452
453 * frame.h (get_selected_frame): Add message parameter.
454 * frame.c (get_selected_frame): Add and use message parameter.
455 * stack.c (current_frame_command, return_command, locals_info)
456 (catch_info, args_info, up_silently_base, down_silently_base): Use
457 get_selected_frame with an explicit message.
458 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
459 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
460 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
461 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
462 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
463 * breakpoint.c: Update.
464
4652004-10-29 Andrew Cagney <cagney@gnu.org>
00b25ff3
AC
466
467 * trad-frame.c (trad_frame_get_prev_register): Use
468 frame_unwind_register instead of frame_register_unwind, do not
469 recurse the register's location.
470 * xstormy16-tdep.c (xstormy16_frame_prev_register):
471 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
472 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
473 * sh-tdep.c (sh_frame_prev_register): Ditto.
474 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
475 * i386-tdep.c (i386_frame_prev_register): Ditto.
476 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
477 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
478
7a952542
MK
4792004-10-28 Mark Kettenis <kettenis@jive.nl>
480
c18c06be
MK
481 * proc-events.c: Fix several coding-style issues. Consistently
482 use #ifdef instead of #if defined().
483 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
484 ARRAY_SIZE.
485 (_initialize_proc_events): New prototype.
486
7a952542
MK
487 * proc-why.c: Fix several coding-style issues.
488 (proc_prettyfprint_why): Use ARRAY_SIZE.
489
fcad0fa4
JB
4902004-10-27 Jim Blandy <jimb@redhat.com>
491
492 * remote.c (fetch_register_using_p): Construct 'p' packet in a
493 manner independent of the host byte order.
494
c163184f
MK
4952004-10-27 Mark Kettenis <kettenis@gnu.org>
496
497 * mips-tdep.c (id_delayed): Remove prototype.
498
9c46b6f0
MK
4992004-10-26 Mark Kettenis <kettenis@gnu.org>
500
501 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
502 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
503 to enum with register numbers.
504 (enum mips_insn_size): New enum.
505
0d0266c6
AC
5062004-10-26 Andrew Cagney <cagney@gnu.org>
507
e7d6a6d2
AC
508 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
509 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
510 (mips_gdbarch_init): Update.
511 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
512
c5115f39
AC
513 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
514 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
515 IN_SOLIB_RETURN_TRAMPOLINE.
516 * mips-tdep.c (mips_dump_tdep): Do not print
517 IN_SOLIB_RETURN_TRAMPOLINE.
518 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
519 (mips_gdbarch_init): Update.
520
0d0266c6
AC
521 * mips-tdep.h (mips_software_single_step): Move to here ...
522 * config/mips/tm-mips.h: ... from here.
523 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
524 (SOFTWARE_SINGLE_STEP): Delete.
525 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
526
156a53ca
AC
5272004-10-25 Andrew Cagney <cagney@gnu.org>
528
529 * NEWS: Add Changes since GDB 6.3 section.
530
f27cf670
AS
5312004-10-23 Andreas Schwab <schwab@suse.de>
532
156a53ca
AC
533 * ada-lang.c (grow_vect): Return the new array instead of
534 expecting pointer to pointer to avoid violation of aliasing rules.
f27cf670
AS
535 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
536
121d8485
UW
5372004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
538
539 * s390-tdep.c (enum pv_boolean): Remove.
540 (pv_is_array_ref): Remove.
541 (s390_on_stack): Remove.
542 (S390_NUM_SPILL_SLOTS): Remove.
543 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
544 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
545 (s390_store): Track all stores of orginal incoming registers to the
546 stack constant offsets relative to the CFA, instead of only tracking
547 stores into specific spill slots.
548 (s390_load): Likewise.
549 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
550 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
551 defined as call-saved by the ABI.
552 (s390_push_dummy_call): Use bottom of dummy call argument save area
553 as return value, not the top. Do not store to the called function's
554 register save area.
555 (s390_unwind_dummy_id): Adapt accordingly.
556
0a6ddd08
AC
5572004-10-23 Andrew Cagney <cagney@gnu.org>
558
559 * objfiles.h (struct objfile): Rename obj_private to
560 deprecated_obj_private, sym_private to deprecated_sym_private, and
561 sym_stab_info to deprecated_sym_stab_info.
562 * gdb-stabs.h: Update.
563 * elfread.c: Update.
564 * dbxread.c: Update.
565 * coffread.c: Update.
566 * xcoffread.c: Update.
567 * symfile.c: Update.
568 * somread.c: Update.
569 * nlmread.c: Update.
570 * mdebugread.c: Update.
571 * hpread.c: Update.
572 * coffread.c: Update.
573
abc08782
MK
5742004-10-23 Mark Kettenis <kettenis@gnu.org>
575
576 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
577 * configure.host: Add mips64*-*-openbsd*.
578 * configure.tgt: Add mips64*-*-openbsd*.
579 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
580 mips64obsd-tdep.c.
581 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
582 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
583
fc062ac6
JB
5842004-10-21 Joel Brobecker <brobecker@gnat.com>
585
586 * symtab.c (symbol_search_name): Minor reformatting.
587
5bccb4d1
JB
5882004-10-20 Joel Brobecker <brobecker@gnat.com>
589
590 * symtab.h: Fix typo in comment.
591
a738430d
MK
5922004-10-19 Mark Kettenis <kettenis@gnu.org>
593
594 * dwarf2read.c (struct comp_unit_head): Fix coding style.
595 (dwarf_decode_line_header): Likewise.
596
f2cb65ca
MC
5972004-10-19 Michael Chastain <mec.gnu@mindspring.com>
598
599 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
600
09e55376
AC
6012004-10-19 Andrew Cagney <cagney@gnu.org>
602
603 GDB 6.3 branch created.
604 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
605
bc5f45f8
JB
6062004-10-15 Joel Brobecker <brobecker@gnat.com>
607
608 * dwarf2read.c (set_cu_language): Set language to Ada for
609 DW_LANG_Ada83 and DW_LANG_Ada95.
610
2941da8c
MC
6112004-10-15 Michael Chastain <mec.gnu@mindspring.com>
612
613 From Andreas Schwab <schwab@suse.de>:
614 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
615 for xmalloc and xrealloc.
616
34a17005
AC
6172004-10-15 Andrew Cagney <cagney@gnu.org>
618
619 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
620 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
621 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
622 Update dependencies.
623
714e53ab
PH
6242004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
625
626 * ada-lang.c (ada_lookup_symbol): Correct comment.
627 (ada_evaluate_subexp): Change error message for
628 OP_FUNCALL case so as not to indicate an internal error.
629
6302004-10-15 Joel Brobecker <brobecker@gnat.com>
631
632 Committed by Paul Hilfinger.
633 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
634 type sizes in XVE/XVU types, and emit a warning when that happens,
635 instead of rounding up the size of the resulting type.
636 Some minor reformatting.
637 (ada_is_aligner_type): Do not consider a type as an aligner type
638 if there is a corresponding XVS type as well.
639 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
640 have several levels of pointer indirection to the array.
641
6422004-10-15 Jerome Guitton <guitton@gnat.com>
643
644 Committed by Paul Hilfinger.
645 * ada-lang.c (check_size): New function.
646 (coerce_unspec_val_to_type): call check_size to make sure
647 that the object size is reasonable.
648 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
649 Implements the case when we get a reference when we evaluate
650 the expression of one of the bounds of the slice.
651 (ada_value_struct_elt): when a packed array field is
652 a reference, use ada_coerce_ref to dereference it; use
653 ada_value_ind only if it is a pointer.
654
29639122
JB
6552004-10-15 Joel Brobecker <brobecker@gnat.com>
656
657 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
658 a bit to avoid the necessity of an advance declaration. Remove
659 declaration.
660 (set_reg_offset): Move implemenation up.
661 (mips16_get_imm): Likewise.
662 (mips16_scan_prologue): Likewise.
663 (reset_saved_regs): Likewise.
664 (mips32_scan_prologue): Likewise.
665
a65bbe44
JB
6662004-10-14 Joel Brobecker <brobecker@gnat.com>
667
668 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
669 Remove sp as a parameter, compute it internally instead. Move
670 prologue scanning limit from heuristic_proc_desc to here.
671 (mips16_scan_prologue): Likewise.
672 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
673 by call to mips16_scan_prologue.
674 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
675 by call to mips32_scan_prologue.
676 (heuristic_proc_desc): Remove code that's no longer necessary.
677 Update calls to mips16_scan_prologue and mips32_scan_prologue.
678 (mips_skip_prologue): Update calls to mips16_scan_prologue
679 and mips32_scan_prologue.
680
1c645fec
JB
6812004-10-14 Joel Brobecker <brobecker@gnat.com>
682
683 * mips-tdep.c (mips16_scan_prologue): Merge code from
684 mips16_skip_prologue. Now return the address of the first
685 instruction past the function prologue.
686 (mips16_skip_prologue): Remove, no longer necessary.
687 (mips_skip_prologue): Replace call to mips16_skip_prologue
688 by call to mips16_scan_prologue.
689
98b4dd94
JB
6902004-10-14 Joel Brobecker <brobecker@gnat.com>
691
692 * mips-tdep.c (mips32_scan_prologue): Merge code from
693 mips32_skip_prologue. Now return the address of the first
694 instruction past the function prologue.
695 (mips32_skip_prologue): Remove. No longer necessary.
696 (mips16_skip_prologue): Add parameter end_pc instead of
697 computing it.
698 (mips_skip_prologue): Compute the upper limit for the
699 prologue scanning. Update call to mips16_skip_prologue.
700 Replace call to mips32_skip_prologue by call to
701 mips32_scan_prologue.
702
ad4c72d2
MK
7032004-10-14 Mark Kettenis <kettenis@gnu.org>
704
dfaf8edb
MK
705 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
706 NetBSD system call stubs that store %rp in the ERP slot of the
707 stack frame.
708
3e3a28f1
MK
709 * source.c: Always define O_BINARY to 0 if not defined already.
710 (openp): Unconditionally use O_BINARY.
711
ad4c72d2
MK
712 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
713 * event-top.c (gdb_readline2): Likewise.
714
52bd1401
OF
7152004-10-14 Orjan Friberg <orjanf@axis.com>
716
717 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
718 deprecated_add_core_fns which was removed by mistake.
719
e0e25c6c
KB
7202004-10-13 Kevin Buettner <kevinb@redhat.com>
721
722 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
723 references to deprecated_registers[] with equivalent code.
724
9f335945
KB
7252004-10-13 Kevin Buettner <kevinb@redhat.com>
726
727 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
728 ``deprecated_registers'' with equivalent code. Use gdb_assert()
729 instead of explicit test and print statement.
730
06c2338d
MK
7312004-10-12 Mark Kettenis <kettenis@gnu.org>
732
1b9445c2
MK
733 * sparc-nat.c: Include "inf-ptrace.h".
734 (sparc_target): New function.
735 * sparc-nat.h: Update copyright year.
736 (sparc_target): New prototype.
737 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
738 (_initialize_sparcnbsd_nat): Construct and add target vector.
739 * sparc64nbsd-nat.c: Include "target.h".
740 (_initialize_sparc64nbsd_nat): Construct and add target vector.
741 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
742 Update dependencies.
743 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
744 inftarg.o, add inf-ptrace.o.
745 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
746 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
747 (NAT_FILE): Set to nm-bsd.h.
748 (LOADLIBES): New variable.
749 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
750 infarg.o, add inf-ptrace.o.
751 * config/sparc/nm-nbsdaout.h: Remove file.
752 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
753 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
754 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
755
06c2338d
MK
756 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
757 "fopen-same.h". Update comment.
758
3303a276
MK
7592004-10-11 Mark Kettenis <kettenis@gnu.org>
760
761 * i386gnu-nat.c: Include "gdb_string.h".
762 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
763 registers when the floating-point state isn't initialized.
764 * Makefile.in (i386gnu-nat.o): Update dependencies.
765
04c663e3
DA
7662004-10-11 David Anderson <davea@sgi.com>
767
768 * regcache.c (regcache_raw_read): Comment was missing "to".
769 Extraneous ' removed.
770 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
771 comment now describes use.
772
a5f6c8f5
OF
7732004-10-11 Orjan Friberg <orjanf@axis.com>
774
775 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
776 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
777 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
778 (cris_sigtramp_frame_sniffer): New functions.
779 (cris_gdbarch_init): Hook in signal trampoline unwinder.
780 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
781 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
782 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
783 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
784 command.
785 (cris_version_update): Remove, replace with ...
786 (set_cris_version): New function.
787 (struct gdbarch_tdep, cris_mode, cris_mode_update)
788 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
789 (_initialize_cris_tdep): Remove CRIS mode command.
790 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
791 cris-fpless-backtrace command.
792 (cris_scan_prologue): Fix prologue scanning limit.
793 (cris_register_type): Update to reflect actual registers.
794 (cris_register_bytes_ok) Remove.
795 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
796 Remove set_gdbarch_deprecated_register_size,
797 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
798
77109804
AC
7992004-10-10 Andrew Cagney <cagney@gnu.org>
800
801 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
802 comment.
803
25652d4f
JB
8042004-10-10 Joel Brobecker <brobecker@gnat.com>
805
806 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
807
1e05a7bf
JB
8082004-10-10 Joel Brobecker <brobecker@gnat.com>
809
810 * mips-tdep.c (mips16_scan_prologue): Renames
811 mips16_heuristic_proc_desc. Update comment.
812 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
813 (heuristic_proc_desc): Update calls to the 2 functions above.
814
c68a4142
JB
8152004-10-10 Joel Brobecker <brobecker@gnat.com>
816
817 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
818 Update comments. Also immediately return empty cache when the start
819 address of our function could not be found.
820 (mips_insn32_frame_cache): Likewise.
821
0fce0821
JB
8222004-10-10 Joel Brobecker <brobecker@gnat.com>
823
824 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
825 (mips_insn16_frame_cache): Pass frame cache in call to
826 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
827 Remove code that became redundant as a consequence.
828 (mips32_heuristic_proc_desc): No longer compute a fake
829 procedure descriptor. Compute the full frame cache instead.
830 Some minor comment reformatting.
831
b672553e
JB
8322004-10-10 Jim Blandy <jimb@redhat.com>
833
834 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
835 reader, tracing bytecode stuff): Remove self.
836
9cc52bde
MK
8372004-10-10 Mark Kettenis <kettenis@gnu.org>
838
cc9784b6
MK
839 * sparc64-linux-tdep.c: Update copyright year. Don't include
840 "solib-svr4.h".
841 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
842 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
843 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
844
ee8aef23
MK
845 * sparc-linux-tdep.c: Update copyright year.
846 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
847 to struct frame_info *. Use safe_frame_unwind_memory instead of
848 deprecated_read_memory_nobpt.
849 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
850 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
851 changed signature of sparc_linux_sigtramp_start.
852 (sparc32_linux_pc_in_sigtramp): Remove function.
853 (sparc32_linux_sigtramp_p): New function.
854 (sparc32_linux_sigtramp_frame_sniffer): Use
855 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
856
bc73f8cc
MK
857 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
858 Remove function.
859 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
860
a2249542
MK
861 * ada-lang.c (lim_warning): Re-implement as a varargs function.
862 (decode_packed_array_type, value_subscript_packed)
863 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
864 argument in call to lim_warning.
865
9cc52bde
MK
866 * configure.in: Really disable the TUI if an enhanced curses
867 library isn't found.
868 * configure: Regenerate.
869
151fc45b
MK
8702004-10-09 Mark Kettenis <kettenis@gnu.org>
871
872 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
873 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
874 * config/i386/nm-nbsdaout.h: Remove file.
875 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
876 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
877 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
878 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
879 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
880 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
881 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
882 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
883 (ldd, ld_un, ld_2): Remove defines.
884 * config/i386/nm-obsd.h: Likewise.
885
375c0479
PH
8862004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
887
888 * ada-lex.l: Remove useless rule whose right-context clause
889 causes unreferenced static function warning for yyrealloc.
890 (ada_flex_use): Remove the artificial reference to yyrealloc.
891
c8e73a31
AC
8922004-10-08 Andrew Cagney <cagney@gnu.org>
893
894 * target.h (struct target_ops): Rename to_xfer_memory to
895 deprecated_xfer_memory.
896 * target.c: Update.
897 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
898 * wince.c: Update.
899 * win32-nat.c: Update.
900 * v850ice.c: Update.
901 * uw-thread.c: Update.
902 * thread-db.c: Update.
903 * sol-thread.c: Update.
904 * remote.c: Update.
905 * remote-vx.c: Update.
906 * remote-st.c: Update.
907 * remote-sim.c: Update.
908 * remote-sds.c: Update.
909 * remote-rdp.c: Update.
910 * remote-rdi.c: Update.
911 * remote-mips.c: Update.
912 * remote-m32r-sdi.c: Update.
913 * remote-e7000.c: Update.
914 * procfs.c: Update.
915 * ppc-bdm.c: Update.
916 * nto-procfs.c: Update.
917 * monitor.c: Update.
918 * linux-nat.c: Update.
919 * inftarg.c: Update.
920 * hpux-thread.c: Update.
921 * go32-nat.c: Update.
922 * gnu-nat.c: Update.
923 * exec.c: Update.
924 * corelow.c: Update.
925 * bsd-kvm.c: Update.
926 * aix-thread.c: Update.
927
aa869812
AC
9282004-10-08 Andrew Cagney <cagney@gnu.org>
929
930 * target.c (debug_target): Move to near start of file.
931 (target_stopped_data_address_p): Re-org logic, add casts.
932
8dcef9cf
MK
9332004-10-02 Mark Kettenis <kettenis@gnu.org>
934
935 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
936 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
937 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
938 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
939 New defines.
940
4aa7a7f5
JJ
9412004-10-08 Jeff Johnston <jjohnstn@redhat.com>
942
943 * target.h (to_stopped_data_address): Change prototype to
944 take a CORE_ADDR pointer and return an int.
945 * target.c (update_current_target): Change to_stopped_data_address
946 to match new prototype.
947 (debug_to_stopped_data_address): Change appropriately.
948 * breakpoint.c (bpstat_stop_status): Change call to
949 target_stopped_data_address to use new prototype.
950 * frv-tdep.c (frv_have_stopped_data_address): New function.
951 (frv_stopped_data_address): Change to new prototype and
952 functionality.
953 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
954 prototype and functionality.
955 (ia64_stopped_by_watchpoint): New function.
956 * i386-nat.c (i386_stopped_data_address): Change to new
957 prototype and functionality.
958 (i386_stopped_by_watchpoint): New function.
959 * remote.c (remote_stopped_data_address): Change to new prototype
960 and functionality.
961 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
962 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
963 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
964 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
965 new i386_stopped_by_watchpoint function.
966 (i386_stopped_by_watchpoint): New prototype.
967 (i386_stoppped_data_address): Change to new prototype.
968 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
969 new ia64_stopped_by_watchpoint function.
970 (ia64_stopped_by_watchpoint): New prototype.
971 (ia64_stopped_data_address): Ditto.
972
61ee279c
PH
9732004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
974
975 * ada-typeprint.c (ada_print_type): Use int_string for printing
976 modulus of modular type.
977 * ada-lang.h (ada_modulus): Change return type to unsigned.
978 * ada-lang.c (ada_language_arch_info): Correct type of
979 string_char_type.
980 (ada_modulus): Return unsigned result.
981 (ada_lookup_symbol): Remove user disambiguation and modify comment
982 accordingly.
983
9842004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
985
986 Committed by Paul Hilfinger.
987 * ada-lang.c (decode_packed_array): On big-endian targets,
988 left-justify the value if it comes with a modular type.
989
9902004-10-08 Joel Brobecker <brobecker@gnat.com>
991
992 Committed by Paul Hilfinger.
993 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
994 (is_name_suffix): Add support for "___JM" suffixes.
995 (ada_check_typedef): Renames ada_completed_type.
996 Update all users of CHECK_TYPEDEF, check_typedef, and
997 ada_complete_type to call ada_check_typedef.
998 * ada-typeprint.c: Likewise.
999 * ada-valprint.c: Likewise.
1000
b6c25a56
CV
10012004-10-08 Corinna Vinschen <vinschen@redhat.com>
1002
1003 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
1004
83ca6a46
NR
10052004-10-08 Nick Roberts <nickrob@snap.net.nz>
1006
1007 * MAINTAINERS: Update e-mail address.
1008
1fd8cd20
DJ
10092004-10-07 Daniel Jacobowitz <dan@debian.org>
1010
1011 From Maciej W. Rozycki <macro@mips.com>:
1012 * mips-tdep.c (mips32_next_pc): Check the register's contents,
1013 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
1014
cea15572
KI
10152004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
1016
1017 * m32r-tdep.c (decode_prologue): Support functions written
1018 in assembler language. Recognize trap instructions as the
1019 end of prologue.
1020 (m32r_frame_unwind_cache): Ditto.
1021 (m32r_skip_prologue): Extend search limit. Quit analyzing
1022 prologue if pc's location is not readable.
1023
23485554
PH
10242004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
1025
1026 * Makefile.in (.l.c): Do conversions of names of alloc and free
1027 functions that are done for .y.c files, plus special one
1028 for yy_flex_realloc. Also, correct missing-file tests here.
1029 * ada-lex.l (malloc, free): Remove macros.
1030 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
1031 xrealloc.
1032 (ada_flex_use): Dummy definition to remove warnings about unused
1033 functions.
1034 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
1035 to suppress warning.
1036
c0409442
CV
10372004-10-06 Corinna Vinschen <vinschen@redhat.com>
1038
1039 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
1040 RETURN_VALUE.
1041 (sh_return_value_fpu): Ditto for CPUs with FPU.
1042 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
1043 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
1044 Install sh_return_value_nofpu resp. sh_return_value_fpu as
1045 RETURN_VALUE functions.
1046
9bed62d7
CV
10472004-10-06 Corinna Vinschen <vinschen@redhat.com>
1048
1049 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
1050 (sh_pseudo_register_write): Ditto.
1051
03131d99
CV
10522004-10-06 Corinna Vinschen <vinschen@redhat.com>
1053
1054 * sh-tdep.c (IS_MACL_STS): New define.
1055 (IS_MOVI20): Ditto.
1056 (IS_MACL_LDS): Ditto.
1057 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
1058 instructions in prologue.
1059 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
1060 instructions in epilogue.
1061
da962468
CV
10622004-10-06 Corinna Vinschen <vinschen@redhat.com>
1063
1064 * sh-tdep.c (SH_NUM_REGS): Define as 67.
1065 (sh_sh_register_name): Add eight empty register names.
1066 (sh_sh3_register_name): Ditto.
1067 (sh_sh3e_register_name): Ditto.
1068 (sh_sh2e_register_name): Ditto.
1069 (sh_sh2a_register_name): New function, defining SH2A register set.
1070 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
1071 in nofpu case.
1072 (sh_sh_dsp_register_name): Add eight empty register names.
1073 (sh_sh3_dsp_register_name): Ditto.
1074 (sh_sh4_register_name): Ditto.
1075 (sh_sh4_nofpu_register_name): Ditto.
1076 (sh_sh4al_dsp_register_name): Ditto.
1077 (sh2a_show_regs): New function.
1078 (sh2a_nofpu_show_regs): New function.
1079 (sh_sh2a_register_type): New function.
1080 (do_bank_register_info): New function.
1081 (sh_print_pseudo_register): Call do_bank_register_info.
1082 Call sh_print_pseudo_register for valid "bank" register.
1083 (sh_sh2a_register_sim_regno): New function.
1084 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
1085 Increment pseudo register count by one for all sh variants with
1086 pseudo registers to accomodate pseudo bank register.
1087 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
1088 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
1089 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
1090 Increment pseudo register numbers.
1091
1326e61b
CV
10922004-10-06 Corinna Vinschen <vinschen@redhat.com>
1093
1094 * dwarf2read.c (read_subroutine_type): Call make_function_type
1095 instead of lookup_function_type.
1096
146c42e3
JB
10972004-10-05 Jim Blandy <jimb@redhat.com>
1098
1099 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
1100 (Previous change missed some uses.)
1101
1df84f13
AC
11022004-10-05 Andrew Cagney <cagney@gnu.org>
1103
1104 * target.h (deprecated_child_ops): Rename child_ops.
1105 * wince.c: Update copyright. Rename child_ops.
1106 * win32-nat.c: Rename child_ops.
1107 * target.c: Rename child_ops.
1108 * rs6000-nat.c: Rename child_ops.
1109 * linux-nat.c: Rename child_ops.
1110 * infttrace.c: Rename child_ops.
1111 * inftarg.c: Rename child_ops.
1112 * infptrace.c: Rename child_ops.
1113 * hppah-nat.c: Update copyright. Rename child_ops.
1114 * hpux-thread.c: Update copyright. Rename child_ops.
1115
21e3b9b9
DJ
11162004-10-05 Daniel Jacobowitz <dan@debian.org>
1117
1118 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
1119
de83afe7
AC
11202004-10-05 Andrew Cagney <cagney@gnu.org>
1121
1122 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
1123
10b3939b
DJ
11242004-10-05 Daniel Jacobowitz <dan@debian.org>
1125
1126 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
1127 (die_ref_table): Remove.
1128 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
1129 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
1130 the usage of this type.
1131 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
1132 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
1133 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
1134 (dwarf2_create_include_psymtab): Update comment.
1135 (find_partial_die): Remove third argument. Remove unreachable call
1136 to error ().
1137 (dwarf2_find_containing_comp_unit): Update comments. Change one
1138 assertion to an error. Remove an unreachable error.
1139 (dwarf2_find_comp_unit): Update comments.
1140 (type_at_offset): Remove dead code.
1141 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
1142 (store_in_ref_table): Add CU argument.
1143 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
1144 inter-compilation-unit references.
1145 (load_full_comp_unit, process_full_comp_unit): New functions, based
1146 on psymtab_to_symtab_1.
1147 (psymtab_to_symtab_1): Use them.
1148 (dwarf2_add_dependence): New function.
1149 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
1150 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
1151 (partial_die_parent_scope, guess_structure_name): Update for changes
1152 to find_partial_die.
1153 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
1154 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
1155 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
1156 (read_die_and_children): Update call to store_in_ref_table.
1157 (do_free_die_list_cleanup): Remove.
1158 (fixup_partial_die): Update for changes to find_partial_die.
1159 (read_full_die): Handle queueing absolute references.
1160 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
1161 (dwarf2_attr, die_specification, die_type)
1162 (die_containing_type, dwarf2_extension): Update calls to
1163 follow_die_ref.
1164 (dump_die): Update DW_FORM_ref* handling.
1165 (dwarf2_get_ref_die_offset): Likewise.
1166 (free_one_comp_unit): Release the dies list.
1167 (dwarf2_mark_helper): New function.
1168 (dwarf2_mark): Use it.
1169
998bdd68
MK
11702004-10-05 Mark Kettenis <kettenis@jive.nl>
1171
1172 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
1173 when writing to memory.
1174
14588880
KI
11752004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
1176
1177 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
1178 (m32r_extract_struct_value_address): Delete function.
1179 (m32r_return_value): New function.
1180 (m32r_gdbarch_init): Instead of store_return_value,
1181 extract_return_value, deprecated_extract_struct_value_address
1182 and deprecated_use_struct_convention, set return_value.
1183
dd5e6932
DJ
11842004-10-03 Daniel Jacobowitz <dan@debian.org>
1185
1186 * dwarf2read.c (read_subrange_type): Add comment for variable
1187 sized arrays.
1188
7dc1ef8d
PH
11892004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
1190
1191 * Makefile.in (.l.c): Modify rule for compatibility with recent
1192 versions of flex, and remove most command-line options.
1193 * ada-lex.l: Add %options line in place of -I -i and -s command-line
1194 options.
1195
1f8173e6
PH
11962004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
1197
1198 Turn on initial Ada support (mainly expression evaluation).
1199
1200 * Makefile.in (SFILES): Remove ada-tasks.c.
1201 (HFILES_NO_SRCDIR): Add ada-lang.h.
1202 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
1203 (YYOBJ): Add ada-exp.o.
1204 (rule .l.c): Generalize to not mention ada.
1205 * symtab.c: Include ada-lang.h.
1206 (symbol_natural_name, symbol_demangled_name)
1207 (symbol_search_name): Add Ada case.
1208
cb85a953
AC
12092004-10-01 Andrew Cagney <cagney@gnu.org>
1210
3f3db248
AC
1211 * Makefile.in (COMMON_OBS): Add inf-child.o.
1212 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
1213 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1214 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1215 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
1216 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
1217 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
1218 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
1219 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
1220 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1221 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1222 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
1223 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
1224 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
1225
cb85a953
AC
1226 * target.c (xfer_using_stratum): Change return type to LONGEST.
1227 On each iteration offset, readbuf and writebuf.
1228 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
1229 partial_length, and read/modify/write predicate, update comments.
1230 Pass buffer.word to ptrace write.
1231
963a6417
PH
12322004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1233
1234 * symfile.c (init_filename_language_table): Add extensions for
1235 Ada.
1236 * defs.h (enum language): Add language_ada.
1237 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
1238 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
1239 (add_symbols_from_enclosing_procs): Make a no-op for now.
1240 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
1241 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
1242 (find_line_in_linetable, find_next_line_in_linetable)
1243 (read_all_symtabs, is_plausible_func_for_line)
1244 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
1245 (is_runtime_sym_defined, check_size): Remove declaration.
1246 (function_name_from_pc, ada_translate_error_message)
1247 (ada_lookup_minimal_symbol): Remove definition.
1248 (ada_add_block_symbols): Remove useless label.
1249 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
1250 useless declaration.
1251 (ada_is_exception_sym): Likewise.
1252
9b32d526
KI
12532004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
1254
1255 Add m32r-linux support.
1256 * configure.tgt: Add m32r*-*-linux*.
1257 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
1258 and m32r-linux-tdep.c.
1259 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
1260 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
1261 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
1262 m32r-linux-tdep.c.
1263 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
1264 config/m32r/linux.mh, config/m32r/linux.mt,
1265 config/m32r/nm-linux.h: New files.
1266
2de118d3
JB
12672004-09-30 Joel Brobecker <brobecker@gnat.com>
1268
1269 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
1270 (mips32_fetch_instruction): Remove, unused.
1271
a9fe69d1
JB
12722004-09-30 Joel Brobecker <brobecker@gnat.com>
1273
1274 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
1275 conditions that will always be true.
1276
bc8ffc12
MK
12772004-09-30 Mark Kettenis <kettenis@gnu.org>
1278
ba0cd111
MK
1279 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
1280 (vaxbsd_fetch_inferior_registers): Rename from
1281 fetch_inferior_registers. Make static.
1282 (vaxbsd_store_inferior_registers): Rename from
1283 store_inferior_registers. Make static.
1284 (_initialize_vaxbsd_nat): Construct and add target vector.
1285 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1286 inftarg.o. Add inf-child.o and inf-ptrace.o.
1287 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1288 inftarg.o. Add inf-child.o and inf-ptrace.o.
1289 (NAT_FILE): Remove.
1290 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
1291 inftarg.o. Add inf-child.o and inf-ptrace.o.
1292 (NAT_FILE): Remove.
1293 * Makefile.in (vaxbsd-nat.o): Update dependencies.
1294
bc8ffc12
MK
1295 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
1296 (m88kbsd_fetch_inferior_registers): Rename from
1297 fetch_inferior_registers. Make static.
1298 (m88kbsd_store_inferior_registers): Rename from
1299 store_inferior_registers. Make static.
1300 (_initialize_m88kbsd_nat): New prototype and function.
1301 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
1302 inftarg.o. Add inf-child.o and inf-ptrace.o.
1303 (NAT_FILE): Remove.
1304 * Makefile.in (m88kbsd-nat.o): Update dependencies.
1305
27394598
AC
13062004-09-30 Andrew Cagney <cagney@gnu.org>
1307
1308 * target.c (target_xfer_partial): New function.
1309 (target_read_memory_partial, target_write_memory_partial)
1310 (default_xfer_partial, target_read_partial, target_write_partial)
1311 (xfer_using_stratum): Use.
1312 (debug_to_xfer_partial): Delete function.
1313 (setup_target_debug): Do not override to_xfer_partial.
1314
74a4fe32
MK
13152004-09-30 Mark Kettenis <kettenis@chello.nl>
1316
1317 * fork-child.c: Update copyright year. Fix coding style.
1318
982526a1
MK
13192004-09-29 Mark Kettenis <kettenis@gnu.org>
1320
1321 * defs.h (msavestring, mstrsave): Remove prototypes.
1322 * utils.c (msavestring, mstrsave): Remove functions.
1323 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
1324 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
1325 of mstrsave.
1326 * source.c (find_and_open_source): Use xstrdup instead of
1327 mstrsave.
1328
b8eb5af0
AC
13292004-09-30 Andrew Cagney <cagney@gnu.org>
1330
0779438d
AC
1331 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
1332 (inf_ptrace_xfer_memory): Delete.
1333 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
1334 (target_read_memory, target_write_memory): Use xfer_using_stratum
1335 when target_xfer_partial_p.
1336 (debug_target): Move to start of file.
1337 (target_read_memory_partial, target_write_memory_partial): Use
1338 to_xfer_partial when target_xfer_partial_p.
1339
f929a579
AC
1340 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
1341 inf_ptrace_xfer_memory with equivalent code.
1342 * inftarg.c (child_xfer_partial): When performing a write, pass
1343 writebuf to child_xfer_memory.
1344
b8eb5af0
AC
1345 * target.c (target_read_string): Use target_read_memory instead of
1346 target_xfer_memory.
1347
ee21b650
AC
13482004-09-29 Andrew Cagney <cagney@gnu.org>
1349
d3e05d0d
AC
1350 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
1351 the address of status.
1352
ee21b650
AC
1353 * infptrace.c (ptrace_wait): Mention problem with HPUX.
1354 (kill_inferior): Inline ptrace_wait call.
1355 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
1356 * inftarg.c (child_wait): Inline ptrace_wait call.
1357
a182eed6
AC
1358 * target.h (struct target_ops): Delete field to_post_wait.
1359 (target_post_wait): Delete macro.
1360 (child_post_wait): Delete declaration.
1361 * target.c (update_current_target, update_current_target)
1362 (debug_to_post_wait, setup_target_debug): Delete functions and
1363 references.
1364 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
1365 * inftarg.c (child_post_wait): Delete.
1366 (init_child_ops): Do not set to_post_wait.
1367 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
1368 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
1369 * inf-child.c (inf_child_post_wait): Delete.
1370 (inf_child_target): Do not set to_post_wait.
1371 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
1372 (inf_ptrace_target): Do not set to_post_wait.
1373
ba0c540b
AC
1374 * wince.c (child_ops): Delete.
1375 * win32-nat.c (child_ops): Delete.
1376
81977402
AC
1377 * inftarg.c (inftarg_set_find_memory_regions)
1378 (inftarg_set_make_corefile_notes): Delete functions.
1379 (_initialize_linux_nat): Inline calls.
1380
5ac10fd1
AC
1381 * target.h (child_ops): Declare.
1382 * inftarg.c (child_ops): Move from here ...
1383 * target.c (child_ops): ... to here.
1384 * wince.c (child_ops): Delete extern declaration.
1385 * win32-nat.c (child_ops): Delete extern declaration.
1386 * linux-nat.c (child_ops): Delete extern declaration.
1387 * hpux-thread.c (child_ops): Delete extern declaration.
1388
663408c2 13892004-09-28 Mark Kettenis <kettenis@gnu.org>
890c8f4d
MK
1390
1391 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
1392
0dad8a66
MK
13932004-09-28 Mark Kettenis <kettenis@gnu.org>
1394
1395 * configure.in: Only set host_makefile_frag when building a native
1396 debugger.
1397 * configure: Regenerate.
e8d74ed3
MK
1398
1399 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
1400 for OpenBSD ELF.
1401
dba24537
AC
14022004-09-28 Andrew Cagney <cagney@gnu.org>
1403
e979516b
AC
1404 Problem identified by Paul Hilfinger.
1405 * Makefile.in (ada_lex_c): Define.
1406 (ada-lex.o): Delete rule.
1407
dba24537
AC
1408 * linux-proc.c: Delete file.
1409 * Makefile.in: Update.
1410 * config/sparc/linux64.mh (NATDEPFILES):
1411 * config/sparc/linux.mh (NATDEPFILES): Update.
1412 * config/s390/s390.mh (NATDEPFILES): Update.
1413 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
1414 * config/powerpc/linux.mh (NATDEPFILES): Update.
1415 * config/pa/linux.mh (NATDEPFILES): Update.
1416 * config/mips/linux.mh (NATDEPFILES): Update.
1417 * config/m68k/linux.mh (NATDEPFILES): Update.
1418 * config/ia64/linux.mh (NATDEPFILES): Update.
1419 * config/i386/linux64.mh (NATDEPFILES): Update.
1420 * config/i386/linux.mh (NATDEPFILES): Update.
1421 * config/arm/linux.mh (NATDEPFILES): Update.
1422 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
1423 * linux-nat.c: Update copyright. Include <sys/param.h>,
1424 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
1425 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
1426 (O_LARGEFILE): Possibly define.
1427 (_initialize_linux_nat, linux_proc_pending_signals)
1428 (add_line_to_sigset, linux_proc_xfer_memory)
1429 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
1430 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
1431 (struct linux_corefile_thread_data)
1432 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
1433 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
1434
d6b0e80f
AC
14352004-09-16 Andrew Cagney <cagney@gnu.org>
1436
1437 * lin-lwp.c: Delete file.
1438 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
1439 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
1440 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
1441 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
1442 (linux_nat_attach, detach_callback, linux_nat_detach)
1443 (resume_callback, resume_clear_callback, linux_nat_resume)
1444 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
1445 (stop_wait_callback, linux_nat_has_pending, flush_callback)
1446 (status_callback, running_callback, count_events_callback)
1447 (select_singlestep_lwp_callback, select_event_lwp_callback)
1448 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
1449 (child_wait, stop_and_resume_callback, linux_nat_wait)
1450 (kill_callback, kill_wait_callback, linux_nat_kill)
1451 (linux_nat_create_inferior, linux_nat_mourn_inferior)
1452 (linux_nat_xfer_memory, linux_nat_thread_alive)
1453 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
1454 (_initialize_linux_nat): New functions.
1455 * Makefile.in: Update all dependencies.
1456 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
1457 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1458 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
1459 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
1460 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1461 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1462 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1463 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1464 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1465 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
1466 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1467 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1468 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
1469
5a174d79
MK
14702004-09-27 Mark Kettenis <kettenis@gnu.org>
1471
2f604c28
MK
1472 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
1473 config/i386/obsd64.mh (NAT_FILE): Remove variable.
1474
5a174d79
MK
1475 * configure.in: Don't comment out NATDEPFILES in the generated
1476 Makefile if NAT_FILE is unset.
1477 * configure: Regenerate.
1478
b2ed1746
AC
14792004-09-27 Andrew Cagney <cagney@gnu.org>
1480
44cbf7b5
AC
1481 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
1482 (insert_step_resume_breakpoint): Delete.
1483 (insert_step_resume_breakpoint_at_frame): New function.
1484 (insert_step_resume_breakpoint_at_sal): New function.
1485 (handle_inferior_event, step_into_function)
1486 (insert_step_resume_breakpoint): Simplify by using same.
1487
b2ed1746
AC
1488 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
1489
3691b3be
MK
14902004-09-26 Mark Kettenis <kettenis@gnu.org>
1491
36f391e8
MK
1492 * fbsd-proc.c: Remove file.
1493 * Makefile.in (fbsd-proc.o): Remove dependency.
1494
771e236c
MK
1495 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
1496 code together.
1497
3691b3be
MK
1498 * config/i386/nm-fbsd64.h: Remove file.
1499 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1500
6a5c78a3
MK
15012004-09-26 Mark Kettenis <kettenis@gnu.org>
1502
1503 * amd64-nat.h: Update copyright year.
1504 (amd64bsd_target): New prototype.
1505 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
1506 (amd64bsd_target): New function.
1507 (amd64bsd_fetch_inferior_registers): Rename from
1508 fetch_inferior_registers. Make static.
1509 (amd64bsd_store_inferior_registers): Rename from
1510 store_inferior_registers. Make static.
1511 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
1512 (_initialize_amd64fbsd_nat): Construct and add target vector.
1513 * amd64nbsd-nat.o: Include "target.h".
1514 (_initialize_amd64nbsd_nat): Construct and add target vector.
1515 * amd64obsd-nat.c: Include "target.h".
1516 (_initialize_amd64obsd_nat): Construct and add target vector.
1517 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
1518 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
1519 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
1520 fbsd-nat.o.
1521 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
1522 Remove infptrace.o and inftarg.o. Add inf-child.o and
1523 inf-ptrace.o.
1524 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
1525 (amd64obsd-nat.o): Update dependencies.
1526
27acbe61
MK
15272004-09-25 Mark Kettenis <kettenis@gnu.org>
1528
509a5e7d
MK
1529 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
1530 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
1531 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
1532 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
1533 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
1534
6e1e94ea
MK
1535 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
1536 Inline attach call.
1537 (inf_ptrace_detach): Inline detach call.
1538
8b9cf735
MK
1539 * configure.in: Check for waddstr instead of mvwaddstr when
1540 searching for curses library. Check for wborder.
1541 * configure, config.in: Regenerate.
1542 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
1543 available.
1544
27acbe61
MK
1545 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
1546
b96ec7ac
AC
15472004-09-24 Robert Picco <Robert.Picco@hp.com>
1548
1549 Committed by Andrew Cagney.
1550 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
1551 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
1552 configuration.
1553 (fetch_register_using_p): Implement 'p' packet. Based on code by
1554 Fernando Nasser.
1555 (remote_fetch_registers): Call fetch_register_using_p.
1556 (init_all_packet_configs, show_remote_cmd)
1557 (_initialize_remote): Add p-packet.
1558
62ece330
MK
15592004-09-24 Mark Kettenis <kettenis@gnu.org>
1560
1561 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
1562 instead of call_ptrace. Call wait directly instead of
1563 ptrace_wait.
1564 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
1565 (inf_ptrace_wait): Inline ptrace_wait call.
1566
00937274
PH
15672004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
1568
1569 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
1570 rolled back instead.
1571
3f2c7a45
PH
15722004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
1573
1574 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
1575 the new argument order.
1576
b6fcb393
CV
15772004-09-23 Corinna Vinschen <vinschen@redhat.com>
1578
1579 * MAINTAINERS: Remove "broken" from XStormy16 entry.
1580 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
1581 (struct gdbarch_tdep): Remove.
1582 (struct xstormy16_frame_cache): New frame cache structure.
1583 (xstormy16_register_byte, xstormy16_register_raw_size)
1584 (xstormy16_reg_virtual_type, xstormy16_register_type)
1585 (xstormy16_push_arguments, xstormy16_push_return_address)
1586 (xstormy16_pop_frame, xstormy16_store_struct_return)
1587 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
1588 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
1589 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
1590 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
1591 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
1592 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
1593 (xstormy16_use_struct_convention): Drop gcc_p parameter.
1594 (xstormy16_extract_return_value, xstormy16_store_return_value):
1595 Regcachify. Drop useless struct convention handling.
1596 (xstormy16_register_type, xstormy16_return_value)
1597 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
1598 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
1599 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
1600 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
1601 (xstormy16_unwind_sp, xstormy16_unwind_pc)
1602 (xstormy16_unwind_dummy_id) : New functions.
1603 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
1604 of xstormy16_scan_prologue.
1605 (xstormy16_frame_unwind): New frame_unwind structure.
1606 (xstormy16_frame_base): New frame_base structure.
1607 (xstormy16_gdbarch_init): Accomodate all of the above changes.
1608 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
1609
1285b746
MK
16102004-09-22 Mark Kettenis <kettenis@gnu.org>
1611
1612 * language.c (language_gdbarch_post_init): Fix off-by one error.
1613
1c379e20
DJ
16142004-09-21 Daniel Jacobowitz <dan@debian.org>
1615
1616 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
1617 (struct dwarf2_offset_and_type): New.
1618 (set_die_type, reset_die_and_siblings_types, get_die_type)
1619 (offset_and_type_hash, offset_and_type_eq): New functions.
1620 (read_structure_type, read_enumeration_type, read_array_type)
1621 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
1622 (read_tag_reference_type, read_tag_const_type)
1623 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
1624 (read_typedef, read_base_type, read_subrange_type): Use
1625 set_die_type.
1626
ae038cb0
DJ
16272004-09-20 Daniel Jacobowitz <dan@debian.org>
1628
1629 * Makefile.in (dwarf2read.o): Update dependencies.
1630 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
1631 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
1632 and read_in_chain.
1633 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
1634 mark, and has_form_ref_addr.
1635 (struct dwarf2_per_cu_data): New.
1636 (dwarf2_max_cache_age): New.
1637 (dwarf2_build_psymtabs_hard): Free cached compilation units
1638 after loading. Create and manage the list of compilation units.
1639 Remove unnecessary NULL initialization. Fix indentation.
1640 (psymtab_to_symtab_1): Initialize all of CU.
1641 (dwarf2_read_abbrevs): Set has_form_ref_addr.
1642 (find_partial_die): Use dwarf2_find_containing_comp_unit
1643 and load_comp_unit.
1644 (free_stack_comp_unit): Update comments. Clear the per-cu
1645 pointer. Handle aging.
1646 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
1647 (age_cached_comp_units, free_one_cached_comp_unit)
1648 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
1649 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
1650 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
1651 (show_dwarf2_cmd): New.
1652 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
1653 and "maint show dwarf2 max-cache-age".
1654 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
1655 externs.
1656 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
1657 global.
1658
987504bb
JJ
16592004-09-20 Jeff Johnston <jjohnstn@redhat.com>
1660
1661 * dwarf2read.c (typename_concat): Change prototype to accept obstack
1662 and dwarf2_cu struct pointer as arguments. Change function to use
1663 obstack if provided and use dwarf2_cu to determine language-specific
1664 separator.
1665 (partial_die_parent_scope): Change comment to include java. Use
1666 new version of typename_concat instead of obconcat.
1667 (partial_die_full_name): Use typename_concat.
1668 (read_namespace): Ditto.
1669 (read_enumeration_type): Use typename_concat instead of obconcat.
1670 (new_symbol): Ditto.
1671 (add_partial_symbol): Enhance tests for C++ to also test for Java.
1672 (guess_structure_name): Ditto.
1673 (read_subroutine_type): Ditto.
1674 (read_structure_type): Ditto.
1675 (is_vtable_name): Add Java support.
1676 (determine_class_name): Switch to new typename_concat call.
1677 (determine_prefix): Switch to new typename_concat call.
1678 * jv-exp.y (FuncStart): New pattern.
1679 (MethodInvocation): Add support for simple function calls. Change
1680 warning message for other forms of inferior call currently not
1681 supported.
1682 * valarith.c (value_subscript): Treat an array with upper-bound
1683 of -1 as unknown size.
1684
d9c8471e
DJ
16852004-09-20 Daniel Jacobowitz <dan@debian.org>
1686
1687 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
1688 (lookup_partial_symtab): Use symtab_to_fullname.
1689
d73f140a
JB
16902004-09-19 Jim Blandy <jimb@redhat.com>
1691
1692 * minsyms.c (lookup_minimal_symbol): Doc fix.
1693
adbef1f0
AC
16942004-09-20 Andrew Cagney <cagney@gnu.org>
1695
1696 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
1697 CHILD_RESUME.
1698 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
1699 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
1700 KILL_INFERIOR.
1701 * infptrace.c: Update.
1702
d092d1a2
DJ
17032004-09-19 Daniel Jacobowitz <dan@debian.org>
1704
1705 * symtab.c (output_source_filename): Mark first argument as const.
1706 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
1707 for "info sources" output.
1708
86d9e1d7
MK
17092004-09-20 Mark Kettenis <kettenis@gnu.org>
1710
1711 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
1712 <machine/vmparam.h>.
1713 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
1714 (register_u_addr): Remove prototype.
1715
9a6c8ef4
MK
17162004-09-19 Mark Kettenis <kettenis@gnu.org>
1717
9692934b
MK
1718 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
1719 (i386bsd_fetch_inferior_registers): Rename from
1720 fetch_inferior_registers. Make static.
1721 (i386bsd_store_inferior_registers): Rename from
1722 store_inferior_registers. Make static.
1723 (i386bsd_target): New function.
1724 * i386bsd-nat.h: New file.
1725 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
1726 "i386bsd-nat.h".
1727 (i386fbsd_resume): Rename from child_resume. Make static.
1728 (_initialize_i386fbsd_nat): Construct and add target vector.
1729 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
1730 (_initialize_i386nbsd_nat): Construct and add target vector.
1731 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
1732 Remove defines.
1733 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
1734 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
1735 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
1736 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
1737 (LOADLIBES): New variable.
1738 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
1739 inf-ptrace.o. Remove inftarg.o.
1740 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
1741 inf-ptrace.o. Remove inftarg.o.
1742 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
1743 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
1744 (LOADLIBES): New variable.
1745 * Makefile.in (i386bsd_nat_h): New variable.
1746 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
1747 dependencies.
1748
3510d1f2
MK
1749 * sparc64nbsd-tdep.c: Include "objfiles.h".
1750 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
1751 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
1752 svr4_lp64_fetch_link_map_offsets.
1753 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
1754 "nbsd-tdep.h".
1755 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
1756 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
1757 svr4_lp64_fetch_link_map_offsets.
1758 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
1759 dependencies.
1760
578c1c03
MK
1761 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
1762 * fbsd-nat.h: New file.
1763 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
1764 (fbsd_nat_h): New variable.
1765 (fbsd-nat.o): New dependency.
1766
7a7b73b7
MK
1767 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
1768 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
1769
9a6c8ef4
MK
1770 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
1771 comment.
1772
72d5681a
PH
17732004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
1774
1775 * ada-exp.y (type_int): New function to add layer of abstraction
1776 around references to expression types.
1777 (type_long): Ditto.
1778 (type_long_long): Ditto.
1779 (type_float): Ditto.
1780 (type_double): Ditto.
1781 (type_long_double): Ditto.
1782 (type_char): Ditto.
1783 (type_system_address): Ditto.
1784 (simple_exp): Use type_* functions in place of builtin_*
1785 variables.
1786 (exp): Ditto.
1787 (write_var_from_name): Ditto.
1788 (write_object_renaming): Ditto.
1789 * ada-lang.c (ada_create_fundamental_type): Remove redundant
1790 declaration.
1791 (build_ada_types): Remove, replacing with...
1792 (ada_language_arch_info): New function to initialize primitive
1793 type vector in language_arch_info.
1794 (ada_array_length): Remove use of builtin_type_ada_int.
1795 (value_pos_atr): Ditto.
1796 (ada_evaluate_subexp): Ditto.
1797 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
1798 builtin_type_ada_long_long, builtin_type_ada_char,
1799 builtin_type_ada_float, builtin_type_ada_double,
1800 builtin_type_ada_long_double, builtin_type_ada_natural,
1801 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
1802 (ada_builtin_types): Remove.
1803 (ada_language_defn): Remove entries for la_builtin_type_vector and
1804 string_char_type and use ada_language_arch_info.
1805 (_initialize_ada_language): Do type-vector initialization along
1806 the lines of c-lang.c.
1807 (ada_create_fundamental_type): Break up line.
1808 (ada_dump_symtab): Remove unused function.
1809 (enum ada_primitive_types): Define.
1810 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
1811 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
1812 builtin_type_ada_float, builtin_type_ada_double,
1813 builtin_type_ada_long_double, builtin_type_ada_natural,
1814 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
1815 * ada-lex.l: Use type_* functions in place of builtin_* variables.
1816 (processInt): Ditto.
1817 (processReal): Ditto.
1818 (name_lookup): Ditto.
1819 * ada-typeprint.c (print_range): Use builtin_type_int, not
1820 builtin_type_ada_int.
1821
4f0be353
MK
18222004-09-18 Mark Kettenis <kettenis@gnu.org>
1823
30b0e2d8
MK
1824 * i386-tdep.c (i386_register_name): Rename regno to regnum.
1825
4f0be353
MK
1826 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
1827 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
1828 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
1829 * configure.in: Improve checks for curses library by checking for
1830 mvwaddstr instead of initscr. Drop HP curses in favour of
1831 standard curses on HP-UX.
1832 * configure: Regenerated.
1833
72d5681a 18342004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
6c038f32
PH
1835
1836 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
1837 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
1838 Minor formatting changes.
1839 (empty_array): Slight rewrite for formatting.
1840 (emit_char,parse,ada_language_defn,build_ada_types,
1841 ada_is_exception_sym, _initialize_ada_language): Move
1842 definitions around.
1843 (ada_dump_symtab): Remove unused definition.
1844 (ada_maybe_exception_partial_symbol): Remove unused definition.
1845
1c8c7407
AC
18462004-09-16 Andrew Cagney <cagney@gnu.org>
1847
7681f339
AC
1848 * inf-child.c: Include "gdb_string.h".
1849 (inf_child_core_file_to_sym_file): Delete.
1850 (inf_child_target): Set to_fetch_registers and to_store_registers.
1851 * inf-ptrace.c: Include "gdb_string.h".
1852 * Makefile.in: Update all dependencies.
1853
1c8c7407
AC
1854 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
1855 problem.
1856
65596487
JB
18572004-09-14 Joel Brobecker <brobecker@gnat.com>
1858
1859 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
1860 call to heuristic_proc_desc. Remove code that became redundant
1861 as a consequence.
1862 (read_next_frame_reg): Remove special case for SP_REGNUM.
1863 (set_reg_offset): Fix small typo.
1864 (reset_saved_regs): New procedure.
1865 (mips32_heuristic_proc_desc): No longer compute a fake
1866 procedure descriptor. Compute the full frame cache instead.
1867 Some minor comment reformatting.
1868
95575b2e
AC
18692004-09-14 Andrew Cagney <cagney@gnu.org>
1870
f200c492
AC
1871 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
1872 maintainer.
1873
95575b2e
AC
1874 * thread-db.c (thread_db_new_objfile): Assume that there is a
1875 child process.
1876
69657671
JB
18772004-09-13 Jim Blandy <jimb@redhat.com>
1878
1879 * valops.c (value_assign): Move 'buffer' to the enclosing block,
1880 so that its storage isn't referenced after its lifetime ends.
1881
6c4182dd
JB
1882 * valops.c (value_assign): 'use_buffer' is initialized to zero,
1883 and never assigned to. Delete it, and the 'if (use_buffer)'
1884 clauses. Delete 'raw_buffer', since it is now unused.
1885
ee31a58d
AC
18862004-09-13 Andrew Cagney <cagney@gnu.org>
1887
2c0fc042
AC
1888 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
1889 * configure: Re-generate.
1890 * nlm/Makefile.in (TAGS): Update.
1891 * Makefile.in (TAGS): Update.
1892 * config/vax/nbsd.mt (TM_FILE): Update.
1893 * config/sparc/vxworks.mt (TM_FILE): Update.
1894 * config/sparc/sol2.mt (TM_FILE): Update.
1895 * config/sparc/sol2-64.mt (TM_FILE): Update.
1896 * config/sparc/obsd64.mt (TM_FILE): Update.
1897 * config/sparc/obsd.mt (TM_FILE): Update.
1898 * config/sparc/nbsd64.mt (TM_FILE): Update.
1899 * config/sparc/nbsd.mt (TM_FILE): Update.
1900 * config/sparc/linux64.mt (TM_FILE): Update.
1901 * config/sparc/linux.mt (TM_FILE): Update.
1902 * config/sparc/fbsd.mt (TM_FILE): Update.
1903 * config/sh/wince.mt (TM_FILE): Update.
1904 * config/sh/nbsd.mt (TM_FILE): Update.
1905 * config/sh/linux.mt (TM_FILE): Update.
1906 * config/sh/embed.mt (TM_FILE): Update.
1907 * config/s390/s390.mt (TM_FILE): Update.
1908 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
1909 * config/rs6000/rs6000.mt (TM_FILE): Update.
1910 * config/rs6000/aix4.mt (TM_FILE): Update.
1911 * config/powerpc/vxworks.mt (TM_FILE): Update.
1912 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
1913 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
1914 * config/powerpc/obsd.mt (TM_FILE): Update.
1915 * config/powerpc/nbsd.mt (TM_FILE): Update.
1916 * config/powerpc/linux.mt (TM_FILE): Update.
1917 * config/powerpc/aix.mt (TM_FILE): Update.
1918 * config/pa/obsd.mt (TM_FILE): Update.
1919 * config/pa/linux.mt (TM_FILE): Update.
1920 * config/pa/hppahpux.mt (TM_FILE): Update.
1921 * config/pa/hppa64.mt (TM_FILE): Update.
1922 * config/pa/hppa.mt (TM_FILE): Update.
1923 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
1924 * config/mips/wince.mt (TM_FILE): Update.
1925 * config/mips/vxmips.mt (TM_FILE): Update.
1926 * config/mips/nbsd.mt (TM_FILE): Update.
1927 * config/mips/linux.mt (TM_FILE): Update.
1928 * config/mips/irix6.mt (TM_FILE): Update.
1929 * config/mips/irix5.mt (TM_FILE): Update.
1930 * config/mips/embed.mt (TM_FILE): Update.
1931 * config/m68k/vxworks68.mt (TM_FILE): Update.
1932 * config/m68k/st2000.mt (TM_FILE): Update.
1933 * config/m68k/os68k.mt (TM_FILE): Update.
1934 * config/m68k/obsd.mt (TM_FILE): Update.
1935 * config/m68k/nbsd.mt (TM_FILE): Update.
1936 * config/m68k/monitor.mt (TM_FILE): Update.
1937 * config/m68k/linux.mt (TM_FILE): Update.
1938 * config/m68k/cisco.mt (TM_FILE): Update.
1939 * config/ia64/linux.mt (TM_FILE): Update.
1940 * config/ia64/aix.mt (TM_FILE): Update.
1941 * config/ia64/ia64.mt (TM_FILE): Update.
1942 * config/i386/vxworks.mt (TM_FILE): Update.
1943 * config/i386/obsd64.mt (TM_FILE): Update.
1944 * config/i386/obsd.mt (TM_FILE): Update.
1945 * config/i386/nto.mt (TM_FILE): Update.
1946 * config/i386/nbsd64.mt (TM_FILE): Update.
1947 * config/i386/nbsd.mt (TM_FILE): Update.
1948 * config/i386/linux64.mt (TM_FILE): Update.
1949 * config/i386/linux.mt (TM_FILE): Update.
1950 * config/i386/i386sol2.mt (TM_FILE): Update.
1951 * config/i386/i386lynx.mt (TM_FILE): Update.
1952 * config/i386/fbsd64.mt (TM_FILE): Update.
1953 * config/i386/fbsd.mt (TM_FILE): Update.
1954 * config/i386/cygwin.mt (TM_FILE): Update.
1955 * config/h8300/h8300.mt (TM_FILE): Update.
1956 * config/frv/frv.mt (TM_FILE): Update.
1957 * config/cris/cris.mt (TM_FILE): Update.
1958 * config/arm/wince.mt (TM_FILE): Update.
1959 * config/arm/nbsd.mt (TM_FILE): Update.
1960 * config/arm/linux.mt (TM_FILE): Update.
1961 * config/arm/embed.mt (TM_FILE): Update.
1962 * config/alpha/nbsd.mt (TM_FILE): Update.
1963 * config/alpha/fbsd.mt (TM_FILE): Update.
1964 * config/alpha/alpha.mt (TM_FILE): Update.
1965 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
1966 * config/alpha/alpha-linux.mt (TM_FILE): Update.
1967
362646f5
AC
1968 Eliminate event_loop_p, always has the value 1.
1969 * defs.h (event_loop_p): Delete macro.
1970 * breakpoint.c (until_break_command): Simplify.
1971 * utils.c (prompt_for_continue): Simplify.
1972 * tracepoint.c (read_actions): Simplify.
1973 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
1974 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
1975 (set_prompt, init_main): Simplify.
1976 (init_signals, disconnect): Delete, unused.
1977 * remote.c (remote_async_resume)
1978 (extended_remote_async_create_inferior): Simplify.
1979 * mi/mi-interp.c (mi_input): Delete, unused.
1980 (mi_interpreter_resume, mi_command_loop): Simplify.
1981 * interps.c (current_interp_command_loop): Simplify.
1982 * infrun.c (proceed): Simplify.
1983 * infcmd.c (run_command, continue_command, step_1, jump_command)
1984 (until_command, advance_command, finish_command)
1985 (interrupt_target_command): Simplify.
1986 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
1987
ee31a58d
AC
1988 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1989 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1990 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1991 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1992 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1993 * mips-tdep.c (mips_dump_tdep): Do not print same.
1994
b7ffc4a8
AC
19952004-09-12 Andrew Cagney <cagney@gnu.org>
1996
2bfb72ee
AC
1997 * valprint.c (print_longest): Use fputs_filtered. Make "val"
1998 const.
1999 * Makefile.in (valprint.o): Delete explict rule.
2000
4f17c3c1
AC
2001 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
2002 reported by Dave Anderson.
2003
f810308b
AC
2004 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
2005
b7ffc4a8
AC
2006 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
2007
28b41c52
AC
20082004-09-12 Salvador E. Tropea <set@users.sf.net>
2009 Andrew Cagney <cagney@gnu.org>
2010
2011 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
2012 (mi_cmd_data_list_register_values)
2013 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
2014 the register number computation.
2015
5bf970f9
AC
20162004-09-12 Andrew Cagney <cagney@gnu.org>
2017
2018 * ppcnbsd-nat.c: Include "inf-ptrace.h".
2019 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
2020 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
2021 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
2022 target.
2023 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
2024 inf-ptrace.o and inf-child.o.
2025 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
2026 * Makefile.in: Update dependencies.
2027
0759e0bf
AC
20282004-09-11 Andrew Cagney <cagney@gnu.org>
2029
2030 * language.c (hex_string, hex_string_custom): Move from here ...
2031 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
2032 (CELLSIZE): Increase to 50.
2033 * language.h (hex_string, hex_string_custom): Move from here ...
2034 * defs.h: ... to here.
2035 * Makefile.in: Update all dependencies.
2036
bb599908
PH
20372004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
2038
2039 * language.c (local_hex_format_custom): Remove.
2040 (local_hex_string): Rename to hex_string, use C format, and move to
2041 utils.c
2042 (local_hex_string_custom): Rename to hex_string_custom and change
2043 interface. Now uses C format. Move to utils.c
2044 (local_octal_format_custom): Remove.
2045 (local_decimal_format_custom): Remove.
2046 (unknown_language_defn): Remove language-specific number
2047 formatting entries.
2048 (auto_language_defn): Ditto.
2049 (local_language_defn): Ditto.
2050 * language.h (struct language_format_info): Delete declaration.
2051 (struct language_defn): Remove language_format_info fields
2052 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
2053 (local_binary_format): Remove macro.
2054 (local_binary_format_prefix): Remove macro.
2055 (local_binary_format_specifier): Remove macro.
2056 (local_binary_format_suffix): Remove macro.
2057 (local_octal_format): Remove macro.
2058 (local_octal_format_prefix): Remove macro.
2059 (local_octal_format_specifier): Remove macro.
2060 (local_octal_format_suffix): Remove macro.
2061 (local_decimal_format): Remove macro.
2062 (local_decimal_format_prefix): Remove macro.
2063 (local_decimal_format_specifier): Remove macro.
2064 (local_decimal_format_suffix): Remove macro.
2065 (local_hex_format): Remove macro.
2066 (local_hex_format_prefix): Remove macro.
2067 (local_hex_format_specifier): Remove macro.
2068 (local_hex_format_suffix): Remove macro.
2069 (local_decimal_format_custom): Remove.
2070 (local_octal_format_custom): Remove.
2071 (local_hex_format_custom): Remove.
2072 (local_hex_string): Rename to hex_string and move to defs.h.
2073 (local_hex_string_custom): Rename to hex_string_custom, change
2074 interface, and move to defs.h.
2075 * utils.c: (int_string): New function.
2076 (hex_string): New function (from language.c).
2077 (hex_string_custom): New function (from language.c).
2078 (octal2str): New function.
2079 (decimal2str): Add width parameter.
2080 (paddr_u): Use new decimal2str interface.
2081 (paddr_d): Ditto.
2082 * defs.h (hex_string): Declare.
2083 (hex_string_custom): Declare.
2084 (int_string): Declare.
2085 * printcmd.c (print_scalar_formatted): Remove localized binary
2086 formatting.
2087 * valprint.c (print_longest): Use int_string.
2088 (print_floating): Use C hex format.
2089 (print_hex_chars): Ditto.
2090 (print_binary_chars): Remove language-specific formatting.
2091 (print_octal_chars): Use C octal format.
2092 (print_decimal_chars): Delocalize format.
2093 (print_decimal): Remove.
2094 * ada-lang.c (ada_language_defn): Remove language-specific number
2095 formatting entries.
2096 * p-lang.c (pascal_language_defn): Ditto.
2097 * c-lang.c (c_language_defn): Ditto.
2098 (cplus_language_defn): Ditto.
2099 (asm_language_defn): Ditto.
2100 (minimal_language_defn): Ditto.
2101 * f-lang.c (f_language_defn): Ditto.
2102 * jv-lang.c (java_language_defn): Ditto.
2103 * m2-lang.c (m2_language_defn): Ditto.
2104 * scm-lang.c (scm_language_defn): Ditto.
2105 * objc-lang.c (objc_language_defn): Ditto.
2106 * memattr.c (mem_info_command): Use renamed hex_string_custom with
2107 new interface.
2108 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
2109 * ui-out.c (ui_out_field_core_addr): Ditto.
2110 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
2111 * exec.c (print_section_info): Ditto.
2112 * i387-tdep.c (print_i387_status_word): Ditto.
2113 (print_i387_control_word): Ditto.
2114 (i387_print_float_info): Ditto.
2115 * maint.c (maint_print_section_info): Ditto.
2116 * solib.c (info_sharedlibrary_command): Ditto.
2117 * somsolib.c (som_sharedlibrary_info_command): Ditto.
2118 * symtab.c (print_msymbol_info): Ditto.
2119 * tracepoint.c (tracepoints_info): Ditto.
2120 * solib-frv.c (lm_base): Ditto.
2121 (frv_current_sos): Ditto.
2122 (enable_break2): Ditto.
2123 (enable_break): Ditto.
2124 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
2125 (process_one_symbol): Ditto.
2126 * infcmd.c (program_info): Ditto.
2127 * mdebugread.c (parse_partial_symbols): Ditto.
2128 * symfile.c (add_symbol_file_command): Ditto.
2129 * cli/cli-cmds.c (edit_command): Ditto.
2130 (list_command): Ditto.
2131 * infcall.c (call_function_by_hand): Ditto.
2132 * remote-vx.c (vx_run_files_info): Ditto.
2133 (vx_wait): Ditto.
2134 (vx_attach): Ditto.
2135 (vx_detach): Ditto.
2136 (vx_kill): Ditto.
2137 * aix-thread.c (pdc_symbol_addrs): Ditto.
2138 (pdc_read_regs): Ditto.
2139 (pdc_write_regs): Ditto.
2140 (pdc_read_data): Ditto.
2141 (pdc_write_data): Ditto.
2142 * d10v-tdep.c (display_trace): Ditto.
2143 * rs6000-nat.c (find_toc_address): Ditto.
2144 * aix-thread.c: Don't include language.h.
2145 * buildsym.c: Ditto.
2146 * dbxread.c: Ditto.
2147 * mdebugread.c: Ditto.
2148 * rs6000-nat.c: Ditto.
2149 * buildsym.c (make_blockvector): Use renamed hex_string.
2150
33f2d567
JM
21512004-09-10 Jason Molenda (jmolenda@apple.com)
2152
2153 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
2154 chars after 'if' or 'while' commands in user-defined commands.
2155
7b90c3f9
JB
21562004-09-08 Jim Blandy <jimb@redhat.com>
2157
2158 Fix bug reported and analyzed by Olivier Crete:
2159 * symfile.c (copy_section_addr_info): New function.
2160 (symbol_file_add_with_addrs_or_offsets): Use it to save the
2161 original set of address arguments, instead of handwritten code
2162 that uses one length to allocate and a different length to
2163 initialize. Use make_cleanup_free_section_addr_info.
2164 * symfile.h (copy_section_addr_info): New declaration.
2165 * utils.c: #include "symfile.h".
2166 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
2167 New functions.
2168 * defs.h (make_cleanup_free_section_addr_info): New declaration.
2169 * Makefile.in (utils.o): Update dependencies.
2170
b26a6851
AC
21712004-09-08 Andrew Cagney <cagney@gnu.org>
2172
2173 * thread-db.c (keep_thread_db): Delete.
2174 (thread_db_new_objfile, thread_db_create_inferior)
2175 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
2176
be24b061
MK
21772004-09-08 Mark Kettenis <kettenis@gnu.org>
2178
f6792ef4
MK
2179 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
2180 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
2181 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
2182 (i386_frameless_signal_p): Remove prototype.
2183 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
2184 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
2185 I386_SSE_NUM_REGS.
2186 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
2187 instead of FP0_REGNUM.
2188 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
2189 of FP0_REGNUM and FPC_REGNUM.
2190
eeefdaa7
MK
2191 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
2192 (sunos_solib_create_inferior_hook): Don't call
2193 sunos_relocate_main_executable.
2194
be24b061
MK
2195 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
2196 solib_svr4_fetch_link_map_offsets to
2197 svr4_ilp32_fetch_link_map_offsets.
2198 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
2199 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
2200 svr4_ilp32_fetch_link_map_offsets.
2201 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
2202
7c679d16
JB
22032004-09-07 Jim Blandy <jimb@redhat.com>
2204
2205 * frame.h (frame_register): Doc fix.
2206
1f04aa62
AC
22072004-09-07 Andrew Cagney <cagney@gnu.org>
2208
2209 * vx-share/wait.h: Delete #ifdef USG.
2210 * utils.c (request_quit): Ditto.
2211 * tui/tui.c (tui_reset): Ditto.
2212 * remote.c: Ditto.
2213 * remote-sds.c: Ditto.
2214 * remote-rdi.c: Ditto.
2215 * mdebugread.c: Ditto.
2216 * m68klinux-nat.c: Ditto.
2217 * infttrace.c: Ditto.
2218 * infptrace.c: Ditto.
2219 * i386v-nat.c: Ditto.
2220 * exec.c: Ditto.
2221 * dbxread.c: Ditto.
2222 * core-aout.c: Ditto.
2223
90edbfbc
JB
22242004-09-05 Joel Brobecker <brobecker@gnat.com>
2225
2226 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
2227 heuristic_proc_desc.
2228 (mips_insn32_frame_cache): Likewise.
2229
01f4bf2b
JB
22302004-09-04 Joel Brobecker <brobecker@gnat.com>
2231
2232 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
2233 left behind by error.
2234
8511a048
JB
22352004-09-04 Joel Brobecker <brobecker@gnat.com>
2236
2237 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
2238 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
2239
649dfe9f
JB
22402004-09-04 Joel Brobecker <brobecker@gnat.com>
2241
2242 * config/rs6000/xm-aix4.h: Remove this file.
2243 * config/rs6000/aix4.mh (XM_FILE): Delete.
2244
6e50f889
JB
22452004-09-04 Joel Brobecker <brobecker@gnat.com>
2246
2247 * config/rs6000/xm-rs6000.h: Remove this file.
2248 * config/rs6000/rs6000.mh (XM_FILE): Remove.
2249
b8c4aece
AC
22502004-09-03 Andrew Cagney <cagney@gnu.org>
2251
fb603883
AC
2252 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
2253 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
2254 only use.
2255
c9343fd1
AC
2256 * mips-tdep.c (temp_saved_regs): Delete.
2257 (set_reg_offset): Replace saved_regs parameter with this_cache.
2258 (heuristic_proc_desc, mips16_heuristic_proc_desc)
2259 (mips32_heuristic_proc_desc): Add this_cache parameter.
2260 (mips_insn32_frame_cache, mips_insn16_frame_cache)
2261 (after_prologue): Pass a NULL this_cache.
2262
9733cfe1
AC
2263 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
2264 non-kernel trap prologues.
2265
0d5febcc
AC
2266 * mips-tdep.c (find_proc_desc): Delete function.
2267 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
2268 simplify.
2269 (mips_insn16_frame_cache): Replace find_proc_desc with code from
2270 mips_insn32_frame_cache.
2271
9733cfe1 2272 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
283be873
AC
2273 Simplify as NEXT_FRAME is NULL.
2274 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
2275
177f84a3
AC
2276 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
2277 local variable.
2278 (mips_skip_prologue): Update.
2279
465f7520
AC
2280 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
2281 "cur_frame" parameter.
177f84a3
AC
2282 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
2283 (mips_insn32_frame_cache, find_proc_desc): Update
465f7520 2284
e38b8658
AC
2285 * config/vax/nm-obsd.h: Delete file.
2286 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2287 * config/vax/nm-nbsd.h: Delete file.
2288 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
2289 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2290 * config/sh/nm-nbsd.h: Delete file.
2291 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2292 * config/rs6000/nm-rs6000ly.h: Delete file.
2293 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
2294 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2295 * config/powerpc/nm-obsd.h: Delete file.
2296 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2297 * config/powerpc/nm-nbsd.h: Delete file.
2298 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2299 * config/pa/nm-obsd.h: Delete file.
2300 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2301 * config/mips/nm-nbsd.h: Delete file.
2302 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2303 * config/m88k/nm-obsd.h: Delete file.
2304 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2305 * config/m68k/nm-nbsd.h: Delete file.
2306 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
2307 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2308 * config/i386/nm-nbsd.h: Delete file.
2309 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
2310 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2311 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2312 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2313 * config/i386/nm-i386lynx.h: Delete file.
2314 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2315 * config/arm/nm-nbsd.h: Delete file.
2316 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
2317 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2318
be1ed680
AC
2319 * config/i386/tm-fbsd.h: Delete file.
2320 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
2321 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
2322
4b392b26
AC
2323 * config/rs6000/tm-rs6000-aix4.h: Delete file.
2324 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
2325 * config/rs6000/aix4.mt (TM_FILE): Set to
2326 config/rs6000/tm-rs6000.h.
2327 * config/powerpc/tm-ppc-aix.h: Delete file.
2328 * config/powerpc/aix.mt (TM_FILE): Set to
2329 config/rs6000/tm-rs6000.h.
2330 * config/m68k/tm-linux.h: Delete file.
2331 * config/m68k/linux.mt (TM_FILE): Set to solib.h
2332 * config/i386/tm-linux64.h: Delete file.
2333 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
2334 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
2335
f3219c75
AC
2336 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
2337 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
2338 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
2339 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
2340 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
2341 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
2342 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
2343 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
2344 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
2345
b8c4aece
AC
2346 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
2347 gdb_host_cpu.
2348
8ac2e020
JB
23492004-09-02 Joel Brobecker <brobecker@gnat.com>
2350
2351 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
2352 Minor reformatting. Some code factoring.
2353
c185a355
AC
23542004-09-02 Andrew Cagney <cagney@gnu.org>
2355
63f22f0d
AC
2356 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
2357 * config/vax/tm-nbsd.h: Delete file.
2358 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
2359 * config/sparc/tm-vxworks.h: Delete file.
2360 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
2361 * config/sparc/tm-nbsd.h: Delete file.
2362 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
2363 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
2364 * config/sparc/tm-linux.h: Delete file.
2365 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
2366 * config/s390/tm-linux.h: Delete file.
2367 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
2368 * config/pa/tm-bsd.h: Delete file.
2369 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
2370 * config/m68k/tm-obsd.h: Delete file.
2371 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
2372 * config/m68k/tm-nbsd.h: Delete file.
2373 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
2374 * config/i386/tm-vxworks.h: Delete file.
2375 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
2376 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
2377 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
2378 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
2379 * config/i386/tm-nbsd.h: Delete file.
2380 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
2381 * config/i386/tm-i386lynx.h: Delete file.
2382 * config/cris/cris.mt (TM_FILE): Set to solib.h.
2383 * config/cris/tm-cris.h: Delete file.
2384
0f475e27
AC
2385 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
2386 * configure: Re-generate.
2387 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
2388 * config/arm/tm-nbsd.h: Delete file.
2389
458ed000
AC
2390 * config/powerpc/tm-ppcle-sim.h: Delete.
2391 * config/powerpc/tm-ppcle-eabi.h: Delete.
2392 * config/powerpc/tm-nbsd.h: Delete.
2393 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
2394 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
2395 tm-ppcle-eabi.h.
2396
f14375f3
AC
2397 * config/i386/nto.mh (NAT_FILE): Delete.
2398 * config/i386/nm-nto.h: Delete.
2399
c34d127c
AC
2400 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
2401 * config/m68k/tm-os68k.h: Ditto.
2402 * config/m68k/tm-monitor.h: Ditto.
2403 * config/m68k/tm-cisco.h: Ditto.
2404 * config/m68k/st2000.mt (TM_FILE): Delete.
2405 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
2406 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
2407 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
2408 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
2409
f7f0fe03
AC
2410 * config/m68k/tm-st2000.h: Delete.
2411 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
2412 * config/sparc/fbsd.mt (TM_FILE): Delete.
2413 * config/sparc/tm-fbsd.h: Delete.
2414
a2558533
AC
2415 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
2416 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
2417 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
2418
b78960be
AC
2419 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
2420 GDB_TM_FILE and GDB_XM_FILE.
2421 * gdbarch.c: Re-generate.
2422 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
2423 quotes in macro definition.
2424 * configure.in: Re-generate.
2425
4d60522e
AC
2426 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
2427 validating architecture methods.
2428 * gdbarch.c: Re-generate.
2429
5010d38b
AC
2430 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
2431 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
2432 GDB_MULTI_ARCH_PARTIAL.
2433 * gdbarch.h: Re-generate.
2434
c185a355
AC
2435 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
2436 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
2437 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
2438 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
2439 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
2440 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
2441 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
2442 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
2443 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
2444 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
2445 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
2446 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
2447
14aaa6ab
AC
24482004-09-01 Andrew Cagney <cagney@gnu.org>
2449
2450 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
2451 and main_func_highpc.
2452 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
2453 * objfiles.c (init_entry_point_info, objfile_relocate): Update
2454 * nlmread.c (nlm_symfile_read): Update.
2455
a343eb3c
JB
24562004-09-01 Joel Brobecker <brobecker@gnat.com>
2457
2458 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
2459 (mips_insn32_frame_cache): Inline call to find_proc_desc.
2460 (find_proc_desc): Remove dead code.
2461
4fbbbd07
JB
24622004-09-01 Joel Brobecker <brobecker@gnat.com>
2463
2464 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
2465
84acb35a
JJ
24662004-09-01 Jeff Johnston <jjohnstn@redhat.com>
2467
2468 * observer.sh: Add struct so_list declaration.
2469 * Makefile.in: Add dependencies on observer.h for solib.c and
2470 breakpoint.c.
2471 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
2472 function.
2473 (_initialize_breakpoint): Register
2474 disable_breakpoints_in_unloaded_shlib as an observer of the
2475 "solib unloaded" observation event.
2476 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
2477 call decode_line_1 so unfound breakpoint errors are silent.
2478 * solib.c (update_solib_list): When a solib is discovered to have
2479 been unloaded by the program, notify all observers of the
2480 "solib unloaded" observation event.
2481
c8cd9f6c
AC
24822004-09-01 Andrew Cagney <cagney@gnu.org>
2483
2484 * frame.c: Include "objfiles.h".
2485 (inside_main_func): New function.
2486 (get_prev_frame): Use new inside_main_func.
2487 * Makefile.in (frame.o): Update dependencies.
2488 * defs.h (inside_main_func): Delete declaration.
2489 * blockframe.c (inside_main_func): Delete function.
2490
1168df01
JB
24912004-08-31 Jim Blandy <jimb@redhat.com>
2492
2493 * dwarf2read.c (is_vtable_name): New function, based on logic from
2494 read_structure_type, but passing the correct length to strncmp,
2495 and using 'sizeof' instead of 'strlen'.
2496 (read_structure_type): Call it.
2497
f14f9744
JB
24982004-08-31 Joel Brobecker <brobecker@gnat.com>
2499
2500 * config/powerpc/aix.mh: Add comment.
2501
386d4518
PG
25022004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
2503
2504 * MAINTAINERS: Add self to Write-After-Approval.
2505
7d97d5e2
MI
25062004-08-30 Manoj Iyer <manjo@austin.ibm.com>
2507
2508 * MAINTAINERS: Add self to Write-After-Approval.
2509
68f53502
AC
25102004-08-30 Andrew Cagney <cagney@gnu.org>
2511
2512 Fix PR breakpoints/1757.
2513 * infrun.c (struct execution_control_state): Replace
2514 remove_breakpoints_on_following_step with
2515 step_after_step_resume_breakpoint.
2516 (init_execution_control_state): Update.
2517 (handle_inferior_event): For signals, when stepping off a
2518 breakpoint, set step_after_step_resume_breakpoint. When
2519 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
2520 (keep_going): Delete code handling
2521 remove_breakpoints_on_following_step.
2522
7ca2d3a3
DL
25232004-08-29 David Lecomber <david@streamline-computing.com>
2524
2525 Fix PR gdb/648
2526 * language.h (enum array_ordering): New enum.
2527 * language.h (struct language_defn): New la_array_ordering
2528 attribute.
2529 * language.c (unknown_language_defn, auto_language_defn)
2530 (local_language_defn): Ditto.
2531 * ada-lang.c (ada_language_defn): Ditto.
2532 * c-lang.c (c_language_defn, cplus_language_defn)
2533 (asm_language_defn, minimal_language_defn): Ditto.
2534 * f-lang.c (f_language_defn): Ditto.
2535 * jv-lang.c (java_language_defn): Ditto.
2536 * m2-lang.c (f_language_defn): Ditto.
2537 * objc-lang.c (objc_language_defn): Ditto.
2538 * p-lang.c (pascal_language_defn): Ditto.
2539 * scm-lang.c (scm_language_defn): Ditto.
2540 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
2541 oriented large to small in type structure.
2542 * dwarf2read.c (read_array_order): New function.
2543 (read_array_type): Use read_array_order to check row/column
2544 major ordering.
2545
e354df01
NW
25462004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
2547
2548 * target.c (target_resize_to_sections): Check
2549 current_target.to_sections for an old value when updating.
2550
9185ddce
JB
25512004-08-27 Joel Brobecker <brobecker@gnat.com>
2552
2553 * procfs.c (dbx_link_bpt_addr): New static global variable.
2554 (dbx_link_shadow_contents): New static global variable.
2555 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
2556 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
2557 if we just hit it.
2558 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
2559 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
2560 from run to run.
2561 (procfs_create_inferior): Remove syssgi syscall-exit notifications
2562 after the inferior has been forked.
2563 (remove_dbx_link_breakpoint): New function.
2564 (dbx_link_addr): New function.
2565 (insert_dbx_link_bpt_in_file): New function.
2566 (insert_dbx_link_bpt_in_region): New function.
2567 (insert_dbx_link_breakpoint): New function.
2568 (proc_trace_syscalls_1): New function, extracted from
2569 proc_trace_syscalls.
2570 (proc_trace_syscalls): Replace extract code by call to
2571 proc_trace_syscalls_1.
2572 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
2573 is no longer valid.
2574
e6742ace
JB
25752004-08-25 Jim Blandy <jimb@redhat.com>
2576
2577 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
2578
8fb3e588
AC
25792004-08-25 Andrew Cagney <cagney@gnu.org>
2580
629a41ee
AC
2581 * infrun.c (struct execution_control_state): Delete field
2582 "stepping_through_sigtramp".
2583 (init_execution_control_state): Do not set same.
2584 (context_switch): Do not pass same to save_infrun_state and
2585 load_infrun_state.
2586 * gdbthread.h (struct thread_info): Delete field
2587 stepping_through_sigtramp.
2588 (save_infrun_state, load_infrun_state): Delete parameter
2589 stepping_through_sigtramp.
2590 * thread.c (load_infrun_state, save_infrun_state): Update.
2591
8fb3e588
AC
2592 * infrun.c: Re-indent. Move expression operators to the beginning
2593 of the line. Remove long disabled #if 0 code.
2594
49c54768
AC
25952004-08-24 Andrew Cagney <cagney@gnu.org>
2596
2597 * doublest.h (floatformat_ieee_quad): Rename
2598 floatformat_ia64_quad.
2599 * doublest.c (floatformat_ieee_quad): Rename
2600 floatformat_ia64_quad.
2601 (_initialize_doublest): Update.
2602
5ca2e327
JB
26032004-08-24 Jim Blandy <jimb@redhat.com>
2604
87808bd6
JB
2605 * dwarf2expr.h (struct dwarf_expr_context): New members
2606 'num_pieces' and 'pieces', for returning the result of an
2607 expression that uses DW_OP_piece.
2608 (struct dwarf_expr_piece): New struct type.
2609 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
2610 pieces.
2611 (free_dwarf_expr_context): Free pieces, if any.
2612 (add_piece): New function.
2613 (execute_stack_op): Implement DW_OP_piece.
2614 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
2615 expression is a list of pieces, print an error message.
2616 (dwarf2_loc_desc_needs_frame): If the expression yields
2617 pieces, and any piece is in a register, then we need a frame.
2618
5ca2e327
JB
2619 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
2620 the stack until we've decided what sort of result the evaluation
2621 has produced. Use separate variables, with more specific names.
2622
2afeb6b8
RE
26232004-08-23 Richard Earnshaw <rearnsha@arm.com>
2624
2625 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
2626 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
2627 (arm_netbsd_init_abi_common): Register them.
2628
5885ab49
MK
26292004-08-22 Mark Kettenis <kettenis@gnu.org>
2630
fda820a6
MK
2631 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
2632
1c5bf419
MK
2633 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
2634 safe_frame_unwind_memory instead of target_read_memory.
2635
8cbba7c8
MK
2636 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
2637 Reorder includes.
2638 (fetch_register, store_register): Remove prototypes.
2639 (child_resume): Reorganize code and comments such that it is
2640 grouped a bit more logically.
2641 (attach): Explicitly compare errno against 0.
2642 (detach): Likewise. Use perror_with_name instead of
2643 print_sys_errmsg.
2644 * Makefile.in (infptrace.o): Update dependencies.
2645
c5fa4245
MK
2646 * ia64-linux-nat.c: Update copyright year.
2647 (fetch_debug_register, store_debug_register)
2648 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
2649 PTRACE_TYPE_ARG3.
2650 * config/ia64/nm-linux.h: Update copyright year.
2651 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
2652
387c058c
MK
2653 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
2654 from CORE_ADDR to struct frame_info *. Use
2655 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
2656 (amd64_linux_sigtramp_p): Adjust for changed signature of
2657 and64_linux_sigtramp_start
2658
277215a6
MK
2659 * gdb_ptrace.h: GNU/Linux.
2660
25f6178e
MK
2661 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
2662 Remove defines.
2663
652fc137
MK
2664 * infptrace.c: Include "gdb_assert.h".
2665 (PTRACE_XFER_TYPE): Remove define.
2666 (offsetof): Only define if U_REGS_OFFSET isn't defined.
2667 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
2668 Tweak comment.
2669 (fetch_inferior_registers, store_inferior_registers): Remove
2670 redundant culry braces. Tweak comment. s/regno/regnum.
2671 * Makefile.in (infptrace.o): Update dependencies.
2672
5885ab49
MK
2673 * configure.in: Change test for return type of ptrace to default
2674 to `long' instead of `int'.
2675 * configure: Regenerate.
2676
11003ae3
MK
26772004-08-21 Mark Kettenis <kettenis@gnu.org>
2678
6b95110c
MK
2679 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
2680
bcb3dc3d
MK
2681 * configure.in: Check for ttrace function.
2682 * configure, config.in: Regenerate.
2683
11003ae3
MK
2684 * gdb_ptrace.h: New file.
2685 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
2686 <sys/ptrace.h>.
2687 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
2688 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
2689 (attach): Don't define PT_ATTACH.
2690 (detach): Don't define PT_DETACH.
2691 * Makefile.in (gdb_ptrace_h): New variable.
2692 (infptrace.o): Update dependencies.
2693
f8707cac
MK
26942004-08-16 Mark Kettenis <kettenis@gnu.org>
2695
2696 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
2697 instead of `int' if not already defined.
2698 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
2699 PTRACE_TYPE_ARG3.
2700 * infptrace.c (call_ptrace): Revert change that replaced
2701 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2702
655c5466
MK
27032004-08-15 Mark Kettenis <kettenis@gnu.org>
2704
156e5ba7
MK
2705 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
2706 Remove defines.
2707
de9a9e51
MK
2708 * linux-nat.c (kill_inferior): Add missing third and fourth
2709 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
2710
88800403
MK
2711 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
2712 PTRACE_TYPE_RET.
2713
849a1d7c
MK
2714 * proc-why.c (proc_prettyfprint_why): Fix format string.
2715
61ad16d1
MK
2716 * solib-osf.c (osf_current_sos): Remove unsused label.
2717
a6ed5501
MK
2718 * configure.in: Add <ncurses/ncurses.h> to the list of possible
2719 curses headers.
2720 * configure, config.in: Regenerate.
2721 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
2722 <ncurses/ncurses.h>.
2723
016ddeca
MK
2724 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
2725 * config/nm-nbsd.h: Update copyright year.
2726 (PTRACE_ARG3_TYPE): Remove define.
2727
49ec097f
MK
2728 * sparc-nat.c (fetch_inferior_registers)
2729 (store_inferior_registers, sparc_xfer_wcookie):
2730 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2731
9f8e0089
MK
2732 * alphabsd-nat.c (fetch_inferior_registers):
2733 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2734 PTRACE_TYPE_ARG3.
2735 * amd64bsd-nat.c (fetch_inferior_registers)
2736 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2737 PTRACE_TYPE_ARG3.
2738 * armnbsd-nat.c: Update copyright year.
2739 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
2740 (store_register, store_regs, store_fp_register, store_fp_regs):
2741 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2742 * hppabsd-nat.c (fetch_inferior_registers)
2743 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2744 PTRACE_TYPE_ARG3.
2745 * i386bsd-nat.c (fetch_inferior_registers)
2746 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
2747 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2748 * m68kbsd-nat.c (fetch_inferior_registers)
2749 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2750 PTRACE_TYPE_ARG3.
2751 * m88kbsd-nat.c (fetch_inferior_registers)
2752 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2753 PTRACE_TYPE_ARG3.
2754 * mipsnbsd-nat.c: Update copyright year.
2755 (fetch_inferior_registers, store_inferior_registers):
2756 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2757 * ns32knbsd-nat.c: Update copyright year.
2758 (fetch_inferior_registers, store_inferior_registers):
2759 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2760 * ppcnbsd-nat.c (fetch_inferior_registers):
2761 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2762 PTRACE_TYPE_ARG3.
2763 * ppcobsd-nat.c (fetch_inferior_registers):
2764 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2765 PTRACE_TYPE_ARG3.
2766 * shnbsd-nat.c: Update copyright year.
2767 (fetch_inferior_registers, store_inferior_registers):
2768 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2769 * vaxbsd-nat.c (fetch_inferior_registers)
2770 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2771 PTRACE_TYPE_ARG3.
2772
655c5466
MK
2773 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
2774 PTRACE_TYPE_ARG3.
2775 * infptrace.c (call_ptrace, child_resume, attach, detach)
2776 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
2777 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2778 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
2779 PTRACE_TYPE_ARG3.
2780
c40d0d10
MK
27812004-08-14 Mark Kettenis <kettenis@gnu.org>
2782
5cb0ff31
MK
2783 * defs.h: Remove out-of-date comment.
2784 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
2785 [!GETENV_PROVIDED] (getenv): Remove prototype.
2786
5f0f34cb
MK
2787 * standalone.c: Remove file.
2788 * Makefile.in (standalone.o): Remove dependency.
2789
7532965f
MK
2790 * i386-linux-nat.c (dummy_sse_values): Remove function and
2791 prototype.
2792 (i386_linux_dr_get): Fix typo in comment.
2793 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
2794
1bdc6c53
MK
2795 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
2796
c40d0d10
MK
2797 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
2798 from declaration.
2799 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
2800 from definition.
2801
64218d3e
MK
28022004-08-13 Mark Kettenis <kettenis@gnu.org>
2803
2804 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
2805 parenthesis in definition.
2806 * configure: Regenerated.
2807
926c94e7
MC
28082004-08-12 Michael Chastain <mec.gnu@mindspring.com>
2809
2810 * PROBLEMS: Mention build/1411.
2811
69489883
NN
28122004-08-09 Robert Millan <robertmh@gnu.org>
2813
2814 Committed by Nathanael Nerode.
2815 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
2816 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
2817
ebb7c577
AC
28182004-08-12 Andrew Cagney <cagney@gnu.org>
2819
2820 * NEWS: Mention fixes in GDB 6.2.1.
2821 * PROBLEMS: Remove mention of mips-irix.
2822
232d697c
JB
28232004-08-11 Joel Brobecker <brobecker@gnat.com>
2824
2825 * config/powerpc/xm-aix.h: Delete.
2826 * config/powerpc/aix.mh (MH_FILE): Remove.
2827 * config/powerpc/aix432.mh (MH_FILE): Remove.
2828
72f4e82b
JB
28292004-08-11 Joel Brobecker <brobecker@gnat.com>
2830
2831 * config/powerpc/aix.mh: Remove obsolete comment.
2832 * config/powerpc/aix432.mh: Likewise.
2833
0687ccb2
JB
28342004-08-11 Joel Brobecker <brobecker@gnat.com>
2835
2836 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
2837
dbf3ada7
JB
28382004-08-11 Joel Brobecker <brobecker@gnat.com>
2839
e08e1886
JB
2840 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
2841 this file is now empty.
2842 * config/xm-aix4.h: Remove, this file is no longer included
2843 anywhere.
2844
28452004-08-11 Joel Brobecker <brobecker@gnat.com>
2846
2847 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
2848 that file is now empty.
dbf3ada7
JB
2849 (termdef): Remove prototype, function no longer used.
2850
4c525ef6
JB
28512004-08-11 Joel Brobecker <brobecker@gnat.com>
2852
2853 * doc/gdbint.texinfo (Host Definition): Remove documentation
2854 for USE_O_NOCTTY, no longer used.
2855 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
2856 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
2857
82e0b968
JB
28582004-08-11 Joel Brobecker <brobecker@gnat.com>
2859
2860 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
2861 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
2862 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
2863
f2acbe1c
MK
28642004-08-11 Mark Kettenis <kettenis@gnu.org>
2865
daa98270
MK
2866 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
2867 instead of FIVE_ARG_PTRACE.
2868
f2acbe1c
MK
2869 * inflow.c (O_NOCTTY): Define to zero if not already defined.
2870 (new_tty): Use O_NOCTTY unconditionally.
2871
cc377e6b
MK
28722004-08-10 Mark Kettenis <kettenis@gnu.org>
2873
2874 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
2875 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
2876 fflush on stdout.
2877
3bcc18fa
JB
28782004-08-10 Joel Brobecker <brobecker@gnat.com>
2879
2880 * xcoff_symfile_finish: Replace last call to xmfree by call
2881 to xfree.
2882
7936743b
AC
28832004-08-10 Andrew Cagney <cagney@gnu.org>
2884
cc503c8a
AC
2885 * main.c (captured_main): Delete call to init_malloc.
2886 * defs.h (init_malloc): Delete declaration.
2887 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
2888 (init_malloc): Delete functions.
2889
2dc74dc1
AC
2890 * defs.h (xmfree): Delete.
2891 * utils.c (xmfree): Delete function.
2892 (xfree): Inline calls to xmfree and mfree.
2893 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
2894 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
2895 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
2896 * somread.c (som_symfile_finish): Ditto.
2897 * objfiles.c (allocate_objfile, free_objfile):
2898 * nlmread.c (nlm_symfile_finish): Ditto.
2899 * hpread.c (hpread_symfile_finish): Ditto.
2900 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
2901 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
2902 * coffread.c (coff_symfile_finish): Ditto.
2903
aa2ee5f6
AC
2904 * defs.h (xmcalloc): Delete declaration.
2905 * utils.c (xmcalloc): Delete.
2906 (xcalloc): Inline calls to xmcalloc and mcalloc.
2907 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
2908 xcalloc and xfree.
2909 * symtab.c (create_demangled_names_hash): Ditto.
2910
0efffb96
AC
2911 * defs.h (xmrealloc): Delete.
2912 * utils.c (xmrealloc): Delete.
2913 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
2914 * symmisc.c (extend_psymbol_list): Use xrealloc.
2915 * source.c (find_source_lines): Ditto.
2916 * hpread.c (hpread_lookup_type): Ditto.
2917 * dbxread.c (add_bincl_to_list): Ditto.
2918
7936743b
AC
2919 * utils.c (xmmalloc): Delete.
2920 (xmalloc): Inline xmmalloc and mmalloc calls.
2921 (msavestring): Use xmalloc.
2922 * defs.h (xmmalloc): Delete declaration.
2923 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
2924 xmmalloc.
2925 * symmisc.c (extend_psymbol_list): Ditto.
2926 * symfile.c (init_psymbol_list): Ditto.
2927 * source.c (find_source_lines): Ditto.
2928 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
2929 * elfread.c (elf_symtab_read): Ditto.
2930 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
2931 * coffread.c (coff_symfile_init): Ditto.
2932
252ab814
DC
29332004-08-10 David Carlton <carlton@bactrian.org>
2934
2935 * MAINTAINERS: Remove David Carlton from c++ testsuite
2936 maintainers.
2937
8f5ba92b
JG
29382004-08-10 Jerome Guitton <guitton@gnat.com>
2939
2940 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
2941 print a line feed before the prompt.
2942
21749010
MK
29432004-08-10 Mark Kettenis <kettenis@gnu.org>
2944
2945 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
2946
1f011ce2
JB
29472004-08-09 Joel Brobecker <brobecker@gnat.com>
2948
2949 General cleanup of the AIX xm include file:
2950 * config/xm-aix4.h (fd_set): Remove undefine.
2951 Remove include of <sys/select.h>.
2952 (HAVE_TERMIO): Remove define.
2953 (USG): Likewise.
2954 (NULL): Remove redefine.
2955 (alloca): Remove #pragma.
2956 (vfork): Remove define.
2957 (termdef): Remove.
2958 (SIGWINCH_HANDLER): Remove.
2959 (SIGWINCH_HANDLER_BODY): Remove.
2960
cf4e7692
MK
29612004-08-09 Mark Kettenis <kettenis@gnu.org>
2962
2963 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
2964 GDB_OSABI_OPENBSD_ELF.
2965
ac5754fa
MK
29662004-08-07 Robert Millan <robertmh@gnu.org>
2967
2968 * bsd-kvm.c: Check for nlist.h before including it.
2969
086ec9eb
MK
29702004-08-09 Mark Kettenis <kettenis@gnu.org>
2971
bbe06c74
MK
2972 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
2973 sigcontext' offset consistency checks for ancient BSD.
2974
3aa7b3b3
MK
2975 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
2976
086ec9eb
MK
2977 * configure.in: Check for <sys/types.h>. Check return and
2978 argument types of ptrace.
2979 * configure, config.in: Regenerate.
2980
09991fa0
JB
29812004-08-09 Jim Blandy <jimb@redhat.com>
2982
2983 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
2984 rs6000_register_sim_regno): Doc fixes.
2985
fed7ba43
JB
29862004-08-08 Joel Brobecker <brobecker@gnat.com>
2987
2988 * mips-tdep.c: Include "floatformat.h".
2989 (n32n64_floatformat_always_valid): New function.
2990 (floatformat_n32n64_long_double_big): New constant.
2991 (mips_gdbarch_init): Set size and format of long double
2992 for N32 and N64 ABIs.
2993 * Makefile.in (mips-tdep.o): Update dependencies.
2994
456fcf94
AC
29952004-08-08 Andrew Cagney <cagney@gnu.org>
2996
2f9b146e
AC
2997 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
2998 print. Improve script's error messages.
2999 * gdbarch.h: Re-generate.
3000
456fcf94
AC
3001 * gdbarch.sh (pformat): New function.
3002 (float_format, double_format, long_double_format): List with bit
3003 members. Use pformat when printing.
3004 * gdbarch.c, gdbarch.h: Re-generate.
3005
69e9e646
NW
30062004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
3007
3008 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
3009 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
3010 (ppcnbsd_supply_pcb): New function.
3011 (_initialize_ppcnbsd_nat): New prototype and function.
3012 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
3013 (LOADLIBES): New variable.
3014 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
3015
5ef2d0aa
AC
30162004-08-08 Andrew Cagney <cagney@gnu.org>
3017
3018 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
3019 (builtin_type_ieee_double, builtin_type_ia64_quad)
3020 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
3021 BE/LE floating-point types.
3022 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
3023 (builtin_type_ieee_double, builtin_type_ia64_quad)
3024 (builtin_type_ia64_spill): Declare.
3025 * doublest.c (_initialize_doublest, floatformat_ieee_single)
3026 (floatformat_ieee_double, floatformat_arm_ext)
3027 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
3028 of LE/BE floatformats.
3029 * doublest.h: (struct floatformat, floatformat_ieee_single)
3030 (floatformat_ieee_double, floatformat_arm_ext)
3031 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
3032
5c7f2947
MK
30332004-08-08 Mark Kettenis <kettenis@gnu.org>
3034
ecac404d
MK
3035 * i386gnu-nat.c (gnu_store_registers): Fix typo.
3036
9b8607ce
MK
3037 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
3038 instead of regcache_raw_supply when storing the registers.
3039
f6052080
MK
3040 * i386gnu-nat.c: Update copyright year.
3041 (gnu_store_registers): Don't use deprecated_registers and
3042 deprecated_registers_valid. Use regcache_valid_p and
3043 regcache_raw_supply instead.
3044
17777823
MK
3045 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
3046 frame_pc_unwind.
3047
5240ceac
MK
3048 * procfs.c (procfs_pid_to_str): Remove redundant and unused
3049 variables. Incapitalized "process".
3050
5c7f2947
MK
3051 * configure.in: Add cursesX to the list of possible curses libs.
3052 Add cursesX.h to the list of possible curses headers.
3053 * configure, config.in: Regenerate.
3054
da7d81e3
NW
30552004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3056
3057 * configure.in: Test for struct lwp in <sys/lwp.h>.
3058 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
3059 the offset of l_addr in struct lwp.
3060
7f245d65
NW
30612004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3062
3063 * bsd-kvm.c: Include "gdbcore.h"
3064 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
3065
47b3f456
AC
30662004-08-07 Andrew Cagney <cagney@gnu.org>
3067
70bd8e24
AC
3068 * gdbtypes.c (build_flt, build_complex): New functions.
3069 (gdbtypes_post_init): Use.
3070
9b0dea39
AC
3071 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
3072
5cf7abac
AC
3073 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
3074 through to builtin_type_uint128.
3075
64d2b26d
AC
3076 * c-exp.y: Use builtin_type function to obtain builtin types.
3077
7ad6570d
AC
3078 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
3079 builtin_uint128.
3080 * gdbtypes.c (gdbtypes_post_init): Update.
3081 (build_gdbtypes): Move initialization of builtin_type_int0
3082 through to builtin_type_uint128 from here ...
3083 (_initialize_gdbtypes): ... to here.
3084 * d10v-tdep.c (d10v_register_type): Update.
3085
47b3f456
AC
3086 * doublest.c: Update copyright.
3087 (floatformat_from_length): Call error when floatformat is NULL.
3088 (extract_floating_by_length): Remove NULL fmt check.
3089 (store_floating_by_length): Ditto.
3090
0a8146bf
AC
30912004-08-07 Andrew Cagney <cagney@gnu.org>
3092
3093 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
3094 that the register is valid.
3095
c0ccb908
MK
30962004-08-05 Mark Kettenis <kettenis@chello.nl>
3097
8e6bed05
MK
3098 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3099 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
3100 struct frame_info *. Use safe_frame_unwind_memory instead of
3101 deprecated_read_memory_nobpt.
3102 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
3103 changed signature of i386_linux_sigtramp_start and
3104 i386_linux_rt_sigtramp_start.
3105
24f9f5e3
MK
3106 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
3107 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
3108 instead of deprecated_read_memory_nobpt.
3109 (i386nbsd_sigtramp_p): Adjust for changed signature of
3110 i386nbsd_sigtramp_offset.
3111
c822af0c
MK
3112 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
3113 safe_frame_unwind_memory instead of target_read_memory.
3114
c0ccb908
MK
3115 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3116 !NO_SYS_FILE.
3117 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
3118 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
3119 (_initialize_kernel_u_addr): Remove prototype and function.
3120 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3121 !NO_SYS_FILE.
3122 * xcoffread.c: Likewise.
3123
b9e1c0d6
MK
31242004-08-06 Mark Kettenis <kettenis@gnu.org>
3125
3126 * vax-nat.c: New file.
3127 * vaxbsd-nat.c: Tweak comment.
3128 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
3129 vaxnbsd-tdep.c.
3130 (vax-nat.o): New dependency.
3131 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
3132 (vax-*-ultrix2*): Remove.
3133 * config/vax/vax.mh: New file.
3134 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
3135 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
3136 (vax_register_u_addr): New prototype.
3137 (REGISTER_U_ADDR): Define using vax_register_u_addr.
3138 * config/vax/vaxult2.mh: Remove file.
3139 * config/vax/vaxult.mh: Remove file.
3140 * config/vax/vaxbsd.mh: Remove file.
3141 * config/vax/vax.mt (TM_FILE): Remove.
3142 * config/vax/tm-vaxbsd.h: Remove file.
3143
9ad7bec7
JB
31442004-08-06 Joel Brobecker <brobecker@gnat.com>
3145
3146 * aix-thread.c (get_signaled_thread): New function.
3147 (iter_trap): Delete, no longer used.
3148 (iter_tid): New function.
3149 (pd_update): Find the thread that received the SIGTRAP signal
3150 by first locating the kernel thread, and then finding its
3151 associated thread.
3152
bf0d233d
UW
31532004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
3154
3155 * lin-lwp.c (child_wait): Continue inferior after processing
3156 PTRACE_EVENT_CLONE event.
3157
d0f853e1
NN
31582004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
3159
3160 * MAINTAINERS: Add self to Write-After-Approval.
3161
ab14aeb0
JJ
31622004-08-05 Jeff Johnston <jjohnstn@redhat.com>
3163
3164 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
3165 libunwind-xxxx.so" where xxxx is UNW_TARGET.
3166
9c8dbfa9
AC
31672004-08-05 Andrew Cagney <cagney@gnu.org>
3168
c8f3ca46
AC
3169 * config/xm-sysv4.h: Delete file.
3170 * config/mips/xm-irix5.h: Delete file.
3171 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
3172 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
3173 * config/ia64/xm-aix.h: Delete file.
3174 * config/ia64/aix.mh (XM_FILE): Delete.
3175 * config/pa/xm-hppah.h: Delete file.
3176 * config/pa/hpux11w.mh (XM_FILE): Delete.
3177 * config/pa/hpux11.mh (XM_FILE): Delete.
3178 * config/pa/hpux1020.mh (XM_FILE): Delete.
3179 * config/pa/hppahpux.mh (XM_FILE): Delete.
3180
5f7daaff
AC
3181 * config/alpha/xm-alphalinux.h: Delete file.
3182 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
3183 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
3184 * config/alpha/xm-alphaosf.h: Delete file.
3185 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
3186 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
3187 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
3188 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
3189
69babf95
AC
3190 * config/i386/xm-i386v.h: Delete file.
3191 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
3192 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
3193 * config/i386/xm-i386sco.h: Delete file.
3194 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
3195 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
3196 * config/i386/xm-i386v4.h: Delete file.
3197 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
3198 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
3199 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
3200 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
3201
6f009c8a
AC
3202 * config/vax/xm-vax.h: Delete file.
3203 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
3204 * config/vax/xm-vaxult2.h: Delete file.
3205 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
3206 * config/vax/vaxult2.mh (XM_FILE): Delete.
3207 * config/vax/xm-vaxult.h: Delete file.
3208 * config/vax/vaxult.mh (XM_FILE): Delete.
3209 * config/vax/xm-vaxbsd.h: Delete file.
3210 * config/vax/vaxbsd.mh (XM_FILE): Delete.
3211
9c8dbfa9
AC
3212 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
3213 * gdbarch.h, gdbarch.c: Re-generate.
3214 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
3215 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
3216 * frame.h: Delete deprecated_read_fp from comments.
3217 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
3218 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
3219
84367a3e
MK
32202004-08-04 Mark Kettenis <kettenis@gnu.org>
3221
9c8e3411
MK
3222 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
3223 trampoline in OpenBSD 3.5-current.
3224
b87bc0d8
MK
3225 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
3226 SSE registers.
3227
84367a3e
MK
3228 * Makefile.in: Remove embedded page breaks.
3229
a44bddec
JB
32302004-08-04 Jim Blandy <jimb@redhat.com>
3231
7ab3286f
JB
3232 * regcache.c (regcache_raw_read): Assert that, after calling
3233 target_fetch_registers, the register we're reading is cached.
3234
a44bddec
JB
3235 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
3236 a call to 'internal_error', with a more helpful error message.
3237 * rs6000-tdep.c (e500_pseudo_register_read,
870d65d5 3238 e500_pseudo_register_write, rs6000_store_return_value): Same.
a44bddec 3239
35124113
AC
32402004-08-04 Andrew Cagney <cagney@gnu.org>
3241
3242 * Makefile.in: Update dependencies.
3243
9f643768
JB
32442004-08-04 Jim Blandy <jimb@redhat.com>
3245
6ced10dd
JB
3246 Change the layout of the PowerPC E500 raw register cache to allow
3247 the lower 32-bit halves of the GPRS to be their own raw registers,
3248 not pseudoregisters.
3249 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
3250 add ppc_ev0_upper_regnum flag.
3251 * rs6000-tdep.c: #include "reggroups.h".
3252 (spe_register_p): Recognize the ev upper half registers as SPE
3253 registers.
3254 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
3255 registers.
3256 (e500_move_ev_register): New function.
3257 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
3258 vector registers are the pseudo-registers now, formed by splicing
3259 together the gprs and the upper-half registers.
3260 (e500_register_reggroup_p): New function.
3261 (P): Macro deleted.
3262 (P8, A4): New macro.
3263 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
3264 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
3265 macros.
3266 (registers_e500): Rearrange register set so that the raw register
3267 set contains 32-bit GPRs and upper-half registers, and the SPE
3268 vector registers become pseudo-registers.
3269 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
3270 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
3271 register numbers are now the same for the E500 as they are for
3272 other PowerPC variants. Register e500_register_reggroup_p as the
3273 register group function for the E500.
3274 * Makefile.in (rs6000-tdep.o): Update dependencies.
3275
3276 Adapt PPC E500 native support to the new raw regcache layout.
3277 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
3278 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
3279 (fetch_spe_register, store_spe_register): Handle fetching/storing
3280 all the SPE registers at once, if regno == -1. These now take
3281 over the job of fetch_spe_registers and store_spe_registers.
3282 (fetch_spe_registers, store_spe_registers): Deleted.
3283 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
3284 unconditionally; they're always raw. Fetch/store SPE upper half
3285 registers, if present, instead of ev registers.
3286 (fetch_register, store_register): Remove sanity checks: gprs are
3287 never pseudo-registers now, so we never need to even mention any
3288 registers that are ever pseudoregisters.
3289
9f643768
JB
3290 Use a fixed register numbering when communicating with the PowerPC
3291 simulator.
3292 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
3293 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
3294 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
3295 New functions.
3296 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
3297 init_sim_regno_table.
3298 * Makefile.in (gdb_sim_ppc_h): New variable.
3299 (rs6000-tdep.o): Update dependencies.
3300
1e2279c8
AC
33012004-08-02 Andrew Cagney <cagney@gnu.org>
3302
1d94326f
AC
3303 * cris-tdep.c (cris_register_size): Restore function, still used
3304 locally.
3305
331ae7ed
AC
3306 * gdbarch.sh (deprecated_target_read_fp)
3307 (deprecated_frame_locals_address, deprecated_frame_args_address)
3308 (deprecated_frame_chain_valid, deprecated_frame_chain)
3309 (deprecated_init_extra_frame_info, deprecated_pop_frame)
3310 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
3311 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
3312 * gdbarch.h, gdbarch.c: Re-generate.
3313 * regcache.c (deprecated_read_fp): Do not call
3314 DEPRECATED_TARGET_READ_FP_P.
3315 * infcmd.c (default_print_registers_info): Do not call
3316 DEPRECATED_DO_REGISTERS_INFO.
3317 * frame-base.c (default_frame_locals_address): Do not call
3318 DEPRECATED_FRAME_LOCALS_ADDRESS.
3319 (default_frame_args_address): Do not call
3320 DEPRECATED_FRAME_ARGS_ADDRESS.
3321
1e2279c8
AC
3322 * gdbarch.sh (deprecated_register_raw_size)
3323 (deprecated_register_virtual_size:int): Delete.
3324 * gdbarch.h, gdbarch.c: Re-generate.
3325 * cris-tdep.c (cris_register_size): Delete.
3326 (cris_gdbarch_init): Update.
3327 * alpha-tdep.c (alpha_register_raw_size)
3328 (alpha_register_virtual_size): Delete.
3329 (alpha_gdbarch_init): Update.
3330
a90c06b4
AC
3331 * gdbarch.sh (deprecated_register_virtual_type)
3332 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
3333 (deprecated_dummy_write_sp): Delete.
3334 * gdbarch.h, gdbarch.c: Re-generate.
3335
f42accbe
AC
3336 * gdbarch.sh (deprecated_register_bytes): Delete.
3337 * gdbarch.h, gdbarch.c: Re-generate.
3338 * regcache.c (deprecated_register_bytes): New function.
3339 * regcache.h (deprecated_register_bytes): Declare.
3340 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3341 * v850-tdep.c (v850_gdbarch_init): Update.
3342 * sh64-tdep.c (sh64_gdbarch_init): Update.
3343 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
3344 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3345 * mcore-tdep.c (mcore_gdbarch_init): Update.
3346 * cris-tdep.c (cris_gdbarch_init): Update.
3347 * arm-tdep.c (arm_gdbarch_init): Update.
3348 * remote.c (init_remote_state): Update.
3349 * remote-vx.c (vx_prepare_to_store): Update.
3350 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
3351 * irix5-nat.c (fetch_core_registers): Update.
3352 * cris-tdep.c (cris_register_bytes_ok): Update.
3353 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
3354
45c9dd44
AC
3355 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
3356 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
3357 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
3358 (mips_insn16_frame_base_address, mips_insn16_frame_base)
3359 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
3360 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
3361 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
3362 (mips_insn32_frame_base_address, mips_insn32_frame_base)
3363 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
3364 with mips_insn16 and mips_insn32.
3365
3acba339
AC
3366 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
3367 * rs6000-tdep.c (rs6000_push_dummy_call)
3368 (rs6000_extract_return_value): Use register_size.
3369 * xstormy16-tdep.c (xstormy16_get_saved_register)
3370 (xstormy16_extract_return_value): Ditto.
3371 * valops.c (value_assign): Ditto.
3372 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
3373 * v850-tdep.c (v850_extract_return_value): Ditto.
3374 * tracepoint.c (collect_symbol): Ditto.
3375 * target.c (debug_print_register): Ditto.
3376 * stack.c (frame_info): Ditto.
3377 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
3378 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
3379 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
3380 (store_register_using_P): Ditto.
3381 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
3382 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
3383 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
3384 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
3385 * regcache.c (deprecated_read_register_bytes)
3386 (deprecated_write_register_bytes, read_register)
3387 (write_register): Ditto.
3388 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
3389 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
3390 * monitor.c (monitor_supply_register, monitor_fetch_register)
3391 (monitor_store_register): Ditto.
3392 * mn10300-tdep.c (mn10300_pop_frame_regular)
3393 (mn10300_print_register): Ditto.
3394 * mipsv4-nat.c (fill_fpregset): Ditto.
3395 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
3396 (mips64_fill_fpregset): Ditto.
3397 * mi/mi-main.c (register_changed_p, get_register)
3398 (mi_cmd_data_write_register_values): Ditto.
3399 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
3400 * irix5-nat.c (fill_gregset, fetch_core_registers):
3401 * infrun.c (write_inferior_status_register): Ditto.
3402 * infptrace.c (fetch_register, store_register): Ditto.
3403 * infcmd.c (default_print_registers_info): Ditto.
3404 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
3405 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
3406 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
3407 * hpux-thread.c (hpux_thread_fetch_registers)
3408 (hpux_thread_store_registers): Ditto.
3409 * hppah-nat.c (store_inferior_registers, fetch_register):
3410 * findvar.c (value_from_register): Ditto.
3411 * dve3900-rom.c (fetch_bitmapped_register):
3412 * cris-tdep.c (cris_gdbarch_init): Ditto.
3413 * alpha-tdep.h: Ditto.
3414 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
3415
01e1877c
AC
3416 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
3417 DEPRECATED_REGISTER_RAW_SIZE from comments.
3418 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
3419 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
3420 DEPRECATED_REGISTER_RAW_SIZE.
3421 * findvar.c (value_of_register): Simplify by assuming that the
3422 registers raw and virtual sizes are identical.
3423 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
3424 comment.
3425 * arch-utils.c (generic_register_size): Simplify by assuming
3426 register_type.
3427
73f458fb
AC
3428 * regcache.c (legacy_read_register_gen, real_register)
3429 (legacy_write_register_gen): Delete, not used.
3430
336a3131
AC
3431 * regcache.c (struct regcache_descr): Delete legacy_p.
3432 (init_legacy_regcache_descr): Delete function.
3433 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
3434 Do not use deprecated register functions.
3435 (regcache_raw_read, deprecated_write_register_gen):
3436 (deprecated_read_register_gen, regcache_raw_write): Delete code
3437 predicated on legacy_p.
3438 (register_size): Delete check against register raw size.
3439
c1d546cd
AC
3440 * cris-tdep.c (cris_register_type): Replace
3441 cris_register_virtual_type.
3442 (cris_gdbarch_init): Update, set register_type.
3443
48c2c0a6
AC
3444 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
3445 * gdbarch.h, gdbarch.c: Re-generate.
3446 * arm-tdep.c (arm_frameless_function_invocation): Delete.
3447 (arm_gdbarch_init) Do not set frameless function invocation.
3448 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
3449 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
3450 * frv-tdep.c (frv_frameless_function_invocation): Delete.
3451 (frv_gdbarch_init): Do not set frameless function invocation.
3452 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
3453 * sh-tdep.c (sh_gdbarch_init): Ditto.
3454 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
3455 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3456 * avr-tdep.c (avr_gdbarch_init): Ditto.
3457
474093a6
AC
3458 * blockframe.c (legacy_frame_chain_valid): Delete function.
3459
3c109c8b
AC
3460 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
3461 and pc. Update comments.
3462 (pc_in_dummy_frame): Delete function.
3463 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
3464 use the "id".
3465 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
3466 call_hi, top and pc, use the id.
3467 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
3468
96860204
AC
3469 * dummy-frame.c: Include "gdb_string.h".
3470 (generic_save_call_dummy_addr, generic_push_dummy_frame)
3471 (generic_save_dummy_frame_tos): Delete.
3472 (dummy_frame_push): New function, replaces above.
3473 * dummy-frame.h: Update copyright.
3474 (dummy_frame_push): Declare.
3475 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
3476 (generic_save_call_dummy_addr): Delete declarations.
3477 * infcall.c: Include "dummy-frame.h".
3478 (call_function_by_hand): Add locals caller_regcache,
3479 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
3480 with call to frame_save_as_regcache plus cleanup. Delete calls to
3481 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
3482 Move clear_proceed_status to just before the resume, add call to
3483 dummy_frame_push (discard cleanup).
3484 * Makefile.in (infcall.o): Add $(dummy_frame_h).
3485 (dummy-frame.o): Add $(gdb_string_h).
3486
d67ec5db
AC
34872004-08-01 Andrew Cagney <cagney@gnu.org>
3488
3489 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
3490 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
3491 * dummy-frame.c (find_dummy_frame): Delete.
3492 (struct dummy_frame_cache, dummy_frame_sniffer)
3493 (dummy_frame_prev_register, dummy_frame_this_id)
3494 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
3495 frame unwinder using a dummy_frame_cache.
3496
a81dcb05
AC
34972004-08-01 Andrew Cagney <cagney@gnu.org>
3498
3499 * frame.h (frame_save_as_regcache): Declare.
3500 * frame.c (frame_save_as_regcache): New function.
3501 (do_frame_read_register): Replace do_frame_unwind_register.
3502 (frame_pop): Use frame_save_as_regcache.
3503 * dummy-frame.c (generic_push_dummy_frame): Use
3504 frame_save_as_regcache.
3505
aa495d11
JB
35062004-08-01 Joel Brobecker <brobecker@gnat.com>
3507
3508 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
3509 file as included until we record the first line in the linetable.
3510
ff65ac78
AC
35112004-08-01 Andrew Cagney <cagney@gnu.org>
3512
3513 * frame.h (deprecated_pop_dummy_frame)
3514 (deprecated_read_register_dummy)
3515 (deprecated_generic_find_dummy_frame): Delete.
3516 * dummy-frame.c (deprecated_generic_find_dummy_frame)
3517 (deprecated_read_register_dummy)
3518 (deprecated_find_dummy_frame_regcache)
3519 (discard_innermost_dummy)
3520 (deprecated_pop_dummy_frame): Delete.
3521 (dummy_frame_this_id): Simplify.
3522 (struct dummy_frame): Delete "fp" and "sp".
3523 (find_dummy_frame): Simplify.
3524 (generic_push_dummy_frame): Do not set "fp" or "sp".
3525 (fprint_dummy_frames): Do not print "fp" and "sp"
3526
37bdc87e
MK
35272004-08-01 Mark Kettenis <kettenis@gnu.org>
3528
3529 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
3530 (struct i386_insn): New structure.
3531 (i386_match_insn): New function.
3532 (i386_frame_setup_skip_insns): New variable.
3533 (i386_analyze_frame_setup): Change to use i386_match_insn and the
3534 array i386_frame_setup_insns of instructions that should be
3535 skipped inside the frame setup sequence.
3536
8241eaa6
AC
35372004-08-01 Andrew Cagney <cagney@gnu.org>
3538
5bc602c7
AC
3539 * frame.h (deprecated_frame_xmalloc_with_cleanup)
3540 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
3541 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
3542 * stack.c (frame_info): Delete references to
3543 DEPRECATED_FRAME_INIT_SAVED_REGS and
3544 deprecated_get_frame_saved_regs.
3545 * frame.c (struct frame_info): Delete saved_regs and extra_info.
3546 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
3547 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
3548 (frame_unwind_register_signed)
3549 (frame_unwind_register_unsigned)
3550 (frame_unwind_unsigned_register): Use register_size.
3551 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
3552 (deprecated_frame_xmalloc_with_cleanup)
3553 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
3554 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
3555
03d363a1
AC
3556 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
3557 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
3558 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
3559 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
3560
8241eaa6
AC
3561 * infcall.c (call_function_by_hand): Do not use
3562 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
3563 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
3564 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
3565 DEPRECATED_STACK_ALIGN.
3566
f00df8b7
AC
35672004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
3568
3569 Committed by Andrew Cagney.
3570 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
3571
eec63939
AC
35722004-08-01 Andrew Cagney <cagney@gnu.org>
3573
3574 * mips-tdep.c (mips16_frame_cache)
3575 (mips16_frame_this_id, mips16_frame_prev_register)
3576 (mips16_frame_unwind, mips16_frame_sniffer)
3577 (mips16_frame_base_address, mips16_frame_base)
3578 (mips16_frame_base_sniffer, mips32_frame_cache)
3579 (mips32_frame_this_id, mips32_frame_prev_register)
3580 (mips32_frame_unwind, mips32_frame_sniffer)
3581 (mips32_frame_base_address, mips32_frame_base)
3582 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
3583 separate heuristic mips16 and mips32 unwinders.
3584 (mips_stub_frame_cache, mips_stub_frame_this_id)
3585 (mips_stub_frame_prev_register)
3586 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
3587 (mips_stub_frame_base_address, mips_stub_frame_base)
3588 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
3589 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
3590 match true mdebug frames.
3591 (non_heuristic_proc_desc): Add forward declaration.
3592
e66299b3
AC
35932004-08-01 Andrew Cagney <cagney@gnu.org>
3594
83cbbf3e
AC
3595 * config/mips/tm-irix6.h: Delete file.
3596 * config/mips/tm-irix5.h: Delete file.
3597 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
3598 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
3599
22d41b37
AC
3600 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
3601 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
3602 * config/nm-gnu.h (NO_CORE_OPS): Delete.
3603 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
3604 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
3605 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
3606 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
3607 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
3608 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
3609 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
3610 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
3611 (TARGET_SIGNAL_RAW_VALUES): Delete.
3612 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
3613 Delete.
3614 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
3615 (TARGET_HW_WATCH_LIMIT): Delete.
3616 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
3617 * minimon.h: Delete file.
3618
e66299b3
AC
3619 * trad-frame.c (trad_frame_get_this_base)
3620 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
3621 functions.
3622 * trad-frame.h (trad_frame_set_this_base)
3623 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
3624
1f67027d
AC
36252004-07-31 Andrew Cagney <cagney@gnu.org>
3626
3627 * trad-frame.c (trad_frame_get_prev_register): Rename
3628 trad_frame_get_prev_register.
3629 * vax-tdep.c (vax_frame_prev_register): Update.
3630 * trad-frame.h: Update.
3631 * trad-frame.c (trad_frame_get_register): Update.
3632 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
3633 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
3634 Update.
3635 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
3636 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
3637 Update.
3638 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
3639 Update.
3640 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
3641 Update.
3642 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
3643 Update.
3644 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
3645 Update.
3646 * s390-tdep.c (s390_frame_prev_register)
3647 (s390_stub_frame_prev_register)
3648 (s390_sigtramp_frame_prev_register): Update.
3649 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
3650 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
3651 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
3652 * m88k-tdep.c (m88k_frame_prev_register)
3653 * m68hc11-tdep.c (m68hc11_frame_prev_register)
3654 * m32r-tdep.c (m32r_frame_prev_register): Update.
3655 * hppa-tdep.c (hppa_frame_prev_register_helper)
3656 * frv-tdep.c (frv_frame_prev_register): Update.
3657 * d10v-tdep.c (d10v_frame_prev_register): Update.
3658 * cris-tdep.c (cris_frame_prev_register): Update.
3659 * avr-tdep.c (avr_frame_prev_register): Update.
3660 * arm-tdep.c (arm_prologue_prev_register)
3661 (arm_sigtramp_prev_register): Update.
3662
c1bf6f65
AC
36632004-07-31 Andrew Cagney <cagney@gnu.org>
3664
3665 * frame.h (legacy_saved_regs_unwind)
3666 (legacy_frame_chain_valid, legacy_frame_p)
3667 (enum frame_type): Delete UNKNOWN_FRAME.
01fbbd97
AC
3668 * dummy-frame.c (dummy_frame_this_id): Simplify.
3669 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
c1bf6f65
AC
3670 * frame.c (struct frame_info): Delete the field "type".
3671 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
3672 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
3673 (legacy_saved_regs_unwind, legacy_frame_p)
3674 (frame_type_from_pc): Delete.
3675 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
3676 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
3677
dc856692
MK
36782004-07-31 Mark Kettenis <kettenis@gnu.org>
3679
5a5effe1
MK
3680 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
3681 indentation.
3682
d4fd50a6
MK
3683 * mips-nat.c: Remove file.
3684 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
3685 (mips-nat.o): Remove dependency.
3686
2689df5a
MK
3687 * infptrace.c: Update copyright year.
3688 (fetch_register): Pass NULL in regcache_raw_supply call instead of
3689 explicitly setting the buffer to all zeroes.
3690
dc856692
MK
3691 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
3692 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
3693
763910e0
AC
36942004-07-30 Andrew Cagney <cagney@gnu.org>
3695
3696 * GDB 6.2 released from gdb_6_2-branch.
3697
0b66e38c
EZ
36982004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
3699
3700 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
3701
3702 * exec.c (exec_file_attach):
3703 * nto-tdep.c (nto_find_and_open_solib):
3704 * pa64solib.c (pa64_solib_sizeof_symbol_table):
3705 * solib.c (solib_open):
3706 * somsolib.c (som_solib_sizeof_symbol_table):
3707 * source.c (is_regular_file, openp, open_source_file):
3708 * symfile.c (symfile_bfd_open):
3709 * wince.c (upload_to_device): Differentiate between the search for
3710 binary and source files.
3711
be7d7357
AC
37122004-07-30 Andrew Cagney <cagney@gnu.org>
3713
3714 * complaints.c (_initialize_complaints): Pass NULL to
3715 add_setshow_zinteger_cmd for help_doc.
3716 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
3717
ddc9cd0f
AC
37182004-07-30 Andrew Cagney <cagney@gnu.org>
3719
3720 Fix PR i18n/761.
3721 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
3722 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
3723 $(PACKAGE).pot and update-po.
3724 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
3725 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
3726 (update-po): New rules.
3727 (localedir): Define using autoconf.
3728 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
3729 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
3730 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
3731 * configure.in: Generate CATALOGS and LINGUAS from contents of
3732 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
3733 * configure: Re-generate.
3734 * po/gdbtext: New file
3735
e92f3704
JG
37362004-07-30 Jerome Guitton <guitton@gnat.com>
3737
3738 * MAINTAINERS: Reorder Write After Approval list in alphabetical
3739 order.
3740
b0f35d58
DL
37412004-07-30 David Lecomber <dsl@sources.redhat.com>
3742
3743 * dwarf2read.c (read_file_scope): Set producer if attribute
3744 present.
3745 (struct dwarf2_cu): Added new member producer.
3746
ce7d4522
JG
37472004-07-30 Jerome Guitton <guitton@gnat.com>
3748
3749 * inflow.c (kill_command): release file handles in BFD.
3750 * exec.c (exec_file_attach): Ditto.
3751 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
3752
05ee07c7
AC
37532004-07-29 Andrew Cagney <cagney@gnu.org>
3754
3755 * PROBLEMS (mips-irix): Note that it is broken.
3756
62eceb47
AC
37572004-07-29 Andrew Cagney <cagney@gnu.org>
3758
e57b8d41
AC
3759 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
3760 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
3761
d334389b
AC
3762 * config/xm-nbsd.h: Delete file.
3763 * config/arm/xm-nbsd.h: Delete file.
3764 * config/i386/xm-nbsd.h: Delete file.
3765 * config/ns32k/xm-nbsd.h: Delete file.
3766 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
3767 * config/i386/nbsdelf.mh (XM_FILE): Delete.
3768 * config/i386/nbsdaout.mh (XM_FILE): Delete.
3769 * config/arm/nbsdelf.mh (XM_FILE): Delete.
3770 * config/arm/nbsdaout.mh (XM_FILE): Delete.
3771
e910f676
AC
3772 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
3773 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
3774 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
3775 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
3776 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
3777 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
3778
6fa856b9
AC
3779 * config/powerpc/xm-linux.h: Delete empty file.
3780 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
3781 * config/powerpc/linux.mh (XM_FILE): Delete.
3782 * config/m68k/xm-linux.h: Delete empty file.
3783 * config/m68k/linux.mh (XM_FILE): Delete.
3784 * config/ia64/xm-linux.h: Delete empty file.
3785 * config/ia64/linux.mh (XM_FILE): Delete.
3786 * config/arm/xm-linux.h: Delete empty file.
3787 * config/arm/linux.mh (XM_FILE): Delete.
3788
471ae5ae
AC
3789 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3790 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
3791 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3792 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
3793 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3794 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
3795 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3796 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
3797
62eceb47
AC
3798 * config/m68k/xm-m68k.h: Delete file.
3799 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
3800 copyright.
3801 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
3802 * config/pa/xm-linux.h: Delete empty file.
3803 * config/pa/linux.mh (XM_FILE): Delete.
3804 * config/i386/xm-i386.h: Delete empty file.
3805 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
3806 "i386/xm-i386.h".
3807 * config/i386/obsdaout.mh (XM_FILE): Delete.
3808 * config/i386/obsd64.mh (XM_FILE): Delete.
3809 * config/i386/fbsd64.mh (XM_FILE): Delete.
3810 * config/i386/nto.mh (XM_FILE): Delete.
3811 * config/i386/obsd.mh (XM_FILE): Delete.
3812 * config/i386/linux64.mh (XM_FILE): Delete.
3813 * config/i386/linux.mh (XM_FILE): Delete.
3814 * config/i386/i386sol2.mh (XM_FILE): Delete.
3815 * config/i386/i386gnu.mh (XM_FILE): Delete.
3816 * config/i386/fbsd.mh (XM_FILE): Delete.
3817 * config/i386/nbsd64.mh (XM_FILE): Delete.
3818
c35f4ffc
AC
38192004-07-29 Andrew Cagney <cagney@gnu.org>
3820
3821 * config/pa/xm-linux.h: Do not include "floatformat.h".
3822 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3823 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
3824 * config/i386/xm-i386.h: Do not include "floatformat.h".
3825 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3826 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
3827 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3828 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
3829 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
3830 GDB_HOST_LONG_DOUBLE_FORMAT instead.
3831 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
3832 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
3833 * configure, config.in: Regenerate.
3834 * configure.host (gdb_host_float_format, gdb_host_double_format)
3835 (gdb_host_long_double_format): Set according to the host.
3836
624a44a3
AC
38372004-07-29 Andrew Cagney <cagney@gnu.org>
3838
3839 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
3840
0dea2468
AC
38412004-07-28 Andrew Cagney <cagney@gnu.org>
3842
3843 * PROBLEMS: Mention threads/1650.
3844 * NEWS: Mention the NPTL fix.
3845
b3f42336
AC
38462004-07-28 Andrew Cagney <cagney@gnu.org>
3847
3848 * cli/cli-decode.c (add_setshow_cmd): Delete function.
3849 (add_setshow_cmd_full): Make static.
3850 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
3851 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
3852 * cli/cli-decode.c (add_setshow_filename_cmd)
3853 (add_setshow_string_cmd): New functions.
3854 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
3855 * mips-tdep.c (_initialize_mips_tdep): Update.
3856 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
3857 * cli/cli-logging.c (_initialize_cli_logging): Update.
3858 * complaints.c (_initialize_complaints): Update.
3859 * remote.c (_initialize_remote): Update.
3860
3b64bf98
AC
38612004-07-28 Andrew Cagney <cagney@gnu.org>
3862
3863 * cli/cli-decode.c (add_setshow_zinteger_cmd)
3864 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
3865 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
3866 print parameters. Make string parameters constant.
3867 * command.h: Update. Update copyright.
3868 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
3869 * observer.c (_initialize_observer): Ditto.
3870 * frame.c (_initialize_frame): Ditto.
3871 * complaints.c (_initialize_complaints): Ditto.
3872 * maint.c (_initialize_maint_cmds): Ditto.
3873 * target.c (initialize_targets): Ditto.
3874 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
3875 * infcall.c (_initialize_infcall): Ditto.
3876 * arm-tdep.c (_initialize_arm_tdep): Ditto.
3877 * m32r-rom.c (_initialize_m32r_rom): Ditto.
3878 * remote-rdi.c (_initialize_remote_rdi): Ditto.
3879 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
3880 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3881
e9667a65
AC
38822004-07-28 Andrew Cagney <cagney@gnu.org>
3883
54a5b07d
AC
3884 * gdbtypes.c (lookup_primitive_typename): Delete function.
3885 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
3886 * ada-lex.l: Use language_lookup_primitive_type_by_name.
3887 * gdbtypes.c (lookup_typename): Ditto.
3888 * f-exp.y (yylex): Ditto.
3889 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
3890
e9667a65
AC
3891 * scm-lang.c (c_builtin_types): Delete extern declaration.
3892 (scm_language_defn): Replace
3893 string_char_type and primitive_type_vector with
3894 la_language_arch_info.
3895 * jv-lang.c (java_language_defn): Replace
3896 string_char_type and primitive_type_vector with
3897 la_language_arch_info.
3898 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
3899 c_builtin_types in comment.
3900 * c-lang.h (struct language_arch_info): Declare opaque.
3901 (c_language_arch_info): Declare.
3902 (c_builtin_types): Delete declaration.
3903 * c-lang.c (c_language_arch_info): Set string_char_type to
3904 builtin_char, not builtin_true_char. Make global.
3905 (c_builtin_types): Delete array.
3906 (asm_language_defn, minimal_language_defn): Replace
3907 string_char_type and primitive_type_vector with
3908 la_language_arch_info.
3909
685419e2
AC
39102004-07-28 Andrew Cagney <cagney@gnu.org>
3911
3912 * gdbtypes.h (struct builtin_type): Rename true_char to
3913 builtin_true_char.
3914 * gdbtypes.c (gdbtypes_post_init): Update.
3915 * c-lang.c (arch_info): New function.
3916 (enum c_primitive_types): New enum.
3917 (c_language_defn): Instead of string_char_type and
3918 primitive_type_vector set la_language_arch_info.
3919
5a44ea29
AC
39202004-07-28 Andrew Cagney <cagney@gnu.org>
3921
3922 * language.h (struct language_arch_info): Fix typo
3923 s/primative/primitive/.
3924 * gdbtypes.c (lookup_primitive_typename): Ditto.
3925 * language.c (language_lookup_primitive_type_by_name)
3926 (unknown_language_arch_info): Ditto.
3927
f290d38e
AC
39282004-07-27 Andrew Cagney <cagney@gnu.org>
3929
3930 * defs.h (enum language): Add nr_languages.
3931 * language.h (struct language_arch_info): Define.
3932 (struct language_defn): Add la_language_arch_info.
3933 (language_lookup_primative_type_by_name): Declare.
3934 (language_string_char_type): Declare.
3935 * language.c (_initialize_language, language_gdbarch_post_init)
3936 (struct language_gdbarch, language_gdbarch_data): Implement
3937 per-architecture language information.
3938 (unknown_language_arch_info, language_string_char_type)
3939 (language_lookup_primative_type_by_name): New functions.
3940 (unknown_language_defn, auto_language_defn)
3941 (local_language_defn): Set la_language_arch_info to
3942 unknown_language_arch_info.
3943 (unknown_builtin_types): Delete.
3944 * gdbtypes.c (lookup_primitive_typename): Use
3945 language_lookup_primative_type_by_name.
3946 (create_string_type): Use language_string_char_type.
3947 * values.c (value_from_string): Use language_string_char_type.
3948 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
3949 * p-lang.c (pascal_language_defn): Ditto.
3950 * m2-lang.c (m2_language_defn): Ditto.
3951 * jv-lang.c (java_language_defn): Ditto.
3952 * objc-lang.c (objc_language_defn): Ditto.
3953 * f-lang.c (f_language_defn): Ditto.
3954 * c-lang.c (c_language_defn, cplus_language_defn)
3955 (asm_language_defn, minimal_language_defn): Ditto.
3956
000177f0
AC
39572004-07-27 Andrew Cagney <cagney@gnu.org>
3958
3959 * gdbtypes.h (struct builtin_type): Declare.
3960 (builtin_type): Declare.
3961 * d10v-tdep.c (d10v_register_type): Use builtin_type.
3962 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
3963 (gdbtypes_post_init): New function.
3964 (builtin_type): New function.
3965
e22f895c
KI
39662004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
3967
3968 * remote-m32r-sdi.c: Fix breakpoint bug.
3969 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
3970 recv_char_data, recv_long_data): New functions to replace communication
3971 sequences.
3972
536517dd
MC
39732004-07-26 Michael Chastain <mec.gnu@mindspring.com>
3974
3975 Document PR threads/1650.
3976 * PROBLEMS (Threads): Document problem with many threads
3977
a0a44d18
AC
39782004-07-26 Andrew Cagney <cagney@gnu.org>
3979
3980 * gdb-mi.el: Move from here ...
3981 * mi/gdb-mi.el: ... to here.
3982
7ac4ac06
AC
39832004-07-26 Andrew Cagney <cagney@gnu.org>
3984
3985 Problem reported by Ashley Pittman <ashley@quadrics.com>.
3986 * main.c (captured_main): When in batch mode always detach.
3987
a1b461bf
AC
39882004-07-26 Andrew Cagney <cagney@gnu.org>
3989
3990 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
3991 and h8300 as broken.
3992 * NEWS: END-OF-LIFE frame compatibility module.
3993 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
3994 specific comments.
3995
cb1a6d5f
AC
39962004-07-26 Andrew Cagney <cagney@gnu.org>
3997
3998 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
3999 * xcoffsolib.c (_initialize_xcoffsolib): Update.
4000 * wince.c (_initialize_wince): Update.
4001 * win32-nat.c (_initialize_win32_nat): Update.
4002 * varobj.c (_initialize_varobj): Update.
4003 * valops.c (_initialize_valops): Update.
4004 * utils.c (initialize_utils, initialize_utils): Update.
4005 * tui/tui-win.c (_initialize_tui_win): Update.
4006 * top.c (init_main): Update.
4007 * symfile.c (_initialize_symfile): Update.
4008 * source.c (_initialize_source): Update.
4009 * somsolib.c (_initialize_som_solib): Update.
4010 * solib.c (_initialize_solib): Update.
4011 * solib-frv.c (_initialize_frv_solib): Update.
4012 * serial.c (_initialize_serial): Update.
4013 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
4014 * remote.c (_initialize_remote, _initialize_remote): Update.
4015 * remote-vx.c (_initialize_vx): Update.
4016 * remote-utils.c (_initialize_sr_support): Update.
4017 * remote-sds.c (_initialize_remote_sds): Update.
4018 * remote-mips.c (_initialize_remote_mips): Update.
4019 * remote-e7000.c (_initialize_remote_e7000): Update.
4020 * proc-api.c (_initialize_proc_api): Update.
4021 * printcmd.c: Update.
4022 * parse.c (_initialize_parse): Update.
4023 * pa64solib.c (_initialize_pa64_solib): Update.
4024 * p-valprint.c (_initialize_pascal_valprint): Update.
4025 * monitor.c (_initialize_remote_monitors): Update.
4026 * mips-tdep.c (_initialize_mips_tdep): Update.
4027 * mcore-tdep.c (_initialize_mcore_tdep): Update.
4028 * maint.c (_initialize_maint_cmds): Update.
4029 * lin-lwp.c (_initialize_lin_lwp): Update.
4030 * language.c (_initialize_language): Update.
4031 * kod.c (_initialize_kod): Update.
4032 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
4033 * i386-tdep.c (_initialize_i386_tdep): Update.
4034 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
4035 * gdbarch.sh: Update.
4036 * gdbarch.c: Re-generate.
4037 * gdb-events.sh: Update.
4038 * gdb-events.c: Re-generate.
4039 * frame.c (_initialize_frame): Update.
4040 * exec.c: Update.
4041 * demangle.c (_initialize_demangler): Update.
4042 * dcache.c (_initialize_dcache): Update.
4043 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
4044 * cp-valprint.c (_initialize_cp_valprint): Update.
4045 * corefile.c (_initialize_core): Update.
4046 * command.h: Update.
4047 * cli/cli-decode.h: Update.
4048 * cli/cli-cmds.c (init_cli_cmds): Update.
4049 * charset.c (_initialize_charset): Update.
4050 * breakpoint.c (_initialize_breakpoint): Update.
4051 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
4052 * alpha-tdep.c (_initialize_alpha_tdep): Update.
4053 * aix-thread.c (_initialize_aix_thread): Update.
4054
b4632131
MK
40552004-07-24 Mark Kettenis <kettenis@gnu.org>
4056
4057 Partial fix for PR backtrace/1718.
4058 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
4059 that GCC migrates into the prolugue. Don't handle any
4060 instructions that clobber %ebx.
4061
822c9732
AC
40622004-07-23 Andrew Cagney <cagney@gnu.org>
4063
4064 Use regcache_raw_collect instead of regcache_collect.
4065 * regcache.h (regcache_collect): Delete declaration.
4066 * regcache.c (regcache_colect): Delete function.
4067 * win32-nat.c (do_child_store_inferior_registers): Update.
4068 * sol-thread.c (sol_thread_store_registers): Update.
4069 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
4070 * rs6000-nat.c (store_register): Update.
4071 * remote.c (store_register_using_P, remote_store_registers): Update.
4072 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
4073 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
4074 (fill_vrregset, store_spe_registers, fill_gregset)
4075 (fill_gregset): Update.
4076 * nto-procfs.c (procfs_store_registers): Update.
4077 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
4078 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
4079 * m68klinux-nat.c (store_register, fill_gregset): Update.
4080 * m68k-tdep.c (fill_gregset): Update.
4081 * infptrace.c (store_register): Update.
4082 * i386-nto-tdep.c (i386nto_regset_fill): Update.
4083 * i386-linux-nat.c (store_register, fill_gregset): Update.
4084 * hppa-linux-nat.c (fill_gregset): Update.
4085 * go32-nat.c (store_register): Update.
4086 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
4087 (store_fp_regs): Update.
4088 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
4089 (store_nwfpe_extended, store_fpregister, store_fpregs)
4090 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
4091 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
4092 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
4093 (store_regs_user_thread, store_regs_kernel_thread): Update.
4094
32b05c07
MK
40952004-07-24 Mark Kettenis <kettenis@gnu.org>
4096
4097 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
4098 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
4099 encoding.
4100 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
4101 member of `struct comp_unit'.
4102
8567c30f
AC
41032004-07-23 Andrew Cagney <cagney@gnu.org>
4104
4105 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
4106 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
4107
f6da8dd8
MH
41082004-07-23 Martin Hunt <hunt@redhat.com>
4109 Kevin Buettner <kevinb@redhat.com>
4110
4111 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
4112 alignment was being added to the offset instead of multiplied.
4113
bd921882
MK
41142004-07-23 Mark Kettenis <kettenis@gnu.org>
4115
24f033e8
MK
4116 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
4117 changed signal trampoline in OpenBSD 3.5-current.
4118
90f3cecd
MK
4119 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
4120 <machine/pcb.h> and "bsd-kvm.h".
4121 (sparc64nbsd_supply_pcb): New function.
4122 (_initialize_sparc64nbsd_nat): Renamed from
4123 _initialize_sparcnbsd_nat. Enable libkvm interface.
4124 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
4125 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
4126 (LOADLIBES): New variable.
4127
a4954a62
MK
4128 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
4129
bd921882
MK
4130 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
4131
23a6d369
AC
41322004-07-21 Andrew Cagney <cagney@gnu.org>
4133
4134 Use regcache_raw_supply instead of supply_register.
4135 * regcache.h (supply_register): Delete declaration.
4136 * regcache.c (supply_register): Delete function.
4137 * wince.c (do_child_fetch_inferior_registers): Update.
4138 * win32-nat.c (do_child_fetch_inferior_registers)
4139 (fetch_elf_core_registers): Update.
4140 * v850ice.c (v850ice_fetch_registers): Update.
4141 * thread-db.c (thread_db_store_registers): Update.
4142 * sol-thread.c (sol_thread_store_registers): Update.
4143 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
4144 * rs6000-nat.c (fetch_register): Update.
4145 * rom68k-rom.c (rom68k_supply_one_register): Update.
4146 * remote.c (remote_wait, remote_async_wait): Update.
4147 * remote-st.c (get_hex_regs): Update.
4148 * remote-sim.c (gdbsim_fetch_register): Update.
4149 * remote-sds.c (sds_fetch_registers): Update.
4150 * remote-rdp.c (remote_rdp_fetch_register): Update.
4151 * remote-rdi.c (arm_rdi_fetch_registers): Update.
4152 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
4153 * remote-m32r-sdi.c (m32r_fetch_register): Update.
4154 * remote-hms.c (init_hms_cmds): Update.
4155 * remote-est.c (init_est_cmds): Update.
4156 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
4157 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
4158 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
4159 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
4160 (fetch_register, supply_vrregset, supply_vrregset)
4161 (fetch_spe_registers): Update.
4162 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
4163 * monitor.c (monitor_supply_register): Update.
4164 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
4165 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
4166 (mipsnbsd_supply_fpreg): Update.
4167 * mips-nat.c (fetch_inferior_registers)
4168 (fetch_core_registers): Update.
4169 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
4170 (supply_fpregset, mips64_supply_gregset)
4171 (mips64_supply_fpregset): Update.
4172 * m68klinux-nat.c (fetch_register, supply_gregset)
4173 (supply_fpregset): Update.
4174 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
4175 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
4176 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
4177 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
4178 * infptrace.c (fetch_register): Update.
4179 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
4180 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
4181 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
4182 (gnu_fetch_registers, gnu_store_registers): Update.
4183 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
4184 * i386-linux-nat.c (fetch_register, supply_gregset)
4185 (dummy_sse_values): Update.
4186 * hpux-thread.c (hpux_thread_fetch_registers): Update.
4187 * hppah-nat.c (fetch_register): Update.
4188 * hppa-linux-nat.c (fetch_register, supply_gregset)
4189 (supply_fpregset): Update.
4190 * go32-nat.c (fetch_register): Update.
4191 * dve3900-rom.c (fetch_bitmapped_register)
4192 (_initialize_r3900_rom): Update.
4193 * cris-tdep.c (supply_gregset): Update.
4194 * abug-rom.c (init_abug_cmds): Update.
4195 * core-aout.c (fetch_core_registers): Update.
4196 * armnbsd-nat.c (supply_gregset, supply_fparegset)
4197 (fetch_register, fetch_fp_register): Update.
4198 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
4199 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
4200 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
4201 * alphanbsd-tdep.c (fetch_core_registers): Update.
4202 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
4203 * alpha-nat.c (fetch_osf_core_registers)
4204 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
4205 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
4206 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
4207
73cc75f3
AC
42082004-07-21 Andrew Cagney <cagney@gnu.org>
4209
4210 * PROBLEMS: Mention breakpoints/1702.
4211 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
4212 that is known to work.
4213
a53c66de
AC
42142004-07-21 Andrew Cagney <cagney@gnu.org>
4215
4216 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
4217 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
4218 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
4219 (handle_inferior_event): Wrap call to deprecated
4220 IGNORE_HELPER_CALL in #ifdef.
4221 * config/mips/tm-nbsd.h: Update.
4222
708ff411
JB
42232004-07-20 Jim Blandy <jimb@redhat.com>
4224
412b3060
JB
4225 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
4226 bfd_mach_ppc has no segment registers.
4227
13ac140c
JB
4228 Include PowerPC SPR numbers for special-purpose registers.
4229 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
4230 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
4231 new member in initializer.
4232 (S, S4, SN4, S64): New macros for defining special-purpose
4233 registers.
4234 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
4235 registers_403, registers_403GC, registers_505, registers_860,
4236 registers_601, registers_602, registers_603, registers_604,
4237 registers_750, registers_e500): Use them.
4238
708ff411
JB
4239 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
4240 replace references with expression used to initialize variable.
4241
1f602b35
AC
42422004-07-20 Andrew Cagney <cagney@gnu.org>
4243
4244 * breakpoint.c (deprecated_read_memory_nobpt): Rename
4245 read_memory_nobpt.
4246 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
4247 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
4248 (s390_sigtramp_frame_sniffer): Update.
4249 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
4250 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
4251 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
4252 (mips32_fetch_instruction): Update.
4253 * mcore-tdep.c (get_insn): Update.
4254 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
4255 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
4256 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
4257 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4258 (i386_linux_rt_sigtramp_start): Update.
4259 * i386-linux-nat.c (child_resume): Update.
4260 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
4261 * hppa-linux-tdep.c (insns_match_pattern): Update.
4262 * gdbcore.h: Update.
4263 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
4264 * frame.c (safe_frame_unwind_memory): Update.
4265 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
4266 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
4267 * alpha-tdep.c (alpha_read_insn): Update.
4268
2cd8546d
AC
42692004-07-20 Andrew Cagney <cagney@gnu.org>
4270
4271 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
4272 containing both bytes and mask. Add "frame_type".
4273 * tramp-frame.c (tramp_frame_start): Update.
4274 (tramp_frame_prepend_unwinder): Update.
4275 * mips-linux-tdep.c (mips_linux_o32_sigframe)
4276 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
4277 (mips_linux_n64_rt_sigframe): Update. Make "static const".
4278 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
4279
f928dd62
EZ
42802004-07-19 Eli Zaretskii <eliz@gnu.org>
4281
4282 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
4283 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
4284 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
4285 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
4286
d5c560f7
AC
42872004-07-17 Andrew Cagney <cagney@gnu.org>
4288
860660cb
AC
4289 * NEWS, PROBLEMS: Update for 6.2.
4290
8c266f54
AC
4291 * README: Update to 6.2.
4292
a552edd9
AC
4293 * utils.c (xvasprintf): Call xstrvprintf.
4294
c4a172b5
AC
4295 * parse.c: Update copyright.
4296 (null_post_parser): Eliminate ARGSUSED.
4297
da745b36
AC
4298 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
4299 * tui/tui-win.c (tui_get_cmd_list): Ditto.
4300 * symfile-mem.c (_initialize_symfile_mem): Ditto.
4301
9cbc6ef0
AC
4302 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
4303 * ppc-linux-nat.c: Use "Linux kernel".
4304 * hppa-linux-tdep.c: Use GNU/Linux.
4305 * hppa-linux-nat.c: Use GNU/Linux.
4306 * dwarfread.c: Add [sic] to use of Linux.
4307
1b89295f
AC
4308 * hppa-linux-nat.c: Do not include <string.h>.
4309 (supply_fpregset): Remove "register" attribute.
4310
d5c560f7
AC
4311 * solib-frv.c (fetch_loadmap): Use xfree, not free.
4312
7ddd7709
MK
43132004-07-17 Mark Kettenis <kettenis@gnu.org>
4314
b1d19a62
MK
4315 * configure.in: Define _MSE_INT_H on Solaris 9 too.
4316 * configure, config.in: Regenerated.
4317
7ddd7709
MK
4318 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
4319 "bsd-kvm.h".
4320 (vaxbsd_supply_pcb): New function.
4321 (_initialize_vaxbsd_nat): New prototype and function.
4322 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
4323 solib-sunos.o.
4324 (LOADLIBES): New variable.
4325 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4326 (LOADLIBES): New variable.
4327 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
4328 (LOADLIBES): New variable.
4329 * Makefile.in (vaxbsd-nat.o): Update dependencies.
4330
2c07db7a
AC
43312004-07-16 Andrew Cagney <cagney@gnu.org>
4332
4333 * defs.h (event_loop_p): Replace variable declaration with macro,
4334 always 1.
4335 * main.c (captured_main): Delete options "-async" and "-noasync".
4336 (event_loop_p): Delete variable.
4337 * NEWS: Mention that "-async" and "-noasync" were removed.
4338
717eb1cf
AC
43392004-07-16 Andrew Cagney <cagney@gnu.org>
4340
4341 * remote-m32r-sdi.c: Re-indent.
4342
c101bc14
JB
43432004-07-16 Jim Blandy <jimb@redhat.com>
4344
5109a438
JB
4345 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
4346 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
4347 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
4348 missing MPC823 SPRs.
4349 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
4350 incorrect. (This was corrected in GDB's register name tables on
4351 2004-07-14.)
4352
c101bc14
JB
4353 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
4354 should be "esasrr" ("ESA Save and Restore Register").
4355
7ce450bd
AC
43562004-07-16 Andrew Cagney <cagney@gnu.org>
4357
4358 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
4359 calls, no longer applicable. Update comments and rename parameter
4360 "step_frame" to "return_frame".
4361
ca73dd9d
AC
43622004-07-16 Andrew Cagney <cagney@gnu.org>
4363
4364 * frame.c (fprint_field): New function.
4365 (fprint_frame_id): Use fprint_field.
4366
31941f6d
JB
43672004-07-15 Joel Brobecker <brobecker@gnat.com>
4368
4369 * ada-lang.c (ada_language_defn): Remove commented out code.
4370
f86a7158
JB
43712004-07-15 Jim Blandy <jimb@redhat.com>
4372
4373 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
4374 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
4375
c24791ec
JB
43762004-07-14 Jim Blandy <jimb@redhat.com>
4377
29bb1356
JB
4378 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
4379
cc98b5cc
JB
4380 * ppc-tdep.h (ppc_num_vrs): New enum constant.
4381
8f088af7
JB
4382 * ppc-tdep.h (ppc_num_srs): New enum constant.
4383
0ea0ec5f
JB
4384 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
4385 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
4386 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
4387 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
4388 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
4389 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
4390 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
4391 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
4392 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
4393 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
4394 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
4395 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
4396 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
4397 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
4398 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
4399 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
4400 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
4401 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
4402 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
4403 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
4404 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
4405 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
4406 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
4407 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
4408 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
4409 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
4410 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
4411 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
4412 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
4413 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
4414 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
4415 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
4416 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
4417 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
4418 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
4419 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
4420 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
4421 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
4422 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
4423 special-purpose register numbers.
4424
c24791ec
JB
4425 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
4426 manual mentions 'md_twb', but many mention 'm_twb', and at that
4427 point in the register list.)
4428
d833db3b
AC
44292004-07-14 Andrew Cagney <cagney@gnu.org>
4430
4431 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
4432 instead of "internal-error".
4433
080228b2
JB
44342004-07-10 Joel Brobecker <brobecker@gnat.com>
4435
4436 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
4437 that was inserted inside a comment.
4438
c268433a
RC
44392004-07-10 Randolph Chung <tausq@debian.org>
4440
4441 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
4442 function.
4443 (hppa_hpux_push_dummy_code): New function.
4444 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
4445 Set find_global_pointer method.
4446
71009278
MK
44472004-07-10 Mark Kettenis <kettenis@gnu.org>
4448
4449 * NEWS: Mention BSD libkvm interface.
4450
b2fa5097
MS
44512004-07-10 Michael Snyder <msnyder@redhat.com>
4452
4453 * symfile.c (generic_load): Comment typo.
4454 * stack.c (get_selected_block): Ditto.
4455 * regcache.c (regcache_cooked_read): Ditto.
4456 * monitor.c (monitor_debug): Ditto.
4457 * mips-tdep.c (mips_read_pc): Ditto.
4458 * i386-linux-nat.c (ps_get_thread_area): Ditto.
4459 * gdb_mbuild.sh: Ditto.
4460 * gdbarch.sh: Ditto.
4461 * gdbarch.h: Ditto.
4462
c3e5cd34
PH
44632004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
4464
8a2225b2
PH
4465 * ada-tasks.c: Remove file.
4466
c3e5cd34
PH
4467 Remove ARI problems:
4468
4469 * ada-exp.y (write_var_from_sym): Reformat to put operator at
4470 beginning of line.
4471
4472 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
4473 Add comment.
4474 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
4475 (MIN_OF_SIZE): Rename min_of_size. Add comment.
4476 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
4477 (UMIN_OF_SIZE): Remove.
4478 (max_of_type): New function to replace orphan macro in gdbtypes.h
4479 (min_of_type): Ditto.
4480 (discrete_type_high_bound): Use max_of_type.
4481 (discrete_type_low_bound): Use min_of_type.
4482 (possible_user_operator_p): Move operator to beginning of line.
4483 (ada_is_variant_part): Ditto.
4484 (ensure_lval): Rewrite to avoid deprecated operations.
4485 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
4486 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
4487 (ada_enum_name): Remove assignments in 'if' statements.
4488 (build_ada_types): Add gdbarch parameter.
4489 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
4490 with gdbarch_data_register_post_init.
4491 Use add_setshow_uinteger_cmd rather than add_set_cmd and
4492 add_show_from_set.
4493
4494 * ada-valprint.c (inspect_it): Remove declaration.
4495 (repeat_count_threshold): Remove declaration.
4496 (ada_print_floating): Remove assignments in 'if' statements.
4497 (print_str): Move operator to beginning of line.
4498
61ce229a
JB
44992004-07-08 Jim Blandy <jimb@redhat.com>
4500
4501 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
4502
09bcec80
BR
45032004-07-08 Bob Rossi <bob@brasko.net>
4504
4505 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
4506
31c27f77
JJ
45072004-07-06 Jeff Johnston <jjohnstn@redhat.com>
4508
4509 * language.h (struct_language_defn): Add new function pointer:
4510 la_class_name_from_physname. Also add new prototype for
4511 language_class_name_from_physname.
4512 * language.c (language_class_name_from_physname): New function.
4513 (unk_lang_class_name): Ditto.
4514 (unknown_language_defn, auto_language_defn): Change
4515 to add unk_lang_class_name function pointer for
4516 la_class_name_from_physname.
4517 (local_language_defn): Ditto.
4518 * dwarf2read.c (guess_structure_name): Change to call
4519 language_class_name_from_physname.
4520 (determine_class_name): Ditto.
4521 * cp-support.c (class_name_from_physname): Renamed.
4522 (cp_class_name_from_physname): New name of function.
4523 * cp-support.h: Ditto.
4524 * c-lang.c (c_language_defn): Change to add NULL
4525 for class_name_from_physname function pointer.
4526 (cplus_language_defn): Change to add cp_class_name_from_physname.
4527 * jv-lang.c (java_class_name_physname): New function.
4528 (java_find_last_component): New static routine.
4529 (java_language_defn): Add java_class_name_from_physname pointer.
4530 * ada-lang.c (ada_language_defn): Change to add NULL
4531 for class_name_from_physname function pointer.
4532 * f-lang.c (f_language_defn): Ditto.
4533 * m2-lang.c (m2_language_defn): Ditto.
4534 * objc-lang.c (objc_language_defn): Ditto.
4535 * p-lang.c (pascal_language_defn): Ditto.
4536 * scm-lang.c (scm_language_defn): Ditto.
4537
ee28ca0f
AC
45382004-07-06 Andrew Cagney <cagney@gnu.org>
4539
4540 Patch from Bart Robinson.
4541 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
4542 (O_LARGEFILE): Define to 0, if not defined.
4543
fdb1bf9d
MK
45442004-07-03 Mark Kettenis <kettenis@gnu.org>
4545
cb162ff6
MK
4546 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
4547 <machine/pcb.h> and "bsd-kvm.h".
4548 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
4549 (m68kbsd_supply_pcb): New function.
4550 (_initialize_m68kbsd_nat): New prototype and function.
4551 * Makefile.in (m68kbsd-nat.o): Update dependencies.
4552 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4553 (LOADLIBES): New variable.
4554 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
4555 (LOADLIBES): New variable.
4556
fdb1bf9d
MK
4557 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
4558
963c4174
MK
45592004-07-03 Mark Kettenis <kettenis@gnu.org>
4560
4561 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
4562 <sys/proc.h>.
4563 (bsd_kvm_cmdlist): New variable.
4564 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
4565 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
4566 command and "kvm proc" command.
4567 * Makefile.in (bsd-kvm.o): Update dependencies.
4568
533f1d8f
MK
45692004-07-02 Mark Kettenis <kettenis@gnu.org>
4570
4571 * osabi.c: Update copyright year.
4572 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
4573 notes if EI_OSABI is set to ELFOSABI_HPUX.
4574
6780dcde
MS
45752004-07-01 Michael Snyder <msnyder@redhat.com>
4576
4577 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
4578 that seems to have gotten whacked out of line.
4579
67bebe79
MK
45802004-07-01 Mark Kettenis <kettenis@gnu.org>
4581
4582 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
4583 code.
4584
0b5d8877
PH
45852004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
4586
4587 * ada-lang.c (decode_packed_array): Minor change to comment.
4588 (ada_value_slice_ptr): New function.
4589 (ada_value_slice): New function.
4590 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
4591 test. Don't know why it is there.
4592 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
4593 to avoid dereferencing huge arrays from which one is slicing.
4594 (empty_array): Correct to return an array rather than
4595 a subrange value.
4596 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
4597 on empty arrays (let'em use 'FIRST instead).
4598
19c1ef65
PH
45992004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
4600
4601 Address complaints from gdb_ari.sh:
4602
4603 * ada-exp.y: Include gdb_string.h rather than string.h.
4604 (convert_char_literal): Reformat declaration.
4605 * ada-lang.h: Include opaque struct declaration for struct frame_info.
4606 * ada-lex.l: Change use of free to xfree (the macro would do so
4607 anyway, but this is harmless).
4608 Include gdb_string.h rather than string.h.
4609 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
4610
4611 * ada-lang.c (parse): Remove K&Rism in parameter list.
4612 (is_name_suffix): Correct Linux => GNU/Linux in comment.
4613
d81cbc94
MK
46142004-06-30 Mark Kettenis <kettenis@gnu.org>
4615
4616 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
4617 dead code.
4618
07681759
MK
46192004-06-30 Mark Kettenis <kettenis@gnu.org>
4620
4621 * alphabsd-nat.c: Update copyright year.
4622 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
4623
f7948b5f
JB
46242004-06-29 Joel Brobecker <brobecker@gnat.com>
4625
6e0cdd28 4626 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
f7948b5f
JB
4627 (i386_cygwin_in_solib_call_trampoline): New function.
4628 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
4629 and skip_trampoline_code gdbarch methods.
4630
8f113c9a
JB
46312004-06-29 Jim Blandy <jimb@redhat.com>
4632
4633 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
4634 name actually used in the dependency lists.
4635
97dc871c
RC
46362004-06-29 Randolph Chung <tausq@debian.org>
4637
4638 * NEWS (New native configurations): Mention GNU/Linux/hppa.
4639
47216e51
CV
46402004-06-29 Corinna Vinschen <vinschen@redhat.com>
4641
4642 * win32-nat.c (child_pid_to_exec_file): New function.
6780dcde 4643 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
47216e51
CV
4644 functionality.
4645
e623b504
AC
46462004-06-28 Andrew Cagney <cagney@gnu.org>
4647
4648 * defs.h (xstrvprintf): Declare.
4649 * utils.c (xstrvprintf): New function.
4650 (internal_vproblem, xstrprintf, xasprintf)
4651 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
4652 * serial.c (serial_printf): Ditto.
4653 * complaints.c (vcomplaint): Ditto.
4654
79acc9b3
CV
46552004-06-29 Corinna Vinschen <vinschen@redhat.com>
4656
4657 * infcmd.c (attach_command): Move call to target_terminal_inferior
4658 behind loading symbol table.
4659
1daf35d9
AC
46602004-06-28 Andrew Cagney <cagney@gnu.org>
4661
4662 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
4663 change - add back extern deprecated_ui_loop_hook declaration.
4664
b435e160
AC
46652004-06-28 Andrew Cagney <cagney@gnu.org>
4666
4667 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
4668 xstrprintf.
4669 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
4670 (c_value_of_variable): Ditto.
4671 * utils.c (internal_vproblem): Ditto.
4672 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
4673 * remote.c (add_packet_config_cmd): Ditto.
4674 * remote-rdp.c (rdp_set_command_line): Ditto.
4675 * regcache.c (regcache_dump): Ditto.
4676 * frv-tdep.c (new_variant, new_variant): Ditto.
4677 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
4678 (fbsd_find_memory_regions): Ditto.
4679 * breakpoint.c (create_thread_event_breakpoint)
4680 (create_breakpoints): Ditto.
4681 * aix-thread.c (aix_thread_pid_to_str): Ditto.
4682 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
4683
06d5cf63
JB
46842004-06-28 Joel Brobecker <brobecker@gnat.com>
4685
4686 * ada-lang.c: Re-indent file, with some massaging to help indent
4687 a bit when the result is otherwise really too ugly.
4688
35809fad
UW
46892004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
4690
4691 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
4692 code_addr_p and special_addr_p to 'unsigned int'.
4693
40e20472
MK
46942004-06-27 Mark Kettenis <kettenis@gnu.org>
4695
4696 * i386v4-nat.c: Update copyright year and tweak comment.
4697 (regmap): Remove trailing comma.
4698 (supply_gregset): Rename local variable i to regnum. Call
4699 regcache_raw_supply instead of supply_register.
4700 (fill_gregset): Rename argument regno to regnum. Call
4701 regcache_raw_collect instead of regcache_collect.
4702
12b0b6de
UW
47032004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
4704
4705 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
4706 and special_addr_p.
4707 (frame_id_build, frame_id_build_special): Update comments.
4708 (frame_id_build_wild): New prototype.
4709 * frame.c (frame_id_build, frame_id_build_special): Fill in new
4710 struct frame_id fields.
4711 (frame_id_build_wild): New function.
4712 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
4713
47b42a3e
MK
47142004-06-27 Mark Kettenis <kettenis@gnu.org>
4715
4716 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
4717 hppabsd-tdep.c.
4718
1265e4aa
JB
47192004-06-27 Joel Brobecker <brobecker@gnat.com>
4720
4721 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
4722
76a01679
JB
47232004-06-27 Joel Brobecker <brobecker@gnat.com>
4724
4725 * ada-lang.c: Re-indent file.
4726
7aca490a
JB
47272004-06-27 Joel Brobecker <brobecker@gnat.com>
4728
4729 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
4730 (no_symtab_msg): Likewise.
4731
5e987968
AS
47322004-06-27 Andreas Schwab <schwab@suse.de>
4733
4734 * source.c: Fix whitespace.
4735
315c4276
MK
47362004-06-27 Mark Kettenis <kettenis@gnu.org>
4737
d15be926
MK
4738 * configure.in: Include <sys/param.h> for td_pcb test.
4739 * configure: Regenerated.
4740
9062529b
MK
4741 * i386nbsd-nat.c: New file.
4742 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
4743 i386obsd-nat.c and i386obsd-tdep.c.
4744 (i386nbsd-nat.o): New dependency.
4745 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
4746 bsd-kvm.o.
4747 (LOADLIBES): New variable.
4748 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
4749 bsd-kvm.o.
4750 (LOADLIBES): New variable.
4751
8010310e
MK
4752 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
4753 (LOADLIBES): New variable.
4754
efe1d7b9
MK
4755 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
4756 fetching from BSD_KVM_PADDR. Correctly lookup address for
4757 "_thread0".
4758
315c4276
MK
4759 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
4760 "bsd-kvm.h".
4761 (amd64fbsd_supply_pcb): New funcion.
4762 (_initialize_amd64fbsd_nat): Enable libkvm interface.
4763
399cfac6
DL
47642004-06-27 <david@streamline-computing.com>
4765
4766 Partial fix for PR cli/1056.
4767 * valarith.c: Check for zero in division and remainder
4768 evaluation.
4769
6235f9c8
MK
47702004-06-27 Mark Kettenis <kettenis@gnu.org>
4771
4772 * i387-tdep.c: Remove excessive whitespace.
4773
2726dafc
AC
47742004-06-26 Andrew Cagney <cagney@gnu.org>
4775
4776 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
4777 * gdb-events.h, gdb-events.c: Re-generate.
4778 * tui/tui-hooks.c (tui_install_hooks): Update.
4779 (tui_remove_hooks): Update.
4780 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
4781
0e56aeaf
MK
47822004-06-26 Mark Kettenis <kettenis@gnu.org>
4783
cb461069
MK
4784 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
4785 (gregset_t, fpregset_t): Remove typedefs.
4786 (REG_OFFSET): Rename argument.
4787 (amd64bsd_r_reg_offset): Rename from reg_offset.
4788 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
4789 Remove functions.
4790 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
4791 of reg_offset.
4792 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
4793
ecba89de
MK
4794 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
4795
4cd80476
MK
4796 * vax-tdep.c: Tweak comment.
4797
0e56aeaf
MK
4798 Add OpenBSD/hppa support.
4799 * NEWS (New native configurations): Mention OpenBSD/hppa.
4800 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
4801 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
4802 files.
4803 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
4804 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
4805 * configure.host: Add hppa*-*-openbsd*.
4806 * configure.tgt: Add hppa*-*-openbsd*.
4807
98bbd631
AC
48082004-06-25 Andrew Cagney <cagney@gnu.org>
4809
4810 * defs.h (deprecated_ui_loop_hook): Deprecated.
4811 * wince.c (child_wait): Update.
4812 * win32-nat.c (child_wait): Update.
4813 * v850ice.c (v850ice_wait): Update.
4814 * top.c (deprecated_ui_loop_hook): Update.
4815 * serial.h: Update.
4816 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
4817 (do_unix_readchar): Update.
4818 * ser-tcp.c (net_open): Update.
4819 * remote-sim.c (gdb_os_poll_quit): Update.
4820 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
4821
769d7dc4
AC
48222004-06-24 Andrew Cagney <cagney@gnu.org>
4823
4824 * defs.h (deprecated_pre_add_symbol_hook)
4825 (deprecated_post_add_symbol_hook): Deprecated.
4826 * symfile.c (symbol_file_add_with_addrs_or_offsets)
4827 (symbol_file_add_with_addrs_or_offsets): Update references.
4828
11c949aa
AC
48292004-06-24 Andrew Cagney <cagney@gnu.org>
4830
4831 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
4832 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
4833 * wince.c (ui_loop_hook): Delete extern declaration.
4834 * win32-nat.c (ui_loop_hook): Delete extern declaration..
4835 * v850ice.c (ui_loop_hook): Delete extern declaration..
4836 * ser-unix.c (ui_loop_hook): Delete extern declaration..
4837 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
4838 * remote-sim.c (ui_loop_hook): Delete extern declaration..
4839 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
4840 ui_loop_hook declaration.
4841
eedc19af
AC
48422004-06-24 Andrew Cagney <cagney@gnu.org>
4843
4844 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
4845 entry_func_highpc fields.
4846 * objfiles.c (init_entry_point_info): Do not clear
4847 entry_func_lowpc and entry_func_highpc.
4848 (objfile_relocate): Do not relocate entry_func_lowpc and
4849 entry_func_highpc.
4850 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
4851 entry_func_highpc.
4852 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
4853 entry_func_highpc.
4854 * blockframe.c (legacy_frame_chain_valid): Replace tests against
4855 entry_func_lowpc and entry_func_highpc with call to
4856 inside_entry_func.
4857
d47079be
MK
48582004-06-24 Mark Kettenis <kettenis@gnu.org>
4859
4860 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
4861 quad-precision floating point arguments in registers.
4862
2107e348
MK
48632004-06-24 Mark Kettenis <kettenis@gnu.org>
4864
4865 From Michael Mueller <m.mueller99@kay-mueller.de>:
4866 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
4867 account.
4868
46587c42
JJ
48692004-06-22 Jeff Johnston <jjohnstn@redhat.com>
4870
4871 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
4872 to -1.
4873 * breakpoint.c (bpstat_stop_status): Move check for ignoring
4874 untriggered watchpoints to a separate if clause. Update function
4875 comment regarding STOPPED_BY_WATCHPOINT argument.
4876
226f5cf4
JB
48772004-06-22 Jim Blandy <jimb@redhat.com>
4878
4879 * gdbarch.sh: Doc fix.
4880
f10683bb
MH
48812004-06-21 Martin Hunt <hunt@redhat.com>
4882 Kevin Buettner <kevinb@redhat.com>
4883
4884 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
4885 * mips-tdep.h (MIPS_SP_REGNUM): Define.
4886 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
4887 to set_gdbarch_sp_regnum(). Use cooked register number.
4888 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
4889
412d5987
AC
48902004-06-21 Andrew Cagney <cagney@gnu.org>
4891
4892 * gdbarch.sh: When the macro field is empty, do not generate a
4893 macro definition. When the macro field is "=", generate the macro
4894 name from the upper-case function name.
4895 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
4896 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
4897 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
4898 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
4899 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
4900 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
4901 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
4902 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
4903 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
4904 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
4905 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
4906 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
4907 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
4908 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
4909 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
4910 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
4911 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
4912 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
4913 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
4914 (DEPRECATED_USE_STRUCT_CONVENTION)
4915 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4916 (DEPRECATED_FRAME_INIT_SAVED_REGS)
4917 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
4918 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
4919 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
4920 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
4921 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
4922 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
4923 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
4924 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
4925 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
4926 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
4927 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
4928 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
4929 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
4930 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
4931 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
4932 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
4933
68908a3e
AC
49342004-06-21 Andrew Cagney <cagney@gnu.org>
4935
48f7351b
AC
4936 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
4937 macro name, and the function rather than macro value. Only wrap
4938 macro print statements in #ifdef. Move format logic to where it
4939 is needed.
4940 * gdbarch.c: Re-generate.
4941
283354d8
AC
4942 * gdbarch.sh (read): Delete "print_p" and "description", add
4943 "garbage_at_eol". Check for non-empty garbage at end-of-line.
4944 Delete references to print_p.
4945 (TARGET_ARCHITECTURE): Delete print predicate.
4946 * gdbarch.c: Re-generate.
4947
68908a3e
AC
4948 * gdbarch.sh: Check that multi-arch methods do not provide a
4949 macro.
4950 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
4951 (print_registers_info, print_float_info, print_vector_info)
4952 (adjust_breakpoint_address, remote_translate_xfer_address)
4953 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
4954 (address_class_type_flags_to_name, unwind_sp): Remove the macro
4955 name from the multi-arch definition.
4956
a2428dbe
AC
49572004-06-20 Andrew Cagney <cagney@gnu.org>
4958
4959 * gdbarch.sh: Sort by the function, instead of macro name.
4960 * gdbarch.c: Re-generate.
4961
750eb019
AC
49622004-06-20 Andrew Cagney <cagney@gnu.org>
4963
66d659b1
AC
4964 * gdbarch.sh: Use the function, instead of macro name in
4965 errors and the log file.
4966 (return_value): Remove stray ":" in spec.
4967
750eb019
AC
4968 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
4969 * gdbarch.h, gdbarch.c: Re-generate.
4970 * Makefile.in (arch-utils.o): Update dependencies.
4971 * values.c (using_struct_return): Move code calling
4972 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
4973 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
4974 to legacy_return_value, simplify.
4975 * infcmd.c (print_return_value): Move code calling
4976 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
4977 to legacy_return_value, simplify.
4978 * infcall.c (call_function_by_hand): Move code calling
4979 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
4980 * arch-utils.c: Update copyright. Include "gdbcore.h".
4981 (legacy_return_value): New function.
4982 * arch-utils.h: Update copyright.
4983 (legacy_return_value): Declare.
4984
b5622e8d
AC
49852004-06-20 Andrew Cagney <cagney@gnu.org>
4986
4987 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
4988 * gdbarch.h, gdbarch.c: Re-generate.
4989 * values.c (using_struct_return): Update call.
4990 * mcore-tdep.c: Update comment.
4991 * infcall.c (call_function_by_hand): Update comment.
4992 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4993 * arch-utils.h (always_use_struct_convention): Update.
4994 * v850-tdep.c (v850_gdbarch_init): Update.
4995 * sh64-tdep.c (sh64_gdbarch_init): Update.
4996 * sh-tdep.c (sh_gdbarch_init): Update.
4997 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4998 * mips-tdep.c (mips_gdbarch_init): Update.
4999 * mcore-tdep.c (mcore_gdbarch_init): Update.
5000 * m32r-tdep.c (m32r_gdbarch_init): Update.
5001 * ia64-tdep.c (ia64_gdbarch_init): Update.
5002 * h8300-tdep.c (h8300_gdbarch_init): Update.
5003 * frv-tdep.c (frv_gdbarch_init): Update.
5004 * cris-tdep.c (cris_gdbarch_init): Update.
5005 * arm-tdep.c (arm_gdbarch_init): Update.
5006 * alpha-tdep.c (alpha_gdbarch_init): Update.
5007
5191de37
MC
50082004-06-18 Michael Chastain <mec.gnu@mindspring.com>
5009
5010 * PROBLEMS: Add more specific information, and a work-around,
5011 for PR gdb/1458.
5012
782263ab
AC
50132004-06-18 Andrew Cagney <cagney@gnu.org>
5014
5015 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
5016 * gdbarch.h, gdbarch.c: Re-generate.
5017 * ada-lang.c (ada_finish_decode_line_1): Update.
5018 * infrun.c (handle_inferior_event): Update.
5019 * infcall.c (find_function_addr): Update.
5020 * linespec.c (minsym_found): Update.
5021 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
5022 Update.
5023 * blockframe.c (legacy_frameless_look_for_prologue): Update.
5024 * cli/cli-cmds.c (disassemble_command): Update.
5025 * vax-tdep.c (vax_gdbarch_init): Update.
5026
2f305df1
MK
50272004-06-18 Mark Kettenis <kettenis@gnu.org>
5028
5029 * i386-tdep.c (i386_collect_fpregset): Fix comment.
5030
e5fe55f7
AC
50312004-06-17 Andrew Cagney <cagney@gnu.org>
5032
5033 GDB 6.1.1 released from the GDB 6.1 branch.
5034 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
5035 * PROBLEMS: Ditto.
5036
473b7be6
DJ
50372004-06-16 Daniel Jacobowitz <dan@debian.org>
5038
5039 PR gdb/1658
5040 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
5041 operation as a uleb128. Found by Michael Coulter.
5042
96d887e8
PH
50432004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
5044
5045 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
5046 make it non-static.
5047 * ada-lang.h (task_control_block): declaration moved from ada-task.c
5048 to ada-lang.h; this is needed to be able to implement the kill command
5049 in multi-task mode.
5050 (task_ptid): Ditto.
5051 (task_entry): Ditto.
5052 (task_list): Ditto.
5053 (ada_build_task_list): Ditto.
5054
5055 * ada-lang.c: Conditionalize routines and data structures related
5056 to breakpoints, exceptions, completion, and symbol caching on
5057 GNAT_GDB, since these are not yet used in the submitted public sources.
5058 (ada_main_name): Editorial: Move definition out of exception-related
5059 code.
5060
31eef181
AC
50612004-06-15 Andrew Cagney <cagney@gnu.org>
5062
5063 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
5064 deprecated_pc_in_call_dummy.
5065
2c500098
AM
50662004-06-15 Alan Modra <amodra@bigpond.net.au>
5067
5068 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
5069 bfd_get_section_size_before_reloc or _raw_size.
5070 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
5071 * dwarf2read.c (dwarf2_locate_sections): Likewise.
5072 (dwarf2_read_section): Likewise.
5073 * elfread.c (elf_locate_sections): Likewise.
5074 * gcore.c (derive_heap_segment): Likewise.
5075 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
5076 * remote-e7000.c (e7000_load): Likewise.
5077 * remote-m32r-sdi.c (m32r_load): Likewise.
5078 * remote-mips.c (mips_load_srec): Likewise.
5079 (pmon_load_fast): Likewise.
5080 * remote.c (compare_sections_command): Likewise.
5081 * symfile.c (add_section_size_callback): Likewise.
5082 (load_section_callback): Likewise.
5083 (pc_in_unmapped_range): Likewise.
5084 (pc_in_mapped_range): Likewise.
5085 (sections_overlap): Likewise.
5086 (list_overlays_command): Likewise.
5087 (simple_overlay_update_1): Likewise.
5088 (simple_overlay_update): Likewise.
5089 * tracepoint.c (remote_set_transparent_ranges): Likewise.
5090 * win32-nat.c (core_section_load_dll_symbols): Likewise.
5091
90f943f1
RC
50922004-06-14 Randolph Chung <tausq@debian.org>
5093
5094 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
5095 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
5096 static.
5097 (hppa_hpux_inferior_created): New function.
5098 (hppa_hpux_init_abi): Register observer.
5099 * symfile.c (hp_cxx_exception_support_initialized)
5100 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
5101 (symbol_file_add_main_1, symbol_file_clear): Likewise.
5102
700c15aa
RC
51032004-06-14 Randolph Chung <tausq@debian.org>
5104
3973a7d3
AC
5105 * MAINTAINERS (Write After Approval): Alphabetize my entry
5106 correctly.
700c15aa 5107
cea4838c
AC
51082004-06-14 Andrew Cagney <cagney@gnu.org>
5109
5110 * MAINTAINERS (testsuite): List Michael Chastain as the lead
5111 testsuite maintainer.
5112
97092415
AC
51132004-06-13 Andrew Cagney <cagney@gnu.org>
5114
e8c3165b
AC
5115 * infcmd.c (print_return_value): Fix logic, allow
5116 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
5117
bceabdd8
AC
5118 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
5119 defining any macros.
5120 * gdbarch.h: Re-generate.
5121
57010b1c
AC
5122 * gdbarch.sh: Delete "level" attribute. Only check for a macro
5123 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
5124 * gdbarch.h: Re-generate.
5125
bc87dfa0
AC
5126 * values.c (generic_use_struct_convention): Don't check gcc_p.
5127
15ac804d
AC
5128 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
5129 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
5130 * gdbarch.h, gdbarch.c: Regenerate.
5131 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
5132 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
5133 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5134 deprecated_max_register_raw_size and
5135 deprecated_max_register_virtual_size.
5136 * v850-tdep.c (v850_gdbarch_init): Ditto.
5137 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5138 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5139 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5140 * cris-tdep.c (cris_gdbarch_init): Ditto.
5141
97092415
AC
5142 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
5143 * gdbarch.h, gdbarch.c: Re-generate.
5144 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
5145 (m68hc11_use_struct_convention): Delete function.
5146 (m68hc11_extract_struct_value_address): Delete function.
5147 (m68hc11_return_value): New function.
5148 (m68hc11_gdbarch_init): Instead of store_return_value,
5149 extract_return_value, return_value_on_stack,
5150 deprecated_extract_struct_value_address and use_struct_convention,
5151 set return_value.
5152 * values.c (using_struct_return): Do not call
5153 RETURN_VALUE_ON_STACK.
5154 * arch-utils.h (generic_return_value_on_stack_not): Delete
5155 declaration.
5156 * arch-utils.c (generic_return_value_on_stack_not): Delete
5157 function.
5158
44e5158b
AC
51592004-06-12 Andrew Cagney <cagney@gnu.org>
5160
5161 * values.c (register_value_being_returned): Delete function.
5162 * infcmd.c (legacy_return_value): Delete function.
5163 * infcall.c (call_function_by_hand): Inline
5164 "register_value_being_returned", simplify.
5165 * values.c (using_struct_return): Update comment, refer to
5166 print_return_value instead of register_value_being_returned.
5167 * infcmd.c (print_return_value): Inline calls to
5168 register_value_being_returned and legacy_return_value. Simplify.
5169
b887c273
RC
51702004-06-11 Randolph Chung <tausq@debian.org>
5171
5172 * somread.c (som_symtab_read): Exclude gcc local symbols.
5173
1b2bfbb9
RC
51742004-06-11 Randolph Chung <tausq@debian.org>
5175
3973a7d3
AC
5176 * infrun.c (handle_inferior_event): Handle the case when a
5177 trampoline ends up in the runtime resolver, and if the trampoline
5178 has no name. Rearrange the code so that all the trampoline
5179 processing happens before other step-out-of-range handling.
1b2bfbb9 5180
a9d61c86
MH
51812004-06-11 Martin Hunt <hunt@redhat.com>
5182
5183 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
5184 has no fpu.
5185
2c87cf5a
AC
51862004-06-10 Andrew Cagney <cagney@gnu.org>
5187
5188 * blockframe.c (legacy_inside_entry_func): Delete.
5189 (legacy_frame_chain_valid): Inline call to
5190 legacy_inside_entry_func, simplify.
5191
0b67b468 51922004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
5193
5194 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
5195 * dwarf2read.c (partial_die_info): Add dirname field.
5196 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
5197 (read_partial_die): Save away DW_AT_comp_dir.
5198 * defs.h (symtab_to_filename): Removed.
5199 * source.c (find_and_open_source): Added.
57c22c6c 5200 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
5201 (symtab_to_filename): Removed.
5202 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
5203 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
5204 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
5205 symtab_to_filename.
5206 * symtab.h (partial_symtab): Add dirname field.
5207 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
5208 (mi_cmd_file_list_exec_source_file): Call new function
5209 symtab_to_fullname to find fullname.
57c22c6c 5210 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 5211 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
5212 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
5213
9a1dd1ad
AC
52142004-06-10 Andrew Cagney <cagney@gnu.org>
5215
239ae8c7
AC
5216 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
5217 to generic_use_struct_convention, the default value.
5218
fc720350
AC
5219 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
5220 of abort.
5221
9a1dd1ad
AC
5222 * ns32k-tdep.c (ns32k_push_arguments): New function.
5223 (ns32k_gdbarch_init): Set deprecated_push_arguments.
5224 * infcall.c (call_function_by_hand): Call error instead of
5225 legacy_push_arguments.
5226 * value.h (legacy_push_arguments): Delete declaration.
5227 * valops.c (legacy_push_arguments): Delete function.
5228 (value_push): Delete function.
5229
fea25152
BF
52302004-06-10 Brian Ford <ford@vss.fsi.com>
5231
5232 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
5233 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
5234 info.
5235 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
5236
30a4a8e0
AC
52372004-06-10 Andrew Cagney <cagney@gnu.org>
5238
5239 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
5240 * gdbarch.h, gdbarch.c: Re-generate.
5241 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
5242 parameters.
5243 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
5244 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
5245 deprecated_pc_in_call_dummy instead of
5246 DEPRECATED_PC_IN_CALL_DUMMY.
5247 (arm_skip_prologue): Ditto.
5248 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
5249 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
5250 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
5251 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
5252 Ditto.
5253 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
5254 (sh64_init_extra_frame_info, sh64_get_saved_register)
5255 (sh64_pop_frame): Ditto.
5256 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
5257 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
5258 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
5259 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
5260 (h8300_pop_frame): Ditto.
5261 * blockframe.c (legacy_inside_entry_func)
5262 (legacy_frame_chain_valid): Ditto.
5263 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
5264 to deprecated_pc_in_call_dummy.
5265
81cfbe54
AC
52662004-06-09 Andrew Cagney <cagney@gnu.org>
5267
a1f4a1b6
AC
5268 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
5269 provide a default value.
5270 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
5271 * gdbarch.h, gdbarch.c: Re-generate.
5272 * arch-utils.c (generic_convert_register_p): Rename
5273 legacy_convert_register_p
5274 (legacy_register_to_value, legacy_value_to_register): Delete
5275 functions.
5276 * arch-utils.h (generic_convert_register_p): Rename
5277 legacy_convert_register_p.
5278 (legacy_register_to_value, legacy_value_to_register): Delete
5279 declarations.
5280
9730f241
AC
5281 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
5282 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
5283 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
5284 * gdbarch.h, gdbarch.c: Re-generate.
5285 * infcmd.c (default_print_registers_info): Simplify.
5286 * findvar.c (value_of_register): Simplify.
5287 * mi/mi-main.c (get_register): Simplify.
5288 * arch-utils.c (legacy_convert_register_p): Always return 0.
5289 (legacy_register_to_value, legacy_value_to_register): Always call
5290 internal_error.
5291
8a1bf479
AC
5292 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
5293 #ifdef CLEAR_INSN_CACHE code.
5294 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
5295 Delete #ifdef CLEAR_DEFERRED_STORES code.
5296
4b38d6f1
AC
5297 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
5298
2d62ecc7
AC
5299 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
5300 copyright.
5301 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
5302
be4f7469
AC
5303 * config/mips/mipsv4.mh: Delete file.
5304
81cfbe54
AC
5305 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
5306 unreferenced macro.
5307 (hpread_adjust_stack_address): Delete declaration.
5308
d966f0cb
AC
53092004-06-08 Andrew Cagney <cagney@gnu.org>
5310
5311 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5312 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
5313 PTRACE_ATTACH / PTRACE_DETACH available call error.
5314 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
5315 * infttrace.c (update_thread_state_after_attach, attach, detach):
5316 Remove #ifdef wrappers.
5317 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
5318 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5319 * config/nm-bsd.h (ATTACH_DETACH): Delete.
5320 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
5321 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
5322 * config/nm-linux.h (ATTACH_DETACH): Delete.
5323 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
5324 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
5325 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
5326 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
5327 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
5328
d91670b9
CV
53292004-06-08 Corinna Vinschen <vinschen@redhat.com>
5330
5331 * configure.in: Set $configdir to the right OS specific value.
5332 Use value when setting $tcldir and $tkdir.
5333 * configure: Regenerate.
5334
28ba0b33
PB
53352004-06-06 Paul Brook <paul@codesourcery.com>
5336
5337 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
5338 records.
5339
f26caa11
PH
53402004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
5341
5342 * ada-lang.c (lookup_symbol_in_language): New function to allow
5343 re-use of another language's symbol lookup code. (Placed here
5344 temporarily while Ada support is being integrated into the public
5345 tree).
5346 (restore_language): New auxiliary function for
5347 lookup_symbol_in_language.
5348 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
5349 temporarily while Ada support is being integrated into the public
5350 tree).
5351
d560a54b
AO
53522004-06-08 Alexandre Oliva <aoliva@redhat.com>
5353
e75d110c
AO
5354 * Makefile.in (check//%): New.
5355
d560a54b
AO
5356 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
5357 (mn10300_store_return_value): Rewrite.
5358 (mn10300_type_align): New.
5359 (mn10300_use_struct_convention): Rewrite.
5360 (mn10300_return_value): New, using all of the above.
5361 (mn10300_pop_frame_regular): Add saved_regs_size.
5362 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
5363
a72fbdb7
AO
5364 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
5365 regs if PC is on movm.
5366
01904826
JB
53672004-06-07 Jim Blandy <jimb@redhat.com>
5368
5369 Add native Linux support for the PowerPC E500.
5370 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
5371 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
5372 all architectures except the E500.
5373 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
5374 #definitions.
5375 (struct gdb_evrregset_t): New type.
5376 (have_ptrace_getsetevrregs): New variable.
5377 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
5378 fetch_spe_registers): New functions.
5379 (fetch_register): Call fetch_spe_register as appropriate.
5380 Assert that we're only passed raw register numbers.
5381 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
5382 Don't fetch gprs if they're pseudoregisters.
5383 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
5384 store_spe_registers): New functions.
5385 (store_register): Call store_spe_register as appropriate.
5386 Assert that we're only passed raw register numbers.
5387 (store_ppc_registers): Call store_spe_registers as appropriate.
5388 Don't store gprs if they're pseudoregisters.
5389
f90ef764
JJ
53902004-06-07 Jeff Johnston <jjohnstn@redhat.com>
5391
5392 * thread-db.c (thread_get_info_callback): Fill in the thread_info
5393 struct if one exists, even if we are dealing with a zombie thread.
5394
45b75230
AC
53952004-06-07 Andrew Cagney <cagney@gnu.org>
5396
5397 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
5398 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
5399 Rename PC_REQUIRES_RUN_BEFORE_USE.
5400 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
5401 #ifdef.
5402
1658da49
RC
54032004-06-07 Randolph Chung <tausq@debian.org>
5404
5405 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
5406 unwinding after sp has been saved to the stack but before the end
5407 of the prologue, and after the fp has been modified but before it has
5408 been saved to the stack.
5409 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
5410 Remove superfluous definitions.
5411 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
5412
9a727a3c
RC
54132004-06-07 Guy Martin <gmsoft@gentoo.org>
5414
5415 Committed by Randolph Chung.
5416 * hppa-linux-nat.c: Include the correct version of the header file
5417 depending on the kernel version.
5418
9e500012
RC
54192004-06-06 Randolph Chung <tausq@debian.org>
5420
5421 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
5422 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
5423
3388d7ff
RC
54242004-06-06 Randolph Chung <tausq@debian.org>
5425
5426 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
5427 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
5428 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
5429 * hppa-tdep.c (hppa_symbol_address): New function definition.
5430 * hppa-tdep.h (hppa_symbol_address): New function declaration.
5431
d49771ef
RC
54322004-06-06 Randolph Chung <tausq@debian.org>
5433
5434 * hppa-tdep.h (struct value): Forward declaration.
5435 (gdbarch_tdep): Define tdep find_global_pointer method.
5436 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
5437 associated with the function we are trying to call, and write it
5438 to the gp register.
5439 (hppa32_convert_from_funct_ptr_addr): New function.
5440 (hppa_find_global_pointer): New function.
5441 (hppa_gdbarch_init): Set default find_global_pointer method; set
5442 convert_from_func_ptr_addr method.
5443 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
5444 (hppa_linux_init_abi): Set find_global_pointer method.
5445 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
5446
7d9b040b
RC
54472004-06-06 Randolph Chung <tausq@debian.org>
5448
5449 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
5450 to struct value *function.
5451 * gdbarch.c: Regenerate.
5452 * gdbarch.h: Likewise.
5453 * infcall.c (call_function_by_hand): Pass entire function value
5454 to push_dummy_call.
5455
5456 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
5457 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
5458 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
5459 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
5460 * arm-tdep.c (arm_push_dummy_call): Likewise.
5461 * avr-tdep.c (avr_push_dummy_call): Likewise.
5462 * cris-tdep.c (cris_push_dummy_call): Likewise.
5463 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
5464 * frv-tdep.c (frv_push_dummy_call): Likewise.
5465 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
5466 * hppa-tdep.c (hppa32_push_dummy_call)
5467 (hppa64_push_dummy_call): Likewise.
5468 * i386-tdep.c (i386_push_dummy_call): Likewise.
5469 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
5470 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
5471 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
5472 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
5473 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
5474 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
5475 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
5476 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
5477 (ppc64_sysv_abi_push_dummy_call): Likewise.
5478 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
5479 (ppc64_sysv_abi_push_dummy_call): Likewise.
5480 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
5481 * s390-tdep.c (s390_push_dummy_call): Likewise.
5482 * sh-tdep.c (sh_push_dummy_call_fpu)
5483 (sh_push_dummy_call_nofpu): Likewise.
5484 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
5485 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
5486 * vax-tdep.c (vax_push_dummy_call): Likewise.
5487
4a19ea35
JB
54882004-06-04 Jim Blandy <jimb@redhat.com>
5489
8327ccee
JB
5490 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
5491 gdbarch argument to register_size.
5492
a3c001ce
JB
5493 * rs6000-tdep.c (rs6000_store_return_value): Use
5494 regcache_cooked_write_part instead of
5495 deprecated_write_register_bytes.
5496 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
5497 not gdbarch_deprecated_store_return_value.
5498
4a19ea35
JB
5499 * ppc-linux-nat.c (store_register, fetch_register): Remove
5500 incorrect assertions. Simplify and generalize handling of
5501 transfers whose sizes are not multiples of, or less than, sizeof
5502 (PTRACE_XFER_TYPE).
5503
b9b5d7ea
JJ
55042004-06-04 Jeff Johnston <jjohnstn@redhat.com>
5505
5506 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
5507 as a new thread event.
720c7d64 5508 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 5509 zombie, return TD_THR_ZOMBIE.
720c7d64 5510 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
5511 TD_THR_ZOMBIE, check if the thread is still on the thread list
5512 and return a -1 ptid if not found.
5513 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
5514 change the status to TARGET_WAITKIND_SPURIOUS.
5515
c8a3b559
CV
55162004-06-03 Corinna Vinschen <vinschen@redhat.com>
5517
5518 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
5519 double values in little endian mode.
5520
20605361
AC
55212004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
5522
5523 Committed by Andrew Cagney.
5524 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
5525 after last enum constant to avoid error from IBM C
5526 compiler.
5527
bc97b3ba
JB
55282004-06-02 Jim Blandy <jimb@redhat.com>
5529
5530 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
5531 to 'message', and make it local to the lone block that uses it.
5532
1da28ab0
JB
5533 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
5534
4c4b4cd2
PH
55352004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
5536
8a2225b2
PH
5537 * ada-exp.y: Update copyright notice.
5538 Include block.h.
5539
5540 Replace REGNAME, LAST, INTERNAL_VARIABLE with
5541 SPECIAL_VARIABLE and unify the treatment of these cases.
5542
5543 (write_attribute_call0): Remove.
5544 (write_attribute_call1): Remove.
5545 (write_attribute_calln): Remove.
5546 (save_qualifier): Add missing semicolon.
5547
5548 (simple_exp,exp): Decomment (i.e., reactivate) code that was
5549 temporarily disabled to allow compilation with FSF head version.
5550
5551 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
5552 use individual operators (OP_*) for all attributes.
5553 (exp syntax): Use write_int.
5554 Handle STRING literals with OP_STRING.
5555 (variable syntax): Add limit parameter to calls to
5556 write_object_renaming.
5557
5558 (temp_parse_space): New definition to hold entities that need
5559 only live until the next call to ada_parse.
5560 (string_to_operator): Rename fields of ada_opname_table entries.
5561
5562 (write_var_from_sym): Record block.
5563 (write_var_from_name): Minor reformatting.
5564 Make sure saved name is properly encoded in the case of multiple
5565 matches, and set its language to Ada.
5566 Update comment.
5567 Modify to indicate unresolved name as symbol in the UNRESOLVED
5568 namespace, allocated in temp_parse_space.
5569 (write_int): New function.
5570
5571 (write_object_renaming): Add max_depth parameter to limit
5572 chains of object renamings.
5573 Handle case where root of renaming expression is itself a renaming.
5574 Use temp_parse_space for temporary name buffer.
5575 Handle renamings to dereferenced pointers (___XEXA suffices).
5576
5577 (ada_parse, yyerror, string_to_operator,
5578 write_var_from_sym, write_var_from_name, write_attribute_call0,
5579 write_attribute_call1, write_attribute_calln,
5580 write_object_renaming): Protoize.
5581
5582 (_initialize_ada_exp): New function.
5583
5584 * ada-lang.c: Update copyright notice.
5585 General terminology change to conform to GNAT compiler usage:
5586 mangle => encode, demangle => decode
5587 Include gdb_obstack.h.
5588 Include gdb_regex.h
5589 Include frame.h
5590 Include hashtab.h
5591 Include completer.h
5592 Include gdb_stat.h
5593 Include block.h
5594 Include infcall.h
5595
5596 (ADA_RETAIN_DOTS): Make sure this is defined.
5597 (TRUNCATION_TOWARDS_ZERO): Define.
5598 (struct string_vector): Define.
5599 (unresolved_names): Remove definition.
5600 (xnew_string_vector): New function.
5601 (string_vector_append): New function.
5602 (extract_string): Make static.
5603 (ada_unqualified_name): New function.
5604 (add_angle_brackets): New function.
5605 (function_name_from_pc): New function.
5606 (place_on_stack): Rename to ensure_lval.
5607
5608 (ensure_lval): Renamed from place_on_stack.
5609 Make identity on lvals.
5610 Update comment.
5611 (is_nonfunction): New interface.
5612 Only symbols in LOC_CONST class can be enumerals.
5613 (fill_in_ada_prototype): Remove; now independent of language.
5614 (add_defn_to_vec): Add obstack and symtab arguments.
5615 Use obstack to hold collected definitions.
5616 (num_defns_collected): New function.
5617 (defns_collected): New function.
5618 (ada_resolve_subexp): Rename to resolve_subexp.
5619 (resolve_subexp): Renamed from ada_resolve_subexp.
5620 (ada_op_name): Return non-const result.
5621 (ada_decoded_op_name): Renamed from ada_op_name, now used for
5622 other purposes.
5623
5624 (to_fixed_array_type): Add declaration.
5625 (coerce_unspec_val_to_type): Remove offset parameter.
5626 (find_sal_from_funcs_and_line): New interface.
5627 (find_line_in_linetable): Ditto.
5628
5629 (all_sals_for_line): Rename to ada_sals_for_line and make
5630 global.
5631 Add new parameter. When set, do not ask the user to choose the
5632 instance, but use the first one found instead.
5633 Use given line number in returned sals.
5634 Fix comment.
5635 Skip the prologue if funfirstline is set.
5636 Correct for memory leak when 0 lines found.
5637
5638 (value_pos_atr): Use pos_atr.
5639 (pos_atr): New function.
5640 (standard_lookup): Add block parameter.
5641
5642 (makeTimeStart): Remove declaration and uses.
5643 (makeTimeStop): Remove declaration and uses.
5644
5645 (ada_completer_word_break_characters): Allow for VMS.
5646 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
5647 (raise_sym_name): New constant.
5648 (raise_unhandled_sym_name): New constant.
5649 (raise_assert_sym_name): New constant.
5650 (process_raise_exception_name): New constant.
5651 (longest_exception_template): New constant.
5652 (warning_limit): New variable to limit warnings during expression
5653 evaluation.
5654 (warnings_issued): New variable to keep track of warnings issued.
5655 (known_runtime_file_name_patterns): New constant.
5656 (known_auxiliary_function_name_patterns): New constant.
5657 (symbol_list_obstack): New variable.
5658
5659 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
5660 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
5661 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
5662 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
5663 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
5664 ada_variant_discrim_name, field_alignment, dynamic_template_type,
5665 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
5666 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
5667 and strcmp.
5668
5669 (ada_get_field_index): New function.
5670 (lim_warning): New function.
5671 (ada_translate_error_message): New function.
5672 (MAX_OF_SIZE): New function.
5673 (MIN_OF_SIZE): New function.
5674 (UMAX_OF_SIZE): New function.
5675 (UMIN_OF_SIZE): New function.
5676 (discrete_type_high_bound): New function.
5677 (discrete_type_low_bound): New function.
5678 (base_type): New function.
5679 (do_command): Remove.
5680
5681 (ada_update_initial_language): Use language_ada, not language_unknown.
5682 (ada_encode): Renamed from ada_mangle.
5683 Obey ADA_RETAIN_DOTS.
5684 (ada_decode): Renamed from ada_demangle.
5685 Update coding conventions.
5686 (decoded_names_store): New hash table.
5687 (ada_decode_symbol): New function.
5688 (ada_la_decode): New function.
5689
5690 (modify_general_field): Correct computations of offset and bit
5691 position.
5692 (desc_base_type): Handle ref types, too.
5693 (ada_is_direct_array_type): New function.
5694
5695 (ada_is_simple_array): Rename to ada_is_simple_array_type.
5696 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
5697 (ada_is_bogus_array_descriptor,ada_type_of_array,
5698 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
5699 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
5700 ada_is_array_descriptor_type.
5701
5702 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
5703 (ada_is_packed_array_type): Handle pointers or
5704 references to packed arrays as well.
5705 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
5706 (decode_packed_array_type): Search for the packed array type
5707 symbol in the currently selected block and associated
5708 superblocks too.
5709 Use lookup_symbol again.
5710
5711 (decode_packed_array): Handle pointers and references.
5712 Update call to coerce_unspec_val_to_type.
5713 (decode_packed_array_type,value_subscript_packed): Limit warnings.
5714 (ada_value_primitive_packed_val): Improve comment.
5715
5716 (ada_index_type): Substitute int type for "undefined".
5717 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
5718 ada_array_langth, ada_is_string_type): Use renamed
5719 ada_is_simple_array_type.
5720 (empty_array): New function.
5721
5722 (ada_resolve): Rename to resolve.
5723 (resolve): Make static.
5724 Call renamed resolve_subexp.
5725 Update comment.
5726 (ada_resolve_subexp): Rename to resolve_subexp.
5727 (resolve_subexp): Update comment.
5728 Decomment disabled code.
5729 Add LOC_COMPUTED* cases.
5730 Modify to use temporary struct symbols (marked as being in
5731 UNDEF_NAMESPACE) to indicate unresolved names, instead of
5732 OP_UNRESOLVED_VALUE.
5733 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
5734 Add OP_STRING case.
5735 Remove OP_ARRAY.
5736 Use SYMBOL_PRINT_NAME instead of ada_demangle.
5737 Use new ada_lookup_symbol_list interface.
5738 Use new ada_resolve_function interface.
5739 Remove OP_TYPE case.
5740
5741 (ada_args_match): Idiot proof against null actuals.
5742 Use intermediate variables to clarify.
5743 (ada_resolve_function): Update comment and interface.
5744 (mangled_ordered_before): Rename to encoded_ordered_before and
5745 update comment.
5746 (sort_choices): Update comment and interface.
5747 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
5748 (user_select_syms): New interface.
5749 Use new sort_choices interface.
5750 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
5751 (possible_user_operator_p): Idiot-proof against null values.
5752 (ada_simple_renamed_entity): Don't make cleanup; rely on
5753 caller to free result string.
5754 Remove const from return type.
5755 (make_array_descriptor): Rename uses of place_on_stack to
5756 ensure_lval.
5757 Make sure that arrays are on stack.
5758
5759 (HASH_SIZE): Define.
5760 (struct cache_entry): Define.
5761 (cache_space): Define.
5762 (cache): Define.
5763 (clear_ada_sym_cache): New function.
5764 (find_entry): New function.
5765 (lookup_cached_symbol): New function.
5766 (defn_vector_size): Define.
5767 (cache_symbol): New function.
5768 (defn_symbols): Remove.
5769
5770 (standard_lookup): Use lookup_symbol_in_language to get effect of
5771 C lookup.
5772 Cache results.
5773
5774 (symbol_completion_match): New function.
5775 (symbol_completion_add): New function.
5776 (ada_make_symbol_completion_list): New function.
5777
5778 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
5779 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
5780 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
5781 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
5782
5783 (ada_lookup_simple_minsym): New function.
5784 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
5785
5786 (add_symbols_from_enclosing_procs): New interface.
5787 Conditionalize more helpfully.
5788 Don't bother if program isn't running.
5789 Use new interface to get_frame_block.
5790 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
5791
5792 (remove_extra_symbols): New interface.
5793 (xget_renaming_scope): New function.
5794 (is_package_name): New function.
5795 (renaming_is_visible): New function.
5796 (remove_out_of_scope_renamings): New function.
5797
5798 (ada_lookup_symbol_list): New interface.
5799 Properly reinitialize the symbol list obstack.
5800 Don't call add_symbols_from_enclosing_procs if we start from a
5801 static or global block.
5802 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
5803 add_symbols_from_enclosing_procs.
5804 Add symtab data to cached entries.
5805 Handle symbols prefixed with
5806 "standard__" specially; strip prefix and don't look in local symbols.
5807 Do not include out of scope renaming symbols in list of
5808 symbols returned.
5809 Add const to block parameter.
5810 Move check for non-local, non-global symbols earlier.
5811 Remove timing stuff.
5812 (ada_lookup_symbol): New interface.
5813 Find symtab as well.
5814 (ada_lookup_symbol_nonlocal): New function.
5815
5816 (is_name_suffix): Enhance suffix detection to recognize
5817 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
5818 (is_dot_digits_suffix): New function.
5819 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
5820
5821 (ada_add_block_symbols): New interface. Use obstack to return results
5822 in a vector of struct ada_symbol_infos. Add symtab argument.
5823 Use new interface to add_defn_to_vec.
5824 Remove calls to fill_in_ada_prototype.
5825 Use BLOCK_BUCKETS, BLOCK_BUCKET.
5826
5827 (ada_finish_decode_line_1): Add const qualification to local to fix
5828 warning.
5829 Start looking in static block for functions to avoid attempts
5830 to search frame chain for up-level variables.
5831 Adapt to new ada_sals_for_line interface.
5832 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
5833 Handle quoting of the function name inside the spec string.
5834 Skip prologue when funfirstline is set and update the
5835 function documentation to that effect.
5836
5837 (debug_print_lines, debug_print_block, debug_print_blocks,
5838 debug_print_symtab): Remove.
5839
5840 (ada_main_name): New function.
5841 (ada_exception_breakpoint_type): New function.
5842 (is_known_support_routine): New function.
5843 (ada_find_printable_frame): Renamed from find_printable_frame and made
5844 global.
5845 Remove level parameter.
5846 Use new interface to select_frame.
5847
5848 (begin_command): Remove.
5849 (ada_adjust_exception_stop): New function.
5850 (ada_print_exception_stop): New function.
5851 (exception_name_from_cond): New function.
5852 (ada_report_exception_break): Replace disabled code with
5853 conditionalization on GNAT_GDB.
5854 Get the exception name from the condition string.
5855 Remove and move functionality into new functions
5856 ada_print_exception_breakpoint_task and
5857 ada_print_exception_breakpoint_nontask.
5858 (error_breakpoint_runtime_sym_not_found): New function.
5859 (is_runtime_sym_defined): New function.
5860 (ada_breakpoint_rewrite): Uncomment suppressed code.
5861 Use symbolic error-message and runtime-symbol names.
5862 Surround runtime symbol names in quotes.
5863 Allow non-specific breakpoints on exceptions and assertions before
5864 program starts.
5865
5866 (ada_is_tagged_type): Add parameter.
5867 (ada_is_tag_type): New function.
5868 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
5869 (ada_variant_discrim_type): Ditto.
5870 (value_tag_from_contents_and_address): New function.
5871 (type_from_tag): New function.
5872 (struct tag_args): New structure used to communicate with
5873 ada_tag_name_1.
5874 (ada_tag_name_1): New function.
5875 (ada_tag_name): New function.
5876
5877 (ada_scan_number): Update comment.
5878 (find_struct_field): New function.
5879 (ada_search_struct_field): Make static.
5880 (ada_value_struct_elt): New version that returns references when
5881 given pointers or references to structs.
5882 (ada_lookup_struct_elt_type): Add 'refok' parameter.
5883 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
5884 interface.
5885 (ada_value_ind): Use new ada_to_fixed_value interface.
5886 (ada_coerce_ref): Ditto.
5887 (field_offset): Remove.
5888
5889 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
5890 (ada_find_renaming_symbol): New function.
5891 (ada_prefer_type): Prefer named types over unnamed ones.
5892 (variant_field_index): New function.
5893 (contains_variant_part): Removed: subsumed by variant_field_index.
5894 (ada_template_to_fixed_record_type): New function, mostly from
5895 template_to_fixed_record_type.
5896 (template_to_fixed_record_type):
5897 Do not scan the type fields beyond the last one; prevents a
5898 potential SEGV.
5899 Handle case where variant field is listed BEFORE discriminant it
5900 depends on.
5901 Fix calculation of record length when bit length is
5902 not evenly divisible by char length.
5903 Move code to ada_template_to_fixed_record_type and call it.
5904
5905 (template_to_static_fixed_type): Revise comment.
5906 Modify to work on ordinary record types as well as templates,
5907 so as to handle fields that use ___XVE or ___XVU encodings.
5908 (to_record_with_fixed_variant_part): Fill out comment.
5909 Initialize C++ stuff in right type.
5910 Allow case where DVAL is null.
5911 Handle case where variant field is not last.
5912 Fix typo concerning record length.
5913 (to_fixed_record_type): Decomment disabled code.
5914 (to_fixed_record_type): Use variant_field_index instead of
5915 contains_variant_part.
5916 (to_fixed_variant_branch_type): Ditto.
5917 (to_fixed_array_type): Decomment disabled code.
5918 (ada_to_fixed_type): Convert tagged types to the specific type.
5919 Deactivate the size-check for array types in order to avoid
5920 some false size alarms.
5921 (to_static_fixed_type): Decomment disabled code.
5922 Modify to call template_to_static_fixed_type
5923 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
5924 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
5925 Remove valaddr argument, as it is never really used.
5926 (ada_to_fixed_value): Change interface to act on single struct value*
5927 operand.
5928 (adjust_pc_past_prologue): New function.
5929 (ada_attribute_name): Modify to take enum exp_opcode argument.
5930
5931 (ada_enum_name): Recognize new homonym-distinguishing convention.
5932 Adjust local variable's type to remove compiler warning.
5933 Fix a small problem in the part that unqualifies the enumeration name.
5934 (ada_value_binop): New function.
5935 (ada_value_equal): New function.
5936
5937 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
5938 Don't give error message when not doing normal evaluation
5939 and a tagged type doesn't seem to contain a structure member.
5940 Give error message for packed arrays.
5941 For indexing arrays, handle pointers to packed arrays correctly.
5942 Handle case of 'first and 'last attributes of bare integral type
5943 without encoded subtype info.
5944 Remove some unnecessary casts.
5945 Fix uninitialized value of type in computing 'first, 'last, or 'length
5946 of array object.
5947 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
5948 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
5949 calls.
5950 Attributes are now exp_opcode values.
5951 Correct treatment of 'modulus.
5952 Better error message for taking 'length of wrong kind of type;
5953 improve comment.
5954 Change EVAL_NORMAL to noside for consistency.
5955 Use ada_value_binop for DIV, MOD, REM.
5956 Make special case out of array of length 0, since an argument
5957 of 0 upsets some platforms' malloc.
5958 Use OP_STRING instead of OP_ARRAY.
5959 For slice, add check that we have an array type before extracting
5960 a slice out of it. Avoids a SEGV.
5961 When evaluating an array slice, if the array type is a reference to
5962 an aligner type, then replace the aligner type by the actual type.
5963 Decomment disabled code.
5964 Remove some dead code.
5965 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
5966 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
5967 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
5968 and UNOP_MBR to UNOP_IN_RANGE.
5969 If an array type has a parallel ___XVE type, then use it.
5970 Turn arrays into pointers for lvalue arrays.
5971 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
5972 bounds error and handle 0-length slices.
5973 Use lim_warning.
5974 When selecting fields, apply ada_to_fixed_value (because the fields
5975 might have ___XVU or ___XVE encodings even if not dynamic.)
5976 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
5977 (ada_is_system_address_type): New function.
5978
5979 (get_var_value): Use new interface to ada_lookup_symbol_list.
5980 (get_int_var_value): New interface.
5981 (to_fixed_range_type): Allow unknown bound, with warning.
5982 (ada_is_modular_type): Decomment disabled code.
5983 (ADA_OPERATORS): New definition.
5984 (ada_operator_length): New function.
5985 (ada_expr_op_name): New function.
5986 (ada_forward_operator_length): New function.
5987 (ada_dump_subexp_body): New function.
5988 (ada_print_subexp): New function.
5989 (ada_exp_descriptor): New constant.
5990 (ada_op_print_tab): Add 'size. Remove FIXMEs.
5991 (ada_language_defn): Add ada_exp_descriptor entry.
5992 Change ada_parse => parse.
5993 Add post-parser entry.
5994 Use ada-specific non-local symbol lookup.
5995 Don't use C-style arrays.
5996 String lower-bound is 1.
5997 Decomment disabled code.
5998 (parse): New function.
5999 New fields ada_translate_error_message, ada_lookup_symbol,
6000 ada_lookup_minimal_symbol.
6001
6002 * ada-lang.h: Update copyright dates.
6003 Replace the mangle/demangle terminology throughout by the
6004 more appropriate encode/decode one.
6005 Include breakpoint.h.
6006 Forward declare struct partial_symbol, struct block.
6007 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
6008 (EXTRACT_ADDRESS): Remove.
6009 (EXTRACT_INT): Remove.
6010 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
6011 (MAX_ENCLOSING_FRAME_LEVELS): Define.
6012 (MAX_RENAMING_CHAIN_LENGTH): Define.
6013 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
6014
6015 (enum task_states): Remove.
6016 ada_task_states: Remove.
6017 (fat_string): Remove.
6018 (struct entry_call): Remove.
6019 (struct task_fields): Remove.
6020 (struct task_entry): Remove.
6021
6022 (struct ada_symbol_info): Define.
6023 (enum ada_attribute): Remove.
6024 (enum ada_operator): Define.
6025
6026 (ada_get_field_index): Declare.
6027 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
6028 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6029 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6030 (ada_lookup_symbol_list): New interface.
6031 (ada_decode_symbol): Declare.
6032 (ada_decode): Declare.
6033 (ada_lookup_symbol): New interface.
6034 (ada_update_initial_language): Declare.
6035 (ada_lookup_simple_minsym): Declare.
6036 (user_select_syms): New interface.
6037 (ada_sals_for_line): Declare.
6038 (ada_is_tagged_type): New interface.
6039 (ada_tag_name): Declare.
6040 (ada_lookup_struct_elt_type): Remove declaration.
6041 (ada_search_struct_field): Remove declaration.
6042 (ada_attribute_name): New interface.
6043 (ada_is_system_address_type): Declare.
6044 (ada_to_fixed_value): Remove declaration.
6045 (ada_template_to_fixed_record_type_1): Declare.
6046 (get_int_var_value): New interface.
6047 (ada_find_any_symbol): Declare.
6048 (ada_find_renaming_symbol): Declare.
6049 (ada_mangle): Rename to ada_encode.
6050 (ada_simple_renamed_entity): Remove const.
6051 (ada_main_name): Declare.
6052 (get_current_task): Rename to ada_get_current_task.
6053 (get_entry_number): Remove declaration.
6054 (ada_report_exception_break): Remove declaration.
6055 (ada_print_exception_breakpoint_nontask): Declare.
6056 (ada_print_exception_breakpoint_task): Declare.
6057 (ada_find_printable_frame): Declare.
6058
6059 * ada-lex.l: Update copyright notices.
6060 Use xmalloc and xfree instead of malloc and free.
6061 Use new interface to name_lookup.
6062 Use new interface to
6063 ada_mangle=>ada_encode.
6064 Redo handling of '$...' variable to parallel current treatment
6065 in c-exp.y.
6066 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
6067 digit_to_int, strtoulst, processInt, processReal, processId,
6068 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
6069 yywrap): Protoize.
6070
6071 (processInt): Use cast to remove harmless warning.
6072 (processReal): Modify to get rid of compiler warning on scan formats.
6073
6074 (processId): Replace xmalloc with obstack_alloc for name and remove
6075 call to ada_name_string_cleanup.
6076 Remove obsolete disabled code.
6077 (name_lookup): Ditto.
6078 New interface.
6079 Use obsavestring on temp_parse_space instead of savestring
6080 on name, and remove call to ada_name_string_cleanup.
6081 Free string returned from ada_simple_renamed_entity.
6082 Use new interface to ada_lookup_symbol_list.
6083 Decomment disabled code.
6084 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
6085 not types.
6086 When a type name lookup succeeds as a result of
6087 lookup_primitive_typename, check for regular type entry that has not
6088 yet been read in.
6089 Limit length of chain of renamed symbols we are willing to follow.
6090 Do not break names beginning with "standard__" into segments.
6091 (block_lookup): Use new interface to ada_lookup_symbol_list.
6092
6093 * ada-typeprint.c: Update copyright notice.
6094 (demangled_type_name): Rename to decoded_type_name.
6095 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
6096 (print_range_bound): Correct handling of negative
6097 bounds that make the index type looked unsigned under STABS.
6098 (print_dynamic_range_bound): Use new interface to get_int_var_value.
6099 (print_range_type_named): Use the builtin int type if no type
6100 corresponding to the given type name could be found.
6101 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
6102 Add some bullet-proofing.
6103 (print_variant_clauses): Allow for variant branches with ___XVU
6104 encodings that are not dynamic fields.
6105 Use new interface to ada_is_tagged_type.
6106 (print_record_type): Allow for fields with ___XVE encodings that
6107 are not dynamic fields.
6108 Use new interface to ada_is_tagged_type.
6109 (ada_print_type): ada_is_array_descriptor =>
6110 ada_is_array_descriptor_type.
6111
6112 * ada-valprint.c: Update copyright notice.
6113 Include gdb_string.h
6114 Include infcall.h
6115 (ui_memcpy): New function.
6116 (ada_print_floating): New function.
6117 (ada_print_str): Order arguments correctly.
6118 Correct handling of empty arrays and arrays of 0-length items.
6119 ada_is_array_descriptor => ada_is_array_descriptor_type
6120 Print values of type System.Address in hexadecimal format.
6121 Use ada_print_floating to print floating-point numbers in Ada format.
6122 Print class tag values with type names.
6123 No longer print the address of reference values. Avoids
6124 a potential confusion.
6125 (ada_value_print): Stop printing the object type for reference
6126 values, but preserve that behavior for access types. Avoids
6127 a potential confusion.
6128 Simplify one conditional expression, as the first part is now
6129 necessarily true.
6130 ada_is_array_descriptor => ada_is_array_descriptor_type
6131 Add check for arrays for null records, and print them by hand.
4c4b4cd2 6132
f65f91b5
JB
61332004-06-01 Jim Blandy <jimb@redhat.com>
6134
6135 * ppc-tdep.h: Delete unused 'regoff' member.
6136 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
6137
d4687fa0
MC
61382004-06-01 Michael Chastain <mec.gnu@mindspring.com>
6139
6140 Fix PR symtab/1661.
6141 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
6142 (hpread_read_struct_type): Likewise.
6143
de169ec9
AC
61442004-06-01 Andrew Cagney <cagney@gnu.org>
6145
c6902d46
AC
6146 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
6147 instead of xasprintf.
6148 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
6149 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
6150 (mi_cmd_data_list_register_names)
6151 (mi_cmd_data_list_changed_registers)
6152 (mi_cmd_data_list_register_values)
6153 (get_register, mi_cmd_data_write_register_values)
6154 (mi_cmd_data_write_register_values)
6155 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
6156 (mi_cmd_target_download, mi_cmd_target_select)
6157 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
6158 (mi_execute_cli_command, mi_execute_async_cli_command)
6159 (mi_execute_async_cli_command): Ditto.
6160 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
6161 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
6162
6085fc2d
AC
6163 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
6164 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
6165 error_last_message instead of mi_error_last_message.
6166 * mi/mi-main.c (mi_error_last_message): Delete function.
6167
de169ec9
AC
6168 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
6169 "invalid number of columns" error. Delete redundant "out of
6170 memory" check.
6171
1fc7d519
MK
61722004-05-31 Mark Kettenis <kettenis@gnu.org>
6173
6cfb2041
MK
6174 * i386bsd-nat.c: Don't include <sys/procfs.h>.
6175 (gregset_t, fpregset_t): Remove typedefs.
6176 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
6177 (REG_OFFSET): Rename argument.
6178 (i386bsd_r_reg_offset): Rename from reg_offset.
6179 (REG_ADDR): Remove macro.
6180 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
6181 functions.
6182 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
6183 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
6184 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
6185 instead of supply_gregset.
6186 (store_inferior_registers): Use `struct reg' and `struct fpreg'
6187 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
6188 instead of fill_gregset.
6189 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
6190
1fc7d519
MK
6191 * i386bsd-nat.c: Don't include "gregset.h".
6192 (supply_gregset, fill_gregset): Make static.
6193 (supply_fpregset, fill_fpregset): Remove.
6194 * Makefile.in (i386bsd-nat.o): Update dependencies.
6195
2c34abbe
MK
61962004-05-30 Mark Kettenis <kettenis@gnu.org>
6197
448724fb
MK
6198 * fbsd-proc.c: Include "regcache.h", "regset.h" and
6199 "gdb_assert.h". Con't include "gregset.h".
6200 (fbsd_make_corefile_notes): Use regset-based core file support
6201 instead off fill_gregset and fill_fpregset.
6202 * Makefile.in (fbsd-proc.o): Update dependencies.
6203
5ca8ca7c
MK
6204 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
6205 instructions.
6206 (m88k_frame_prev_register): Simplify code a bit.
6207
593adc23
MK
6208 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
6209 (amd64_collect_fpregset): New function.
6210 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
6211
8d1b517b
MK
6212 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
6213
7fdafb5a
MK
6214 * i386-tdep.c (i386_supply_gregset): Adjust comment.
6215 (i386_collect_gregset): New function.
6216 (i386_supply_fpregset): Adjust comment.
6217 (i386_collect_fpregset): New function.
6218 (i386_regset_from_core_section): Use i386_collect_gregset and
6219 i386_collect_fpregset.
6220
8693c419
MK
6221 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
6222 handle VALUEP being null.
6223
2c34abbe
MK
6224 * regset.h (collect_regset_ftype): Unconstify fourth argument.
6225
45d134d8
MK
62262004-05-29 Mark Kettenis <kettenis@gnu.org>
6227
1698f4e7
MK
6228 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
6229
45d134d8
MK
6230 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
6231 assembler in OpenBSD 3.5-current.
6232 (amd64obsd_sigcontext_addr): Likewise.
6233
691d145a
JB
62342004-05-28 Jim Blandy <jimb@redhat.com>
6235
6236 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
6237 register set, so our regcache isn't declared "legacy" and our E500
6238 pseudoregister read and write functions aren't ignored.
6239 (rs6000_register_byte, rs6000_register_raw_size,
6240 rs6000_register_virtual_type, rs6000_register_convertible,
6241 rs6000_register_convert_to_virtual,
6242 rs6000_register_convert_to_raw): Deleted.
6243 (rs6000_register_type, rs6000_convert_register_p,
6244 rs6000_register_to_value, rs6000_value_to_register): New
6245 functions.
6246 (rs6000_gdbarch_init): Don't register
6247 gdbarch_deprecated_register_size,
6248 gdbarch_deprecated_register_bytes,
6249 gdbarch_deprecated_register_byte,
6250 gdbarch_deprecated_register_raw_size,
6251 gdbarch_deprecated_register_virtual_type,
6252 gdbarch_deprecated_register_convertible,
6253 gdbarch_deprecated_register_convert_to_virtual, or
6254 gdbarch_deprecated_register_convert_to_raw methods. Instead,
6255 register gdbarch_register_type, gdbarch_convert_register_p,
6256 gdbarch_register_to_value, and gdbarch_value_to_register methods.
6257
18ed0c4e
JB
62582004-05-26 Jim Blandy <jimb@redhat.com>
6259
6260 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
6261 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
6262 functions, updated to match the register numberings used in GCC.
6263 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
6264 rs6000_dwarf2_reg_to_regnum as register number conversions
6265 functions for STABS and Dwarf2.
6266
779af9e3
RC
62672004-05-26 Randolph Chung <tausq@debian.org>
6268
6269 * infttrace.h (target_waitkind): Forward declare type instead of pulling
6270 in header file.
6271
c23968a2
JB
62722004-05-25 Joel Brobecker <brobecker@gnat.com>
6273
6274 * NEWS: Document new "start" command.
6275
3a7d1c27
RC
62762004-05-25 Randolph Chung <tausq@debian.org>
6277
6278 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
6279 hppa-linux.
6280
43613416
RC
62812004-05-25 Randolph Chung <tausq@debian.org>
6282
6283 * hppa-hpux-tdep.c (offsetof): Define.
6284 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
6285 (hppa32_hpux_frame_base_before_sigtramp)
6286 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
6287 (hppa64_hpux_frame_saved_pc_in_sigtramp)
6288 (hppa64_hpux_frame_base_before_sigtramp)
6289 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
6290 functions.
6291 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
6292 (hppa_hpux_sigtramp_frame_unwind_cache)
6293 (hppa_hpux_sigtramp_frame_this_id)
6294 (hppa_hpux_sigtramp_frame_prev_register)
6295 (hppa_hpux_sigtramp_frame_unwind)
6296 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
6297 (hppa_hpux_init_abi): Register sigtramp unwinder.
6298 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
6299
6d1be3f1
RC
63002004-05-25 Randolph Chung <tausq@debian.org>
6301
6302 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
6303 and multiple stack unwinds.
6304 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
6305
97c34f65
AC
63062004-05-25 Andrew Cagney <cagney@gnu.org>
6307
6308 * symfile.h (symbol_file_add_from_memory): Delete declaration.
6309 * symfile-mem.h: Delete file.
6310 * symfile-mem.c: Do not include "symfile-mem.h".
6311 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
6312 "struct bfd_section". When an error do not bother returning NULL.
6313 (add_symbol_file_from_memory_command): Use "struct bfd" and
6314 "struct bfd_section".
6315 * Makefile.in (symfile_mem_h): Delete.
6316 (symfile-mem.o): Update dependencies.
6317
e23cbd82
NR
63182004-05-25 Nick Roberts <nickrob@gnu.org>
6319
6320 * gdb-mi.el: New file.
6321
20d2ca3e
AC
63222004-05-25 Andrew Cagney <cagney@gnu.org>
6323
6324 * inftarg.c: Include "observer.h".
6325 (child_attach, child_create_inferior): Notify inferior_created.
6326 * corelow.c: Include "observer.h".
6327 (core_open): Notify inferior_created.
6328 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
6329
c27cda74
AC
63302004-05-25 Andrew Cagney <cagney@gnu.org>
6331
6332 * target.h (struct target_ops): Add from_tty to
6333 to_create_inferior.
6334 (target_create_inferior, find_default_create_inferior): Update.
6335 * infcmd.c (run_command): Update.
6336 * wince.c (child_create_inferior): Update.
6337 * win32-nat.c (child_create_inferior): Update.
6338 * uw-thread.c (uw_thread_create_inferior): Update.
6339 * thread-db.c (thread_db_create_inferior): Update.
6340 * target.c (debug_to_create_inferior)
6341 (find_default_create_inferior): Update.
6342 (maybe_kill_then_create_inferior): Update.
6343 * sol-thread.c (sol_thread_create_inferior): Update.
6344 * remote.c (extended_remote_async_create_inferior)
6345 (extended_remote_create_inferior): Update.
6346 * remote-vx.c (vx_create_inferior): Update.
6347 * remote-st.c (st2000_create_inferior): Update.
6348 * remote-sim.c (gdbsim_create_inferior): Update.
6349 * remote-sds.c (sds_create_inferior): Update.
6350 * remote-rdp.c (remote_rdp_create_inferior): Update.
6351 * remote-rdi.c (arm_rdi_create_inferior): Update.
6352 * remote-m32r-sdi.c (m32r_create_inferior): Update.
6353 * remote-e7000.c (e7000_create_inferior): Update.
6354 * procfs.c (procfs_create_inferior): Update.
6355 * ocd.c (ocd_create_inferior): Update.
6356 * ocd.h (ocd_create_inferior): Update.
6357 * nto-procfs.c (procfs_create_inferior): Update.
6358 * monitor.c (monitor_create_inferior): Update.
6359 * lin-lwp.c (lin_lwp_create_inferior): Update.
6360 * inftarg.c (child_create_inferior): Update.
6361 * hpux-thread.c (hpux_thread_create_inferior): Update.
6362 * gnu-nat.c (gnu_create_inferior): Update.
6363
1db2a798
AC
63642004-05-25 Andrew Cagney <cagney@gnu.com>
6365
6366 * MAINTAINERS: Update e-mail address.
6367
007d08bb
RC
63682004-05-24 Randolph Chung <tausq@debian.org>
6369
6370 * thread.c (info_threads_command, thread_apply_all_command)
6371 (thread_apply_command, thread_command, do_captured_thread_select):
6372 Remove HPUXHPPA-specific code.
6373
69e7b95e
RC
63742004-05-24 Randolph Chung <tausq@debian.org>
6375
6376 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
6377 unused symbols.
6378 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
6379 references.
6380
a4d5f2e0
JB
63812004-05-24 Joel Brobecker <brobecker@gnat.com>
6382
6383 * infcmd.c (kill_if_already_running): New function, extracted
6384 from run_command().
6385 (run_command): Replace extracted code by call to
6386 kill_if_already_running().
6387 (start_command): New function.
6388 (_initialize_infcmd): Add "start" command.
6389
bf2ca189
MK
63902004-05-24 Mark Kettenis <kettenis@gnu.org>
6391
6392 Add OpenBSD/m88k support.
6393 * NEWS (New native configurations): Mention OpenBSD/m88k.
6394 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
6395 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
6396 * Makefile.in (m88k_tdep_h): New variable.
6397 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
6398 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
6399 * configure.host: Add m88*-*-openbsd*.
6400 * configure.tgt: Add m88*-*-openbsd*.
6401
80fadb11
JB
64022004-05-24 Jim Blandy <jimb@redhat.com>
6403
6404 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
6405 to approve changes.
6406
19e2d14b
KB
64072004-05-24 Kevin Buettner <kevinb@redhat.com>
6408
6409 * symtab.c (fixup_section): Search section table when lookup by
6410 name fails.
6411
1b07b470
RC
64122004-05-24 Randolph Chung <tausq@debian.org>
6413
6414 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
6415 be "small_struct".
6416
368702b1
MK
64172004-05-24 Mark Kettenis <kettenis@gnu.org>
6418
5df97fde
MK
6419 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
6420 register number in regcache_raw_collect call.
6421 (m68kbsd_collect_fpregset): Likewise.
6422 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
6423
368702b1
MK
6424 * regset.h (struct regset): Add back `regset' member.
6425
a770d4ec
MK
64262004-05-23 Mark Kettenis <kettenis@gnu.org>
6427
70f9f479
MK
6428 * configure.in: Check for td_pcb in `struct thread'.
6429 * configure, config.in: Regenerated.
6430
2e16d79e
MK
6431 * dpx2-nat.c: Remove file.
6432 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
6433 (dpx2-nat.o): Remove dependencies.
6434
492cf391
MK
6435 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
6436 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
6437 (amd64obsd_supply_pcb): New function.
6438 (_initialize_amd64obsd_nat): Enable libkvm interface.
6439 * Makefile.in (amd64obsd-nat.o): Update dependencies.
6440 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
6441 (LOADLIBES): New variable.
6442
a770d4ec
MK
6443 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
6444 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
6445 (sparc32nbsd_supply_pcb): New function.
6446 (_initialize_sparcnbsd_nat): Enable libkvm interface.
6447 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
6448 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
6449 (LOADLIBES): New variable.
6450
9ea75c57
MK
64512004-05-22 Mark Kettenis <kettenis@gnu.org>
6452
2e0c3539
MK
6453 * bsd-kvm.c, bsd-kvm.h: New files.
6454 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
6455 "bsd-kvm.h".
6456 (i386fbsd_supply_pcb): New function.
6457 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
6458 (i386fbsd-nat.o): Update dependencies.
6459 (bsd_kvm_h): New variable.
6460 (bsd-kvm.o): New dependency.
6461 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
6462 (LOADLIBES): New variable.
6463
9ea75c57
MK
6464 * regset.c: Tweak comment.
6465 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
6466 macro.
6467 * regset.h: Update copyright year.
6468 (struct regset): Remove `descr' member, add `gdbarch' member.
6469 (regset_alloc): Adjust prototype and comment.
6470 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
6471 (i386_supply_fpregset): Likewise.
6472 (i386_regset_from_core_section): Update call to regset_alloc.
6473 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
6474 REGSET->arch.
6475 (i386obsd_aout_regset_from_core_section): Update call to
6476 regset_alloc.
6477 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
6478 REGSET->arch.
6479 (i386nbsd_aout_regset_from_core_section): Update call to
6480 regset_alloc.
6481 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
6482 REGSET->arch.
6483 (amd64_regset_from_core_section): Update call to regset_alloc.
6484 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
6485 REGSET->arch.
6486 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
6487 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
6488 &sparc32nbsd_gregset in sparc32_supply_gregset call.
6489 (sparc32nbsd_init_abi): Update call to regset_alloc.
6490 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
6491 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
6492 (sparc64obsd_init_abi): Update call to regset_alloc.
6493 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
6494 &sparc64nbsd_gregset in sparc64_supply_gregset call.
6495 (sparc64nbsd_init_abi): Update call to regset_alloc.
6496 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
6497 &sparc64fbsd_gregset in sparc64_supply_gregset call.
6498 (sparc64fbsd_init_abi): Update call to regset_alloc.
6499
867e2dc5
JB
65002004-05-22 Jim Blandy <jimb@redhat.com>
6501
6502 * ppc-tdep.h (spe_register_p): New declaration.
6503 (struct gdbarch_tdep): New members: ppc_acc_regnum and
6504 ppc_spefscr_regnum.
6505 * rs6000-tdep.c (spe_register_p): New function.
6506 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
6507 spefscr.
6508 (rs6000_gdbarch_init): Initialize the new members of the tdep
6509 structure.
6510
617a4cba
JB
65112004-05-21 Jim Blandy <jimb@redhat.com>
6512
0397dee1
JB
6513 * ppc-linux-nat.c (fetch_register): Move code back to be next
6514 to the comment that describes it. (Moved code, instead of
6515 comment, for symmetry with store_register.)
6516
617a4cba
JB
6517 Allocate regset structures in the gdbarch's obstack, not using
6518 xmalloc.
6519 * regset.c (regset_alloc): Renamed from regset_xmalloc.
6520 Add 'arch' argument. Allocate the regset on arch's obstack, not
6521 using xmalloc.
6522 * regset.h (regset_alloc): Update declaration.
6523 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
6524 gdbarch argument.
6525 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
6526 * i386-tdep.c (i386_regset_from_core_section): Same.
6527 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
6528 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
6529 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
6530 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
6531 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
6532 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
6533
9aa3914d
JB
65342004-05-21 Joel Brobecker <brobecker@gnat.com>
6535
6536 * config/djgpp/fnchange.lst: Undo previous change, was useless.
6537
99c87dab
JB
65382004-05-21 Jim Blandy <jimb@redhat.com>
6539
6540 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
6541 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
6542
c2b6b4aa
JB
65432004-05-20 Jim Blandy <jimb@redhat.com>
6544
6545 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
6546
144529d0
MK
65472004-05-20 Mark Kettenis <kettenis@gnu.org>
6548
6549 * regset.h: Make prototype const-correct.
6550 * regset.c (regset_xmalloc): Make const-correct.
6551
4725b721
PH
65522004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
6553
6554 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
6555 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
6556 (symbol_search_name): Declare.
6557
6558 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
6559 (iter_name_next_hashed): Ditto.
6560 (iter_name_next_linear): Ditto.
6561 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
6562
6563 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
6564 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
6565 (symbol_search_name): New function.
6566
6567 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
6568
6569 * minsyms.c (build_minimal_symbol_hash_tables): Change
6570 test for adding to demangled hash table to check for difference
6571 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
6572
be07a590
JB
65732004-05-19 Jim Blandy <jimb@redhat.com>
6574
6575 Use a constructor function to create regset structures.
6576 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
6577 (struct regset): Use supply_regset_ftype. Add new
6578 'collect_regset' member.
6579 (regset_xmalloc): New declaration.
6580 * regset.c: New file.
6581 * am64-tdep.c (amd64_regset_from_core_section): Use
6582 regset_xmalloc to construct regset structures.
6583 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
6584 * i386-tdep.c (i386_regset_from_core_section): Same.
6585 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
6586 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
6587 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
6588 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
6589 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
6590 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
6591 * Makefile.in (COMMON_OBS): Add regset.o.
6592 (regset.o): New rule.
6593
604368f5
JB
65942004-05-19 Joel Brobecker <brobecker@gnat.com>
6595
6596 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
6597 and pthread_cond_wait.c.
6598
82d69f8b
JB
65992004-05-18 Jim Blandy <jimb@redhat.com>
6600
6601 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
6602 before the mach-specific switch, and then let the individual cases
6603 override the defaults, rather than leaving them uninitialized
6604 until the switch and then setting them in each case.
6605
5859efe5
RC
66062004-05-18 Randolph Chung <tausq@debian.org>
6607
6608 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
6609 millicode functions.
6610
9ca80cf8
RC
66112004-05-18 Randolph Chung <tausq@debian.org>
6612
6613 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
6614 references to dld_flags_buffer consistent.
6615
ed70ba00
RC
66162004-05-18 Randolph Chung <tausq@debian.org>
6617
6618 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
6619 it for unwinding the stack.
6620
63100632
RC
66212004-05-18 Randolph Chung <tausq@debian.org>
6622
6623 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
6624 Undefine these so we can overide them using gdbarch.
6625
090ccbb7
RC
66262004-05-18 Randolph Chung <tausq@debian.org>
6627
6628 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
6629 handling for 64-bit HPUX (elf).
6630
594706e6
DJ
66312004-05-18 Daniel Jacobowitz <dan@debian.org>
6632
6633 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
6634 constants.
6635 * amd64-tdep.c (amd64_skip_prologue): Likewise.
6636 * ia64-tdep.c (examine_prologue): Likewise.
6637 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
6638 * v850-tdep.c (v850_fix_call_dummy): Likewise.
6639
e5483145
MK
66402004-05-18 Mark Kettenis <kettenis@gnu.org>
6641
6642 * vax-tdep.c (vax_return_value): Implement
6643 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6644
caed1a45
MK
66452004-05-17 Mark Kettenis <kettenis@gnu.org>
6646
6647 * vax-tdep.c (vax_return_value): Fix typo.
6648
3c0b7db2
AC
66492004-05-17 Andrew Cagney <cagney@redhat.com>
6650
5aae53e5
AC
6651 * MAINTAINERS: Mark Salter was also responsible for
6652 testsuite/config/
6653
3c0b7db2
AC
6654 * NEWS: Mention signal fixes.
6655
22b0923d
RC
66562004-05-17 Randolph Chung <tausq@debian.org>
6657
6658 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
6659 check to see if we are unwinding an export stub. Export stubs clobber
6660 the %rp in the call path and stores the original rp in a stack slot.
6661
22f2b2f3
JB
66622004-05-17 Jim Blandy <jimb@redhat.com>
6663
6664 * MAINTAINERS: Update address for J.T. Conklin.
6665
cea96d64
RC
66662004-05-17 Randolph Chung <tausq@debian.org>
6667
6668 * hppa-tdep.c: Remove superfluous #include's.
6669 * Makefile.in (hppa-tdep.o): Update dependencies.
6670
f08f6a4a
RC
66712004-05-17 Randolph Chung <tausq@debian.org>
6672
6673 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
6674 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
6675 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
6676 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
6677 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
6678 Remove static function declarations.
6679
51da707a
MK
66802004-05-17 Mark Kettenis <kettenis@gnu.org>
6681
caed1a45
MK
6682 * alphabsd-nat.c: Update copyright year.
6683 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
6684
c0c2b0db
MK
6685 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
6686 and M68K_A2_REGNUM.
6687
51da707a
MK
6688 * m68k-tdep.c (m68k_svr4_return_value): Implement
6689 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6690
8d027a04
MK
66912004-05-16 Mark Kettenis <kettenis@gnu.org>
6692
6693 * sol-thread.c Update copyright year. Fix various coding
6694 standards violations. Tweak a few comments.
6695 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
6696 Delete prototypes.
6697
0d99fdb9
RC
66982004-05-15 Randolph Chung <tausq@debian.org>
6699
6700 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
6701 as pointer instead of array reference since HPUX compiler does
6702 not accept unsized array arguments.
6703 * somsolib.c (dld_flags_buffer): Use constant array size.
6704
f7e3843a
MK
67052004-05-15 Mark Kettenis <kettenis@gnu.org>
6706
0fe85704
MK
6707 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
6708 offset with decimal offset.
6709 (amd64obsd_sigcontext_addr): Return correct address for entire
6710 signal trampoline.
6711
a54f9a00
MK
6712 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
6713 instead of get_frame_base.
6714
feae6502
MK
6715 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
6716 (fill_gregset): Use regcache_raw_collect.
6717
0382d099
MK
6718 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
6719 ppcobsd-tdep.c.
6720
f7e3843a
MK
6721 * config/sparc/tm-nbsd64.h: Remove file.
6722 * config/tm-sunos.h: Remove file.
6723
773df3e5
JB
67242004-05-15 Joel Brobecker <brobecker@gnat.com>
6725
6726 * rs6000-tdep.c (store_param_on_stack_p): New function,
6727 an improved version of some code extracted from skip_prologue().
6728 (skip_prologue): Use store_param_on_stack_p() to detect
6729 instructions saving a parameter on the stack. Detect when r0
6730 is used to save a parameter.
6731 Do not mark "li rx, SIMM" instructions as part of the prologue,
6732 unless the following instruction is also part of the prologue.
6733
95918acb
AC
67342004-05-14 Andrew Cagney <cagney@redhat.com>
6735
06f32659
AC
6736 * infrun.c (handle_inferior_event): Simplify
6737 STEP_OVER_UNDEBUGGABLE.
6738
95918acb
AC
6739 * infrun.c (handle_step_into_function): Delete function.
6740 (handle_inferior_event): Inline calls to
6741 handle_step_into_function.
6742
40711ff1 67432004-05-14 Jerome Guitton <guitton@gnat.com>
42203e46
JG
6744
6745 * rs6000-nat.c: Fix a comment.
6746
02f60eae
JB
67472004-05-12 David Anderson <davea@sgi.com>
6748
6749 Committed by Jim Blandy <jimb@redhat.com>:
6750 * regcache.c (struct regcache_descr): fix comment spelling.
6751
552e377b
JB
67522004-05-13 J. Brobecker <brobecker@gnat.com>
6753
6754 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
6755 Fixes a link link failure.
6756
349766b2
JB
67572004-05-13 J. Brobecker <brobecker@gnat.com>
6758
6759 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
6760 error that was causing the build to fail.
6761
0d4d5484
JB
67622004-05-13 J. Brobecker <brobecker@gnat.com>
6763
6764 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
6765 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
6766
0b30808c
AC
67672004-05-13 Andrew Cagney <cagney@redhat.com>
6768
6769 * infrun.c (handle_inferior_event): Check for
6770 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
6771 calls. Update comments.
6772
cdf2c5f5
JB
67732004-05-13 Jim Blandy <jimb@redhat.com>
6774
063715bf
JB
6775 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
6776 (fetch_regs_user_thread, fetch_regs_kernel_thread)
6777 (store_regs_user_thread, store_regs_kernel_thread): Use
6778 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
6779 * ppc-linux-nat.c (fill_gregset): Same.
6780 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
6781 (ppc_linux_sigtramp_cache): Same.
6782 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
6783 (ppcnbsd_sigtramp_cache_init): Same.
6784 * rs6000-nat.c (fetch_core_registers): Same.
6785 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
6786 (rs6000_frame_cache): Same.
6787
cdf2c5f5
JB
6788 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
6789 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
6790 of assuming that the gprs are numbered starting with zero.
6791 * ppc-linux-nat.c (fill_gregset): Same.
6792 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
6793 * ppcnbsd-nat.c (getregs_supplies): Same.
6794 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
6795 * rs6000-nat.c (fetch_core_registers): Same.
6796 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
6797
450bd37b
MS
67982004-05-07 Michael Snyder <msnyder@redhat.com>
6799
6800 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
6801 LOC_COMPUTED_ARG, and LOC_INDIRECT.
6802
4a72a2a6
AC
68032004-05-13 Andrew Cagney <cagney@redhat.com>
6804
6805 * infrun.c (handle_inferior_event): Use frame_unwind_id.
6806
8edfa926
BM
68072004-05-13 Bryce McKinlay <mckinlay@redhat.com>
6808
6809 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
6810 base_address for shared libraries.
6811
723e0e3d
BM
68122004-05-13 Bryce McKinlay <mckinlay@redhat.com>
6813
6814 * MAINTAINERS (write after approval): Add myself.
6815
00d4360e
UW
68162004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6817
6818 * breakpoint.c (bpstat_stop_status): Add new argument
6819 STOPPED_BY_WATCHPOINT. Use it instead of testing
6820 target_stopped_data_address agaist 0 to check whether
6821 or not we stopped due to a hardware watchpoint.
6822 * breakpoint.h (bpstat_stop_status): Adapt prototype.
6823 * infrun.c (handle_inferior_event): Call bpstat_stop_status
6824 with new argument.
6825
ec76baa5
JB
68262004-05-12 Jim Blandy <jimb@redhat.com>
6827
6828 * configure.in: When checking whether we should use the -bbigtoc
6829 option, don't forget to restore the original value of LDFLAGS.
6830 * configure: Regenerated.
6831
f2c9ca08
AC
68322004-05-12 Andrew Cagney <cagney@redhat.com>
6833
6834 * thread.c (load_infrun_state): Delete step_sp.
6835 * infrun.c (context_switch): Ditto.
6836 * inferior.h (step_sp): Ditto.
6837 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
6838 * gdbthread.h (struct thread_info, save_infrun_state)
6839 (restore_infrun_state): Ditto.
6840
090ddb2a
UW
68412004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
6842
6843 * MAINTAINERS (write after approval): Add myself.
6844
8aad930b
AC
68452004-05-12 Andrew Cagney <cagney@redhat.com>
6846
6847 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
6848 eliminate reference to step_sp.
6849 (struct execution_control_state, init_execution_control_state)
6850 (handle_inferior_event, keep_going): Delete update_step_sp and
6851 step_sp.
6852 * infcmd.c (step_sp): Note that variable is unused.
6853
922d5ae0
AC
68542004-05-11 Andrew Cagney <cagney@redhat.com>
6855
6856 * infrun.c (step_over_function): Delete function.
6857 (handle_step_into_function): Use insert_step_resume_breakpoint.
6858 (insert_step_resume_breakpoint): Fix assertion.
6859
017c5ca5
NR
68602004-05-11 Nick Roberts <nickrob@gnu.org>
6861
6862 * utils.c (defaulted_query): Just use the normal query input type
6863 when printing the annotations.
6864
42edda50
AC
68652004-05-11 Andrew Cagney <cagney@redhat.com>
6866
6867 * infrun.c (handle_inferior_event): Simplify code handling
6868 step-into or return-from a signal trampoline.
6869
d28b44a7
AC
68702004-05-11 Andrew Cagney <cagney@redhat.com>
6871
6872 * ppcnbsd-tdep.c: Include "gdb_assert.h".
6873 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
6874
383f0f5b
JB
68752004-05-10 Jim Blandy <jimb@redhat.com>
6876
d0b57c3a
JB
6877 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
6878 with a call to internal_error.
6879
383f0f5b
JB
6880 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
6881 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
6882 processor variant lacks those registers.
6883 (ppc_floating_point_unit_p): Change description to make it clear
6884 that this returns info about the ISA, not the ABI.
6885 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
6886 return true or false by checking tdep->ppc_fp0_regnum and
6887 tdep->ppc_fpscr_regnum. The original code replicated the BFD
6888 arch/mach switching done in rs6000_gdbarch_init; it's better to
6889 keep that logic there, and just check the results here.
6890 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
6891 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
6892 floating-point registers.
6893 (ppc_supply_fpregset, ppc_collect_fpregset)
6894 (rs6000_push_dummy_call, rs6000_extract_return_value)
6895 (rs6000_store_return_value): Assert that we have floating-point
6896 registers.
6897 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
6898 (rs6000_frame_cache): Don't note the locations at which
6899 floating-point registers were saved if we have no fprs.
6900 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
6901 registers.
6902 (fetch_regs_user_thread, fetch_regs_kernel_thread)
6903 (store_regs_user_thread, store_regs_kernel_thread): Only call
6904 supply_fprs / fill_fprs if we actually have floating-point
6905 registers.
6906 (special_register_p): Check ppc_fpscr_regnum before matching
6907 against it.
6908 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
6909 supply / collect fpscr if we don't have it.
6910 * ppc-bdm.c: #include "gdb_assert.h".
6911 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
6912 have floating-point registers, since I can't test this code on
6913 FP-free systems to adapt it.
6914 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
6915 fpscr and floating point register numbers if they don't exist.
6916 (fetch_register): Assert that we have floating-point registers
6917 before we reach the code that handles them.
6918 (store_register): Same. And use tdep instead of calling
6919 gdbarch_tdep again.
6920 (fill_fpregset): Don't try to collect FP registers and fpscr if we
6921 don't have them.
6922 (ppc_linux_sigtramp_cache): Don't record the saved locations of
6923 fprs and fpscr if we don't have them.
6924 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
6925 don't have them.
6926 * ppcnbsd-nat.c: #include "gdb_assert.h".
6927 (getfpregs_supplies): Assert that we have floating-point registers.
6928 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
6929 * ppcobsd-tdep.c: #include "gdb_assert.h".
6930 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
6931 have floating-point registers.
6932 * rs6000-nat.c (regmap): Don't match against the fpscr and
6933 floating point register numbers if they don't exist.
6934 (fetch_inferior_registers, store_inferior_registers,
6935 fetch_core_registers): Only fetch / store / supply the
6936 floating-point registers and the fpscr if we have them.
6937 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
6938 (ppcobsd-tdep.o): Update dependencies.
6939
15960608
AC
69402004-05-10 Andrew Cagney <cagney@redhat.com>
6941
6942 * infrun.c (through_sigtramp_breakpoint): Delete variable.
6943 (context_switch): Do not switch through_sigtramp_breakpoint.
6944 * gdbthread.h (save_infrun_state, load_infrun_state)
6945 (struct thread_info): Delete through_sigtramp_breakpoint parameter
6946 and structure member.
6947 * thread.c (load_infrun_state, save_infrun_state): Update.
6948
5ab5aa0f
MK
69492004-05-10 Mark Kettenis <kettenis@gnu.org>
6950
6951 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
6952
da78b0e7
DJ
69532004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6954
6955 * acinclude.m4: Quote macro names being defined by AC_DEFUN
6956 throughout.
6957 * aclocal.m4: Regenerate.
6958
cca0d3b0
NW
69592004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
6960
6961 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
6962
d303a6c7
AC
69632004-05-10 Andrew Cagney <cagney@redhat.com>
6964
6965 * infrun.c (check_sigtramp2): Delete function.
6966 (handle_inferior_event): When single stepping, and taking a
6967 signal, set a breakpoint at the signal return address. Delete
6968 redundant calls to check_sigtramp2.
6969 (insert_step_resume_breakpoint): New function.
6970 (through_sigtramp_breakpoint, handle_inferior_event)
6971 (follow_exec, wait_for_inferior, fetch_inferior_event)
6972 (currently_stepping, keep_going): Delete most uses of
6973 through_sigtramp_breakpoint, not that it should be deleted.
6974 (delete_breakpoint_current_contents): Delete function.
6975
03f4cc20
RC
69762004-05-10 Randolph Chung <tausq@debian.org>
6977
6978 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
6979 target.
6980 * config/pa/tm-linux.h: New file.
6981
37fc812e
DJ
69822004-05-10 Daniel Jacobowitz <drow@mvista.com>
6983
6984 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
6985 of prefixes. Don't print the prefix twice in the CLI.
6986
26c0b942
JB
69872004-05-10 Jim Blandy <jimb@redhat.com>
6988
2e56e9c1
JB
6989 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
6990 collect all the gprs.
6991
26c0b942
JB
6992 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
6993 loop collecting gprs.
6994
dc497459
AC
69952004-05-09 Andrew Cagney <cagney@redhat.com>
6996
6997 * remote-vx.c (net_step): Delete step-range code.
6998 * remote.c (remote_resume, init_all_packet_configs)
6999 (set_remote_protocol_E_packet_cmd)
7000 (show_remote_protocol_E_packet_cmd)
7001 (remote_protocol_E, show_remote_cmd, _initialize_remote)
7002 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
7003 (show_remote_protocol_e_packet_cmd): Ditto.
7004
0543f387
MK
70052004-05-09 Mark Kettenis <kettenis@gnu.org>
7006
c481d1ca
MK
7007 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
7008
f626a069
MK
7009 * hppa-tdep.h: Update copyright year.
7010 (struct trad_frame_saved_reg): Add opaque declaration.
7011
6fa57a7d
MK
7012 * amd64-tdep.c (amd64_return_value): Implement
7013 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7014
e47577ab
MK
7015 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
7016 (m68k_value_to_register): New functions.
7017 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
7018 value_to_register.
7019
31db7b6c
MK
7020 * defs.h (enum return_value_convention): Add
7021 RETURN_VALUE_ABI_RETURNS_ADDRESS and
7022 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
7023 * infcmd.c (legacy_return_value): New function.
7024 (print_return_value): Rwerite to implement
7025 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7026 * values.c (using_struct_return): Check for inequality to
7027 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
7028 RETURN_VALUE_STRUCT_CONVENTION.
7029 * i386-tdep.c (i386_return_value): Implement
7030 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7031
0543f387
MK
7032 * vax-tdep.c: Tweak comments. Reorder include files. Don't
7033 include "symtab.h", "opcode/vax.h" and "inferior.h".
7034 (vax_skip_prologue): Replace calls to read_memory_integer by calls
7035 to read_memory_unsigned_integer.
7036 (vax_gdbarch_init): Reorder.
7037 (_initialize_vax_tdep): Spell out prototype.
7038 * Makefile.in (vax-tdep.o): Update dependencies.
7039
0c93b7b6
AC
70402004-05-08 Andrew Cagney <cagney@redhat.com>
7041
e6b55ae2
AC
7042 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
7043 * target.c (target_detach, target_disconnect): Ditto.
7044
1ac839b8
AC
7045 * infcall.c (call_function_by_hand): When no
7046 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
7047 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
7048 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
7049 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7050 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7051
28954179
AC
7052 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
7053 * gdbarch.h, gdbarch.c: Re-generate.
7054 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7055 deprecated_fix_call_dummy.
7056 * v850-tdep.c (v850_gdbarch_init): Ditto.
7057 * infcall.c (call_function_by_hand): Do not call
7058 DEPRECATED_FIX_CALL_DUMMY.
7059
434b87dd
AC
7060 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
7061 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
7062 * gdbarch.h, gdbarch.c: Re-generate.
7063 * arm-linux-tdep.c (arm_linux_call_dummy_words)
7064 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
7065 deprecated_sizeof_call_dummy_words.
7066 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
7067 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7068 * v850-tdep.c (v850_gdbarch_init): Ditto.
7069 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
7070 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
7071 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7072 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7073 * arch-utils.h (legacy_call_dummy_words)
7074 (legacy_sizeof_call_dummy_words): Delete declarations.
7075 * arch-utils.c (legacy_call_dummy_words)
7076 (legacy_sizeof_call_dummy_words): Delete variables.
7077
58d28df8
AC
7078 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
7079 * gdbarch.h, gdbarch.c: Re-generate.
7080 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
7081 * infcall.c (call_function_by_hand): Eliminate call to
7082 DEPRECATED_PUSH_DUMMY_FRAME.
7083 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7084 push_dummy_frame.
7085 (ns32k_push_dummy_frame): Delete function.
7086
e4a2df64
AC
7087 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7088 deprecated_call_dummy_breakpoint_offset or
7089 deprecated_call_dummy_start_offset.
7090 * dummy-frame.c, arm-tdep.c: Update comments.
7091 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
7092 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
7093 * gdbarch.h, gdbarch.c: Re-generate.
7094
d3712828
AC
7095 * infcall.c (legacy_push_dummy_code): Delete function.
7096 (push_dummy_code): Delete call.
7097
7a882905
AC
7098 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
7099 * gdbarch.h, gdbarch.c: Re-generate.
7100 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
7101 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
7102 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
7103 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
7104
0ec5872b
AC
7105 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
7106 (struct frame_info): Delete opaque declaration.
7107 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
7108 * frame.c (get_frame_type): Delete call.
7109
0c93b7b6
AC
7110 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7111 pc_in_call_dummy.
7112 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
7113 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
7114
75536971
MK
71152004-05-08 Mark Kettenis <kettenis@gnu.org>
7116
527ca6bb
MK
7117 * alphanbsd-tdep.c: Include "gdb_string.h".
7118 * armnbsd-tdep.c: Update copyright year.
7119 Include "gdb_string.h".
7120 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
7121 dependencies.
7122
d39fdc61
MK
7123 * delta68-nat.c: Remove file.
7124 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
7125 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
7126 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
7127 (delta68-nat.o): Remove dependency.
7128
75536971
MK
7129 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
7130 function.
7131 (m68k_gdbarch_init): Don't set
7132 deprecated_frameless_function_invocation.
7133
f4ca1d1f
RC
71342004-05-07 Randolph Chung <tausq@debian.org>
7135
7136 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
7137 read_memory_nobpt for code reading when doing frame unwinding.
7138 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
7139
2f0e8c7a
RC
71402004-05-07 Randolph Chung <tausq@debian.org>
7141
7142 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
7143 instead of sp, handle sigaltstack case.
7144 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
7145 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
7146 signal handler and not that of the caller.
7147 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
7148 hppa_linux_sigtramp_find_sigcontext.
7149
959464ff
RC
71502004-05-07 Randolph Chung <tausq@debian.org>
7151
7152 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
7153 hppa-linux-nat.c.
7154 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
7155 * hppa-linux-nat.c (fetch_register, store_register): Define.
7156 (fetch_inferior_registers, store_inferior_registers): Define.
7157 (supply_gregset): Add comment and clean up some unneeded code.
7158 (fill_gregset): Add comment and fix so that it saves registers in
7159 the right place in the gregset.
7160 (fill_fpregset): Fix buffer overrun problem.
7161 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
7162
0da28f8a
RC
71632004-05-07 Randolph Chung <tausq@debian.org>
7164
7165 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
7166 do common handling of the pcoqt register.
7167 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
7168 to use helper function.
7169 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
7170 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
7171 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
7172 generic fallback unwinder when all else fails.
7173 (hppa_gdbarch_init): Add fallback sniffer.
7174 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
7175 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
7176 to use helper function.
7177
b9ec757a
JB
71782004-05-08 Joel Brobecker <brobecker@gnat.com>
7179
7180 * config/djgpp/fnchange.lst: Add translation rules for
7181 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
7182
756e95f1
MK
71832004-05-08 Mark Kettenis <kettenis@gnu.org>
7184
7185 * frame.c (get_prev_frame_1): Work around GCC bug.
7186 * frame.h: Add comment about GCC bug.
7187
2b4855ab
AC
71882004-05-07 Andrew Cagney <cagney@redhat.com>
7189
7190 * observer.c: Include "commands.h" and "gdbcmd.h".
7191 (observer_debug, _initialize_observer): Add the
7192 command "set/show debug observer".
7193 * observer.sh: When observer debugging, log notify calls.
7194 * Makefile.in (observer.o): Update dependencies.
7195
ba3e8e46
JM
71962004-05-07 Jason Molenda (jmolenda@apple.com)
7197
7198 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
7199
16796152
JB
72002004-05-07 Jim Blandy <jimb@redhat.com>
7201
daf6dc85
JB
7202 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
7203 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
7204 to recognize gpr regnums, instead of assuming that
7205 tdep->ppc_fp0_regnum marks the end of the general-purpose
7206 registers.
7207
16796152
JB
7208 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
7209 the given architecture has floating-point registers.
7210
c69b8bfc
AC
72112004-05-07 Andrew Cagney <cagney@redhat.com>
7212
7213 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
7214 macro defined to 1.
7215 * gdbarch.h, gdbarch.c: Re-generate.
7216 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7217 deprecated_use_generic_dummy_frames.
7218
7243600a
BF
72192004-05-07 Brian Ford <ford@vss.fsi.com>
7220
7221 * NEWS: Mention Cygwin DWARF 2 support.
7222
73c1e0a1
AC
72232004-05-07 Andrew Cagney <cagney@redhat.com>
7224
7225 * objfiles.h (struct entry_info): Delete unused fields
7226 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
7227 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
7228 * mipsread.c (mipscoff_symfile_read): Update.
7229 * mdebugread.c (parse_partial_symbols): Update.
7230 * dwarfread.c (read_file_scope): Update.
7231 * dwarf2read.c (read_file_scope): Update.
7232 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
7233 * coffread.c (complete_symtab): Update.
7234
1d3056ac
MK
72352004-05-07 Mark Kettenis <kettenis@gnu.org>
7236
7237 * infcall.c (_initialize_infcall): Fix typo.
7238
15170568
AC
72392004-05-07 Andrew Cagney <cagney@redhat.com>
7240
7241 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
7242 * command.h (add_setshow_zinteger_cmd): Declare.
7243
34f75cc1
RC
72442004-05-06 Randolph Chung <tausq@debian.org>
7245
7246 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
7247 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
7248 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
7249 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
7250 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
7251 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
7252 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
7253 definitions ...
7254 * hppa-tdep.h: ... to here, with HPPA_ prefix.
7255 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
7256 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
7257 (hppa64_hpux_frame_find_saved_regs_in_sig)
7258 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
7259 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
7260 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
7261 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
7262 (hppa_linux_sigtramp_frame_prev_register): Likewise.
7263 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
7264 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
7265 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
7266 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
7267 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
7268 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
7269 (hppa32_register_type, hppa_cannot_store_register)
7270 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
7271 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
7272 * hpread.c (hpread_process_one_debug_symbol): Likewise.
7273 * pa64solib.c (pa64_solib_have_load_event)
7274 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
7275 (pa64_solib_unloaded_library_pathname): Likewise.
7276 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
7277 (som_solib_library_pathname): Likewise.
7278
0a5e7efe
JI
72792004-05-05 Jim Ingham <jingham@apple.com>
7280
7281 * breakpoint.c (create_breakpoints): Copy the ignore count and
7282 thread id over from the pended breakpoint to the actual
7283 breakpoint.
7284
10a4b113
AC
72852004-05-05 Andrew Cagney <cagney@redhat.com>
7286
7287 * gdbarch.sh (PARM_BOUNDARY): Delete.
7288 gdbarch.h, gdbarch.c: Re-generate.
7289 * valops.c (PARM_BOUNDARY): Delete macro.
7290 (value_push): Delete PARM_BOUNDARY code.
7291 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
7292
366f009f
JB
72932004-05-04 Jim Blandy <jimb@redhat.com>
7294
32b99774
JB
7295 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
7296 Don't assume that the gprs, fprs, and UISA sprs are
7297 contiguous, start at register number zero, and end with fpscr.
7298 Instead, use the numbers from the tdep structure.
7299
366f009f
JB
7300 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
7301 should no longer be used in code specific to the RS6000 and its
7302 derivatives.
7303 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
7304 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
7305 tdep->ppc_fp0_regnum.
7306 (ppc_supply_fpregset, ppc_collect_fpregset)
7307 (rs6000_push_dummy_call, rs6000_extract_return_value)
7308 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
7309 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
7310 FP0_REGNUM.
7311 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
7312 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
7313 Same.
7314 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
7315 bdm_ppc_store_registers): Same.
7316 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
7317 (store_register, fill_fpregset): Same.
7318 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
7319 (ppc_linux_supply_fpregset): Same.
7320 * ppcnbsd-nat.c (getfpregs_supplies): Same.
7321 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
7322 Same.
7323 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
7324 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
7325 ppc64_sysv_abi_return_value): Same.
7326 * rs6000-nat.c (regmap, fetch_inferior_registers)
7327 (store_inferior_registers, fetch_core_registers): Same.
7328
827f338d
MK
73292004-05-01 Mark Kettenis <kettenis@gnu.org>
7330
7331 * m68knbsd-nat.c: Remove file.
7332 * m68knbsd-tdep.c: Remove file.
7333 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
7334 dependencies.
7335 * configure.host: Add m68k-*-netbsdelf*.
7336 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
7337 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
7338 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
7339 (XM_FILE): Remove.
7340 * config/m68k/nbsdelf.mh: New file.
7341 * config/m68k/nbsd.mt: New file.
7342 * config/m68k/nbsdaout.mt: Remove file.
7343 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
7344 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
7345 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
7346 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
7347 (use_struct_convention): Remove prototype.
7348 (USE_STRUCT_CONVENTION): Remove define.
7349 * config/m68k/xm-nbsd.h: Remove file.
7350
66894781
MS
73512004-05-04 Michael Snyder <msnyder@redhat.com>
7352
7353 * m68k-tdep.c (m68k_gdbarch_init): Default to using
7354 reg_struct_return method (as gcc usually does for cross targets).
7355
f0f63663
AC
73562004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7357
7358 Committed by Andrew Cagney.
7359 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
7360 alignment padding when accessing ucontext struct members.
7361
edf61169
JB
73622004-05-04 Jim Blandy <jimb@redhat.com>
7363
8bf659e8
JB
7364 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
7365 'ppc_gplast_regnum' member.
7366 (ppc_num_gprs): New enum constant.
7367 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
7368 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
7369 * rs6000-nat.c (regmap, fetch_inferior_registers,
7370 store_inferior_registers): Same.
7371 * rs6000-tdep.c (e500_pseudo_register_read)
7372 (e500_pseudo_register_write): Same.
7373 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
7374
b967e06f
JB
7375 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
7376 * ppc-tdep.h (ppc_num_fprs): New enum constant.
7377 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
7378 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
7379 FPLAST_REGNUM.
7380 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7381 Same.
7382 * ppc-linux-nat.c (ppc_register_u_addr): Same.
7383 * rs6000-nat.c (regmap, fetch_inferior_registers)
7384 (store_inferior_registers): Same.
7385
edf61169
JB
7386 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
7387 with FPLAST_REGNUM.
7388
58a9656e
JB
73892004-05-03 Joel Brobecker <brobecker@gnat.com>
7390
7391 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
7392 failure detected by recent versions of GCC.
7393 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
7394 to be consistent with the usage in dwarf2_create_include_psymtab.
7395
dc305454
MS
73962004-05-03 Michael Snyder <msnyder@redhat.com>
7397
7398 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
7399 (heuristic_proc_start): Whitespace cleanup.
7400
29972665
MK
74012004-05-04 Mark Kettenis <kettenis@gnu.org>
7402
6b57680d
MK
7403 * sun3-nat.c: Remove file.
7404 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
7405 dependencies.
7406 (ALLDEPFILES): Remove sun3-nat.c.
7407 (sun3-nat.o): Remove dependencies.
7408
29972665
MK
7409 * i386-interix-nat.c, i386-interix-tdep.c,
7410 config/i386/nm-interix.h, config/i386/interix.mh,
7411 config/i386/interix.mt: Remove files.
7412 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
7413 dependencies.
7414
f595cb19
MK
74152004-05-03 Mark Kettenis <kettenis@gnu.org>
7416
7417 * m68k-tdep.h (struct gdbarch_tdep): Add member
7418 struct_value_regnum.
7419 (m68k_svr4_init_abi): New prototype.
7420 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
7421 different calling conventions.
7422 (m68k_extract_return_value): Remove code dealing with single-field
7423 structs.
7424 (m68k_store_return_value): Remove code dealing with single-field
7425 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
7426 (m68k_extract_struct_value_address): Remove function.
7427 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
7428 (m68k_reg_struct_return_p, m68k_return_value)
7429 (m68k_svr4_return_value): New functions.
7430 (m68k_use_struct_convention): Remove function.
7431 (m68k_push_dummy_call): Use new struct_value_regnum member of
7432 `struct gdbarch_tdep' instead of hardcoded register number to
7433 store STRUCT_ADDR.
7434 (m68k_svr4_init_abi): New function.
7435 (m68k_gdbarch_init): Don't set extract_return_value,
7436 store_return_values, deprecated_extract_struct_value_address and
7437 use_struct_convention. Set return_value instead. Initialize new
7438 struct_value_regnum member of `struct gdbarch_tdep'.
7439 * m68klinux-tdep.c: Update copyright year.
7440 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
7441 (m68k_linux_extract_struct_value_address): Remove function.
7442 (m68k_linux_init_abi): Don't set extract_return_value,
7443 store_return_values, deprecated_extract_struct_value_address and
7444 use_struct_convention. Call m68k_svr4_init_abi but override the
7445 new struct_value_regnum member of `struct gdbarch_tdep'.
7446 * Makefile.in (m68k-tdep.o): Update dependencies.
7447
aaa75496
JB
74482004-05-03 J. Brobecker <brobecker@gnat.com>
7449
7450 * dwarf2read.c (line_header): Add new included_p field in
7451 field file_names.
7452 (partial_die_info): New field has_stmt_list. New field line_offset.
7453 (dwarf2_create_include_psymtab): New function.
7454 (dwarf2_build_include_psymtabs): New function.
7455 (add_file_name): Add forward declaration. Initialize new field.
7456 (dwarf_decode_lines): Add new parameter. Enhance this procedure
7457 to be able to determine the list of files included by the
7458 given unit, and build their associated psymtabs.
7459 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
7460 files as well.
7461 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
7462 (read_file_scope): Update call to dwarf_decode_lines.
7463 (read_partial_die): Handle DW_AT_stmt_list attributes.
7464
c848556f
MC
74652004-05-02 Michael Chastain <mec.gnu@mindspring.com>
7466
7467 Unfix PR gdb/1626.
7468 * configure.in: Revert special case for osf5.*.
7469 * configure: Regenerate.
7470
eb4556d7
JB
74712004-05-02 Jim Blandy <jimb@redhat.com>
7472
7473 Move the symbol-file-from-memory functions into their own file.
7474 * symfile-mem.c, symfile-mem.h: New files.
7475 * symfile.c (symbol_file_add_from_bfd): New function.
7476 (symbol_file_add): Call symbol_file_add_from_bfd.
7477 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
7478 Moved to symfile-mem.c.
7479 (_initialize_symfile): Move definition of
7480 add-symbol-file-from-memory command to symfile-mem.c.
7481 * symfile.h (symbol_file_add_from_bfd): New declaration.
7482 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
7483 * config/powerpc/linux.mt (TDEPFILES): Same.
7484 * Makefile.in (SFILES): Add symfile-mem.c.
7485 (symfile_mem_h): New variable.
7486 (HFILES_NO_SRCDIR): Add symfile-mem.h.
7487 (symfile-mem.o): New rule.
7488
80bb239e
AC
74892004-05-01 Andrew Cagney <cagney@redhat.com>
7490
7789d0fa
AC
7491 * breakpoint.c (insert_bp_location): Use get_frame_id, and
7492 frame_find_by_id instead of frame_relative_level.
7493 (do_enable_breakpoint): Ditto.
7494 * thread.c: Update copyright.
7495 (info_threads_command): Ditto, simplify.
7496
80bb239e
AC
7497 * frame.c (deprecated_generic_get_saved_register): Delete
7498 function, moved to "xstormy16-tdep.c".
7499 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
7500 deprecated_generic_get_saved_register from "frame.c".
7501 (xstormy16_frame_saved_register): Call
7502 xstormy16_get_saved_register.
7503 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
7504 static.
7505 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
7506 * frame.h (deprecated_generic_get_saved_register): Delete.
7507
b2a871dd
MC
75082004-05-01 Michael Chastain <mec.gnu@mindspring.com>
7509
7510 * dwarfread.c: Update documentation on the state of dwarf-1.
7511
0e100dab
AC
75122004-05-01 Andrew Cagney <cagney@redhat.com>
7513
acd8056e
AC
7514 * stack.c (select_frame_command): Delete call to
7515 frame_relative_level.
7516 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
7517 Delete #if0 code.
7518 (frame_info): Do not print FRAMELESS.
7519 (print_block_frame_labels): Replace DEPRECATED_STREQ.
7520 (catch_info): Delete #if0 code.
7521
0e100dab
AC
7522 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
7523 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
7524 of frame_relative_level.
7525 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
7526 to SENTINEL_FRAME.
7527 * frame.h (enum frame_type): Add SENTINEL_FRAME.
7528 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
7529 frame_relative_level.
7530
55699d59
AC
7531 * frame.h (deprecated_set_frame_type): Delete declaration.
7532 * frame.c (deprecated_set_frame_type): Delete function, update
7533 comments.
7534
fcf70625
AC
7535 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
7536 * gdbarch.h, gdbarch.c: Re-generate.
7537 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
7538 (shnbsd_pc_in_sigtramp): Delete.
7539 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
7540 pc_in_sigtramp.
7541 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
7542 pc_in_sigtramp.
7543 * frame.h: Update comments.
7544 * ppc-linux-tdep.c: Update comments.
7545 * breakpoint.c (bpstat_what): Update comments.
7546
ac5eccb7
AC
7547 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
7548 m68klinux-tdep.o's dependencies, were previously added to
7549 m68klinux-nat.o.
7550
f2524b93
AC
7551 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
7552 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
7553 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
7554 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
7555 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
7556
17e20bce
AC
7557 * Makefile.in (m68klinux-nat.o): Update dependencies.
7558 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
7559 (m68k_linux_sigtramp_frame_cache)
7560 (m68k_linux_sigtramp_frame_this_id)
7561 (m68k_linux_sigtramp_frame_prev_register)
7562 (m68k_linux_sigtramp_frame_unwind)
7563 (m68k_linux_sigtramp_frame_sniffer)
7564 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
7565 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
7566 names, use trad-frame.h.
7567 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
7568 (struct m68k_sigtramp_info): Delete.
7569 * m68k-tdep.c (m68k_sigtramp_frame_cache)
7570 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
7571 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
7572 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
7573 "m68klinux-tdep.c".
7574
c8864fa2
AC
7575 * infrun.c (check_sigtramp2): Delete check for
7576 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
7577
511dd2cd
MK
75782004-05-01 Mark Kettenis <kettenis@gnu.org>
7579
7580 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
7581
8c6b0e06
AC
75822004-05-01 Andrew Cagney <cagney@redhat.com>
7583
9df0bb3f
AC
7584 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
7585 (frv_linux_sigtramp_frame_cache)
7586 (frv_linux_sigtramp_frame_this_id)
7587 (frv_linux_sigtramp_frame_prev_register)
7588 (frv_linux_sigtramp_frame_unwind)
7589 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
7590 include "linux" in function and variable names, directly call
7591 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
7592 the latest trad-frame code.
7593 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
7594 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
7595 * Makefile.in (frv-linux-tdep.o): Update dependencies.
7596 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
7597 * frv-tdep.c (frv_sigtramp_frame_cache)
7598 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
7599 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
7600 frv-linux-tdep.c.
7601 (frv_gdbarch_init): Do not append a sigtramp sniffer.
7602 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
7603 (frv_set_sigcontext_reg_addr): Delete function.
7604
8c6b0e06
AC
7605 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
7606 (DEPRECATED_SIGTRAMP_END): Delete.
7607 * gdbarch.h, gdbarch.c: Re-generate.
7608 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
7609 * config/vax/tm-vaxbsd.h: Update copyright.
7610 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
7611 (DEPRECATED_IN_SIGTRAMP): Define.
7612 * config/m68k/tm-nbsd.h: Update copyright.
7613 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
7614 (DEPRECATED_IN_SIGTRAMP): Define.
7615
50ea7769
MK
76162004-05-01 Mark Kettenis <kettenis@gnu.org>
7617
03ac2a74
MK
7618 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
7619 encondings. Fixes PR gdb/1628.
7620
50ea7769
MK
7621 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
7622 DW_CFA_restore state without a matching DW_CFA_remember_state
7623 instead of aborting. Fixes PR backtrace/1589.
7624
9a5d7be1
JB
76252004-04-30 Joel Brobecker <brobecker@gnat.com>
7626
7627 * MAINTAINERS: Add self as AIX maintainer.
7628 Update my e-mail address in write-after-approval section.
7629
2593d1cd
AC
76302004-04-30 Andrew Cagney <cagney@redhat.com>
7631
ce12bbf9
AC
7632 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
7633 (legacy_get_prev_frame): Ditto.
7634
36710c63
AC
7635 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
7636 (mips_gdbarch_init): Do not set pc_in_sigtramp.
7637 * mipsread.c (sigtramp_address): Delete extern variable.
7638 (mipscoff_new_init): Delete reference.
7639 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
7640 (fixup_sigtramp): Delete function.
7641 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
7642 (fixup_sigtramp): Delete declarations.
7643
2593d1cd
AC
7644 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
7645 deprecated_pc_in_sigtramp.
7646 (ppcnbsd_pc_in_sigtramp): Delete function.
7647
2a25f91c
MK
76482004-05-01 Mark Kettenis <kettenis@gnu.org>
7649
7650 * config/m68k/nm-nbsd.h: Tweak comments.
7651 * config/m68k/nm-nbsdaout.h: Likewise.
7652
0b281939
AC
76532004-04-30 Andrew Cagney <cagney@redhat.com>
7654
7655 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
7656 legacy_pc_in_sigtramp.
7657 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
7658
8f2d3ea0
MK
76592004-05-01 Mark Kettenis <kettenis@gnu.org>
7660
7661 Add OpenBSD/m68k support.
7662 * NEWS (New native configurations): Mention OpenBSD/m68k.
7663 * m68kbsd-tdep.c: New file.
7664 * m68kbsd-nat.c: New file.
7665 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
7666 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
7667 * configure.host: Add m68k-*-openbsd.
7668 * configure.tgt: Add m68k-*-openbsd.
7669 * config/m68k/tm-obsd.h: New file.
7670 * config/m68k/obsd.mt: New file.
7671 * config/m68k/obsd.mh: New file.
7672 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
7673 m68kbsd-tdep.c.
7674
c40f49a4
AC
76752004-04-30 Andrew Cagney <cagney@redhat.com>
7676
7677 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
7678 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
7679
e81554cd
MK
76802004-04-30 Mark Kettenis <kettenis@gnu.org>
7681
7682 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
7683 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
7684
d4dc1a91
BF
76852004-04-30 Brian Ford <ford@vss.fsi.com>
7686
7687 Revert 2004-04-16 change.
7688 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
7689 (i386_coff_init_abi): Remove.
7690 * i386-tdep.h (i386_coff_init_abi): Remove.
7691 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
7692
2f72f850
AC
76932004-04-30 Andrew Cagney <cagney@redhat.com>
7694
e492f9d6
AC
7695 * blockframe.c (find_pc_partial_function): Delete use of
7696 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
7697 DEPRECATED_SIGTRAMP_END.
7698
7b7adad0
AC
7699 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
7700 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
7701 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
7702 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
7703 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
7704
2f72f850
AC
7705 * defs.h (deprecated_inside_entry_file): Delete declaration.
7706 * blockframe.c (deprecated_inside_entry_file): Delete function.
7707 (legacy_frame_chain_valid): Delete call.
7708 * sh64-tdep.c (sh64_frame_chain): Delete call.
7709 * objfiles.h: Update comments.
7710 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
7711 call.
7712 * frame.c (get_prev_frame): Delete call, update comments.
7713
283f90a7
BF
77142004-04-30 Brian Ford <ford@vss.fsi.com>
7715
7716 * MAINTAINERS (Write After Approval): Add myself.
7717
8ee56bcf
AC
77182004-04-30 Andrew Cagney <cagney@redhat.com>
7719
7720 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
7721 * gdbarch.h, gdbarch.c: Re-generate.
7722 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
7723 code.
7724
ee27e1b6
AC
77252004-04-30 Andrew Cagney <cagney@redhat.com>
7726
7727 * gdb-events.sh (selected_thread_changed)
7728 (selected_frame_level_changed, target_changed): Delete.
7729 * gdb-events.h, gdb-events.c: Re-generate.
7730 * valops.c (value_assign): Update.
7731 * stack.c (select_frame_command, up_silently_base)
7732 (down_silently_base): Update.
7733
d5ac5a39
AC
77342004-04-29 Andrew Cagney <cagney@redhat.com>
7735
7736 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
7737 registers correctly.
7738 (print_gp_register_row, mips32_heuristic_proc_desc)
7739 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
7740 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
7741 references to mips_isa_regsize.
7742
ceae6e75
AC
77432004-04-29 Andrew Cagney <cagney@redhat.com>
7744
7745 * mips-tdep.c (struct gdbarch_tdep): Delete
7746 mips_fp_register_double.
7747 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
7748 mips_abi_regsize.
7749 (mips_gdbarch_init): Do not set mips_fp_register_double.
7750 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
7751
a587af0b
AC
77522004-04-29 Joel Brobecker <brobecker@gnat.com>
7753
7754 Committed by Andrew Cagney.
7755 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
7756 function calls.
7757
13326b4e
AC
77582004-04-29 Andrew Cagney <cagney@redhat.com>
7759
7760 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
7761 gdbarch, use mips_abi, update callers.
7762 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
7763 mips_abi_regsize, update callers.
7764 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
7765 mips_default_abi_regsize.
7766 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
7767 mips_default_abi_regsize.
7768
711cc5cd
AC
77692004-04-29 Andrew Cagney <cagney@redhat.com>
7770
1b13c4f6
AC
7771 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
7772 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
7773 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
7774 mips_default_abi_regsize.
7775 (mips_isa_regsize): Rename mips_regisze.
7776 * mipsnbsd-tdep.c: Update.
7777 * mips-linux-tdep.c: Update.
7778 * irix5-nat.c: Update.
7779 * mips-tdep.h (mips_isa_regsize): Update.
7780
711cc5cd
AC
7781 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
7782 Delete all disabled code.
7783 * gdb-events.h, gdb-events.c: Re-generate.
7784
e63bbc88
MK
77852004-04-19 Jerome Guitton <guitton@gnat.com>
7786 Mark Kettenis <kettenis@gnu.org>
7787
7788 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
7789 the function begins with a branch instruction.
7790
fd35795f
MK
77912004-04-29 Mark Kettenis <kettenis@gnu.org>
7792
7793 * i386-tdep.c: Fix spelling mistakes.
7794
c960c18f
AC
77952004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7796 Andrew Cagney <cagney@redhat.com>
7797
7798 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
7799 <sys/proc.h>.
7800 * acconfig.h: Provide default _KMEMUSER value.
7801 * config.in, configure: Re-generate.
7802 * NEWS: Mention fix.
7803
50306a9d
RC
78042004-04-24 Randolph Chung <tausq@debian.org>
7805
7806 * configure.host (hppa*-*-linux*): New target.
7807 * configure.tgt (hppa*-*-linux*): Likewise.
7808 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
7809 gdbarch_init_osabi() call earlier so that osabi-specific frame
7810 unwinders can be registered first.
7811 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
7812 hppa-linux-nat.c.
7813 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
7814 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
7815 * config/pa/linux.mh: New file.
7816 * config/pa/linux.mt: New file.
7817 * config/pa/nm-linux.h: New file.
7818 * config/pa/xm-linux.h: New file.
7819 * hppa-linux-nat.c: New file.
7820 * hppa-linux-tdep.c: New file.
7821
2a6228ef
RC
78222004-04-28 Randolph Chung <tausq@debian.org>
7823
7824 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
7825 return values.
7826 (hppa32_push_dummy_call): Fix small struct and floating point argument
7827 passing, and make sure the stack frame is properly aligned.
7828
82c10df6
AC
78292004-04-28 Andrew Cagney <cagney@redhat.com>
7830
d762c46a
AC
7831 * stack.c (print_stack_frame): Fix description.
7832
82c10df6
AC
7833 * NEWS: Mention gdb/gdbserver/configure execute permission
7834 changed. PR server/519.
7835
0faf0076
AC
78362004-04-28 Andrew Cagney <cagney@redhat.com>
7837
7838 * stack.c (print_stack_frame_stub): Delete declaration.
7839 (struct print_stack_frame_args, print_stack_frame)
7840 (print_frame_info, print_frame): Replace "source" with print what.
7841 Replace "print" with "print_level". Replace "args" with
7842 "print_args".
7843 * frame.h (show_and_print_stack_frame, print_stack_frame)
7844 (print_frame_info): Update declarations.
7845 * stack.c (select_and_print_frame, frame_command)
7846 (current_frame_command, up_command, down_command): Update calls -
7847 use get_selected_frame, pass "enum print_what" for source, do not
7848 call frame_relative_level.
7849 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
7850 * remote-rdp.c (remote_rdp_open): Ditto.
7851 * remote-mips.c (common_open): Ditto.
7852 * remote-e7000.c (e7000_start_remote): Ditto.
7853 * ocd.c (ocd_start_remote): Ditto.
7854 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
7855 * infrun.c (normal_stop): Ditto.
7856 * inflow.c (kill_command): Ditto.
7857 * infcmd.c (finish_command): Ditto.
7858 * corelow.c (core_open): Ditto.
7859 * tracepoint.c (finish_tfind_command): Ditto.
7860 * thread.c (info_threads_command, info_threads_command)
7861 (restore_current_thread, do_captured_thread_select): Ditto.
7862 * ada-tasks.c (task_command): Ditto.
7863
f4c5303c
OF
78642004-04-26 Orjan Friberg <orjanf@axis.com>
7865
7866 * frame.c: Include "observer.h".
7867 (frame_observer_target_changed): New function.
7868 (_initialize_frame): Attach target_changed observer.
7869 * regcache.c: Include "observer.h".
7870 (regcache_observer_target_changed): New function.
7871 (_initialize_regcache): Attach target_changed observer.
7872 * valops.c: Include "observer.h".
7873 (value_assign): Notify target_changed event when modifying register.
7874 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
7875
7270d8f2
OF
78762004-04-26 Orjan Friberg <orjanf@axis.com>
7877
7878 From Paul Koning <pkoning@equallogic.com>:
7879 * breakpoint.c (free_valchain): New function.
7880 (insert_bp_location, delete_breakpoint): Use free_valchain.
7881 (remove_breakpoint): Do not remove the valchain.
7882 (bpstat_stop_status): If not stopped by watchpoint, skip
7883 watchpoints when generating stop status list.
7884 * infrun.c (handle_inferior_event): Make
7885 stepped_after_stopped_by_watchpoint a global variable.
7886 * remote.c (remote_stopped_data_address): Return watch data
7887 address rather than zero if stepped_after_stopped_by_watchpoint is
7888 set.
7889
02d62932
MC
78902004-04-25 Michael Chastain <mec.gnu@mindspring.com>
7891
7892 Fix PR gdb/1626.
7893 * configure.in: Check for curses after termcap.
7894 On osf5.*, do not check for ncurses.
7895 * configure: Regenerate.
7896
3e9a183c
MK
78972004-04-25 Mark Kettenis <kettenis@gnu.org>
7898
c79ac407
MK
7899 * ppcobsd-nat.c: Include "ppc-tdep.h".
7900 * Makefile.in (ppcobsd-nat.o): Update dependencies.
7901
3e9a183c
MK
7902 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
7903 Fixes PR tdep/1623 and PR tdep/1624.
7904
38cc9c28
MC
79052004-04-24 Michael Chastain <mec.gnu@mindspring.com>
7906
7907 * xmodem.h, xmodem.c: Remove files.
7908 * Makefile.in: Remove references to xmodem.h, xmodem.c.
7909
7f07c5b6
RC
79102004-04-23 Randolph Chung <tausq@debian.org>
7911
7912 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
7913 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
7914 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
7915 for handling stackless frames.
7916 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
7917
9f7194c3
RC
79182004-04-23 Randolph Chung <tausq@debian.org>
7919
7920 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
7921 starts at a pc before the frame is created.
7922
dcff6009
JB
79232004-04-23 Joel Brobecker <brobecker@gnat.com>
7924
7925 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
7926
40711ff1 79272004-04-23 Jerome Guitton <guitton@gnat.com>
65951cd9
JG
7928
7929 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
7930 use convert_typed_floating to get the appropriate format.
7931
abc485a1
RC
79322004-04-22 Randolph Chung <tausq@debian.org>
7933
7934 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
7935 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
7936 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
7937 (hppa_sign_extend): Add prototype.
7938 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
7939 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
7940 (sign_extend): Rename with hppa_ prefix and make non-static. Other
7941 hppa targets will also use these functions.
7942 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
7943 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
7944 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
7945 (hppa_gdbarch_init): Remove gdbarch setting of
7946 skip_trampoline_code, in_solib_call_trampoline and
7947 in_solib_return_trampoline.
7948 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
7949 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
7950 hppa_in_solib_call_trampoline.
7951 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
7952 Moved from hppa-tdep.c.
7953 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
7954 in_solib_call_trampoline and in_solib_return_trampoline.
7955
369aa520
RC
79562004-04-22 Randolph Chung <tausq@debian.org>
7957
7958 * hppa-tdep.c (hppa_debug): New variable.
7959 (find_unwind_entry, hppa_frame_cache): Add debug output.
7960 (_initialize_hppa_tdep): Add command to set debug flag.
7961
476be15e
AC
79622004-04-22 Andrew Cagney <cagney@redhat.com>
7963
7964 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
7965 "trad-frame.h".
7966 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
7967 signal trampoline unwinder.
7968 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
7969
d195bc9f
MK
79702004-04-22 Mark Kettenis <kettenis@gnu.org>
7971
7972 Add OpenBSD/powerpc support.
7973 * NEWS (New native configurations): Mention OpenBSD/powerpc.
7974 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
7975 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
7976 (ppc_collect_fpregset): New prototypes.
7977 * ppcobsd-nat.c: New file.
7978 * ppcobsd-tdep.c: New file.
7979 * ppcobsd-tdep.h: New file.
7980 * rs6000-tdep.c: Include "regset.h".
7981 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
7982 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
7983 New functions.
7984 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
7985 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
7986 (rs6000-tdep.o): Update dependencies.
7987 * configure.host: Add powerpc-*-openbsd.
7988 * configure.tgt: Add powerpc-*-openbsd.
7989 * config/powerpc/obsd.mh: New file.
7990 * config/powerpc/nm-obsd.h: New file.
7991 * config/powerpc/obsd.mt: New file.
7992
6f14cc33
AC
79932004-04-22 Andrew Cagney <cagney@redhat.com>
7994
fcf29e5f
AC
7995 * frame.h (show_frame_info): Delete declaration.
7996
6f14cc33
AC
7997 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
7998 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
7999 * m32r-tdep.c (m32r_frame_this_id): Ditto.
8000 * frv-tdep.c (frv_frame_this_id): Ditto.
8001 * avr-tdep.c (avr_frame_this_id): Ditto.
8002
e5786a5c
EZ
80032004-04-22 Elena Zannoni <ezannoni@redhat.com>
8004
8005 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
8006
26e75e5c
JB
80072004-04-22 Jim Blandy <jimb@redhat.com>
8008
8009 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
8010 register number zero.
8011
d8d65dd3
MS
80122004-04-21 Michael Snyder <msnyder@redhat.com>
8013
8014 * mips-tdep.c (heuristic_proc_start):
8015 Warning() already prefixes "Warning: ".
8016
9a4105ab
AC
80172004-04-21 Andrew Cagney <cagney@redhat.com>
8018
8019 * annotate.h (deprecated_annotate_starting_hook)
8020 (deprecated_annotate_stopped_hook)
8021 (deprecated_annotate_exited_hook)
8022 (deprecated_annotate_signal_hook)
8023 (deprecated_annotate_signalled_hook): Deprecate.
8024 * tracepoint.h (deprecated_create_tracepoint_hook)
8025 (deprecated_delete_tracepoint_hook)
8026 (deprecated_modify_tracepoint_hook)
8027 (deprecated_trace_find_hook)
8028 (deprecated_trace_start_stop_hook): Deprecate.
8029 * target.h (deprecated_target_new_objfile_hook): Deprecate.
8030 * remote.h (deprecated_target_resume_hook)
8031 (deprecated_target_wait_loop_hook): Deprecate.
8032 * gdbcore.h (deprecated_exec_file_display_hook)
8033 (deprecated_file_changed_hook): Deprecate.
8034 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
8035 * defs.h (deprecated_modify_breakpoint_hook)
8036 (deprecated_command_loop_hook, deprecated_show_load_progress)
8037 (deprecated_print_frame_info_listing_hook)
8038 (deprecated_query_hook, deprecated_warning_hook)
8039 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
8040 (deprecated_delete_breakpoint_hook)
8041 (deprecated_interactive_hook, deprecated_registers_changed_hook)
8042 (deprecated_readline_begin_hook, deprecated_readline_hook)
8043 (deprecated_readline_end_hook, deprecated_register_changed_hook)
8044 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
8045 (deprecated_context_hook, deprecated_target_wait_hook)
8046 (deprecated_attach_hook, deprecated_detach_hook)
8047 (deprecated_call_command_hook, deprecated_set_hook)
8048 (deprecated_error_hook, deprecated_error_begin_hook)
8049 (deprecated_ui_load_progress_hook): Deprecate.
8050 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
8051 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
8052 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
8053 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
8054 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
8055 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
8056 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
8057 * annotate.c, aix-thread.c: Update.
8058
62cf13cc
AC
80592004-04-21 Andrew Cagney <cagney@redhat.com>
8060
b2e31a62
AC
8061 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
8062 * vaxnbsd-tdep.c: Include "gdb_string.h".
8063
62cf13cc
AC
8064 * symfile.c (symbol_file_add_from_memory): #if 0 function.
8065 (add_symbol_file_from_memory_command): #if 0 function body, call
8066 error instead.
8067
00e32a35
AC
80682004-04-21 Andrew Cagney <cagney@redhat.com>
8069
8070 * gdbcore.h: Update copyright.
8071 (deprecated_add_core_fns): Rename add_core_fns.
8072 * win32-nat.c (_initialize_core_win32): Update.
8073 * sun3-nat.c (_initialize_core_sun3): Update.
8074 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
8075 * rs6000-nat.c (_initialize_core_rs6000): Update.
8076 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
8077 * nto-tdep.c (_initialize_nto_tdep): Update.
8078 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
8079 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
8080 * mips-nat.c (_initialize_core_mips): Update.
8081 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8082 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
8083 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
8084 * lynx-nat.c (_initialize_core_lynx): Update.
8085 * irix5-nat.c (_initialize_core_irix5): Update.
8086 * i386-interix-nat.c (_initialize_core_interix): Update.
8087 * cris-tdep.c (_initialize_cris_tdep): Update.
8088 * corelow.c (deprecated_add_core_fns): Update.
8089 * core-regset.c (_initialize_core_regset): Update.
8090 * core-aout.c (_initialize_core_aout): Update.
8091 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
8092 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
8093 * alpha-nat.c (_initialize_core_alpha): Update.
8094
13c7b1ca
JB
80952004-04-21 Jim Blandy <jimb@redhat.com>
8096
8097 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
8098
7b5a2f43
DJ
80992004-04-19 Daniel Jacobowitz <drow@mvista.com>
8100
8101 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
8102 Delete.
8103 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
8104 (read_attribute_value): Update calls to dwarf_alloc_block.
8105 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
8106 dwarf2_tmp_obstack.
8107 (psymtab_to_symtab_1): Likewise. Clean up using
8108 free_stack_comp_unit.
8109 (add_to_cu_func_list): Use the comp_unit_obstack.
8110
05cf31d1
JB
81112004-04-19 Joel Brobecker <brobecker@gnat.com>
8112
8113 * dwarf2read.c (dwarf2_flag_true_p): New function.
8114 (die_is_declaration): Use the function above. Add some comments.
8115
adf93a2f
MK
81162004-04-19 Mark Kettenis <kettenis@gnu.org>
8117
8118 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
8119 architecture when registering sparcnbsd_core_osabi_sniffer.
8120 Adjust comment.
8121
748894bf
MK
81222004-04-18 Mark Kettenis <kettenis@gnu.org>
8123
f622ad42
MK
8124 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
8125 return value.
8126
c4fc7f1b
MK
8127 Based on a patch from Brian Ford <ford@vss.fsi.com>:
8128 * i386-tdep.c: Correct register numbering scheme comments
8129 throughout.
8130 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
8131 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
8132 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
8133 (i386_gdb_arch_init): Likewise.
8134
b4ead1bd
MK
8135 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
8136 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
8137 ppcnbsd-tdep.o.
8138
748894bf
MK
8139 * m68k-tdep.h: Tweak comments.
8140 * m68k-tdep.c: Tweak comment.
8141
fdd72f95
RC
81422004-04-17 Randolph Chung <tausq@debian.org>
8143
8144 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
8145 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
8146 (hppa_hpux_som_init_abi): Set is_elf to 0.
8147 (hppa_hpux_elf_init_abi): Set is_elf to 1.
8148 * hppa-tdep.c (low_text_segment_address): Remove global.
8149 (record_text_segment_lowaddr): Pass in low address as parameter. Use
8150 section offset to calculate segment address.
8151 (internalize_unwinds): Define low_text_segment_address as local and
8152 pass to record_text_segment_lowaddr for ELF targets.
8153 (hppa_gdbarch_init): Zero fill tdep structure.
8154 (hppa_dump_tdep): Print tdep structure.
8155 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
8156
0f8d9d59
RC
81572004-04-17 Randolph Chung <tausq@debian.org>
8158
8159 * hppa-tdep.c (hppa_pseudo_register_read): Define.
8160 (hppa_gdbarch_init): Set pseudo_register_read.
8161 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
8162 * regcache.c (supply_register): Remove check for
8163 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
8164
7c46b9fb
RC
81652004-04-17 Randolph Chung <tausq@debian.org>
8166
8167 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
8168 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
8169 (hpread_adjust_stack_address): Move to hpread.c.
8170 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8171 obj_private_struct): Move from tm-hppa.h.
8172 * hpread.c (hppa-tdep.h): Include.
8173 (hpread_adjust_stack_address): Move from hppa-tdep.c.
8174 (hpread_read_function_type, hpread_read_doc_function_type)
8175 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
8176 directly.
8177 * pa64solib.c (hppa-tdep.h): Include.
8178 * somsolib.c (hppa-tdep.h): Include.
8179 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
8180 inferior_status): Remove unused forward declarations.
8181 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
8182 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8183 obj_private_struct): Move to hppa-tdep.h.
8184 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
8185
8d153463
RC
81862004-04-17 Randolph Chung <tausq@debian.org>
8187
8188 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
8189 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
8190 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
8191 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
8192 Remove forward declaration and make static.
8193 (hppa_reg_struct_has_addr): Remove.
8194
350c2e5b
JB
81952004-04-16 Joel Brobecker <brobecker@gnat.com>
8196
8197 * observer.sh: Move comments in sed command to first column.
8198
bbde78fa
JM
81992004-04-16 Jason Molenda (jmolenda@apple.com)
8200
8201 * frame.c: Minor typeo corrections in comments.
8202
e0270fd9
JB
82032004-04-16 Joel Brobecker <brobecker@gnat.com>
8204
8205 * observer.c (observer_test_first_notification_function): Update
8206 function profile.
8207 (observer_test_second_notification_function): Likewise.
8208 (observer_test_third_notification_function): Likewise.
8209
3d049254
MK
82102004-04-16 Mark Kettenis <kettenis@gnu.org>
8211
8212 From Brian Ford <ford@vss.fsi.com>:
8213 * i386-tdep.c (i386_coff_init_abi): New function.
8214 * i386-tdep.h (i386_coff_init_abi): New prototype.
8215 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
8216 register number translation functions for DWARF and DWARF 2.
8217
7867684d
JB
82182004-04-16 Joel Brobecker <brobecker@gnat.com>
8219
8220 * dwarf2read.c: Back out my previous change, it was incorrect.
8221
72bf9492
DJ
82222004-04-16 Daniel Jacobowitz <drow@mvista.com>
8223
8224 * dwarf2read.c: Include "hashtab.h".
8225 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
8226 has_namespace_info.
8227 (struct partial_die_info): Add comments. Use bitfields to reduce
8228 memory footprint. Add scope, scope_set, has_specification,
8229 spec_offset, die_parent, die_child, and die_sibling.
8230 (peek_die_abbrev): Add prototype.
8231 (partial_read_comp_unit_head): New function, broken out from
8232 dwarf2_build_psymtabs_hard.
8233 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
8234 Use partial_read_comp_unit_head. Initialize the CU and
8235 comp_unit_obstack. Update calls to read_partial_die and
8236 scan_partial_symbols. Use free_stack_comp_unit and
8237 load_partial_dies.
8238 (scan_partial_symbols): Change PDI to a pointer. Use the child and
8239 sibling pointers to walk partial DIEs. Call fixup_partial_die.
8240 Update calls to helper functions. Remove NAMESPACE argument.
8241 Update comments.
8242 (partial_die_parent_scope, partial_die_full_name): New functions.
8243 (add_partial_symbol): Remove namespace argument. Update call to
8244 pdi_needs_namespace. Use partial_die_full_name. Handle
8245 DW_TAG_namespace. Check has_namespace_info flag.
8246 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
8247 tag. Handle namespaces.
8248 (add_partial_namespace, add_partial_enumeration): Simplify.
8249 (guess_structure_name): New function, derived from
8250 add_partial_structure.
8251 (add_partial_structure): Remove.
8252 (determine_class_name): Update comment.
8253 (dwarf2_read_abbrevs): Set has_namespace_info flag.
8254 (is_type_tag_for_partial, load_partial_dies): New functions.
8255 (read_partial_die): Pass abbrev and abbrev_len as arguments.
8256 Record specifications instead of following them immediately.
8257 (find_partial_die_in_comp_unit, find_partial_die)
8258 (fixup_partial_die, free_stack_comp_unit)
8259 (hashtab_obstack_allocate, dummy_obstack_deallocate)
8260 (partial_die_hash, partial_die_eq): New functions.
8261 * Makefile.in (hashtab_h): Define.
8262 (dwarf2read.o): Update dependencies.
8263 (observer_inc, observer_h): Move to the correct section.
8264
fdc860a3
JB
82652004-04-15 Joel Brobecker <brobecker@gnat.com>
8266
8267 * dwarf2read.c (dwarf2_attribute_true_p): New function.
8268 (die_is_declaration): Use the function above. Add comment.
8269
dc718098
JB
82702004-04-15 Joel Brobecker <brobecker@gnat.com>
8271
8272 * dwarf2read.c (read_structure_scope): Identify stub types
8273 using die_is_declaration() only.
8274
8718a420
RM
82752004-04-15 Roland McGrath <roland@redhat.com>
8276
8277 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
8278 argument instead of NAME.
8279 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
8280 in call to symbol_file_add_with_addrs_or_offsets.
8281 (build_addr_info): New function, helper for ...
8282 (symbol_file_add_from_memory): New function.
8283 (add_symbol_file_from_memory_command): New function using that.
8284 (_initialize_symfile): Register it for add-symbol-file-from-memory.
8285 (pre_add_symbol_hook): Add const to argument type.
8286 * symfile.h (symbol_file_add_from_memory): Declare it.
8287
8b910bab
MK
82882004-04-15 Mark Kettenis <kettenis@gnu.org>
8289
9f076e7a
MK
8290 * NEWS (New native configurations): Mention OpenBSD/vax.
8291 * configure.host: Add vax-*-openbsd*.
8292 * config/vax/obsd.mh: New file.
8293 * config/vax/nm-obsd.h: New file.
8294
8b910bab
MK
8295 * vax-tdep.c: Include "regset.h".
8296 (vax_supply_gregset): New function.
8297 (vax_gregset): New variable.
8298 (vax_regset_from_core_section): New function.
8299 (vax_gdbarch_init): Set regset_from_core_section.
8300 * Makefile.in (vax-tdep.o): Update dependencies.
8301
7a464420
AC
83022004-04-15 Andrew Cagney <cagney@redhat.com>
8303
8304 * observer.c (normal_stop_subject, observer_notify_normal_stop)
8305 (observer_normal_stop_notification_stub)
8306 (observer_attach_normal_stop, observer_detach_normal_stop):
8307 Delete, replaced by #include "observer.inc".
8308 * infrun.c (normal_stop): Pass "stop_bpstat" to
8309 observer_notify_normal_stop.
8310 * Makefile.in (observer_inc): Define.
8311 (observer.o): Update dependencies.
8312 (observer.h, observer.inc): New rules.
8313 * observer.h: Delete file.
8314 * observer.sh: New file.
8315
e36ad527
MK
83162004-04-15 Mark Kettenis <kettenis@gnu.org>
8317
8318 * vax-tdep.c (vax_frame_cache): Fix typo.
8319
67b441e1
MK
83202004-04-14 Mark Kettenis <kettenis@gnu.org>
8321
6f606e1c
MK
8322 * NEWS (New native configurations): Mention NetBSD/vax.
8323 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
8324 * config/vax/nbsdelf.mh: New file.
8325 * config/vax/nbsdaout.mh: New file.
8326 * config/vax/nm-nbsd.h: New file.
8327 * config/vax/nm-nbsdaout.h: New file.
8328
9c5519a5
MK
8329 * vaxnbsd-tdep.c: New file.
8330 * Makefile.in (vaxnbsd-tdep.o): New dependency.
8331 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
8332 * config/vax/nbsd.mt: New file.
8333 * config/vax/tm-nbsd.h: New file.
8334
4844a614
MK
8335 * Makefile.in (vaxbsd-nat.o): New dependency.
8336
67b441e1
MK
8337 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
8338 * vax-tdep.c (vax_store_arguments): Remove struct_return and
8339 struct_addr arguments. Don't push return value address.
8340 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
8341 arguments to vax_store_arguments. Store return value address in
8342 R1.
8343 (vax_store_struct_return, vax_extract_return_value)
8344 (vax_store_return_value): Remove functions.
8345 (vax_return_value): New function.
8346 (vax_gdbarch_init): Set return value. Don't set
8347 deprecated_store_struct_return, deprecated_extract_struct_return
8348 and deprecated_store_return_value.
8349
6672f2ae
AS
83502004-04-14 Andreas Schwab <schwab@suse.de>
8351
8352 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
8353 value buffer.
8354 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
8355
7346c184
MK
83562004-04-14 Mark Kettenis <kettenis@gnu.org>
8357
8358 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
8359 (vax_unwind_dummy_id): New functions.
8360 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
8361 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
8362 variables.
8363 (vax_fix_call_dummy): Remove function.
8364 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
8365 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
8366 call_dummy_location, deprecated_call_dummy_words,
8367 deprecated_sizeof_call_dummy_words,
8368 deprecated_call_dummy_breakpoint_offset,
8369 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
8370 and deprecated_dummy_write_sp.
8371
58e23df4
DC
83722004-04-13 David Carlton <carlton@kealia.com>
8373
8374 * MAINTAINERS: Move myself to "paper trail" section.
8375
5e6b39ff
MK
83762004-04-12 Mark Kettenis <kettenis@gnu.org>
8377
7def7fef
MK
8378 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
8379 "trad-frame.h".
8380 (vax_frame_init_saved_regs): Remove function.
8381 (vax_sigtramp_saved_pc): Remove function.
8382 (vax_frame_saved_pc): Remove function.
8383 (vax_frame_args_address): Remove function.
8384 (vax_frame_num_args): Rewrite.
8385 (vax_frame_chain): Remove function.
8386 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
8387 VAX_FP_REGNUM.
8388 (vax_pop_frame): Likewise.
8389 (vax_saved_pc_after_call): Remove function.
8390 (struct vax_frame_cache): New structure.
8391 (vax_frame_cache): New function.
8392 (vax_frame_this_id): New function.
8393 (vax_frame_prev_register): New function.
8394 (vax_frame_unwind): New variable.
8395 (vax_frame_sniffer): New function.
8396 (vax_frame_base_address): New function.
8397 (vax_frame_args_address): New function.
8398 (vax_frame_base): New variable.
8399 (vax_unwind_pc): New function.
8400 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
8401 deprecated_fp_regnum, deprecated_saved_pc_after_call,
8402 deprecated_frame_chain, deprecated_frame_saved_pc,
8403 deprecated_frame_args_address and
8404 deprecated_frame_init_saved_regs.
8405 * Makefile.in (vax-tdep.o): Update dependencies.
8406
53284fc1
MK
8407 * vaxbsd-nat.c: New file.
8408
5e6b39ff
MK
8409 * vax-tdep.h: Update copyright year. Adjust comments.
8410 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
8411 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
8412 (vax_regnum): New enum. Replacing...
8413 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
8414 (VAX_PS_REGNUM): ... these removed macros.
8415 * vax-tdep.c (vax_register_name): Remove prototype.
8416 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
8417 (vax_register_byte, vax_register_raw_size,
8418 vax_register_virtual_size, vax_register_virtual_type): Remove
8419 functions.
8420 (vax_register_type): New function.
8421 (vax_breakpoint_from_pc): Reorganize.
8422 (vax_gdbarch_init): Set register_type. Don't set
8423 deprecated_register_size, deprecated_register_bytes,
8424 deprecated_register_byte, deprecated_register_raw_size,
8425 deprecated_max_register_raw_size,
8426 deprecated_register_virtual_size,
8427 deprecated_max_register_virtual_size and
8428 deprecated_register_virtual_type. Add comment on stack direction.
8429
e9c71e9f
MK
84302004-04-11 Mark Kettenis <kettenis@gnu.org>
8431
8432 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
8433 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 8434 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 8435
d46f1176 84362004-04-10 Randolph Chung <tausq@debian.org>
8718a420 8437
d46f1176
RC
8438 * MAINTAINERS (write after approval): Add myself.
8439
a2a84a72
RC
84402004-04-07 Randolph Chung <tausq@debian.org>
8441
8442 * hppa-tdep.c (hppa_inner_than): Remove.
8443 (is_pa_2): Remove unused static variable.
8718a420 8444 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 8445
e85c3284
PH
84462004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
8447
8448 * language.h (language_defn): Add new la_post_parser field.
8449 * parser-defs.h (null_post_parser): New declaration (default for
8450 la_post_parser).
8718a420 8451
e85c3284
PH
8452 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
8453 insert call to that function.
8454 (parse_exp_in_context): New function, including code formerly in
8718a420 8455 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
8456 prefixification.
8457 (parse_expression_in_context): New exported function.
8458 (null_post_parser): New definition.
8459 * expression.h (parse_expression_in_context): Add declaration.
8718a420 8460
e85c3284
PH
8461 * p-lang.c (pascal_language_defn): Add trivial post-parser.
8462 * c-lang.c (c_language_defn): Ditto.
8463 (cplus_language_defn): Ditto.
8464 (asm_language_defn): Ditto.
8465 (minimal_language_defn): Ditto.
8466 * f-lang.c (f_language_defn): Ditto.
8467 * jv-lang.c (java_language_defn): Ditto.
8468 * language.c (unknown_language_defn): Ditto.
8469 (auto_language_defn): Ditto.
8470 (local_language_defn): Ditto.
8471 * m2-lang.c (m2_language_defn): Ditto.
8472 * scm-lang.c (scm_language_defn): Ditto.
8473 * obj-lang.c (objc_language_defn): Ditto.
8718a420 8474
d9f8c85b
MK
84752004-04-10 Mark Kettenis <kettenis@gnu.org>
8476
fa34704a
MK
8477 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
8478 (amd64nbsd_mcontext_addr): New function.
8479 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
8480 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
8481 with amd64nbsd_r_reg_offset, instead of building it on the fly.
8482
403e1656
MK
8483 * corelow.c (core_xfer_partial): Fix coding standards violation.
8484 Add support for TARGET_OBJECT_WCOOKIE.
8485
a57e5a95
MK
8486 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
8487 deprecated_pc_in_sigtramp.
8488 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
8489 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
8490 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
8491 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8492 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
8493 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8494 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
8495
377d9ebd
MK
8496 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
8497 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
8498 Fix typo.
8499
f0ef85a5
MK
8500 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
8501 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
8502 (amd64_collect_fxsave): Likewise.
8503
d9f8c85b
MK
8504 * i386-sol2-tdep.c: Include "gdb_string.h".
8505 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
8506 name.
8507 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
8508
75f501b5
MK
85092004-04-10 Mark Kettenis <kettenis@gnu.org>
8510
8511 * i386-sol2-tdep.c: Include "solib-svr4.h".
8512 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8513 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
8514 * config/i386/tm-i386sol2.h: Include :solib.h".
8515 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
8516 solib-svr4.o and solib-legacy.o.
8517 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
8518 solib-svr4.o.
8519
b31bc724
MK
85202004-04-09 Mark Kettenis <kettenis@gnu.org>
8521
18bbbd9e
MK
8522 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
8523 whether a register is supplied by PTRACE_GETFPREGS.
8524 (store_inferior_registers): Likewise.
8525 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
8526 whether a register is supplied by PT_GETFPREGS.
8527 (store_inferior_registers): Likewise.
8528
3c30bf1b
MK
8529 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
8530 * config/i386/linux64.mt (TDEPFILES): Likewise.
8531
a4194092
MK
8532 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
8533
911bc6ee
MK
8534 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
8535 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
8536 the program counter is in the range specified by `struct
8537 gdbarch_tdep'.
8538 * amd64-linux-tdep.c: Include "symtab.h".
8539 (amd64_linux_pc_in_sigtramp): Remove function.
8540 (amd64_linux_sigtramp_p): New function.
8541 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
8542 deprecated_pc_in_sigtramp.
8543 * amd64nbsd-tdep.c: Include "symtab.h".
8544 (amd64nbsd_sigtramp_p): New function.
8545 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
8546 deprecated_pc_in_sigtramp.
8547 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
8548 few comments.
8549 (amd64obsd_pc_in_sigtramp): Remove function.
8550 (amd64obsd_sigtramp_p): New function.
8551 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
8552 deprecated_pc_in_sigtramp.
8553 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
8554 (i386bsd_pc_ins_sigtramp): Remove prototype.
8555 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
8556 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
8557 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
8558 the program counter is in the range specified by `struct
8559 gdbarch_tdep'.
8560 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
8561 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
8562 (i386_go32_pc_in_sigtramp): Remove function.
8563 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
8564 Initialize TDEP->sigtramp_p.
8565 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
8566 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
8567 deprecated_pc_in_sigtramp.
8568 * i386-linux-tdep.c: Adjust comments.
8569 (i386_linux_pc_in_sigtramp): Remove function.
8570 (i386_linux_sigtramp_p): New function.
8571 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
8572 deprecated_pc_in_sigtramp.
8573 * i386-nto-tdep.c: Update copyright year.
8574 (i386nto_pc_in_sigtramp): Remove function.
8575 (i386nto_sigtramp_p): New function.
8576 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
8577 SP_REGNUM.
8578 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
8579 deprecated_pc_in_sigtramp.
8580 * i386-sol2-tdep.c: Update copyright year.
8581 (i386_sol2_pc_in_sigtramp): Remove function.
8582 (i386_sol2_sigtramp_p): New function.
8583 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
8584 deprecated_pc_in_sigtramp.
8585 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
8586 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
8587 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8588 deprecated_sigtramp_start and deprecated_sigtramp_end.
8589 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
8590 (i386nbsd_pc_in_sigtramp): Remove function.
8591 (i386nbsd_sigtramp_p): New function.
8592 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8593 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
8594 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
8595 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
8596 (i386obsd_pc_in_sigtramp): Remove function.
8597 (i386obsd_sigtramp_p): New function.
8598 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
8599 functions.
8600 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8601 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
8602 TDEP->sigtramp_p.
8603 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
8604 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
8605 dependencies.
8606
e083e6ec
MK
8607 * config/i386/i386aout.mt: Remove file.
8608
bd153b94
MK
8609 * configure.tgt: Remove i[34567]86-*-go32*,
8610 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
8611 and i[34567]86-*-isc*. Set gdb_target to i386 for
8612 i[34567]86-*-netware* and i[34567]86-*-*.
8613 * config/i386/i386.mt: New file.
8614 * config/i386/embed.mt: Remove file.
8615 * config/i386/go32.mt: Remove file.
8616 * config/i386/i386nw.mt: Remove file.
8617 * config/i386/i386v.mt: Remove file.
8618 * config/i386/tm-go32.h: Remove file.
8619
4a1bcc8c
MK
8620 * tui/tui-hooks.c: Include "readline/readline.h" after
8621 "gdb_curses.h" instead of before.
8622 * tui/tui-io.c: Likewise.
8623
f9a79064
MK
8624 * tui/tui.c: Fix typo in comment.
8625
b31bc724
MK
8626 * sparc64-tdep.c (sparc_address_from_register): Remove function.
8627
f83f82bc
AC
86282004-04-08 Andrew Cagney <cagney@redhat.com>
8629
8630 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
8631 (deprecated_exception_support_initialized): Declare.
8718a420 8632 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
8633 (initialize_hp_cxx_exception_support)
8634 (child_enable_exception_callback): Update.
8635 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
8636 (deprecated_exception_support_initialized): Rename
8637 deprecated_exception_catchpoints_are_fragile and
8638 deprecated_exception_support_initialized.
8639 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
8640
8641 * symtab.c (deprecated_hp_som_som_object_present): Rename
8642 hp_som_som_object_present.
8643 * symtab.h (deprecated_hp_som_som_object_present): Declare.
8644 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
8645 Update. Delete extern declaration.
8646 * valops.c (hp_som_som_object_present): Ditto.
8718a420 8647 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
8648 (parse_nested_classes_for_hpacc): Ditto.
8649 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 8650 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
8651 (initialize_hp_cxx_exception_support): Ditto.
8652 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 8653 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 8654 (cp_print_class_method): Ditto.
8718a420 8655 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
8656 (c_type_print_base): Ditto.
8657 * c-exp.y (hp_som_som_object_present): Ditto.
8658
fb2be677
AC
86592004-04-08 Andrew Cagney <cagney@redhat.com>
8660
8661 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
8662 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
8663 (frame_unwind_find_by_frame): Re-implement the unwind code so
8664 that it can both prepend and append sniffers. Replace
8665 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
8666 * tramp-frame.c (tramp_frame_append): Use
8667 frame_unwind_prepend_unwinder.
8668 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
8669 frame_unwind_register_unwinder.
8670 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
8671 tramp_frame_append.
8672 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 8673 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
8674 (mips_linux_init_abi): Update.
8675
67faf007
KB
86762004-04-08 Kevin Buettner <kevinb@redhat.com>
8677
8678 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
8679 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
8680 file support.
8681
8973ff21
KB
86822004-04-07 Kevin Buettner <kevinb@redhat.com>
8683
8684 * ia64-tdep.c (elf.h): Don't include.
8685 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
8686
4a0e2f88
JM
86872004-04-07 Jason Molenda (jmolenda@apple.com)
8688
8689 * frame.h: Typeo corrections in comments.
8690
9872ad24
JB
86912004-04-07 Jim Blandy <jimb@redhat.com>
8692
8693 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
8694 %esp and %ebp
8695
70b216c8
MK
86962004-04-07 Mark Kettenis <kettenis@gnu.org>
8697
11d5789c
MK
8698 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
8699 * config/sparc/linux64.mt (TDEPFILES): Likewise.
8700 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
8701 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
8702 and solib-legacy.o.
8703 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
8704 solib-svr4.o.
8705 * config/sparc/tm-sol2.h: Update copyright year. Include
8706 "solib.h".
8707
70b216c8
MK
8708 * sparc-sol2-tdep.c: Update copyright year. Include
8709 "solib-svr4.h".
8710 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8711 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
8712 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 8713 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
8714 dependencies.
8715
6339dc9e
AC
87162004-04-06 Andrew Cagney <cagney@redhat.com>
8717
8718 * infttrace.c: Include "infttrace.h".
8719 * infttrace.h: Include "target.h".
8720 * Makefile.in (infttrace_h): Update.
8721 (infttrace.o): Update.
8718a420 8722
93449403
AC
87232004-04-06 Andrew Cagney <cagney@redhat.com>
8724
6d518969
AC
8725 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
8726 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
8727 move extern declarations from here ...
8728 * infttrace.h: ... to here.
8729 * Makefile.in (hppah-nat.o): Update dependencies.
8730
85f4f2d8
AC
8731 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
8732 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 8733 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
8734 (hppa_breakpoint_from_pc): Delete.
8735
93449403
AC
8736 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
8737
71456ec6
AC
87382004-04-05 Andrew Cagney <cagney@redhat.com>
8739
8740 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
8741 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
8742 <sys/file.h>.
8718a420 8743
4c02c60c
AC
87442004-04-06 Randolph Chung <tausq@debian.org>
8745
8746 Committed by Andrew Cagney (mechanical change).
8747 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
8748 exception_catchpoints_are_fragile, find_stub_with_shl_get,
8749 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
8750 child_enable_exception_callback, current_ex_event,
8751 null_symtab_and_line, child_get_current_exception_event,
8752 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
8753 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
8754 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
8755 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
8756 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
8757 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
8758 Move hpux-specific definitions ...
8759 * hppa-hpux-tdep.c: ... to here.
8760
3a515653
AC
87612004-04-05 Andrew Cagney <cagney@redhat.com>
8762
8763 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
8764 skip_prologue_using_sal.
8765
c1730d02
AC
87662004-04-05 Andrew Cagney <cagney@redhat.com>
8767
8768 * config/i386/tm-i386.h: Delete file.
8769 * config/i386/tm-vxworks.h: Update copyright, do not include
8770 "tm-i386.h".
8771 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
8772 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
8773 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
8774 * config/i386/ncr3000.mt (TM_FILE): Delete.
8775 * config/i386/interix.mt (TM_FILE): Delete.
8776 * config/i386/i386v.mt (TM_FILE): Delete.
8777 * config/i386/i386nw.mt (TM_FILE): Delete.
8778 * config/i386/i386gnu.mt (TM_FILE): Delete.
8779 * config/i386/i386aout.mt (TM_FILE): Delete.
8780 * config/i386/embed.mt (TM_FILE): Delete.
8781
8b67aa36
KB
87822004-04-05 Kevin Buettner <kevinb@redhat.com>
8783
8784 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
8785 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
8786 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
8787 (accg7_regnum): New constants.
8788 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
8789 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
8790 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
8791 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
8792 for accg registers.
8793 (frv_register_sim_regno): Update spr_map[].
8794
3c7012f5
AC
87952004-04-04 Andrew Cagney <cagney@redhat.com>
8796
8797 * config/mips/xm-riscos.h: Delete.
8798 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
8799 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
8800 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
8801 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
8802 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
8803 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
8804 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
8805 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
8806 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
8807 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
8808 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
8809 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
8810 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
8811 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
8812 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
8813 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
8814 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
8815 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
8816 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
8817 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
8818 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
8819 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
8820 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
8821 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
8822 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
8823 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 8824
3c7012f5
AC
8825 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
8826 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
8827 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
8828 * configure.host: Remove m680[01]0-sun-sunos3*,
8829 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
8830 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
8831 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
8832 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
8833 mips-*-riscos*.
8834 * NEWS: Mention removed systems.
8835
99d16a21
AC
88362004-04-04 Andrew Cagney <cagney@redhat.com>
8837
8838 GDB 6.1 release created from 6.1 branch.
8839
6cdf9d98
AC
88402004-04-04 Andrew Cagney <cagney@redhat.com>
8841
98d346c3
AC
8842 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
8843 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
8844 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
8845
6cdf9d98
AC
8846 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
8847 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
8848 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
8849
859a326d
JB
88502004-04-03 Jim Blandy <jimb@redhat.com>
8851
8852 * MAINTAINERS: Chris Faylor has changed employers; add him to
8853 "paper trail" section, and update his E-mail address.
8854
b87178c3
AC
88552004-04-03 Andrew Cagney <cagney@redhat.com>
8856
4ea2acf0
AC
8857 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
8858 generic dummy frames.
8859 * dummy-frame.c: Update copyright.
8860 (dummy_frame_sniffer): Delete check for generic dummy frames.
8861
d0bd2d18 8862 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 8863 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
8864 (REG_PARM_STACK_SPACE): Delete.
8865 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
8866 Inline reference to REG_PARM_STACK_SPACE.
8867
b87178c3
AC
8868 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
8869 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
8870 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
8871 (FRAME_BASE_BEFORE_SIGTRAMP)
8872 (hppa32_hpux_frame_base_before_sigtramp)
8873 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
8874 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
8875 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
8876 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
8877 (FRAME_BASE_BEFORE_SIGTRAMP)
8878 (hppa64_hpux_frame_base_before_sigtramp)
8879 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
8880
43e2e1a0
AC
88812004-04-03 Andrew Cagney <cagney@redhat.com>
8882
8883 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
8884
ddc135a4
AC
88852004-04-02 Andrew Cagney <cagney@redhat.com>
8886
8887 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
8888 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
8889 * dummy-frame.h: Delete out-of-date comments.
8890 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
8891 * gdbarch.h, gdbarch.c: Re-generate.
8892
d15bfd3a 88932004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 8894
d15bfd3a
AC
8895 Committed by Andrew Cagney <cagney@redhat.com>.
8896 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
8897 into account an instruction saving a register if we have already
8898 seen an earlier instruction saving that same register.
8899
f04ceafa
AC
89002004-04-02 Andrew Cagney <cagney@redhat.com>
8901
08be3abd
AC
8902 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
8903 * gdbarch.h, gdbarch.c: Re-generate.
8904 * frame.c (legacy_get_prev_frame): Delete references to
8905 DEPRECATED_INIT_FRAME_PC_FIRST.
8906
f04ceafa
AC
8907 * infrun.c (pc_in_sigtramp): Delete function.
8908 (check_sigtramp2): Inline call to pc_in_sigtramp, use
8909 get_frame_type.
8910
08e69816
AC
89112004-04-02 Andrew Cagney <cagney@redhat.com>
8912
8913 * infrun.c (handle_step_into_function): Delete code conditional on
8914 legacy_frame_p.
8915 (handle_inferior_event, step_over_function): Ditto.
8916
adb54772
AC
89172004-04-02 Andrew Cagney <cagney@redhat.com>
8918
8919 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
8920 "previous frame inner to this frame" test.
8921
304396fb
AC
89222004-04-02 Andrew Cagney <cagney@redhat.com>
8923
8924 * frame.c (safe_frame_unwind_memory): New function.
8925 * frame.h (safe_frame_unwind_memory): Declare. Update description
8926 of /safe_/ methods.
8927 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
8928 "next_frame". Use safe_frame_unwind_memory.
8929 (tramp_frame_sniffer): Update call to tramp_frame_start.
8930
6502dd73
DJ
89312004-04-01 Daniel Jacobowitz <drow@mvista.com>
8932
8933 * dwarf2read.c (dwarf2_objfile_data_key): New.
8934 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
8935 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
8936 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
8937 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
8938 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
8939 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
8940 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
8941 Remove variables.
8942 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
8943 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
8944 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
8945 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
8946 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
8947 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
8948 Remove macros.
8949 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
8950 data.
8951 (dwarf2_locate_sections, dwarf2_build_psymtabs)
8952 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
8953 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
8954 (read_partial_die, read_full_die, read_indirect_string)
8955 (dwarf_decode_line_header, dwarf_decode_macros)
8956 (dwarf2_symbol_mark_computed): Remove use of removed macros.
8957 Update uses of removed variables.
8958 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
8959 of removed macros.
8960 (_initialize_dwarf2_read): New function.
8961 * symfile.h (dwarf2_has_info): Update prototype.
8962 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
8963 * elfread.c (elf_symfile_read): Likewise.
8964
408752b0
JB
89652004-04-01 Jim Blandy <jimb@redhat.com>
8966
9f744501
JB
8967 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
8968 function for register numbers on all the rs6000-derived targets.
8969 (rs6000_gdbarch_init): Don't register a separate
8970 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
8971 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
8972 variants.
8973
408752b0
JB
8974 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
8975 numbering.
8976
2de41bce
PH
89772004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
8978
8979 * valarith.c: Update copyright notice.
8980 (value_add): Handle range types.
8981 (value_sub): Ditto.
8982 (value_equal): Ditto.
8983 (value_less): Ditto.
8984 (value_neg): Ditto.
8985 (value_complement): Ditto.
8718a420 8986 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 8987 eliminiating unnecessary COERCE_ENUMs.
8718a420 8988
5613d8d3
AC
89892004-03-31 Andrew Cagney <cagney@redhat.com>
8990
8991 * frame.h (frame_unwind_id): Declare.
8992 * frame.c (frame_unwind_id): New function.
8993 (get_prev_frame_1): New function.
8994 (frame_debug_got_null_frame): New function.
8995 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
8996 code proper to prev_frame, update description.
8997 * infrun.c (step_over_function): Use frame_unwind_id.
8998
c4557624
JB
89992004-04-31 J. Brobecker <brobecker@gnat.com>
9000
9001 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
9002 (hppa64_push_dummy_call): Likewise.
9003
3e6bb910
JB
90042004-03-30 Jim Blandy <jimb@redhat.com>
9005
9006 From Ulrich Weigand:
9007 * utils.c (query): Do not use a va_list variable multiple times.
9008
a2f23071
DJ
90092004-03-29 Daniel Jacobowitz <drow@mvista.com>
9010
9011 * Makefile.in (linux_nat_h): Update dependencies.
9012 * configure.in: Check for <gnu/libc-version.h>.
9013 * configure: Regenerate.
9014 * config.in: Regenerate.
9015 * linux-nat.h: Include "target.h". Add waitstatus field to
9016 struct lwp_info.
9017 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
9018 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
9019 to.
9020 (lin_lwp_handle_extended): New function. Handle clone events.
9021 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
9022 thread exit events.
9023 (child_wait): Handle clone events.
9024 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
9025 * linux-nat.c (linux_enable_event_reporting): Turn on
9026 PTRACE_O_TRACECLONE.
9027 (linux_handle_extended_wait): Handle clone events.
9028 * thread-db.c: Include <gnu/libc-version.h>.
9029 (struct private_thread_info): Add dying flag.
9030 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
9031 higher.
9032 (attach_thread): Update comments. Handle dying threads.
9033 (detach_thread): Set the dying flag.
9034 (check_event): Always call attach_thread.
9035
8d5f9dcb
DJ
90362004-03-29 Daniel Jacobowitz <drow@mvista.com>
9037
9038 * mips-tdep.c (mips_pdr_data): New.
9039 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
9040 (_initialize_mips_tdep): Initialize mips_pdr_data.
9041
66337bb1
CV
90422004-03-29 Corinna Vinschen <vinschen@redhat.com>
9043
9044 * minsyms.c (install_minimal_symbols): Move dropping leading
9045 char from linkage name from here...
9046 (prim_record_minimal_symbol_and_info): ...to here. Simplify
9047 test for "__gnu_compiled*" symbols.
9048
e802b915
JB
90492004-03-28 Jim Blandy <jimb@redhat.com>
9050
9051 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
9052 registers to temp register r0 and byte stores as prologue
9053 instructions.
9054
72b56458
AC
90552004-03-28 Andrew Cagney <cagney@redhat.com>
9056
9057 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
9058 arm*-*-*.
9059
0bfbda3b
SC
90602004-03-28 Stephane Carrez <stcarrez@nerim.fr>
9061
9062 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
9063 and switch the layout to force a display of register window.
9064
5a7225ed
JB
90652004-02-26 J. Brobecker <brobecker@gnat.com>
9066
9067 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
9068 of the INTEGER class.
9069
81a07a45
JB
90702004-03-26 Jim Blandy <jimb@redhat.com>
9071
9072 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
9073 bytes long on PPC GNU/Linux.
9074
8c691c7a
DC
90752004-03-26 David Carlton <carlton@kealia.com>
9076
9077 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
9078
103a0089
AC
90792004-03-25 Andrew Cagney <cagney@redhat.com>
9080
9081 * PROBLEMS: Add general section titles, remove references to
9082 specific releases.
9083
7a5ea0d4
DJ
90842004-03-25 Daniel Jacobowitz <drow@mvista.com>
9085
9086 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
9087 INT_REGISTER_SIZE.
9088 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
9089 FP_REGISTER_VIRTUAL_SIZE.
9090 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
9091 of DEPRECATED_REGISTER_RAW_SIZE.
9092 (arm_register_type): Add gdbarch argument.
9093 (arm_register_raw_size, arm_register_virtual_size): Delete.
9094 (arm_register_byte, arm_extract_return_value)
9095 (arm_store_return_value, arm_get_longjmp_target): Update references
9096 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
9097 (arm_gdbarch_init): Likewise. Don't set
9098 deprecated_register_raw_size, deprecated_register_virtual_size,
9099 deprecated_max_register_raw_size,
9100 deprecated_max_register_virtual_size, or
9101 deprecated_max_register_virtual_type. Do set register_type.
9102 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
9103 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
9104 (FP_REGISTER_VIRTUAL_SIZE): Delete.
9105 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
9106 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
9107 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
9108 INT_REGISTER_SIZE.
9109 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
9110 (remote_rdp_store_register): Likewise.
9111
5792a79b
DJ
91122004-03-24 Daniel Jacobowitz <drow@mvista.com>
9113
9114 * Makefile.in (mips-linux-tdep.o): Update dependencies.
9115 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
9116 to after osabi initialization.
9117 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
9118 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
9119 functions.
9120 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
9121 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
9122 variables.
9123 (mips_linux_init_abi): Append signal trampoline unwinders.
9124
1196bfda
AC
91252004-03-24 Andrew Cagney <cagney@redhat.com>
9126
9127 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
9128 * tramp-frame.c: Include "gdb_assert.h".
9129 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
9130 correct sizeof.
9131 (tramp_frame_append): Validate the tramp frame's instructions.
9132 * Makefile.in (tramp-frame.o): Update dependencies.
9133
4be282b4
AC
91342004-03-23 Andrew Cagney <cagney@redhat.com>
9135
9136 * trad-frame.h (trad_frame_set_reg_addr): Declare.
9137
69aec09b
AC
91382004-03-23 Andrew Cagney <cagney@redhat.com>
9139
9140 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
9141 Nasser as past testsuite/lib/ (and other) maintainers.
9142
63ed89b4
DJ
91432004-03-23 Daniel Jacobowitz <drow@mvista.com>
9144
9145 * infcmd.c (attach_command): Reread symbols if we already have
9146 an exec file.
9147
f3b36427
AC
91482004-03-23 Andrew Cagney <cagney@redhat.com>
9149
9150 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
9151
aa2a3f87
AC
91522004-03-23 Andrew Cagney <cagney@redhat.com>
9153
9154 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
9155 * gdbarch.h, gdbarch.c: Re-generate.
9156 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9157 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9158 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 9159 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 9160 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 9161 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
9162 (DEPRECATED_SIGTRAMP_START): Update.
9163 * blockframe.c (find_pc_sect_partial_function): Update.
9164 * arch-utils.c (legacy_pc_in_sigtramp): Update.
9165
00cac895
DJ
91662004-03-23 Daniel Jacobowitz <drow@mvista.com>
9167
9168 * remote.c (remote_open_1): Reopen the exec file and reread symbols
9169 if necessary.
9170
f561f026
AC
91712004-03-23 Andrew Cagney <cagney@redhat.com>
9172
9173 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
9174 predicate, deprecate.
9175 * gdbarch.h, gdbarch.c: Re-generate.
9176 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
9177 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
9178 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
9179 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
9180 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
9181 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
9182 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
9183 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
9184 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
9185 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
9186 * blockframe.c (find_pc_partial_function): Update.
9187 * breakpoint.c (bpstat_what): Update.
9188 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
9189 * frv-linux-tdep.c (frv_linux_init_abi): Update.
9190 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
9191 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
9192 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9193 * i386-linux-tdep.c (i386_linux_init_abi): Update.
9194 * i386-nto-tdep.c (i386nto_init_abi): Update.
9195 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
9196 * i386-tdep.c (i386_sigtramp_frame_sniffer)
9197 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
9198 * i386bsd-tdep.c (i386bsd_init_abi): Update.
9199 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9200 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9201 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
9202 * infrun.c (pc_in_sigtramp): Update.
9203 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
9204 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
9205 * mips-tdep.c (mips_gdbarch_init): Update.
9206 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
9207 * ppc-linux-tdep.c: Update comment.
9208 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
9209 * shnbsd-tdep.c (shnbsd_init_abi): Update.
9210 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
9211 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
9212 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
9213 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
9214 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
9215 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
9216 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
9217 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 9218
8050c72f
AC
92192004-03-23 Andrew Cagney <cagney@redhat.com>
9220
d2259dd3
AC
9221 * tramp-frame.h, tramp-frame.h: New files.
9222 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
9223 Update rules to include "tramp-frame.h" and "tramp-frame.c".
9224
8050c72f
AC
9225 * Makefile.in: Update all dependencies.
9226
0db9b4b7
AC
92272004-03-23 Andrew Cagney <cagney@redhat.com>
9228
9229 * Makefile.in (trad_frame_h): Add $(frame_h).
9230 * trad-frame.h: Update copyright. Include "frame.h".
9231 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
9232 (trad_frame_set_id, trad_frame_get_id): Declare.
9233 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
9234 * trad-frame.c: Update copyright.
9235 (struct trad_frame_cache): Define.
9236 (trad_frame_cache_zalloc): New function.
9237 (trad_frame_set_id, trad_frame_get_id): New functions.
9238 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 9239
8e645ae7
AC
92402004-03-22 Andrew Cagney <cagney@redhat.com>
9241
9242 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
9243 s390_pltstub_unwind_cache.
9244 (s390_stub_frame_unwind_cache): Rename
9245 s390_pltstub_frame_unwind_cache.
9246 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
9247 (s390_stub_frame_prev_register): Rename
9248 s390_pltstub_frame_prev_register.
9249 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
9250 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
9251
9252 From Ulrich Weigand:
9253 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
9254 pointer calls like PLT calls.
9255
34fcf120
DJ
92562004-03-22 Daniel Jacobowitz <drow@mvista.com>
9257
9258 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
9259 PC rather than the partial function start address. Use the start
9260 address to sanity check the found PDR.
9261
5b917078
DJ
92622004-03-22 Daniel Jacobowitz <drow@mvista.com>
9263
9264 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
9265 linux_handle_extended_wait.
9266
8adf9e78
AC
92672004-03-22 Andrew Cagney <cagney@redhat.com>
9268
c3122434
AC
9269 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
9270 function.
9271
8adf9e78
AC
9272 * frame.h (generic_pop_current_frame): Delete declaration.
9273 (deprecate_pop_dummy_frame): Deprecate
9274 generic_pop_dummy_frame.
9275 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
9276 (generic_pop_current_frame): Delete function.
9277 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
9278 generic_pop_current_frame.
9279 * v850-tdep.c (v850_pop_frame): Update.
9280 * mcore-tdep.c (mcore_pop_frame): Update.
9281 * sh64-tdep.c (sh64_pop_frame): Update.
9282 * h8300-tdep.c (h8300_pop_frame): Update.
9283
90ba813f
AC
92842004-03-22 Andrew Cagney <cagney@redhat.com>
9285
9286 * frame.h (deprecated_pc_in_call_dummy): Rename
9287 generic_pc_in_call_dummy.
9288 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
9289 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
9290 generic_pc_in_call_dummy.
9291 (pc_in_dummy_frame): Make static.
9292 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
9293 * gdbarch.h, gdbarch.c: Re-generate.
9294 * dummy-frame.c (dummy_frame_sniffer): Simplify.
9295 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
9296 (legacy_get_prev_frame): Ditto.
9297 * inferior.h: Delete reference to generic_pc_in_call_dummy in
9298 comment.
8718a420 9299
ca4bb888
AC
93002004-03-21 Andrew Cagney <cagney@redhat.com>
9301
244675f9
AC
9302 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
9303 declaration and out-of-date comment.
9304 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
9305 Delete function.
9306 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
9307 deprecated_pc_in_call_dummy.
9308
ca4bb888
AC
9309 * infrun.c (handle_inferior_event): For non legacy frames, use the
9310 frame ID and frame type to identify a signal trampoline. Update
9311 comments.
9312
1777c7b4
NW
93132004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
9314
9315 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
9316 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
9317
82417da5
AC
93182004-03-21 Andrew Cagney <cagney@redhat.com>
9319
9320 * frame-unwind.h: Update copyright.
9321 (struct frame_data): Add opaque declaration.
9322 (frame_sniffer_ftype): Declare.
9323 (struct frame_unwind): Add "unwind_data" and "sniffer".
9324 (frame_unwind_register_unwinder): Declare.
9325 (frame_unwind_find_by_frame): Add parameter "this_cache".
9326 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
9327 (legacy_get_prev_frame, legacy_get_prev_frame)
9328 (get_frame_type): Pass the prologue_cache to
9329 frame_unwind_find_by_frame.
9330 * frame-unwind.c (struct frame_unwind_table_entry): Add field
9331 "unwinder".
9332 (frame_unwind_register_unwinder): New function.
9333 (frame_unwind_find_by_frame): Handle an unwind sniffer.
9334
b2ba182e
PH
93352004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
9336
9337 * bcache.c (print_percentage): Use floating point to avoid
9338 incorrect results when portion*100 overflows.
9339
81332287
KB
93402004-03-19 Kevin Buettner <kevinb@redhat.com>
9341
9342 * ppc_tdep.h (ppc_linux_frame_saved_pc)
9343 (ppc_linux_init_extra_frame_info)
9344 (ppc_linux_frameless_function_invocation)
9345 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
9346 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
9347 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
9348 (rs6000_frame_chain): Delete declarations.
9349 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
9350 (ppc_linux_init_extra_frame_info)
9351 (ppc_linux_frameless_function_invocation)
9352 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
9353 (ppc_linux_init_abi): Remove registration of above deleted functions.
9354 * rs6000-tdep.c (rs6000_init_extra_frame_info)
9355 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
9356 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
9357 (rs6000_pop_frame, rs6000_frameless_function_invocation)
9358 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
9359 (rs6000_gdbarch_init): Remove registration of above deleted functions.
9360 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
9361 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
9362 frame management for all OSABIs.
9363
61a65099
KB
93642004-03-19 Andrew Cagney <cagney@redhat.com>
9365
9366 Committed by Kevin Buettner <kevinb@redhat.com>.
9367
9368 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
9369 Update copyright.
9370 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
9371 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
9372 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
9373 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
9374 unwinders. #ifdef legacy frame code.
9375 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
9376 "frame-base.h".
9377 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
9378 (struct rs6000_frame_cache, rs6000_frame_cache)
9379 (rs6000_frame_this_id, rs6000_frame_prev_register)
9380 (rs6000_frame_sniffer, rs6000_frame_unwind)
9381 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
9382 (rs6000_frame_base): Implement a traditional frame unwinder.
9383 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
9384 frame unwinder.
9385
88f7da05
KB
93862004-03-19 Kevin Buettner <kevinb@redhat.com>
9387
9388 * breakpoint.c (adjust_breakpoint_address): Don't adjust
9389 breakpoint address for watchpoints or the catch eventpoints.
9390 Add new paramter ``bptype''. Adjust all callers.
9391
f826dce1
AC
93922004-03-19 Andrew Cagney <cagney@redhat.com>
9393
33cb8b0f
AC
9394 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
9395
f826dce1
AC
9396 * PROBLEMS: Delete note that ARM does not use frame code, problem
9397 fixed.
9398
43b1ab88
AC
93992004-03-18 Andrew Cagney <cagney@redhat.com>
9400
292ab034
AC
9401 * stack.c (return_command): Delete code wrapped in #ifdef
9402 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
9403
43b1ab88
AC
9404 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
9405
dbfe4626
AC
94062004-03-18 Andrew Cagney <cagney@redhat.com>
9407
9408 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
9409 DEPRECATED_IN_SIGTRAMP.
9410 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9411 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
9412 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9413 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9414 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9415 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9416 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9417 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9418 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
9419 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
9420
0cad6aec
AC
94212004-03-18 Andrew Cagney <cagney@redhat.com>
9422
9423 * frame-base.c: Update copyright. Include "gdb_obstack.h".
9424 (struct frame_base_table_entry): Define.
9425 (struct frame_base_table): Re-implement as a linked list.
9426 (frame_base_init): Re-implement.
9427 (frame_base_table): Delete function.
9428 (append_predicate): Delete function.
9429 (frame_base_append_sniffer): Update.
9430 (frame_base_set_default): Update.
9431 (frame_base_find_by_frame): Update.
9432 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
9433 * Makefile.in (frame-base.o): Update dependencies.
9434
9982c2e7
AC
94352004-03-17 Andrew Cagney <cagney@redhat.com>
9436
9437 * frame.c (legacy_get_prev_frame): Pass correct frame to
9438 frame_unwind_find_by_frame.
9439
8dfe8985
DC
94402004-03-17 David Carlton <carlton@kealia.com>
9441
9442 * NEWS: Mention C++ nested types and namespaces
9443
ed47347a
MC
94442004-03-16 Michael Chastain <mec.gnu@mindspring.com>
9445
9446 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
9447 and "Regressions since gdb 5.3.". Add known regressions since
9448 gdb 6.0.
9449
90aeadfc
DC
94502004-03-16 David Carlton <carlton@kealia.com>
9451
9452 * dwarf2read.c (process_structure_scope): Process children even
9453 when we're a declaration.
9454
73912b9b
AC
94552004-03-16 Andrew Cagney <cagney@redhat.com>
9456
9457 * symtab.h (find_pc_sect_partial_function): Delete declaration.
9458 * blockframe.c (find_pc_partial_function)
9459 (find_pc_sect_partial_function): Merge into a single
9460 find_pc_partial_function.
9461
283accbc
MK
94622004-03-16 Mark Kettenis <kettenis@gnu.org>
9463
9464 * i386bsd-nat.c: s/regno/regnum/g.
9465 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
9466 FP0_REGNUM.
9467 (store_inferior_registers): Likewise.
9468
f5b1afdf
MK
94692004-03-16 Mark Kettenis <kettenis@gnu.org>
9470
9471 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
9472 of i387_fill_fsave.
9473 (store_inferior_registers): Call i387_collect_fsave and
9474 i387_collect_fxsave instead of i387_fill_fsave and
9475 i387_fill_fxsave.
9476
41fe5eb3
AC
94772004-03-15 Andrew Cagney <cagney@redhat.com>
9478
9479 * Makefile.in (frame-unwind.o): Update dependencies.
9480 * frame-unwind.c: Include "gdb_obstack.h".
9481 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
9482 parameter.
9483 (append_predicate): Delete function.
9484 (struct frame_unwind_table_entry): New structure.
9485 (struct frame_unwind_table): Replace "sniffer" with "head" and
9486 "tail".
9487 (frame_unwind_append_sniffer): Update.
9488 (frame_unwind_find_by_frame): Update.
9489 (_initialize_frame_unwind): Registe frame_unwind_init using
9490 gdbarch_data_register_pre_init.
9491
3f63813d
MK
94922004-03-15 Mark Kettenis <kettenis@gnu.org>
9493
9494 * i386bsd-nat.c: Update copyright year.
9495 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
9496 define unconditionally.
9497
3248c325 94982004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
9499
9500 * i387-tdep.h (i387_collect_fsave): New prototype.
9501 * i387-tdep.c (i387_collect_fsave): New function containing most
9502 of the code from i387_fill_fsave.
3248c325 9503 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 9504
871fbe6a
MK
95052004-03-15 Mark Kettenis <kettenis@gnu.org>
9506
9507 * i386-linux-tdep.c: Update copyright year.
9508 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
9509 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
9510 svr4_ilp32_link_map_offsets instead of
9511 i386_linux_svr4_fetch_link_map_offsets.
9512
8176b9b8
DC
95132004-03-15 David Carlton <carlton@kealia.com>
9514
9515 Fix for PR c++/1553:
9516 * dwarf2read.c (read_structure_type): Determine type name by
9517 calling determine_class_name.
9518 (determine_class_name): New.
9519 (determine_prefix): Look at TYPE_TAG_NAME and call
9520 determine_class_name when appropriate.
9521 (determine_prefix_aux, class_name): Delete.
9d58e29d 9522 (read_namespace): Set die->type.
8176b9b8 9523
fe8bf7d7
KB
95242004-03-15 Kevin Buettner <kevinb@redhat.com>
9525
9526 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
9527 unused macro definition. The definition in target.h (or perhaps
9528 elsewhere) takes precedence.
9529
ed6edd9b
AC
95302004-03-15 Andrew Cagney <cagney@redhat.com>
9531
f9be684a
AC
9532 * ppc-tdep.h: Update copyright.
9533 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
9534 function signatures to match "regsets.h".
9535 * ppc-linux-tdep.c: Include "regset.h".
9536 (ELF_GREGSET_SIZE): Delete.
9537 (right_supply_register): New function.
9538 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
9539 using right_supply_register.
9540 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
9541 functions.
9542 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
9543 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
9544 (_initialize_ppc_linux_tdep): Do not register
9545 ppc_linux_regset_core_fns.
9546 (ppc_linux_regset_from_core_section): Replace
9547 fetch_core_registers.
9548 (ppc_linux_regset_core_fns): Delete.
9549 * ppc-linux-nat.c: (right_fill_reg): New function.
9550 (supply_gregset): Update call to ppc_linux_supply_gregset.
9551 (fill_gregset): Clear the register set, use right_fill_reg.
9552 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
9553 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
9554
ed6edd9b
AC
9555 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
9556 unsigned.
9557
030f20e1
AC
95582004-03-15 Andrew Cagney <cagney@redhat.com>
9559
9560 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
9561 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
9562 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
9563 and register_gdbarch_data.
9564 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
9565 (struct gdbarch_data): Replace "init" by "pre_init" and
9566 "post_init".
9567 * gdbarch.h, gdbarch.c: Re-generate.
9568 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
9569 with"obstack", use OBSTACK_ZALLOC.
9570 (dwarf2_frame_ops): Delete.
9571 (dwarf2_frame_set_init_reg): Use gdbarch_data.
9572 (dwarf2_frame_init_reg): Use gdbarch_data.
9573 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 9574 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
9575 (_initialize_svr4_solib): Update.
9576 * user-regs.c (_initialize_user_regs): Update.
9577 * reggroups.c (_initialize_reggroup): Update.
9578 * regcache.c (_initialize_regcache): Update.
9579 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
9580 * libunwind-frame.c (_initialize_libunwind_frame): Update.
9581 * gnu-v3-abi.c (init_gnuv3_ops): Update.
9582 * frame-unwind.c (_initialize_frame_unwind): Update.
9583 * frame-base.c (_initialize_frame_base): Update.
9584 * user-regs.c (user_reg_add): Update.
9585 * reggroups.c (reggroup_add): Update.
9586 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
9587 * libunwind-frame.c (libunwind_frame_set_descr): Update.
9588 * frame-unwind.c (frame_unwind_append_sniffer): Update.
9589 * frame-base.c (frame_base_table): Update.
9590 * remote.c (_initialize_remote): Update.
9591 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 9592
3111a3fc
AC
95932004-03-15 Andrew Cagney <cagney@redhat.com>
9594
9595 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
9596
5ecb7103
KB
95972004-03-15 Kevin Buettner <kevinb@redhat.com>
9598
9599 * Makefile.in (frv-linux-tdep.o): Add dependencies.
9600 * frv-linux-tdep.c: New file.
9601 * frv-tdep.c (struct gdbarch_tdep): Add new field
9602 ``sigcontext_reg_addr''.
9603 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
9604 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
9605 (frv_sigramp_frame_sniffer): New functions.
9606 (frv_sigtramp_frame_unwind): New static global.
9607 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
9608 sniffers.
9609 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
9610 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
9611
1ccda5e9
KB
96122004-03-15 Kevin Buettner <kevinb@redhat.com>
9613
9614 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
9615 but not via a call to error(), when unable to read memory.
9616
b375a0a5
KB
96172004-03-15 Kevin Buettner <kevinb@redhat.com>
9618
9619 * frv-tdep.c (frv_call_dummy_words): Delete.
9620 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
9621
4fdf6121
AC
96222004-03-15 Andrew Cagney <cagney@redhat.com>
9623
9624 * infrun.c (handle_step_into_function, step_over_function): Only
9625 update and use STEP_FRAME_ID when the system is using legacy
9626 frames. Update comments.
9627
34021503
MK
96282004-03-14 Mark Kettenis <kettenis@gnu.org>
9629
187e21d1
MK
9630 * amd64-linux-tdep.h: Remove file.
9631 * amd64-linux-tdep.c: Don't include "inferior.h" and
9632 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
9633 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
9634 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
9635 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
9636 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
9637 macros.
9638 (user_to_gdb_regmap): Remove variable.
9639 (amd64_linux_gregset_reg_offset): New variable.
9640 (amd64_core_fns): Remove variable.
9641 (fetch_core_registers): Remove function.
9642 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
9643 functions.
9644 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
9645 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
9646 * Makefile.in (amd64_linux_tdep_h): Remove.
9647 (amd64-linux-nat.o): Update dependencies.
9648 (amd64-linux-tdep.o): Update dependencies.
9649
99679982
MK
9650 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
9651 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
9652 functions.
9653 (fetch_inferior_registers, store_inferior_registers): Rewrite.
9654
34021503
MK
9655 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
9656 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
9657
134d01f1
DJ
96582004-03-14 Daniel Jacobowitz <drow@mvista.com>
9659
9660 * dwarf2read.c (read_structure_type): Rename from
8718a420 9661 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
9662 Return immediately if die->type is set. Call read_type_die before
9663 dwarf2_add_member_fn.
9664 (process_structure_scope): New function.
9665 (read_enumeration_type, process_enumeration_scope): New functions,
9666 broken out from read_enumeration. Don't create the enumeration
9667 type if it has already been created.
9668 (read_enumeration): Removed.
9669 (process_die): Call read_structure_type, process_structure_scope,
9670 read_enumeration_type, and process_enumeration_scope. Just call
9671 new_symbol for base and subrange types. Add a comment about other
9672 type dies.
9673 (read_type_die): Call read_enumeration_type.
9674 (add_partial_structure, new_symbol): Update comments.
9675
65760afb
SC
96762004-03-13 Stephane Carrez <stcarrez@nerim.fr>
9677
9678 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
9679
10f59415
SC
96802004-03-13 Stephane Carrez <stcarrez@nerim.fr>
9681
9682 * tui/tui-win.h (tui_get_cmd_list): Declare.
9683 * tui/tui-win.c (tui_command): New function.
9684 (tui_get_cmd_list): New function.
9685 (_initialize_tui_win): Moved initialization of tui command in
9686 tui_get_cmd_list.
9687
9688 * tui/tui-data.c (init_content_element): Setup new data members.
9689 (init_win_info): Likewise.
9690 (free_content_elements): Free it.
9691 * tui/tui-data.h (struct tui_data_element): Store the register
9692 content to print.
9693 (struct tui_data_info): Keep the current register group.
9694
9695 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
9696
9697 * tui/tui-regs.h (tui_show_registers): Update prototype.
9698 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
9699 (tui_resize_all): No need to calculate anything for register window.
9700 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
9701 (tui_set_register_element, tui_set_general_regs_content): Remove.
9702 (tui_set_special_regs_content): Remove.
9703 (tui_set_general_and_special_regs_content): Remove.
9704 (tui_set_float_regs_content): Remove.
9705 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
9706 (tui_set_regs_content): Remove.
9707 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
9708 (tui_v_show_registers_command_support): Remove.
9709 (tui_show_registers): Use a reggroup to specify the registers to show.
9710 (tui_show_register_group): New function.
9711 (tui_display_registers_from): Compute the layout of register window
9712 and refresh with new API; be sure to delete old register windows.
9713 (tui_check_register_values): Update to use tui_get_register and
9714 tui_display_data.
9715 (tui_display_register): Just refresh the register window part.
9716 (tui_register_format): Format registers and save in tui_data_element.
9717 (tui_get_register): New to combine tui_reg_value_has_changed and
9718 tui_get_register_raw_value; fix to use the new gdb API.
9719 (tui_show_float_command): Renamed tui_reg_float_command.
9720 (tui_show_general_command): Renamed tui_reg_general_command.
9721 (tui_show_special_command): Renamed tui_reg_system_command.
9722 (_initialize_tui_regs): Remove unused commands.
9723
c3364ea4
MK
97242004-03-13 Mark Kettenis <kettenis@gnu.org>
9725
27d1e716
MK
9726 * NEWS (New native configurations): Mention OpenBSD/amd64.
9727
c3364ea4
MK
9728 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
9729 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
9730 Remove defines.
9731 * config/i386/nm-fbsd64.h: Likewise.
9732 * config/i386/nm-obsd.h: Likewise.
9733 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
9734 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
9735
b2d6d697
KB
97362004-03-12 Kevin Buettner <kevinb@redhat.com>
9737
9738 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
9739 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
9740 New constants.
9741
76e43199
KB
9742 From Richard Sandiford <rsandifo@redhat.com>:
9743 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
9744
34ce532e
KB
97452004-03-12 Kevin Buettner <kevinb@redhat.com>
9746
9747 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
9748 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
9749 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
9750 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
9751 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
9752 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
9753 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
9754 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
9755 definitions from frv-tdep.c to frv-tdep.h.
9756
c4d10515
KB
97572004-03-12 Kevin Buettner <kevinb@redhat.com>
9758
9759 Add shared library support for FR-V FDPIC ABI:
9760 * Makefile.in (solib-frv.o): Add dependencies.
9761 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
9762 New functions.
9763 (frv_push_dummy_call): Add support for FDPIC ABI.
9764 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
9765 for FDPIC ABI.
9766 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
9767 (frv_fdpic_find_canonical_descriptor): Declare.
9768 * solib-frv.c: New file.
9769 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
9770 * config/frv/tm-frv.h (solib.h): Include.
9771
ed1bd989
KB
97722004-03-12 Kevin Buettner <kevinb@redhat.com>
9773
9774 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
9775 (frv-tdep.o): Update dependencies.
9776 * frv-tdep.h: New file.
9777 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
9778 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
9779 constants.
9780 (struct gdbarch_tdep): Add new member ``frv_abi''.
9781 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
9782 functions.
9783 (new_variant): Set ``frv_abi'' field.
9784 (gdb_arch_init): Detect FDPIC executables.
9785
82b38f72
MK
97862004-03-12 Mark Kettenis <kettenis@gnu.org>
9787
9788 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
9789 wrapper.
9790
db1ea9ba
AC
97912004-03-11 Andrew Cagney <cagney@redhat.com>
9792
9793 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
9794
f8766ec1
KB
97952004-03-11 Kevin Buettner <kevinb@redhat.com>
9796
9797 * solist.h (master_so_list): New function.
9798 * solib.c (master_so_list): Likewise.
9799 * solib-svr4.c (enable_break): Iterate over so_list entries
9800 obtained from master list instead of entries obtained directly
9801 via svr4_current_sos().
9802
523f6a27
BE
98032004-03-10 Ben Elliston <bje@gnu.org>
9804
9805 * MAINTAINERS: Update my mail address.
9806
37814c18
KI
98072004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
9808
9809 * remote-m32r-sdi.c: Support hardware watchpoint.
9810
8b9740d8
DJ
98112004-03-09 Daniel Jacobowitz <drow@mvista.com>
9812
9813 * user-regs.c: Update copyright years.
9814 (struct user_regs): Rename to gdb_user_regs.
9815 (append_user_reg, builtin_user_regs, user_regs_init)
9816 (user_reg_add, user_reg_map_name_to_regnum)
9817 (usernum_to_user_reg): Update.
9818
4bb7a0a7
DJ
98192004-03-09 Daniel Jacobowitz <drow@mvista.com>
9820
9821 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
9822 (skip_children): New functions.
9823 (locate_pdi_sibling): Call skip_children.
9824
44e1a9eb
DJ
98252004-03-09 Daniel Jacobowitz <drow@mvista.com>
9826
9827 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
9828 * gdbtypes.c (check_typedef): Update comments.
9829
f3dd6933
DJ
98302004-03-09 Daniel Jacobowitz <drow@mvista.com>
9831
9832 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
9833 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
9834 pointer. Update comment about comp_unit_head.
9835 (struct abbrev_info): Shorten two int flags.
9836 (dwarf_alloc_abbrev): Take a CU argument.
9837 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
9838 each time through the loop. Update cleanup argument.
9839 (psymtab_to_symtab_1): Update cleanup call.
9840 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
9841 abbrev_obstack.
9842 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
9843 Just call obstack_free and clear the pointer.
9844
b40c7d58
DJ
98452004-03-09 Daniel Jacobowitz <drow@mvista.com>
9846
9847 * infrun.c (handle_inferior_event): Remove short-circuit code for
9848 events in a different thread.
9849
333dabeb
DJ
98502004-03-09 Daniel Jacobowitz <drow@mvista.com>
9851
9852 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
9853 print the whole transfer.
9854 (initialize_targets): Update description of "set debug target".
9855
aa17d93e
DJ
98562004-03-09 Daniel Jacobowitz <drow@mvista.com>
9857
9858 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
9859
0b71f08f
NW
98602004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
9861
9862 * MAINTAINERS (write after approval): Add myself.
9863
3930f270
CV
98642004-03-08 Corinna Vinschen <vinschen@redhat.com>
9865
9866 * sh-tdep.c (sh_print_registers_info): Use for loop.
9867 Don't skip multiple registers when a float register is encountered.
9868
a2b4a96c
CV
98692004-03-08 Corinna Vinschen <vinschen@redhat.com>
9870
9871 Fix PR tdep/1291.
9872 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
9873 to official SH documentation.
9874
f15a4bc0
AC
98752004-03-07 Andrew Cagney <cagney@redhat.com>
9876
9877 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
9878 unused function.
9879
9498281f
DJ
98802004-03-07 Daniel Jacobowitz <drow@mvista.com>
9881
9882 * arm-tdep.c (thumb_get_next_pc): Handle BX.
9883 (arm_get_next_pc): Handle BX and BLX.
9884
449e1137
AC
98852004-03-07 Andrew Cagney <cagney@redhat.com>
9886
eded0a31
AC
9887 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
9888 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
9889 HPPA_SP_REGNUM.
9890 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
9891 (hppa_target_read_fp): Delete.
9892 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
9893 register_virtual_size, max_register_raw_size,
9894 max_register_virtual_size, register_byte, register_size,
9895 target_read_fp, fp_regnum, and register_bytes. Set register_type
9896 instead of register_virtual_type.
9897 (hppa32_register_type, hppa64_register_type): Replace
9898 hppa32_register_virtual_type and hppa64_register_virtual_type.
9899 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
9900 (HPPA_FP_REGNUM): Define.
9901
f5f907e2
AC
9902 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
9903
69b4bbe4
AC
9904 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
9905 (pa_do_registers_info): Delete.
9906 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 9907 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 9908 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 9909
78161e48
AC
9910 * infcall.c (legacy_push_dummy_code): Delete #ifdef
9911 GDB_TARGET_IS_HPPA code.
9912 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 9913 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
9914 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
9915 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
9916 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
9917 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
9918 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 9919 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
9920 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
9921 (hppa_frameless_function_invocation, hppa64_store_return_value)
9922 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 9923 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 9924 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 9925 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
9926 (find_proc_framesize, deposit_21, restore_pc_queue)
9927 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 9928 (rp_saved, pc_in_linker_stub): Delete.
78161e48 9929
782eae8b
AC
9930 Unconditionally enable 64-bit frame and ABI code.
9931 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
9932 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
9933 push_dummy_frame, fix_call_dummy, push_arguments,
9934 call_dummy_location, extract_return_value, use_struct_convention,
9935 store_return_value, store_struct_return, saved_pc_after_call,
9936 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
9937 frame_chain, frame_chain_valid, frameless_function_invocation,
9938 frame_saved_pc, and pop_frame.
78161e48 9939
449e1137
AC
9940 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
9941 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
9942 (hppa_gdbarch_init): Do not set PC_REGNUM.
9943
12507572
MK
99442004-03-06 Mark Kettenis <kettenis@gnu.org>
9945
9946 * config/alpha/tm-fbsd.h: Remove file.
9947 * config/alpha/fbsd.mt: Tweak comment.
9948 (TM_FILE): Set to tm-alpha.h.
9949
c107cc1b
AC
99502004-03-05 Andrew Cagney <cagney@redhat.com>
9951
9952 * infrun.c (step_over_function): When non-legacy code, and no
9953 step_frame_id, use the unwinder to get the caller's frame ID.
9954
f2e7c15d
MK
99552004-03-05 Mark Kettenis <kettenis@gnu.org>
9956
8b0c3633
MK
9957 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
9958 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
9959 bfd_arch_unknown. Adjust comment.
9960
f2e7c15d
MK
9961 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
9962 * i386obsd-tdep.c: Correct spelling in comment.
9963 * i386nbsd-tdep.c: Correct spelling in comment.
9964 * sparc-tdep.c: Correct spelling in comments.
9965
1198ecbe
DC
99662004-03-05 David Carlton <carlton@kealia.com>
9967
9968 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
9969 bug.
9970
9eb42ed1
MK
99712004-03-05 Mark Kettenis <kettenis@gnu.org>
9972
9973 * sparc-tdep.c: Fix typo in comment.
9974
52b5e991
JB
99752004-03-04 J. Brobecker <brobecker@gnat.com>
9976
9977 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
9978
d8151005
DJ
99792004-03-04 Daniel Jacobowitz <drow@mvista.com>
9980
9981 * dwarf2read.c: Add comment describing memory lifetimes.
9982 (struct dwarf2_pinfo): Update comment.
9983 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
9984 (read_enumeration, new_symbol): Don't use obsavestring.
9985
cbeae229
MK
99862004-03-04 Mark Kettenis <kettenis@gnu.org>
9987
722d18c2
MK
9988 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
9989 instead of amd64_fill_fxsave.
9990 * amd64bsd-nat.c (store_inferior_registers): Likewise.
9991 * amd64fbsd-nat.c (fill_fpregset): Likewise.
9992
cbeae229
MK
9993 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
9994 Reorganize code a bit.
9995
b4206d25
OF
99962004-03-04 Orjan Friberg <orjanf@axis.com>
9997
9998 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
9999 when the frame pointer is pushed. Don't set the frame pointer's
10000 address on the stack unless it's actually located there.
b4206d25
OF
10001 Set the SRP's address on the stack correctly when the PC is still in
10002 the prologue.
10003 (cris_return_value): New function.
10004 (cris_gdbarch_init): Clear deprecated store_return_value,
10005 extract_return_value.
10006
49b0b195
JB
100072004-03-02 Jim Blandy <jimb@redhat.com>
10008
10009 * stabsread.c (reg_value_complaint): The maximum register number
10010 is one less than the number of registers.
10011
e9ff708b
AC
100122004-03-02 Andrew Cagney <cagney@redhat.com>
10013
10014 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
10015 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
10016 trailing comma and redundant assignment of I386_ST0_REGNUM.
10017 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
10018 32-bit segment registers.
10019
d4715e41
AC
100202004-03-01 Andrew Cagney <cagney@redhat.com>
10021
10022 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
10023 use frame_relative_level and get_next_frame.
10024
3ce2bf18
AC
100252004-02-29 Andrew Cagney <cagney@redhat.com>
10026
10027 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
10028 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
10029 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
10030 Delete macro.
10031
2da6aac3
DJ
100322004-02-29 Daniel Jacobowitz <drow@mvista.com>
10033
10034 * inflow.c (terminal_inferior): Don't give up the terminal if we
10035 previously couldn't get the inferior's terminal state.
10036
6ba34a8d
DJ
100372004-02-29 Daniel Jacobowitz <drow@mvista.com>
10038
10039 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
10040 PC_REGNUM.
10041
faae5abe
AC
100422004-02-28 Andrew Cagney <cagney@redhat.com>
10043
10044 * NEWS: Refer to GDB 6.1.
10045 * README: Refer to GDB 6.1.
10046 * PROBLEMS: Refer to GDB 6.1.
10047
2227a3c5
DJ
100482004-02-28 Daniel Jacobowitz <drow@mvista.com>
10049
10050 * thread-db.c (disable_thread_signals): Remove unused function.
10051
80571bff
MK
100522004-02-28 Mark Kettenis <kettenis@gnu.org>
10053
041bd74b
MK
10054 * amd64-nat.c: Include "gdb_string.h".
10055 (amd64_collect_native_gregset): Zero-extend the 32-bit
10056 general-purpose registers and %eip.
10057
3c017e40
MK
10058 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
10059 * amd64-tdep.c (amd64_collect_fxsave): New function.
10060 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
10061
80571bff
MK
10062 * i387-tdep.h: Update copyright year.
10063 (i387_collect_fxsave): New prototype.
10064 * i387-tdep.c: Update copyright year.
10065 (i387_collect_fxsave): New function containing most of the code
10066 from i387_fill_fxsave.
10067 (i387_fill_fxsave): Call i387_collect_fxsave.
10068
50d71875
AC
100692004-02-28 Andrew Cagney <cagney@redhat.com>
10070
10071 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
10072 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
10073
4a28816e
MK
100742004-02-28 Mark Kettenis <kettenis@gnu.org>
10075
10076 * amd64-tdep.c (amd64_frame_cache): Fix comment.
10077
dbda9972
AC
100782004-02-28 Andrew Cagney <cagney@redhat.com>
10079
10080 * utils.c: Use "", instead of <>, to include readline.
10081 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
10082 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
10083 * source.c, solib.c, exec.c, event-top.c: Ditto.
10084 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
10085 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
10086 * Makefile.in: Update all dependencies.
10087 (readline_tilde_h, readline_history_h): Define.
10088 (readline_headers): Delete.
10089
83277a99
MK
100902004-02-28 Mark Kettenis <kettenis@gnu.org>
10091
91ae4303
MK
10092 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
10093 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
10094 "config/i386/tm-lx64.h".
10095
83277a99
MK
10096 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
10097 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
10098 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
10099
6e1d7d6c
AC
101002004-02-28 Andrew Cagney <cagney@redhat.com>
10101
ecc9ac84
AC
10102 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
10103
6e1d7d6c
AC
10104 * breakpoint.c (_initialize_breakpoint): Use
10105 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
10106 Add help to show command.
10107
9671aeef
MK
101082004-02-28 Mark Kettenis <kettenis@gnu.org>
10109
7fa2737c
MK
10110 * i386-nat.c: Reformat to be closer to coding standards.
10111 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
10112 `retval'. Make variables `align' and `size' local to while-loop.
10113 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
10114 (_initialize_i386_nat): New prototype.
10115
9671aeef
MK
10116 * tui/tui.c: Include <readline/readline.h> instead of
10117 "readline/readline.h". Include it after <term.h> and
10118 "gdb_curses.h".
10119
fca7aa43
AC
101202004-02-27 Andrew Cagney <cagney@redhat.com>
10121
412275d5
AC
10122 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
10123 the new frame unwind code.
10124 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
10125 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
10126 PCOQ_HEAD_REGNUM.
10127
fca7aa43
AC
10128 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
10129 "return_value" and "push_dummy_call".
10130 (hppa32_use_struct_convention): Delete unused function.
10131 (hppa32_store_return_value): Delete unused function.
10132 (hppa32_extract_return_value): Delete unused function.
10133 (hppa32_stack_align): Delete function.
10134
e6a8a7d2
EZ
101352004-02-27 Eli Zaretskii <eliz@elta.co.il>
10136
10137 * coffread.c (enter_linenos): Don't let rawptr reference memory
10138 outside linetab[]'s limits.
10139
1797a8f6
AC
101402004-02-27 Andrew Cagney <cagney@redhat.com>
10141
10142 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
10143 inferior stack space - the stack needs to grow upwards.
10144 (hppa32_frame_align): New function.
10145 (hppa64_frame_align): Replace hppa_frame_align.
10146 (hppa_gdbarch_init): Update.
10147
2e4b5889
OF
101482004-02-26 Orjan Friberg <orjanf@axis.com>
10149
10150 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
10151 (dwarf2-frame.h): Include.
10152 (enum cris_regnums): New enum CRIS_FP_REGNUM.
10153 Remove static variables related to ABI setting.
10154 (struct gdbarch_tdep): Remove cris_abi member.
10155 (struct frame_extra_info): Remove.
10156 (cris_unwind_cache, stack_item): New structs.
10157 (cris_frame_unwind, cris_frame_base): New variables.
10158 (push_stack_item, pop_stack_item)
10159 (cris_frame_unwind_cache, cris_frame_this_id)
10160 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
10161 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
10162 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
10163 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
10164 (cris_reg_struct_has_addr): New functions.
10165 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 10166 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
10167 (cris_store_struct_return, cris_frameless_function_invocation)
10168 (cris_pop_frame, cris_skip_prologue_main)
10169 (cris_abi_original_store_return_value)
10170 (cris_abi_v2_store_return_value)
10171 (cris_abi_original_extract_return_value)
10172 (cris_abi_v2_extract_return_value)
10173 (cris_abi_original_reg_struct_has_addr)
10174 (cris_abi_v2_reg_struct_has_addr)
10175 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
10176 (cris_push_return_address, cris_abi_update): Remove.
10177 (_initialize_cris_tdep): Remove ABI command.
10178 (cris_dump_tdep): Ditto.
8718a420 10179 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
10180 Set store_return_value, extract_return_value, push_dummy_code,
10181 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
10182 frame_unwind_append_sniffer, frame_base_set_default.
10183 Clear deprecated init_frame_pc, push_arguments, store_return_value,
10184 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
10185 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 10186 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
10187 init_extra_frame_info, frameless_function_invocation, frame_chain,
10188 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
10189 dummy_write_sp.
8718a420 10190
6b9acc27
JJ
101912004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10192
10193 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
10194 * valprint.c (print_hex_chars): Change from static to external.
10195 (print_char_chars): New function.
10196 * printcmd.c (print_scalar_formatted): For integer and enum types
10197 that are longer than LONGEST, perform processing via appropriate
10198 print_*_chars routines.
10199
a431654a
AC
102002004-02-26 Andrew Cagney <cagney@redhat.com>
10201
10202 * Makefile.in: Update dependencies.
10203 Changes from Ulrich Weigand,
10204 * s390-tdep.c: Include "dwarf2-frame.h".
10205 (s390_dwarf2_frame_init_reg): New function.
10206 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
10207 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
10208
fa8d40ab
JJ
102092004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10210
10211 * breakpoint.c (pending_break_support): New setting variable.
10212 (break_command_1): Account for pending_break_support setting
10213 when creating pending breakpoints.
10214 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
10215 (_initialize_breakpoint): Add "set breakpoint pending" and
10216 "show breakpoint pending" commands.
10217
0dcd613f
AC
102182004-02-26 Andrew Cagney <cagney@redhat.com>
10219
10220 Fix PR i18n/1570.
10221 * charset.c (backslashable, backslashed, represented): Remove 'e'
10222 from list of escaped characters, not part of ISO-C.
10223
479272a3
JB
102242004-02-25 J. Brobecker <brobecker@gnat.com>
10225
10226 From Peter Schauer <schauer@pdf.de>:
10227 * tui/tui.c: Move system header includes after local includes.
10228 Fixes a build failure on solaris systems.
10229
7613d933
JB
102302004-02-25 J. Brobecker <brobecker@gnat.com>
10231
10232 * configure.in: Refine the previous change.
10233 * configure: Regenerate.
10234
9c1488cb
MK
102352004-02-25 Mark Kettenis <kettenis@gnu.org>
10236
10237 * amd64-tdep.h: Renamed from x86-64-tdep.h.
10238 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
10239 "amd64-tdep.h" instead of "x86-64-tdep.h".
10240 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10241 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
10242 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
10243 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10244 and "x86-64-tdep.c".
10245 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
10246 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10247 and "x86-64-tdep.c".
10248 * amd64bsd-nat.c: Update copyright year.
10249 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10250 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
10251 "x86-64-tdep.h".
10252 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
10253 "x86-64-tdep.h".
10254 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
10255 "x86-64-tdep.h".
10256 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
10257 "x86-64-tdep.h".
10258 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
10259 "x86-64-tdep.h".
10260 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
10261 "x86-64-tdep.h".
8718a420 10262 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
10263 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
10264 * Makefile.in (amd64_linux_tdep_h): Renamed from
10265 x86_64_linux_tdep_h.
10266 (amd64_tdep_h): Renamed from x86_64_tdep_h.
10267 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
10268 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
10269 (amd64obsd-tdep.o): Update dependencies.
10270 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
10271 dependencies.
10272 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
10273 dependencies.
10274 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
10275 amd64-linux-nat.c amd64-linux-tdep.c.
10276 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
10277 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
10278 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
10279 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
10280 amd64-tdep.o and amd64-linux-tdep.o.
10281 (TM_FILE): Set to tm-linux64.h.
10282 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
10283 (NAT_FILE): Set to nm-linux64.h.
10284 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
10285 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10286 amd64-tdep.o.
10287 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10288 amd64-tdep.o.
10289 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10290 amd64-tdep.o.
10291
4b8dad4a
RM
102922004-02-25 Roland McGrath <roland@redhat.com>
10293
10294 * remote.c (remote_protocol_qPart_auxv): New variable.
10295 (init_all_packet_configs): Initialize it.
10296 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
10297 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
10298 (show_remote_cmd): Call it.
10299 (_initialize_remote): Initialize commands.
10300 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
10301 service TARGET_OBJECT_AUXV requests.
10302
66745969
JB
103032004-02-25 J. Brobecker <brobecker@gnat.com>
10304
10305 * configure.in: Make sure that the wborder function is available.
10306 Otherwise, search for it in the cur_colr library.
10307 * configure: Regenerate.
10308
79508e1e
AC
103092004-02-25 Andrew Cagney <cagney@redhat.com>
10310
10311 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
10312
571ee600
MK
103132004-02-25 Mark Kettenis <kettenis@gnu.org>
10314
10315 * config/i386/tm-x86-64linux.h: Tweak comments.
10316
2b1b322f 103172004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
10318
10319 * MAINTAINERS: Add self to write-after-approval list.
10320
4d2acc65
AC
103212004-02-25 Andrew Cagney <cagney@redhat.com>
10322
4b8dad4a 10323 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
10324 * cli/cli-script.c (execute_control_command): Unconditionally
10325 install a cleanup. Default "ret" to "invalid_control". Use
10326 "break" instead of "return" to escape from the switch.
10327
4cfcaf21
JB
103282004-02-24 J. Brobecker <brobecker@gnat.com>
10329
10330 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
10331 with the lines macro defined in term.h on AiX.
10332 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
10333 a collision with the label_width macro defined in term.h on AiX.
10334
54a5c8d8
KB
103352004-02-23 David Mosberger <davidm@hpl.hp.com>
10336
10337 Committed by Kevin Buettner <kevinb@redhat.com>.
10338
10339 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
10340 * ia64-tdep.c (ia64_write_pc): Make it a global function.
10341 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
10342 instead of ia64_write_pc().
10343 * ia64-linux-tdep.c (regcache.h): Include.
10344 (ia64_linux_write_pc): New function.
4b8dad4a 10345
8a1dac83
RM
103462004-02-23 Roland McGrath <roland@redhat.com>
10347
10348 * auxv.c (info_auxv_command): Fix typos in error messages.
10349
90f90721
MK
103502004-02-23 Mark Kettenis <kettenis@gnu.org>
10351
8a1dac83 10352 * x86-64-tdep.h: Tweak comment.
90f90721
MK
10353 (enum amd64_regnum): New.
10354 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
10355 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
10356 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
10357 (X86_64_XMM1_REGNUM): Removed.
10358 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
10359 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
10360 prototypes for renamed functions.
10361 * x86-64-tdep.c: Fix typo.
10362 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
10363 register numbers.
10364 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
10365 Use constants from `enum amd64_regnum' for register numbers.
10366 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
10367 (amd64_analyze_prologue, amd64_frame_cache,
10368 amd64_sigtramp_frame_cache): Use constants from `enum
10369 amd64_regnum' for register numbers.
10370 (amd64_supply_fpregset): Adjust for renamed functions.
10371 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
10372 `enum amd64_regnum' for register numbers.
10373 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
10374 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
10375 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
10376 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
10377 (amd64_linux_fill_gregset): Adjust for renamed macros.
10378 (fetch_core_registers): Adjust for renamed functions.
10379 (amd64_linux_init_abi): Adjust for renamed functions.
10380 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
10381 renamed functions.
10382 * amd64-nat.c: Adjust for renamed macros.
10383 * amd64bsd-nat.c (fetch_inferior_registers)
10384 (store_inferior_registers): Use constants from `enum amd64_regnum'
10385 for register numbers. Adjust for renamed variables.
10386 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
10387 renamed variables.
10388 (_initialize_amd64fbsd_nat): Use constants from `enum
10389 amd64_regnum' for register numbers.
10390 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
10391 `enum amd64_regnum' for register numbers.
10392 (amd64fbsd_init_abi): Adjust for renamed functions.
10393 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
10394 `enum amd64_regnum' for register numbers.
10395 (amd64nbsd_init_abi): Adjust for renamed functions.
10396 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
10397 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
10398 `enum amd64_regnum' for register numbers.
10399 (amd64obsd_init_abi): Adjust for renamed functions.
10400 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
10401
d5479188
JJ
104022004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10403
10404 * breakpoint.c (print_one_breakpoint): Do not output spaces
10405 after printing <PENDING> for a pending breakpoint.
10406
81cb7cc9
JJ
104072004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10408
10409 * printcmd.c (print_scalar_formatted): Initialize val_long
10410 to remove compiler warning message.
10411
cbdeadca
JJ
104122004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10413
10414 * defs.h (nquery, yquery): New prototypes.
10415 * breakpoint.c (break_command_1): Use new nquery interface.
10416 * utils.c (defaulted_query, nquery, yquery): New functions.
10417
da6bab63
AC
104182004-02-23 Andrew Cagney <cagney@redhat.com>
10419
2f690297
AC
10420 * hppa-tdep.c (hppa_frame_align): New function.
10421 (hppa32_push_dummy_call): New function.
10422 (hppa64_push_dummy_call): New function.
10423 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
10424 disabled.
8a1dac83 10425
da6bab63
AC
10426 * infcall.c (legacy_push_dummy_code): Don't call deprecated
10427 FIX_CALL_DUMMY when push_dummy_call is available.
10428 (call_function_by_hand, push_dummy_code): Ditto.
10429
abf9b42d
AC
104302004-02-22 Andrew Cagney <cagney@redhat.com>
10431
10432 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
10433 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
10434 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
10435 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
10436 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
10437 call_dummy_location to ON_STACK.
10438
10fc94a4
MK
104392004-02-22 Mark Kettenis <kettenis@gnu.org>
10440
51433e4b
MK
10441 * x86-64-linux-tdep.c: Tweak comment.
10442 (amd64_linux_supply_gregset): Renamed from
10443 x86_64_linux_supply_gresget.
10444 (amd64_linux_fill_gregset): Renamed from
10445 x86_64_linux_fill_gregset.
10446 (fetch_core_registers): Adjust for renamed functions.
10447 (amd64_core_fns): Renamed from x86_64_core_fns.
10448 (amd64_linux_sigtramp_start): Renamed from
10449 x86_64_linux_sigtramp_start.
10450 (amd64_linux_pc_in_sigtramp): Renamed from
10451 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
10452 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
10453 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
10454 (amd64_linux_sigcontext_addr): Renamed from
10455 x86_64_linux_sigcontext_addr.
10456 (amd64_linux_sc_reg_offset): Renamed from
10457 x86_64_linux_sc_reg_offset.
10458 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
10459 Adjust for renamed functions and variables.
10460 (_initialize_amd64_linux_tdep): Renamed from
10461 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
10462 variables.
10463 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
10464 Adjust for renamed functions.
10465
430eaf2e
MK
10466 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
10467 from x86_64_linux_gregset64_reg_offset.
10468 (amd64_linux_gregset32_reg_offset): Rename from
10469 x86_64_linux_gregset64_reg_offset.
10470 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
10471 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
10472 (amd64_linux_dr_set_control): Renamed from
10473 x86_64_linux_dr_set_control. Adjust for renamed functions.
10474 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
10475 Adjust for renamed functions.
10476 (amd64_linux_dr_reset_addr): Renamed from
10477 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
10478 (amd64_linux_dr_get_status): Renamed from
10479 x86_64_linux_dr_get_status. Adjust for renamed functions.
10480 (_initialize_amd64_linux_nat): Renamed from
10481 _initialize_x86_64_linux_nat. Adjust for renamed variables and
10482 functions.
10483 * config/i386/nm-x86-64linux.h: Update copyright year.
10484 Adjust for renamed functions.
10485
10fc94a4
MK
10486 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
10487 amd64fbsd_sigtramp_start.
10488 (amd64fbsd_sigtramp_end_addr): Renamed from
10489 amd64fbsd_sigtramp_end.
10490 (amd64fbsd_init_abi): Adjust for renamed variables.
10491 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
10492 variables.
10493 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
10494 amd64fbsd_sigtramp_start.
10495 (amd64fbsd_sigtramp_end_addr): Renamed from
10496 amd64fbsd_sigtramp_end.
10497
343af405
AC
104982004-02-22 Andrew Cagney <cagney@redhat.com>
10499
537987fc
AC
10500 * hppa-tdep.c (hppa32_return_value): New function.
10501 (hppa64_return_value): New function.
10502 (hppa_gdbarch_init): Set return_value; keep disabled.
10503
fad850b2
AC
10504 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
10505 struct-return and inferior function call methods.
10506
26d08f08
AC
10507 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10508 "frame-base.h".
10509 (struct hppa_frame_cache): Define.
10510 (hppa_frame_cache, hppa_frame_this_id): New functions.
10511 (hppa_frame_prev_register): New function.
10512 (hppa_frame_unwind, hppa_frame_base): New variables.
10513 (hppa_frame_unwind_sniffer): New function.
10514 (hppa_frame_base_address, hppa_unwind_pc): New function.
10515 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
10516 sniffer, and frame base sniffer; keep disabled.
10517 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
10518 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
10519
e7d7bd65
AC
10520 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
10521 to predicates for "seriously old code".
10522
e963316f
AC
10523 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
10524 runtime if(0).
10525
56132691
AC
10526 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
10527 unsigned.
10528 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 10529
343af405
AC
10530 * config/pa/tm-hppa.h: Update copyright.
10531 (DEPRECATED_INIT_FRAME_PC): Delete macro.
10532 (deprecated_init_frame_pc_default): Delete declaration.
10533 (hppa_frame_init_saved_regs): Delete declaration.
10534 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10535 * hppa-tdep.c: Include "arch-utils.h".
10536 (hppa_gdbarch_init): Set deprecated init_frame_pc
10537 and deprecated frame_init_saved_regs.
10538 (hppa_frame_init_saved_regs): Make static.
10539
f5859b4d
MK
105402004-02-22 Mark Kettenis <kettenis@gnu.org>
10541
86f6f8e7 10542 Remove old 386BSD support.
cf7c5c23 10543 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
10544 * configure.host: Remove i[34567]86-*-bsd*.
10545 * configure.tgt: Remove i[34567]86-*-bsd*.
10546 * i386b-nat.c: Removed.
10547 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
10548 (i386b-nat.o): Remove dependencies.
10549
86f6f8e7
MK
10550 * config/i386/i386bsd.mh: Removed.
10551 * config/i386/i386bsd.mt: Removed.
10552 * config/i386/nm-i386bsd.h: Removed.
10553 * config/i386/tm-i386bsd.h: Removed.
10554 * config/i386/xm-i386bsd.h: Removed.
10555
971218cd
MK
10556 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
10557
7e654c37
MK
10558 * amd64fbsd-tdep.c: Include "solib-svr4.h".
10559 (amd64fbsd_init_abi): Set link map offsets.
10560 * amd64nbsd-tdep.c: Include "slib-svr4.h".
10561 (amd64nbsd_init_abi): Set link map offsets.
10562 * amd64obsd-tdep.c: Include "solib-svr4.h".
10563 (amd64obsd_init_abi): Set link map offsets.
10564 * i386fbsd-tdep.c: Include "solib-svr4.h".
10565 (i386fbsd_init_abi): Set link map offsets.
10566 * i386nbsd-tdep.c: Include "solib-svr4.h".
10567 (i386nbsdelf_init_abi): Set link map offsets.
10568 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
10569 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
10570 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
10571 solib-legacy.o and core-aout.o. Reformat.
10572 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
10573 solib-svr4.o, solib-legacy.o. Reformat.
10574 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
10575 * config/i386/nbsdelf.mh: Reformat.
10576 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
10577 solib-svr4.o, solib-legacy.o and corelow.o.
10578 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
10579 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
10580 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
10581 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
10582 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
10583 (TM_FILE): Set to tm-fbsd.h.
10584 * config/i386/nbsd.mt (TDEPFILES): Reformat.
10585 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
10586 solib-svr4.o.
10587 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
10588 solib-svr4.o.
10589 (TM_FILE): Set to nm-nbsd.h.
10590 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
10591 Simplify shared library support. Don't include "elf/common.h".
10592 (SVR4_SHARED_LIBS): Don't define.
10593 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
10594 "solib.h".
10595 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
10596 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
10597 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
10598 Don't include "i386/tm-i386.h". Include "solib.h".
10599 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
10600 Don't include "i386/tm-i386.h".
10601 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
10602 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
10603 Include "i386/xm-i386.h".
10604 (HOST_LONG_DOUBLE_FORMAT): Remove.
10605
5d93ae8c
MK
10606 Fix OpenBSD/i386 sigtramp recognition.
10607 * i386-tdep.h: Update copyright year.
10608 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
10609 (i386bsd_sigtramp_end): New prototypes.
10610 (i386fbsd_sigtramp_start_addr): Renamed from
10611 i386fbsd_sigtramp_start.
10612 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
10613 (i386obsd_sigtramp_start_addr): Renamed from
10614 i386obsd_sigtramp_start.
10615 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
10616 * i386bsd-tdep.c: Update copyright year.
10617 (i386bsd_pc_in_sigtramp): Make public.
10618 * i386fbsd-nat.c: Update copyright year.
10619 (_initialize_i386fbsd_nat): Adjust for renamed variables.
10620 * i386fbsd-tdep.c: Update copyright year.
10621 (i386fbsd_sigtramp_start_addr): Renamed from
10622 i386fbsd_sigtramp_start.
10623 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
10624 (i386fbsdaout_init_abi): Adjust for renamed variables.
10625 * i386obsd-nat.c: Update copyright year.
10626 (_initialize_i386obsd_nat): Adjust for renamed variables.
10627 * i386obsd-tdep.c: Include "target.h".
10628 (i386obsd_page_size): New variable.
10629 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
10630 (i386obsd_sigtramp_end): New functions.
10631 (i386obsd_sigtramp_start_addr): Renamed from
10632 i386obsd_sigtramp_start.
10633 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
10634 (i386obsd_init_abi): Adjust for renamed variables. Set
10635 pc_in_sigtramp, sigtramp_start and sigtramp_end.
10636 * Makefile.in (i386obsd-tdep.o): Update dependencies.
10637
84d04465
MK
10638 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
10639 trampoline change in OpenBSD kernel.
10640
b053aceb
MK
10641 * amd64-nat.c: Update copyright year.
10642 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
10643 architecture from REGCACHE.
10644
f5859b4d
MK
10645 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
10646 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
10647
e4bbbda8
MK
106482004-02-21 Mark Kettenis <kettenis@gnu.org>
10649
ba361932
MK
10650 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
10651 i[34567]86-*-openbsd3.[0-3].
10652 * config/i386/obsdaout.mh: New file.
10653
d3e48264
MK
10654 * config/i386/obsd.mh (MH_FLAGS): Remove.
10655
60a6eeb6
MK
10656 Fix PR build/1549.
10657 * i386obsd-tdep.c: Update copyright years. Include
10658 "solib-svr4.h".
10659 (i386obsd_init_abi): Don't set regset_from_core_section here.
10660 (i386obsd_aout_init_abi): New function. Set
10661 regset_from_core_section here.
10662 (i386obsd_elf_init_abi): New function.
10663 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
10664 * Makefile.in (i386obsd-tdep.o): Update dependecies.
10665 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
10666 (TM_FILE): Set to tm-nbsd.h.
10667
10668 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
10669 solib-sunos.o.
10670
e4bbbda8
MK
10671 * solib-svr4.h: Update copyright year.
10672 (svr4_ilp32_fetch_link_map_offsets)
10673 (svr4_lp64_fetch_link_map_offsets): New prototype.
10674 * solib-svr4.c: Update copyright year.
10675 (svr4_ilp32_fetch_link_map_offsets)
10676 (svr4_lp64_fetch_link_map_offsets): New function.
10677
f6fe98ef
DJ
106782004-02-20 Daniel Jacobowitz <drow@mvista.com>
10679
10680 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
10681 to the partial symbol table.
10682
589ca796
JB
106832004-02-20 J. brobecker <brobecker@gnat.com>
10684
10685 * PROBLEMS: Add description of problem documented under gdb/1560.
10686
2031c21a
MK
106872004-02-20 Mark Kettenis <kettenis@gnu.org>
10688
30b344b1
MK
10689 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
10690 comments.
10691 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
10692 functions.
10693 (amd64obsd_init_abi): Reorder initializations. Use
10694 amd64obsd_r_reg_offset to initialize the general-purpose register
10695 set details. Set regset_from_core_section.
10696 (_initialize_amd64obsd_tdep): Rename from
10697 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
10698 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
10699 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
10700
2031c21a
MK
10701 * NEWS (New native configurations): Mention OpenBSD/alpha.
10702 * configure.tgt: Add alpha*-*-openbsd*.
10703 * configure.host: Add alpha*-*-openbsd*.
10704 * alphanbsd-tdep.c: Update copyright year.
10705 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
10706
42471775
AC
107072004-02-20 Andrew Cagney <cagney@redhat.com>
10708
10709 Fix PR tdep/1372.
10710 * configure.tgt: Delete target "none-*-*".
10711 * configure.host: Delete host "none-*-*".
10712 * config/none/none.mh: Delete file.
10713 * config/none/none.mt: Delete file.
10714 * config/none/xm-none.h: Delete file.
10715 * config/none/tm-none.h: Delete file.
10716 * config/none/nm-none.h: Delete file.
10717
960ccd7d
FF
107182004-02-19 Fred Fish <fnf@redhat.com>
10719
10720 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
10721 cache->uses_fp prior to setting it.
10722
5f883edd
FF
107232004-02-19 Fred Fish <fnf@redhat.com>
10724
10725 Fix for PR breakpoint/1558.
10726 * sh-tdep.c (IS_JSR): New macro.
10727 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
10728
f98c22d5
JB
107292004-02-19 Jim Blandy <jimb@redhat.com>
10730
10731 * findvar.c (value_from_register): Doc fix.
10732
95051d27
JJ
107332004-02-19 Jeff Johnston <jjohnstn@redhat.com>
10734
10735 * printcmd.c (print_scalar_formatted): Do not check for sizeof
10736 type being greater than sizeof of host's LONGEST. Always use
10737 unpack_long() unless format 'f' chosen.
10738
ccefbec3
EZ
107392004-02-19 Joel Brobecker <brobecker@gnat.com>
10740
10741 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 10742
ccefbec3
EZ
10743 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
10744 contains a symbol wich is the best, non-exact match for the given
10745 pc. Update comments.
10746
107472004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 10748
2ede629f
EZ
10749 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
10750 macro, which was part of the now removed Mach 3 port.
10751 * utils.c (request_quit): Ditto.
10752
567ee972
MK
107532004-02-18 Mark Kettenis <kettenis@gnu.org>
10754
10755 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
10756 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
10757
50cca7bb
MK
107582004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10759
10760 Committed by Mark Kettenis <kettenis@gnu.org>.
10761
10762 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
10763 Define.
10764
226361c4
AC
107652004-02-18 Andrew Cagney <cagney@redhat.com>
10766
10767 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
10768 CONFIG_INSTALL and CONFIG_UNINSTALL.
10769 * configure: Re-generate.
10770 * interps.h (INTERP_TUI): Define.
10771 * Makefile.in: Update dependencies.
10772 (TUI): New macro.
10773 (tui-main.o): Specify dependencies.
10774 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
10775 * tui/tui-main.c: New file.
10776
49cfa46f
MK
107772004-02-18 Mark Kettenis <kettenis@gnu.org>
10778
e2879ccb
MK
10779 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
10780 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
10781 dependencies.
10782 * configure.host: Add x86_64-*-openbsd*.
10783 * configure.tgt: Add x86_64-*-openbsd*.
10784 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
10785
c43f4bec
MK
10786 * tui/tui.c: Don't include <malloc.h>.
10787
09ae75b6
MK
10788 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
10789 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
10790 amd64nbsd-tdep.c.
10791
49cfa46f 10792 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 10793 static. Remove extraneous whitespace.
49cfa46f
MK
10794 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
10795 static.
10796
05957fdb
JB
107972004-02-17 Jim Blandy <jimb@redhat.com>
10798
10799 * findvar.c (value_from_register): Doc fix.
10800
d0f54f9d
JB
108012004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10802
10803 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 10804
8a1dac83 10805 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
10806 CORE_ADDR as type for selectors. Correct types for GNU run time
10807 message lookup function to use double indirection.
10808 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
10809 * objc-lang.h (lookup_child_selector): Adapt prototype.
10810
9cbd5950
JB
10811 * s390-nat.c (SUBOFF): New macro.
10812 (supply_gregset, fill_gregset): Use it to handle debugging
10813 of 32-bit exectuables running under a 64-bit kernel.
10814 * s390-tdep.c: Include "solib-svr4.h".
10815 (s390_svr4_fetch_link_map_offset): New function.
10816 (s390x_svr_fetch_link_map_offset): Likewise.
10817 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
10818 * Makefile.in (s390-tdep.o): Update dependencies.
10819
a8c99f38
JB
10820 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
10821 "frame-unwind.h".
10822 (s390_readinstruction): Reformat. Use read_memory_nobpt.
10823 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
10824 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
10825 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
10826 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
10827 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 10828 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
10829 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
10830 (struct frame_extra_info): Remove.
10831 (s390_memset_extra_info): Remove.
f73b1eff
JB
10832 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
10833 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
10834 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
10835 (is_rse): Renamed to ...
10836 (is_rsy): ... this. Support long displacements.
10837 (is_rxe): Renamed to ...
10838 (is_rxy): ... this. Support long displacements.
10839 (compute_x_addr): Support long displacements.
10840 (struct s390_prologue_data): New data type.
10841 (s390_on_stack): Change API to use struct s390_prologue_data.
10842 (s390_store): Reimplement.
10843 (s390_load): New function.
10844 (s390_get_signal_frame_info): Remove.
10845 (s390_get_frame_info): Remove, replace by ...
10846 (s390_analyze_prolog): ... this new function.
10847 (s390_check_function_end): Remove.
10848 (s390_function_start): Remove.
10849 (s390_frameless_function_invokation): Remove.
10850 (s390_is_sigreturn): Remove.
10851 (s390_init_frame_pc_first): Remove.
10852 (s390_init_frame_extra_info): Remove.
10853 (s390_frame_init_saved_regs): Remove.
10854 (s390_frame_saved_pc_nofix): Remove.
10855 (s390_frame_saved_pc): Remove.
10856 (s390_frame_chain): Remove.
10857 (s390_fp_regnum, s390_read_fp): Remove.
10858 (s390_pop_frame_regular, s390_pop_frame): Remove.
10859 (s390_saved_pc_after_call): Remove.
10860 (s390_skip_prologue): Reimplement.
10861 (s390_in_function_epilogue_p): Support long displacements.
10862 (struct s390_unwind_cache): New data structure.
10863 (s390_frame_unwind_cache): New function.
10864 (s390_prologue_frame_unwind_cache): Likewise.
10865 (s390_backchain_frame_unwind_cache): Likewise.
10866 (s390_frame_this_id, s390_frame_prev_register): Likewise.
10867 (s390_frame_unwind): Define.
10868 (s390_frame_sniffer): New function.
10869 (struct s390_pltstub_unwind_cache): New data structure.
10870 (s390_pltstub_frame_unwind_cache): New function.
10871 (s390_pltstub_frame_this_id): Likewise.
10872 (s390_pltstub_frame_prev_register): Likewise.
10873 (s390_pltstub_frame_unwind): Define.
10874 (s390_pltstub_frame_sniffer): New function.
10875 (struct s390_sigtramp_unwind_cache): New data structure.
10876 (s390_sigtramp_frame_unwind_cache): New function.
10877 (s390_sigtramp_frame_this_id): Likewise.
10878 (s390_sigtramp_frame_prev_register): Likewise.
10879 (s390_sigtramp_frame_unwind): Define.
10880 (s390_sigtramp_frame_sniffer): New function.
10881 (s390_frame_base_address, s390_local_base_address): New functions.
10882 (s390_frame_base): Define.
10883 (s390_unwind_pc, s390_unwind_sp): New function.
10884 (s390_push_dummy_call): Use new frame base location.
10885 (s390_unwind_dummy_id): Likewise.
10886 (s390_gdbarch_init): Remove calls to:
10887 set_gdbarch_frameless_function_invocation,
10888 set_gdbarch_deprecated_init_frame_pc,
10889 set_gdbarch_deprecated_frame_chain,
10890 set_gdbarch_deprecated_frame_init_saved_regs,
10891 set_gdbarch_deprecated_pop_frame,
10892 set_gdbarch_deprecated_init_extra_frame_info,
10893 set_gdbarch_deprecated_init_frame_pc_first,
10894 set_gdbarch_deprecated_target_read_fp,
10895 set_gdbarch_deprecated_frame_saved_pc,
10896 set_gdbarch_deprecated_saved_pc_after_call,
10897 set_gdbarch_deprecated_fp_regnum.
10898 Add calls to:
10899 set_gdbarch_in_solib_call_trampoline,
10900 frame_unwind_append_sniffer,
10901 frame_base_set_default,
10902 set_gdbarch_unwind_pc,
10903 set_gdbarch_unwind_sp.
10904 * Makefile.in (s390-tdep.o): Update dependencies.
10905
b0cf273e
JB
10906 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
10907 (S390_STACK_FRAME_OVERHEAD): Remove.
10908 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
10909 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
10910 (s390_promote_integer_argument): Remove.
10911 (s390_cannot_extract_struct_value_address): Remove.
10912 (s390_use_struct_convention, s390_store_struct_return): Remove.
10913 (s390_extract_return_value, s390_store_return_value): Remove.
10914 (s390_return_value_convention, s390_return_value): New functions.
10915 (is_float_singleton): Handle typedefs.
8a1dac83 10916 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
10917 Remove, replace by ...
10918 (s390_function_arg_pass_by_reference, s390_function_arg_float,
10919 s390_function_arg_integer): ... these new functions.
10920 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
10921 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
10922 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
10923 Fill in tdep->abi.
10924 Remove calls to:
10925 set_gdbarch_deprecated_store_struct_return,
10926 set_gdbarch_deprecated_extract_return_value,
10927 set_gdbarch_deprecated_store_return_value,
10928 set_gdbarch_use_struct_convention,
10929 set_gdbarch_extract_struct_value_address,
10930 set_gdbarch_deprecated_pc_in_call_dummy,
10931 set_gdbarch_deprecated_push_arguments,
10932 set_gdbarch_deprecated_save_dummy_frame_tos,
10933 set_gdbarch_deprecated_push_return_address,
10934 set_gdbarch_deprecated_sizeof_call_dummy_words,
10935 set_gdbarch_deprecated_call_dummy_words,
10936 set_gdbarch_deprecated_dummy_write_sp.
10937 Add calls to:
10938 set_gdbarch_push_dummy_call,
10939 set_gdbarch_unwind_dummy_id,
10940 set_gdbarch_return_value.
8a1dac83 10941
e1457d83
JB
10942 * config/s390/nm-linux.h: Update comments.
10943 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
10944 (STOPPED_BY_WATCHPOINT): Redefine.
10945 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
10946 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
10947 (s390_stopped_by_watchpoint): Likewise.
10948 (watch_area_cnt): Remove.
10949 * s390-nat.c: Update comments.
10950 (watch_area): Remove typedef.
10951 Global replace watch_area by struct watch_area.
10952 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 10953 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
10954 use s390_inferior_tid. Add short-cut for the no watchpoint case.
10955 (s390_fix_watch_points): Remove pid argument,
10956 use s390_inferior_tid. Recompute area spanned by watchpoints.
10957 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
10958 argument. Reimplement.
10959
d0f54f9d
JB
10960 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
10961 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
10962 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 10963 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
10964 core-regset.o.
10965 * config/s390/s390x.mt: Remove.
10966 * config/s390/tm-s390.h: Remove.
10967 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
10968 (TARGET_ELF64): Remove.
10969 (SKIP_TRAMPOLINE_CODE): Do not undefine.
10970 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
10971 s390*-*-* case; always set gdb_target to s390.
10972 * regformats/reg-s390.dat: Remove control registers.
10973 * regformats/reg-s390x.dat: Likewise.
10974 * s390-tdep.h: New file.
8a1dac83 10975 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
10976 Include "inferior.h" and "s390-tdep.h".
10977 Remove private definition of offsetof.
10978 (s390_register_u_addr): Remove.
10979 (regmap_gregset, regmap_fpregset): Define.
10980 (supply_gregset, fill_gregset): Reimplement.
10981 (supply_fpregset, fill_fpregset): Likewise.
10982 (s390_inferior_tid): New function.
10983 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
10984 (fetch_inferior_registers, store_inferior_registers): Likewise.
10985 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
10986 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
10987 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
10988 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
10989 (struct gdbarch_tdep): Define.
10990 (struct s390_register_info): Define.
10991 (s390_register_info): New variable.
10992 (s390_register_name): Reimplement.
10993 (s390_register_type): New function.
10994 (s390_register_raw_size, s390x_register_raw_size): Remove.
10995 (s390_cannot_fetch_register): Remove.
10996 (s390_register_byte): Remove.
10997 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
10998 (s390_dwarf_regmap): New variable.
10999 (s390_dwarf_reg_to_regnum): New function.
11000 (s390_stab_reg_to_regnum): Remove.
11001 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
11002 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
11003 (s390_convert_register_p): Likewise.
11004 (s390_register_to_value, s390_value_to_register): Likewise.
11005 (s390_register_reggroup_p): Likewise.
11006 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
11007 s390_gregset, s390x_gregset, s390_fpregset): New variables.
11008 (s390_supply_regset, s390_regset_from_core_section): New functions.
11009 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
11010 (S390_FPR_SIZE): Likewise.
11011 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
11012 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
11013 (S390_NUM_GPRS): Move here from tm-s390.h.
11014 (S390_NUM_FPRS): Likewise.
11015 (s390_in_function_epilogue_p): New function.
11016 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
11017 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
11018 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
11019 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
11020 Replace S390_FP_REGNUM by S390_SP_REGNUM.
11021 Remove calls to:
11022 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
11023 set_gdbarch_deprecated_max_register_virtual_size,
11024 set_gdbarch_deprecated_register_byte,
d0f54f9d 11025 set_gdbarch_cannot_fetch_register,
8a1dac83 11026 set_gdbarch_cannot_store_register,
d0f54f9d
JB
11027 set_gdbarch_deprecated_register_size,
11028 set_gdbarch_deprecated_register_raw_size,
11029 set_gdbarch_deprecated_register_virtual_size,
11030 set_gdbarch_deprecated_register_virtual_type,
11031 set_gdbarch_deprecated_register_bytes.
11032 Add calls to:
11033 set_gdbarch_num_pseudo_regs,
11034 set_gdbarch_register_type,
11035 set_gdbarch_convert_register_p,
11036 set_gdbarch_register_to_value,
11037 set_gdbarch_value_to_register,
11038 set_gdbarch_register_reggroup_p,
11039 set_gdbarch_regset_from_core_section,
11040 set_gdbarch_pseudo_register_read,
11041 set_gdbarch_pseudo_register_write,
11042 set_gdbarch_in_function_epilogue_p.
11043 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
11044 (s390_tdep_h): New variable.
11045
8cfe231d
JB
110462004-02-17 Jim Blandy <jimb@redhat.com>
11047
4589a601
JB
11048 * findvar.c (value_from_register): If the type has no length, just
11049 return an acceptable value --- don't report an internal error.
11050
8cfe231d
JB
11051 * stabsread.c (read_type): If we find any type numbers that are
11052 forward references, complain if the references aren't resolved by
11053 the time we're finished reading.
11054 (cleanup_undefined_types): Make error message more appropriate for
11055 a complaint.
11056
5bf0017e
EZ
110572004-02-17 Elena Zannoni <ezannoni@redhat.com>
11058
9d62932d
EZ
11059 * Makefile.in (defs_h): Remove dependency on progress_h.
11060 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
11061 progress.h.
11062 * main.c (captured_main): Delete use of START_PROGRESS and
11063 END_PROGRESS.
11064
110652004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 11066
5bf0017e
EZ
11067 * objfiles.c (terminate_minimal_symbol_table): Add back
11068 initialization of MSYMBOL_TYPE.
11069
9fc9f5e2
AC
110702004-02-17 David Mosberger <davidm@hpl.hp.com>
11071
11072 Committed by Andrew Cagney.
11073 * Makefile.in (ia64_tdep_h): New macro.
11074 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
11075 (ia64-tdep.o): Likewise.
11076 * ia64-tdep.h: New file.
11077 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
11078 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
11079 (ia64_aix_sigcontext_register_address): Likewise.
11080 (ia64_linux_getunwind_table): Delete declaration.
11081 * ia64-linux-tdep.c: Likewise.
11082
76cd2bd9
CV
110832004-02-17 Corinna Vinschen <vinschen@redhat.com>
11084
11085 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
11086 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
11087 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
11088
634aa483
AC
110892004-02-17 Andrew Cagney <cagney@redhat.com>
11090
11091 * symtab.c (skip_prologue_using_sal): New function.
11092 * symtab.h (skip_prologue_using_sal): Declare.
11093 * frv-tdep.c: Include "symtab.h".
11094 (skip_prologue_using_sal): Delete function.
11095 * mips-tdep.c (skip_prologue_using_sal): Delete function.
11096 * rs6000-tdep.c (refine_prologue_limit): Mention
11097 skip_prologue_using_sal.
11098 * ia64-tdep.c (refine_prologue_limit): Ditto.
11099 * Makefile.in: Update dependencies.
11100
111012004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 11102
39ce7b3f
AC
11103 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
11104 START_INFERIOR_TRAPS_EXPECTED.
11105 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
11106 START_INFERIOR_TRAPS_EXPECTED.
11107 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
11108 Delete macro.
11109 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
11110 macro, moved to "nm-osf.h". Update copyright.
11111 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
11112 update copyright.
11113
19772a2c
AC
11114 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
11115 and function replacing FRAMELESS_FUNCTION_INVOCATION.
11116 * blockframe.c (legacy_frameless_look_for_prologue): Rename
11117 frameless_look_for_prologue.
11118 * frame.h (legacy_frameless_look_for_prologue): Rename
11119 frameless_look_for_prologue.
11120 * gdbarch.h, gdbarch.c: Re-generate.
11121 * sh64-tdep.c (sh64_gdbarch_init): Update.
11122 * sh-tdep.c (sh_gdbarch_init): Update.
11123 * s390-tdep.c (s390_gdbarch_init): Update.
11124 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11125 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11126 * m68k-tdep.c (m68k_gdbarch_init): Update.
11127 (delta68_frame_args_address): Update.
11128 * m32r-tdep.c (m32r_gdbarch_init): Update.
11129 * hppa-tdep.c (hppa_gdbarch_init): Update.
11130 * h8300-tdep.c (h8300_gdbarch_init): Update.
11131 * frv-tdep.c (frv_gdbarch_init): Update.
11132 (frv_frameless_function_invocation): Update.
11133 * cris-tdep.c (cris_gdbarch_init): Update.
11134 (cris_frameless_function_invocation): Update.
11135 * avr-tdep.c (avr_gdbarch_init): Update.
11136 * arm-tdep.c (arm_gdbarch_init): Update.
11137 * stack.c (frame_info): Update, call predicate.
11138 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
11139 * frame.c (legacy_get_prev_frame): Update, call predicate..
11140 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
11141 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
11142 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
11143 invocation.
11144 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11145 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11146 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
11147
11148 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
11149 function.
11150
7dcaac91
DJ
111512004-02-16 Daniel Jacobowitz <drow@mvista.com>
11152
11153 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
11154 initializations.
11155
88289b6e
AC
111562004-02-16 Andrew Cagney <cagney@redhat.com>
11157
11158 * tui/tui-windata.c: Include "gdb_string.h".
11159 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
11160 * tui/tui-layout.c, tui/tui-command.c: Ditto.
11161 * Makefile.in: Update dependencies.
11162
9f976b41
DJ
111632004-02-16 Daniel Jacobowitz <drow@mvista.com>
11164
11165 * Makefile.in (infrun.o): Add $(gdb_assert_h).
11166 * infrun.c: Include "gdb_assert.h".
11167 (singlestep_ptid, saved_singlestep_ptid)
11168 (stepping_past_singlestep_breakpoint): New variables.
11169 (resume): Set singlestep_ptid. Check for singlestep thread
11170 hop.
11171 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
11172 (handle_inferior_event): Handle singlestep thread hop.
11173
c324d747
AC
111742004-02-16 Andrew Cagney <cagney@redhat.com>
11175
f090b9b1
AC
11176 * dwarf2-frame.c (dwarf2_frame_ops): New function.
11177 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
11178 (dwarf2_frame_init_reg): Ditto.
11179
fd33e6cb
AC
11180 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
11181 suggested by Joshua Neuheisel
11182
c324d747
AC
11183 * configure.in: Always check for curses, including pdcurses.
11184 Warn, instead of error, when no curses are found. Enable TUI when
11185 curses is available.
11186 * configure: Re-generate.
11187
b66ba949
CV
111882004-02-16 Corinna Vinschen <vinschen@redhat.com>
11189
11190 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
11191 sh_sh4_register_convert_to_virtual.
11192 (sh_register_convert_to_raw): Rename from
11193 sh_sh4_register_convert_to_raw.
11194 (sh_pseudo_register_read): Accomodate above name change.
11195 (sh_pseudo_register_write): Ditto.
11196
b58cbbf2
CV
111972004-02-16 Corinna Vinschen <vinschen@redhat.com>
11198
11199 * sh-tdep.c (sh_generic_register_name): Remove.
11200 (sh_gdbarch_init): Use sh_sh_register_name in default case.
11201
5929a910
AC
112022004-02-15 Andrew Cagney <cagney@redhat.com>
11203
4566dfcf
AC
11204 * configure.in (build_warnings): Add -Wunused-function.
11205 * configure: Re-generate.
11206
db11ed55
AC
11207 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
11208 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
11209
46ac7a5d
AC
11210 * procfs.c (procfs_init_inferior): Assume that
11211 START_INFERIOR_TRAPS_EXPECTED is defined.
11212 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
11213 * config/ns32k/tm-nbsd.h: Delete file,
11214 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
11215
ba801595
AC
11216 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
11217 * config/vax/tm-vax.h: Delete file.
11218
5929a910
AC
11219 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11220 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11221 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11222 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11223 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
11224 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11225 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
11226
8f22cb90
MK
112272004-02-15 Mark Kettenis <kettenis@gnu.org>
11228
11229 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
11230 * dwarf2-frame.c (dwarf2_frame_data): New variable.
11231 (struct dwarf2_frame_ops): New.
11232 (dwarf2_frame_default_init_reg): New function, based on
11233 dwarf2_frame_init_reg.
11234 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
11235 (dwarf2_frame_init_reg): Call architecture-specific function.
11236 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
11237 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
11238 instead of dwarf2_frame_data.
11239 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
11240 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
11241
8132723e
AC
112422004-02-15 Andrew Cagney <cagney@redhat.com>
11243
046a4708
AC
11244 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
11245 register_gdbarch_swap.
11246 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
11247 * f-lang.c (_initialize_f_language): Update, use
11248 DEPRECATED_REGISTER_GDBARCH_SWAP.
11249 * remote.c (_initialize_remote): Ditto.
11250 * regcache.c (_initialize_regcache): Ditto.
11251 * parse.c (_initialize_parse): Ditto.
11252 * infrun.c (_initialize_infrun): Ditto.
11253 * mi/mi-main.c (_initialize_mi_main): Ditto.
11254 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 11255
549c1eea
AC
11256 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
11257 poking .cacheable directly.
11258 * symfile.c (symfile_bfd_open): Ditto.
11259
0c0b39de
AC
11260 * Makefile.in: Update all dependencies.
11261
8132723e
AC
11262 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
11263 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
11264 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
11265 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
11266 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 11267
b9d26eb9
AC
112682004-02-14 Andrew Cagney <cagney@redhat.com>
11269
8e1f669a
AC
11270 * arch-utils.c (legacy_convert_register_p): Check
11271 DEPRECATED_REGISTER_CONVERTIBLE_P.
11272 * findvar.c (value_of_register): Ditto.
11273
cd0bfa36
AC
11274 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
11275 * gdbarch.h, gdbarch.c: Re-generate.
11276 * arch-utils.c (deprecated_register_convertible_not): Delete.
11277 * arch-utils.h (deprecated_register_convertible_not): Delete.
11278 * mi/mi-main.c (get_register): Update. Update copyright.
11279 * infcmd.c (default_print_registers_info): Update.
11280
b9d26eb9
AC
11281 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11282 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
11283 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 11284 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
11285 * frame.c (deprecated_get_next_frame_hack): Delete function.
11286 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
11287 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
11288 Update.
11289 * infcall.c (call_function_by_hand): Update.
11290
9ab9195f
EZ
112912004-02-14 Elena Zannoni <ezannoni@redhat.com>
11292
11293 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 11294 from here...
9ab9195f
EZ
11295 * objfiles.c (init_entry_point_info, entry_point_address):..to
11296 here.
11297 * symfile.h (init_entry_point_info, entry_point_address): Remove
11298 prototypes.
11299 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 11300 prototypes.
9ab9195f
EZ
11301 * cris-tdep.c: Remove include of symfile.h. Add include of
11302 objfiles.h.
11303 * infcall.c: Ditto.
11304 * mcore-tdep.c: Ditto.
11305 * mn10300-tdep.c: Ditto.
11306 * sh64-tdep.c: Ditto.
11307 * v850-tdep.c: Ditto.
11308 * arm-tdep.c: Remove include of symfile.h.
11309 * blockframe.c: Ditto.
11310 * coffread.c: Ditto.
11311 * dbxread.c: Ditto.
11312 * dwarf2read.c: Ditto.
11313 * dwarfread.c: Ditto.
8a1dac83 11314 * frv-tdep.c: Ditto.
9ab9195f
EZ
11315 * ia64-tdep.c: Ditto.
11316 * mdebugread.c: Ditto.
11317 * mipsread.c: Ditto.
8a1dac83 11318 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
11319 * s390-tdep.c: Ditto.
11320 * sh-tdep.c: Ditto.
8a1dac83 11321 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
11322 * gdbarch.sh: Remove include of symfile.h.
11323 * gdbarch.c: Regenerate.
11324 * solib-irix.c (enable_break): Use entry_point_address().
11325 Add comment about include file.
11326 * xcoffread.c: Add comment about include file.
8a1dac83
RM
11327 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
11328 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
11329 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
11330 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
11331 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
11332
c4c5b7ba
AC
113332004-02-13 Andrew Cagney <cagney@redhat.com>
11334
11335 * corelow.c (core_xfer_partial): Use "struct bfd_section".
11336 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
11337 copyright.
11338 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
11339
3e7879de
FF
113402004-02-12 Fred Fish <fnf@redhat.com>
11341
11342 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
11343 set_gdbarch_store_return_value.
11344
6a7760b6
AC
113452004-02-12 Andrew Cagney <cagney@redhat.com>
11346
11347 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
11348 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
11349 (interrupt_query): Ditto.
11350 (ofunc): Delete unused variable.
11351 * cris-tdep.c (cris_abi): Delete unused function.
11352 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
11353 (cris_get_wide_opcode, cris_get_short_size): Ditto.
11354 (cris_get_asr_quick_shift_steps): Ditto.
11355 (cris_skip_prologue_frameless_p): Ditto.
11356 * arm-tdep.c (arm_push_return_address): Delete unused function.
11357 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
11358 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
11359 * s390-tdep.c (s390_function_start): Delete unused function.
11360
31687c3c
AC
113612004-02-12 Andrew Cagney <cagney@redhat.com>
11362
11363 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
11364 gdbarch.h, gdbarch.c: Re-generate.
11365 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
11366 to generic_prologue_frameless_p.
11367 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
11368 * arch-utils.c (generic_prologue_frameless_p): Delete function.
11369
6de918a6
DJ
113702004-02-11 Daniel Jacobowitz <drow@mvista.com>
11371
11372 * mips-linux-tdep.c: Include "frame.h".
11373 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
11374 (mips_linux_skip_resolver): New functions.
11375 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
11376 and set_gdbarch_in_solib_call_trampoline.
11377 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
11378 to after set_gdbarch_in_solib_return_trampoline. Only set the
11379 solib hooks to mips16 functions if the OS ABI is unknown.
11380 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
11381 including "config/tm-linux.h".
11382 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
11383 * Makefile.in (mips-linux-tdep.o): Update.
11384
87b3ede8
DC
113852004-02-11 David Carlton <carlton@kealia.com>
11386
11387 * linespec.c (decode_compound): Only look for a class symbol when
11388 considering all but the rightmost component.
11389
5979bc46
AC
113902004-02-11 Andrew Cagney <cagney@redhat.com>
11391
11392 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
11393 abi code are are separatly grouped.
11394
5867a2fb
AC
113952004-02-11 Andrew Cagney <cagney@redhat.com>
11396
11397 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
11398 * gdbarch.h, gdbarch.c: Re-generate.
11399 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11400 * v850-tdep.c (v850_gdbarch_init): Update.
11401 * sh64-tdep.c (sh64_gdbarch_init): Update.
11402 * sh-tdep.c (sh_gdbarch_init): Update.
11403 * s390-tdep.c (s390_gdbarch_init): Update.
11404 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11405 * mips-tdep.c (mips_gdbarch_init): Update.
11406 * mcore-tdep.c (mcore_gdbarch_init): Update.
11407 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11408 * m32r-tdep.c (m32r_gdbarch_init): Update.
11409 * ia64-tdep.c (ia64_gdbarch_init): Update.
11410 * hppa-tdep.c (hppa_gdbarch_init): Update.
11411 * h8300-tdep.c (h8300_gdbarch_init): Update.
11412 * frv-tdep.c (frv_gdbarch_init): Update.
11413 * d10v-tdep.c (d10v_gdbarch_init): Update.
11414 * cris-tdep.c (cris_gdbarch_init): Update.
11415 * avr-tdep.c (avr_gdbarch_init): Update.
11416 * arm-tdep.c (arm_gdbarch_init): Update.
11417 * alpha-tdep.c (alpha_gdbarch_init): Update.
11418
026a72f8
CV
114192004-02-11 Corinna Vinschen <vinschen@redhat.com>
11420
11421 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
11422 comma.
11423 (sh_sh4al_dsp_register_name): Ditto.
11424
3903d437
AC
114252004-02-10 Andrew Cagney <cagney@redhat.com>
11426
11427 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
11428 (mips_init_frame_pc_first): Delete function.
11429 (mips_frame_saved_pc): Delete function.
11430 (mips_frame_chain): Delete function.
11431 (mips_init_extra_frame_info): Delete function.
11432 (mips_xfer_register): Delete unused variable "reg".
11433 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
11434 (mips_n32n64_return_value): Delete unused variable "reg".
11435 (mips_n32n64_return_value): Delete unused variable "pos".
11436 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
11437 (mips_o32_return_value): Delete unused variable "pos".
11438 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
11439 (mips_print_fp_register): Delete unused variable "namelen"
11440 (mips_print_fp_register): Delete unused variable "flt2"
11441 (get_frame_pointer): Delete function.
11442 (cached_proc_desc): Delete static variable.
11443 (mips_pop_frame): Delete function.
11444 (mips_find_saved_regs): Delete function.
11445 (mips_get_saved_register): Delete function.
11446 (mips_saved_pc_after_call): Delete function.
11447 (SIGFRAME_BASE): Delete macro.
11448 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
11449 (SIGFRAME_PC_OFF): Delete macro.
11450 (SIGFRAME_REGSAVE_OFF): Delete macro.
11451 (mips_dump_tdep): Do not print deleted macro definitions.
11452
b9fb98bd
AC
114532004-02-10 Andrew Cagney <cagney@redhat.com>
11454
11455 * Makefile.in (SFILES): Remove explictly listed tui files.
11456 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
11457
78ced177 114582004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 11459
78ced177
JJ
11460 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
11461 to use paddr functions to format ia64 addresses and long values.
11462 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
11463 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
11464 (get_kernel_table, ia64_find_proc_info_x): Ditto.
11465 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
11466 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
11467
6a83354a
AC
114682004-02-10 Andrew Cagney <cagney@redhat.com>
11469
11470 * defs.h: Do not include "tui.h".
11471 * gdb_curses.h: New file.
11472 * tui/tui-hooks.h: New file.
11473 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
11474 (tui_install_hooks, tui_remove_hooks): Delete declarations.
11475 (tui_initialize_io): Delete declaration.
11476 (tui_initialize_readline: Delete redundant declaration.
11477 (struct tui_point): Delete definition.
11478 * tui/tui-data.h (struct tui_point): Define.
11479 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
11480 * utils.c: Include "tui/tui.h".
11481 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
11482 * printcmd.c [TUI]: Include "tui/tui.h".
11483 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
11484 * tui/tui-command.c: Include "gdb_curses.h".
11485 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
11486 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
11487 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
11488 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
11489 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
11490 * Makefile.in: Update all dependencies.
11491 (tui_hooks_h, gdb_curses_h): Define.
11492 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
11493
997470ef
EZ
114942004-02-10 Elena Zannoni <ezannoni@redhat.com>
11495
11496 * objfiles.h (struct objfile): Remove unused fields auxf1 and
11497 auxf2. Add comments about some other rarely used fields.
11498
4ff2cc4d
AC
114992004-02-10 Andrew Cagney <cagney@redhat.com>
11500
11501 * Makefile.in (init.c): Fix script removing duplicates. Problem
11502 reported by Peter Schauer.
11503
1ab21617
EZ
115042004-02-09 Elena Zannoni <ezannoni@redhat.com>
11505
11506 * bcache.c (bcache_xmalloc): Use obstack_init instead of
11507 obstack_specify_allocation.
11508 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 11509 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
11510 (allocate_rt_common_objfile): Ditto.
11511 * symfile.c (reread_symbols): Ditto.
11512 * gdb_obstack.h: Add comment.
11513
17763fd9
EZ
115142004-02-09 Elena Zannoni <ezannoni@redhat.com>
11515
11516 * linespec.c (decode_line_1, locate_first_half)
11517 (decode_compound, lookup_prefix_sym): Update comments. Delete old
11518 commented out code.
11519
ec5cdd75
DJ
115202004-02-09 Daniel Jacobowitz <drow@mvista.com>
11521
11522 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
11523 obstack_free.
11524
43b54b88
AC
115252004-02-09 Andrew Cagney <cagney@redhat.com>
11526
11527 * blockframe.c (find_pc_partial_function): If find_pc_overlay
11528 fails, try find_pc_section. Fix PR c++/1267.
11529 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
11530 instead of find_pc_mapped_section.
11531 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
11532 not default to the section containing PC. Fix PR symtab/1519.
11533
edfae063
AC
115342004-02-09 Andrew Cagney <cagney@redhat.com>
11535
11536 * Makefile.in (mips-tdep.o): Update dependencies.
11537 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
11538 "trad-frame.h".
11539 (mips_unwind_pc): Return the pseudo PC register.
11540 (mips_unwind_dummy_id): New function.
11541 (mips16_fetch_instruction): New function.
11542 (mips32_fetch_instruction): New function.
11543 (struct mips_frame_cache): Define.
11544 (mips_mdebug_frame_cache): New function.
11545 (mips_mdebug_frame_this_id): New function.
11546 (mips_mdebug_frame_prev_register): New function.
11547 (mips_mdebug_frame_unwind): Define.
11548 (mips_mdebug_frame_sniffer): New function.
11549 (mips_mdebug_frame_base_address): New function.
11550 (mips_mdebug_frame_base): Define.
11551 (mips_mdebug_frame_base_sniffer): New function.
11552 (mips_gdbarch_init): Append unwind and base sniffers. Set
11553 unwind_dummy_id.
11554
defc864c
AC
115552004-02-08 Andrew Cagney <cagney@redhat.com>
11556
6764ddad
AC
11557 * frame.c: Print both the register number and name.
11558
defc864c
AC
11559 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
11560 and a sed into a single sed. Make .c and .o patterns more robust.
11561 (OBS): Delete.
11562 (INIT_FILES): Replace OBS with COMMON_OBS.
11563 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
11564
645d6d10
MK
115652004-02-08 Mark Kettenis <kettenis@gnu.org>
11566
11567 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
11568 the PT_WCOOKIE request.
11569
23e3c3fc
AC
115702004-02-08 Andrew Cagney <cagney@redhat.com>
11571
58dfe9ff
AC
11572 * mips-tdep.c (mips_unwind_pc): New function.
11573 (mips_gdbarch_init): Set mips_unwind_pc.
11574
1152e35e
AC
11575 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
11576 (get_frame_id): Allow the UNKNOWN_FRAME.
11577 (frame_register_unwind, get_frame_type): Ditto.
11578
31b75dbf
AC
11579 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
11580 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
11581 unwind_dummy_id indicates a legacy frame.
11582
3483b318
AC
11583 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
11584 * configure: Re-generate.
11585
23e3c3fc
AC
11586 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
11587 methods.
11588
33f8ca73
AC
115892004-02-08 Andrew Cagney <cagney@redhat.com>
11590
11591 * configure.in (CONFIG_ALL): Set to Makefile target, and not
11592 makefile macro.
11593 * configure: Re-generate.
11594 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
11595 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
11596 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
11597 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
11598 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
11599 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
11600 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
11601 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
11602 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
11603 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
11604
6ba8e26f 116052004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 11606
20d286a5
AC
11607 * Makefile.in: Update all dependencies.
11608
d836ee13
AC
11609 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
11610 * configure: Re-generate.
11611 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
11612 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
11613 (COMMON_OBS): Add "main.o" and "annotate.o".
11614 (ANNOTATE_OBS): Delete.
11615 (OBS): Remove ANNOTATE_OBS.
11616 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
11617 CONFIG_INITS.
11618 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
11619 against CONFIG_OBS and "main.o".
11620 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
11621 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
11622
d02c80cd
AC
11623 * tui/tui-command.c: Include "gdb_string.h", delete register
11624 attribute, use ISO-C function signatures.
11625 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
11626 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
11627 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
11628 * tui/tui.c: Ditto.
6ba8e26f
AC
11629
11630 * tui/tui-command.c: Change variable and function names to lower
11631 case.
11632 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
11633 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
11634 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
11635 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11636 * tui/tui-winsource.c, tui/tui.c: Ditto.
11637
4a146b47
EZ
116382004-02-07 Elena Zannoni <ezannoni@redhat.com>
11639
11640 * buildsym.c (free_pending_blocks, finish_block)
11641 (record_pending_block, make_blockvector, end_symtab): Replace
11642 symbol_obstack with objfile_obstack.
8a1dac83 11643 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 11644 (coff_read_enum_type): Ditto.
8a1dac83 11645 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 11646 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 11647 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
11648 (dwarf2_symbol_mark_computed): Ditto.
11649 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
11650 * elfread.c (elf_symtab_read): Ditto.
11651 * hpread.c (hpread_symfile_init, hpread_symfile_init)
11652 (hpread_read_enum_type, hpread_read_function_type)
11653 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
11654 Ditto.
8a1dac83 11655 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 11656 (java_link_class_type): Ditto.
8a1dac83 11657 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
11658 (new_symbol): Ditto.
11659 * minsyms.c (install_minimal_symbols): Ditto.
11660 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
11661 (terminate_minimal_symbol_table): Replace symbol_obstack with
11662 objfile_obstack.
11663 (free_objfile): Remove freeing of symbol_obstack.
11664 * objfiles.h: Remove symbol_obstack field.
11665 * pa64solib.c (add_to_solist): Replace symbol_obstack with
11666 objfile_obstack.
11667 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
11668 symbol_obstack.
11669 (solib_add_common_symbols): Replace symbol_obstack with
11670 objfile_obstack.
11671 * somsolib.c (som_solib_add): Ditto.
11672 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
11673 (common_block_start, common_block_end): Ditto.
11674 * symfile.c (reread_symbols): Remove freeing and init of
11675 symbol_obstack.
11676 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
11677 * symfile.h: Update comment.
11678 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
11679 stats printing.
11680 * symtab.c (symbol_set_names): Replace symbol_obstack with
11681 objfile_obstack.
11682 * symtab.h (struct general_symbol_info, struct minimal_symbol):
11683 Update comments.
11684 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
11685 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
11686 objfile_obstack.
11687
6d012f14
AC
116882004-02-07 Andrew Cagney <cagney@redhat.com>
11689
11690 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
11691 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
11692 fields and variables.
11693 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
11694 (m_beInvisible): Delete macro.
11695 * tui/tui-data.h: Fix case case fields and variables.
11696 (m_genWinPtrIsNull): Delete macro.
11697 (tui_win_list): Rename winList.
11698 (TUI_SRC_WIN): Rename srcWin.
11699 (TUI_DISASM_WIN): Rename disassemWin.
11700 (TUI_DATA_WIN): Rename dataWin.
11701 (TUI_CMD_WIN): Rename cmdWin.
11702 (m_genWinPtrNotNull): Delete macro.
11703 (m_winPtrIsNull): Delete macro.
11704 (m_winPtrNotNull): Delete macro.
11705 (tui_win_is_source_type): Replace m_winIsSourceType
11706 (tui_win_is_auxillary): Replace m_winIsAuzillary.
11707 (tui_win_has_locator): Replace m_hasLocator.
11708 (tui_set_win_highlight): Replace m_setWinHighlightOn and
11709 m_setWinHighlightOff.
11710 * tui/tui-data.c: Update references.
11711 (tui_win_is_source_type, tui_set_win_highlight): New functions.
11712 (tui_win_has_locator, tui_win_is_auxillary): New functions.
11713 * tui/tui-command.c, tui/tui-disasm.c: Update references.
11714 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
11715 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
11716 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11717 * tui/tui-winsource.c, tui/tui.c: Ditto.
11718
7d34766b
MK
117192004-02-07 Mark Kettenis <kettenis@gnu.org>
11720
1c800673
MK
11721 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
11722 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
11723 StackGhost.
11724
7d34766b
MK
11725 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
11726 variable `i6' to `i7'.
11727 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
11728
22940a24
AC
117292004-02-07 Andrew Cagney <cagney@redhat.com>
11730
11731 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
11732 (TuiPoint, TuiPointPtr): Ditto.
11733 (TuiStatus, TuiStatusPtr): Ditto.
11734 (TuiWinType, TuiWinTypePtr): Ditto.
11735 (struct tui_point): Rename _TuiPoint.
11736 (tui_get_low_disassembly_address): Rename
11737 tuiGetLowDisassemblyAddress.
11738 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
11739 (tuiFree): Delete declaration.
11740 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
11741 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
11742 * tui/tui.c (tuiFree): Delete function.
11743 * cli/cli-cmds.c (disassemble_command): Update references.
11744 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
11745 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
11746 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
11747 * tui/tui-winsource.c: Ditto.
11748
8b92e4d5
EZ
117492004-02-07 Elena Zannoni <ezannoni@redhat.com>
11750
11751 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
11752 coffstab_build_psymtabs, elfstab_build_psymtabs)
11753 (stabsect_build_psymtabs): Replace psymbol_obstack with
11754 objfile_obstack.
11755 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
11756 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
11757 Ditto.
11758 * dwarfread.c (scan_compilation_units): Ditto.
11759 * elfread.c (elfstab_offset_sections): Ditto.
11760 * hppa-tdep.c (read_unwind_info): Ditto.
11761 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
11762 (hpread_end_psymtab): Ditto.
11763 * mdebugread.c (mdebug_build_psymtabs, add_pending)
11764 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
11765 Ditto.
11766 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 11767 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
11768 (build_objfile_section_table): Ditto.
11769 (allocate_objfile): Remove init of psymbol_obstack.
11770 (free_objfile): Remove freeing of psymbol_obstack.
11771 * objfiles.h (struct objfile): Remove field
11772 psymbol_obstack. Update comments.
11773 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
11774 psymbol_obstack with objfile_obstack.
11775 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
11776 psymbol_obstack.
11777 * somread.c (som_symfile_offsets, init_import_symbols)
11778 (init_export_symbols): Replace psymbol_obstack with
11779 objfile_obstack.
11780 * somsolib.c (som_solib_add_solib_objfile): Ditto.
11781 * symfile.c (default_symfile_offsets, syms_from_objfile)
11782 (reread_symbols): Remove freeing and init of psymbol_obstack.
11783 (cashier_psymtab): Update comment.
11784 * symmisc.c (print_objfile_statistics): Don't report stats for
11785 psymbol obstack.
11786 * symtab.h (struct general_symbol_info, struct partial_symtab):
11787 Update comments.
11788 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
11789 (xcoff_symfile_offsets): Replace psymbol_obstack with
11790 objfile_obstack.
11791
b99607ea
EZ
117922004-02-07 Elena Zannoni <ezannoni@redhat.com>
11793
11794 * objfiles.h (struct objfile): Add objfile_obstack field.
11795 Remove type_obstack field.
11796
11797 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
11798 read_structure_scope read_enumeration, new_symbol): Replace
11799 type_obstack with objfile_obstack.
11800 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 11801 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
11802 (lookup_fundamental_type): Ditto.
11803 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
11804 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
11805 (hpread_read_doc_function_type, hpread_read_struct_type)
11806 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 11807 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 11808 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
11809 (java_link_class_type): Ditto.
11810 * mdebugread.c (parse_type): Ditto.
11811 * objfiles.c (allocate_objfile, free_objfile): Ditto.
11812 * solib-sunos.c (solib_add_common_symbols): Ditto.
11813 * stabsread.c (define_symbol, read_type, read_member_functions,
11814 read_cpp_abbrev, read_one_struct_field): Ditto.
11815 * symfile.c (reread_symbols): Ditto.
11816 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 11817
2a8854a7
AC
118182004-02-07 Andrew Cagney <cagney@redhat.com>
11819
11820 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
11821 (tui_exec_info_content): Rename TuiExecInfoContent.
11822 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
11823 (TuiWinInfo, TuiWinInfoPtr): Ditto.
11824 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
11825 (TuiList, TuiListPtr): Ditto.
11826 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
11827 (TuiDataType, TuiDataTypePtr): Ditto.
11828 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
11829 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
11830 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
11831 (TuiSourceElement, TuiSourceElementPtr): Ditto.
11832 (TuiDataElement, TuiDataElementPtr): Ditto.
11833 (TuiWinElement, TuiWinElementPtr): Ditto.
11834 (TuiDataInfo, TuiDataInfoPtr): Ditto.
11835 (TuiCommandElement, TuiCommandElementPtr): Ditto.
11836 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
11837 (TuiWhichElement, TuiWhichElementPtr): Ditto.
11838 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
11839 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
11840 * tui/tui-command.c, tui/tui-data.c: Update references.
11841 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
11842 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
11843 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11844 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 11845
05cbe71a
MK
118462004-02-07 Mark Kettenis <kettenis@gnu.org>
11847
11848 * dwarf2-frame.h: Update copyright.
11849 (enum dwarf2_frame_reg_rule): New.
11850 (struct dwarf2_frame_state_reg): New.
11851 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
11852 * dwarf2-frame.c: Update copyright.
11853 (enum dwarf2_reg_rule): Remove.
11854 (struct dwarf2_frame_state): Remove defenition of `struct
11855 dwarf2_frame_state_reg'.
11856 (read_reg): Call get_frame_arch to get the architecture instead of
11857 using CURRENT_GDBARCH.
11858 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
11859 DWARF2_FRAME_.
11860 (dwarf2_frame_init_reg): New function.
11861 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
11862 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
11863 initialize the register state. Prefix old `enum dwarf2_reg_rule'
11864 tags with DWARF2_FRAME_.
11865 (dwarf2_frame_prev_register): Call get_frame_arch to get the
11866 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
11867 dwarf2_reg_rule' tags with DWARF2_FRAME_.
11868
ec7d9e56
AC
118692004-02-06 Andrew Cagney <cagney@redhat.com>
11870
dd1abb8c
AC
11871 * tui/tui-data.h (struct tui_list): Rename _TuiList.
11872 (enum tui_data_type): Rename _TuiDataType.
11873 (struct tui_layout_def): Rename _TuiLayoutDef.
11874 (struct tui_source_element): Rename _TuiSourceElement.
11875 (struct tui_data_element): Rename _TuiDataElement.
11876 (struct tui_command_element): Rename _TuiCommandElement.
11877 (struct tui_locator_element): Rename _TuiLocatorElement.
11878 (union tui_which_element): Define.
11879 (struct tui_win_element): Rename _TuiWinElement.
11880 (struct tui_data_info): Rename _TuiDataInfo.
11881 (struct tui_source_info): Rename _TuiSourceInfo.
11882 (struct tui_command_info): Rename _TuiCommandInfo.
11883 (tui_initialize_static_data): Rename initializeStaticData.
11884 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
11885 (tui_alloc_win_info): Rename allocWinInfo.
11886 (tui_init_generic_part): Rename initGenericPart.
11887 (tui_init_win_info): Rename initWinInfo.
11888 (tui_alloc_content): Rename allocContent.
11889 (tui_add_content_elements): Rename addContentElements.
11890 (tui_init_content_element): Rename initContentElement.
11891 (tui_free_window): Rename freeWindow.
11892 (tui_free_win_content): Rename freeWinContent.
11893 (tui_free_data_content): Rename freeDataContent.
11894 (tui_free_all_source_wins_content): Rename
11895 freeAllSourceWinsContent.
11896 (tui_del_window): Rename tuiDelWindow.
11897 (tui_del_data_windows): Rename tuiDelDataWindows.
11898 (tui_partial_win_by_name): Rename partialWinByName.
11899 (tui_win_name): Rename winName.
11900 (tui_current_layout): Rename currentLayout.
11901 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
11902 (tui_term_height): Rename termHeight.
11903 (tui_set_term_height_to): Rename setTermHeightTo.
11904 (tui_term_width): Rename termWidth.
11905 (tui_set_term_width_to): Rename setTermWidthTo.
11906 (tui_set_gen_win_origin): Rename setGenWinOrigin.
11907 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
11908 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
11909 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
11910 (tui_source_windows): Rename sourceWindows.
11911 (tui_clear_source_windows): Rename clearSourceWindows.
11912 (tui_clear_source_windows_detail): Rename
11913 clearSourceWindowsDetail.
11914 (tui_clear_win_detail): Rename clearWinDetail.
11915 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
11916 (tui_default_tab_len): Rename tuiDefaultTabLen.
11917 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
11918 (tui_win_with_focus): Rename tuiWinWithFocus.
11919 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
11920 (tui_layout_def): Rename tuiLayoutDef.
11921 (tui_win_resized): Rename tuiWinResized.
11922 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
11923 (tui_next_win): Rename tuiNextWin.
11924 (tui_prev_win): Rename tuiPrevWin.
11925 (tui_add_to_source_windows): Rename addToSourceWindows.
11926 * tui/tui-winsource.c, tui/tui-win.c: Update references.
11927 * tui/tui-layout.c, tui/tui-source.c: Ditto.
11928 * tui/tui-stack.c, tui/tui-io.c: Ditto.
11929 * tui/tui.c, tui/tui-data.c: Ditto.
11930 * tui/tui-interp.c, tui/tui-data.c: Ditto.
11931 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
11932
a358af15
AC
11933 * tui/tui-source.h: Update copyright. Include "tui-data.h".
11934 (struct symtab): Declare.
11935 (tui_set_source_content): Rename tuiSetSourceContent.
11936 (tui_show_symtab_source): Rename tuiShowSource.
11937 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
11938 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
11939 * tui/tui-source.c: Update copyright. Update references.
11940 * tui/tui-win.c, tui/tui-winsource.c: Update references.
11941 * tui/tui-stack.c: Update references.
11942
a21fcd8f
AC
11943 * tui/tui-win.h: Update copyright. Include "tui-data.h".
11944 (struct tui_win_info): Declare.
11945 (tui_scroll_forward): Rename tuiScrollForward.
11946 (tui_scroll_backward): Rename tuiScrollBackward.
11947 (tui_scroll_left): Rename tuiScrollLeft.
11948 (tui_scroll_right): Rename tuiScrollRight.
11949 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
11950 (tui_resize_all): Rename tuiResizeAll.
11951 (tui_refresh_all_win): Rename tuiRefreshAll.
11952 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
11953 * tui/tui-layout.c, * tui/tui-io.c: Update references.
11954 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
11955 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
11956
edae1ccf
AC
11957 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
11958 (tui_erase_data_content): Rename tuiEraseDataContent.
11959 (tui_display_all_data): Rename tuiDisplayAllData.
11960 (tui_check_data_values): Rename tuiCheckDataValues.
11961 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
11962 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
11963 (tui_first_data_element_no_in_line): Rename
11964 tuiFirstDataElementNoInLine.
11965 (tui_delete_data_content_windows): Rename
11966 tuiDeleteDataContentWindows.
11967 (tui_refresh_data_win): Rename tuiRefreshDataWin.
11968 (tui_display_data_from): Rename tuiDisplayDataFrom.
11969 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
11970 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
11971 * tui/tui-win.c, tui/tui-regs.c: Update references.
11972 * tui/tui-layout.c, tui/tui.c: Update references.
11973
ec7d9e56
AC
11974 * tui/tui-wingeneral.h: Update copyright.
11975 (m_allBeVisible): Delete macro.
8a1dac83 11976 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
11977 (struct tui_gen_win_info): Declare.
11978 (struct tui_win_info): Declare.
11979 (tui_unhighlight_win): Rename unhighlightWin.
11980 (tui_make_visible, tui_make_invisible): Replace makeVisible.
11981 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
11982 (tui_make_window): Rename makeWindow.
11983 (tui_copy_win): Rename copyWin.
11984 (tui_box_win): Rename boxWin.
11985 (tui_highlight_win): Rename highlightWin.
11986 (tui_check_and_display_highlight_if_needed): Rename
11987 checkAndDisplayHighlightIfNeeded.
11988 (tui_refresh_all): Rename refreshAll.
11989 (tui_delete_win): Rename tuiDelwin.
11990 (tui_refresh_win): Rename tuiRefreshWin.
11991 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
11992 (tui_make_visible, tui_make_invisible): New functions.
11993 (tui_make_all_visible, tui_make_all_invisible): New functions.
11994 (make_all_visible): Rename makeAllVisible.
11995 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
11996 * tui/tui-data.c, tui/tui-winsource.c: Update references.
11997 * tui/tui-windata.c, tui/tui-win.c: Update references.
11998 * tui/tui-regs.c, tui/tui-layout.c: Update references.
11999 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
12000
1e52e2eb
MK
120012004-02-06 Mark Kettenis <kettenis@gnu.org>
12002
12003 * proc-api.c (write_with_trace): Initialize local variable to
12004 silence compiler warning.
12005
f80bda8e
AC
120062004-02-06 Andrew Cagney <cagney@redhat.com>
12007
12008 * tui/tui-source.h: Do not include "defs.h".
12009 (struct tui_win_info): Declare.
12010 (tui_set_source_content_nil): Declare.
12011 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
12012 (union tui_line_or_address): Rename _TuiLineOrAddress.
12013 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
12014 (tui_update_source_window): Rename tuiUpdateSourceWindow.
12015 (tui_update_source_window_as_is): Rename
12016 tuiUpdateSourceWindowAsIs.
12017 (tui_update_source_windows_with_addr): Rename
12018 tuiUpdateSourceWindowsWithAddr.
12019 (tui_update_source_windows_with_line): Rename
12020 tuiUpdateSourceWindowsWithLine.
12021 (tui_clear_source_content): Rename tuiClearSourceContent.
12022 (tui_erase_source_content): Rename tuiEraseSourceContent.
12023 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
12024 (tui_show_source_content): Rename tuiShowSourceContent.
12025 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
12026 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
12027 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
12028 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
12029 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
12030 (tui_update_exec_info): Rename tuiUpdateExecInfo.
12031 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
12032 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
12033 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
12034 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
12035 (struct tui_win_info): Declare.
12036 * tui/tui-stack.c: Update references.
12037 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
12038 * tui/tui-win.c, tui/tui-source.c: Ditto.
12039 * tui/tui.c, tui/tui-disasm.c: Ditto.
12040
9fbfb822
MK
120412004-02-06 Mark Kettenis <kettenis@gnu.org>
12042
12043 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
12044 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
12045
03cebad2
MK
120462004-02-05 Mark Kettenis <kettenis@gnu.org>
12047
12048 * infrun.c (handle_inferior_event): Allow for breakpoint
12049 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
12050 and SIGEMT. Update comments.
12051 * NEWS (Revised SPARC target): Mention support for non-executable
12052 stack.
12053
290281b1
MK
120542004-02-04 Mark Kettenis <kettenis@gnu.org>
12055
12056 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
12057 * inftarg.c: Update copyright year.
12058 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
12059 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
12060 (sparc_xfer_wcookie): New function.
12061 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12062 * Makefile.in (sparc-nat.o): Update dependencies.
12063 * config/sparc/nm-nbsd.h: Include "target.h".
12064 (NATIVE_XFER_WCOOKIE): New define.
12065 (sparc_xfer_wcookie): New prototype.
12066
212161df
AC
120672004-02-04 Andrew Cagney <cagney@redhat.com>
12068
12069 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
12070 SYSCALL_TRAP function.
12071 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
12072
6e4c6c91
DJ
120732004-02-04 Andrew Cagney <cagney@redhat.com>
12074 Daniel Jacobowitz <drow@mvista.com>
12075
12076 * objfiles.h: Delete comments refering to inside_entry_func and
12077 DEPRECATED_FRAME_CHAIN_VALID.
12078 * defs.h (inside_entry_func): Update prototype..
12079 * blockframe.c (inside_entry_func): Rename to
12080 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
12081 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
12082
cae688ec
JJ
120832004-02-03 Jeff Johnston <jjohnstn@redhat.com>
12084
12085 * breakpoint.c (struct captured_parse_breakpoint_args): Move
12086 outside of #ifdef SOLIB_ADD region.
12087 (do_restore_lang_radix_cleanup): Ditto.
12088 (resolve_pending_breakpoint): Ditto.
12089
19217676
AC
120902004-02-03 Andrew Cagney <cagney@redhat.com>
12091
12092 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
12093 (process_note_abi_tag_sections): Delete unused function.
12094 (ia64_read_fp): Delete unused function.
12095 (gdbarch_extract_struct_value_address): Delete declaration.
12096
876753be
AC
120972004-02-02 Andrew Cagney <cagney@redhat.com>
12098
12099 * vax-tdep.c (vax_frame_chain): Delete call to
12100 deprecated_inside_entry_file.
12101 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
12102
d4f10bf2
MK
121032004-02-02 Mark Kettenis <kettenis@gnu.org>
12104
12105 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
12106 column that's "empty" or "same value" when eliminating REG_RA
12107 rules.
12108
cae688ec
JJ
121092004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12110
12111 * NEWS: Add information about new pending breakpoint support.
12112
0101ce28
JJ
121132004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12114
12115 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
12116 and pending fields for pending breakpoint support.
12117 * breakpoint.c (breakpoint_enabled): Add check for not pending.
12118 (condition_command): Only parse condition if not a pending
12119 breakpoint.
12120 (print_one_breakpoint): Add support for pending breakpoints.
12121 (describe_other_breakpoints): Add checks to verify we are not
12122 dealing with pending breakpoints.
12123 (check_duplicates): Don't check pending breakpoints.
12124 (set_raw_breakpoint): Initialize pending flag.
12125 (do_restore_lang_radix_cleanup): New cleanup routine.
12126 (resolve_pending_breakpoint): New function.
12127 (re_enable_breakpoints_in_shlibs): Try and resolve any
12128 pending breakpoints via resolve_pending_breakpoint.
12129 (mention): Add pending breakpoint support.
12130 (parse_breakpoint_sals): Add new parameter to pass to
12131 decode_line_1 to indicate silent errors when files or functions
12132 are not found. Change all callers.
12133 (do_captured_parse_breakpoint): New function.
12134 (break_command_1): Change prototype to return an rc value and to
12135 take an optional pending breakpoint pointer. Support creating
12136 a pending breakpoint if a "not found" form of error occurs when
12137 parsing the breakpoint. Also support resolving an existing pending
12138 breakpoint and be silent if the resolution fails.
12139 (create_breakpoints): Change prototype to take pending breakpoint
12140 pointer. When resolving a pending breakpoint, use the new pointer
12141 to provide a conditional or commands added by the end-user.
12142 (delete_breakpoint): Add appropriate check for pending.
12143 (breakpoint_re_set_one): Ditto.
12144 (do_enable_breakpoint): Ditto.
12145
8d577d32
DC
121462004-02-02 David Carlton <carlton@kealia.com>
12147
12148 * valops.c (enum oload_classification): New.
12149 (find_overload_match): Break implementation into separate
12150 functions; delete #if 0'd code; look for symbols within
12151 namespaces.
12152 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
12153 (find_oload_champ,oload_method_static,classify_oload_match): New.
12154 * cp-support.h: Add declaration for cp_func_name; update
12155 declaration for make_symbol_overload_list.
12156 * cp-support.c (cp_func_name): New.
12157 (overload_list_add_symbol): Fix comment, use
12158 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
12159 (make_symbol_overload_list): Take a function name and a namespace
12160 instead of a symbol; change implementation.
12161 (make_symbol_overload_list_using): New.
12162 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
12163
22e8e3c7
FF
121642004-02-02 Fred Fish <fnf@redhat.com>
12165
12166 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 12167 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
12168 * remote-sim.c (gdb_os_write_stderr): Write output to
12169 gdb_stdtargerr stream instead of gdb_stdtarg stream.
12170 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 12171 gdb_stderr stream and update copyright years.
22e8e3c7 12172
6b753f60
DJ
121732004-02-01 Daniel Jacobowitz <drow@mvista.com>
12174
12175 * Makefile.in (mips-linux-nat.o): Update dependencies.
12176 * mips-linux-nat.c: Include mips-tdep.h.
12177
121782004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
12179
12180 * sol-thread.c (sol_thread_xfer_partial): New function.
12181 (init_sol_thread_ops): Use that for to_xfer_partial hook.
12182 (init_sol_core_ops): Likewise.
12183
12184 * procfs.c (procfs_xfer_partial): New function.
12185 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
12186 * Makefile.in (procfs.o): Add $(auxv_h) dep.
12187
12188 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
12189 procfs_xfer_auxv function.
12190
12191 * procfs.c (procfs_make_note_section): If we can read
12192 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
12193 * linux-proc.c (linux_make_note_section): Likewise.
12194
12195 * auxv.h: New file.
12196 * auxv.c: New file.
12197 * Makefile.in (auxv_h): New variable.
12198 (COMMON_OBS): Add auxv.o here.
12199 (auxv.o): New target.
12200
12201 * corelow.c (core_xfer_partial): New function.
12202 (init_core_ops): Use it for core_ops.to_xfer_partial.
12203
12204 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
12205 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
12206 macro if that is defined.
12207
fa5281d0
DJ
122082004-02-01 Daniel Jacobowitz <drow@mvista.com>
12209
12210 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
12211 and check the specified thread for each breakpoint.
12212 * breakpoint.h (bpstat_stop_status): Update prototype.
12213 * infrun.c (handle_inferior_event): Update calls to
12214 bpstat_stop_status.
12215
26ee262d
DJ
122162004-02-01 Daniel Jacobowitz <drow@mvista.com>
12217
12218 * Makefile.in (cli-cmds.o): Add $(readline_h).
12219
d9b52655
DJ
122202004-02-01 Daniel Jacobowitz <drow@mvista.com>
12221
12222 * cli/cli-cmds.c: Include readline.h.
12223 (complete_command): Pass the start of the last word to
12224 complete_line.
12225
9709f61c
DJ
122262004-01-31 Daniel Jacobowitz <drow@mvista.com>
12227
12228 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
12229 argument, and change first argument to a CORE_ADDR.
12230 * breakpoint.h (bpstat_stop_status): Update prototype.
12231 * infrun.c (adjust_pc_after_break): Add a new comment.
12232 (handle_inferior_event): Update calls to bpstat_stop_status.
12233
4f1280bb
DJ
122342004-01-31 Daniel Jacobowitz <drow@mvista.com>
12235
12236 * breakpoint.h: Update copyright years.
12237
4fa8626c
DJ
122382004-01-31 Daniel Jacobowitz <drow@mvista.com>
12239
12240 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
12241 (bpstat_stop_status): Don't decrement PC.
12242 * breakpoint.h (software_breakpoint_inserted_here_p): Add
12243 prototype.
12244 * infrun.c (adjust_pc_after_break): New function.
12245 (handle_inferior_event): Call it, early. Remove later references
12246 to DECR_PC_AFTER_BREAK.
12247 (normal_stop): Add commentary.
12248
fad0733a
DJ
122492004-01-31 Daniel Jacobowitz <drow@mvista.com>
12250
12251 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
12252 2004-01-27 double-free fix.
12253
42cdca6c
MK
122542004-01-31 Mark Kettenis <kettenis@gnu.org>
12255
12256 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12257 (sparc32_frame_prev_register): Handle StackGhost.
12258 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12259
932d5416
RM
122602004-01-29 Roland McGrath <roland@redhat.com>
12261
12262 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
12263 * configure: Regenerated.
12264
12265 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
12266 * Makefile.in (procfs.o): Add dep.
12267
47d3492a
AC
122682004-01-28 Andrew Cagney <cagney@redhat.com>
12269
12270 * tui/tui-stack.h: Update copyright.
12271 (struct frame_info): Add opaque declaration.
12272 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
12273 (tui_show_locator_content): Rename tuiShowLocatorContent.
12274 (tui_show_frame_info): Rename tuiShowFrameInfo.
12275 * tui/tui-stack.c: Update copyright. Update references.
12276 * tui/tui-winsource.c: Update references.
12277 * tui/tui-win.c: Update references.
12278 * tui/tui-layout.c: Update references.
12279 * tui/tui-hooks.c: Update copyright, update references.
12280 * tui/tui.c: Update copyright, update references.
12281 * tui/tui-disasm.c: Update references.
12282
5d51ca54
DC
122832004-01-28 David Carlton <carlton@kealia.com>
12284
12285 * dwarf2read.c (add_partial_structure): Use demangled name if
12286 namespace equals "".
12287
086ed43d
JB
122882004-01-27 Jim Blandy <jimb@redhat.com>
12289
12290 Clean up misapplied patch:
12291 * dwarf2read.c (determine_prefix): Change one of the two forward
12292 declarations for 'determine_prefix_aux' to a declaration for this.
12293 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
12294 argument to 'die_specification'.
12295
2a35147e
JB
12296 * dwarf2read.c (read_func_scope): Re-indent comment.
12297
a355c7de 122982004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 12299
a355c7de
AC
12300 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
12301 b->exp to NULL after freeing so that error during re-parsing or
12302 evaluation of expressions associated with breakpoint don't
12303 eventually lead to re-freeing of storage.
12304 Committed by Andrew Cagney.
12305
63ff5125
AC
123062004-01-27 Andrew Cagney <cagney@redhat.com>
12307
12308 * source.c (ambiguous_line_spec): Delete undefined declaration.
12309 * m32r-rom.c (m32r_set_board_address): Delete unused function.
12310 (m32r_set_server_address, m32r_set_download_path): Ditto.
12311 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
12312
e142c38c
DJ
123132004-01-27 Daniel Jacobowitz <drow@mvista.com>
12314
12315 * dwarf2read.c: Update calls to changed and renamed functions, and
12316 references to moved variables.
12317
12318 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
12319 language, language_defn, list_in_scope, and ftypes members.
12320 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
12321 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
12322 (baseaddr): Remove globals.
12323
12324 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
12325 (set_cu_language, die_is_declaration, die_specification)
12326 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
12327 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
12328 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
12329 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
12330
12331 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
12332 cu.list_in_scope. Don't initialize cu_header_offset.
12333 (add_partial_symbol): Add local baseaddr.
12334 (psymtab_to_symtab_1): Add local baseaddr. Use
12335 objfile->section_offsets for consistency. Don't initialize
12336 cu_header_offset; do initialize cu.header.offset and
12337 cu.list_in_scope.
12338 (read_file_scope, read_func_scope, read_lexical_block_scope)
12339 (dwarf_decode_lines, new_symbol): Add local baseaddr.
12340
c6e06ede
MC
123412004-01-27 Michael Chastain <mec.gnu@mindspring.com>
12342
fb328ecc 12343 * PROBLEMS: Add gdb/1516.
c6e06ede 12344
48184fd4
AC
123452003-12-29 Robert Millan <robertmh@gnu.org>
12346
12347 Patch committed by Andrw Cagney.
12348 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
12349 * configure.tgt: Match knetbsd*-gnu.
12350
c1321b30
AC
123512004-01-26 Andrew Cagney <cagney@redhat.com>
12352
f3699be3
AC
12353 * breakpoint.c (catch_command_1): Delete #ifdef code.
12354 (catch_fork_command_1): Delete #ifdef wrapper.
12355 (catch_exec_command_1): Ditto.
12356 (catch_load_command_1): Ditto.
12357 (catch_unload_command_1): Ditto.
12358
c1321b30
AC
12359 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
12360 (catch_breakpoint): Delete #if0ed function.
12361 (disable_catch_breakpoint): Ditto.
12362 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
12363 (disable_catch, enable_catch, delete_catch): Ditto.
12364
b4501125
AC
123652004-01-26 Andrew Cagney <cagney@redhat.com>
12366
12367 * remote.c (echo_check, quit_flag): Delete variables.
12368 (cisco_kernel_mode): Delete variable.
12369 (minitelnet_return, tty_input, escape_count): Delete variables.
12370 (remote_cisco_mode): Delete variable.
12371 (remote_cisco_open, remote_cisco_close): Delete function.
12372 (remote_cisco_mourn, remote_cisco_wait): Delete function.
12373 (init_remote_cisco_ops): Delete function.
12374 (_initialize_remote): Do not install "remote cisco" code.
12375 (read_frame): Delete cisco specific code.
12376 (remote_info_process): Delete function.
12377 (remote_wait): Delete cisco specific code.
12378 (remote_cisco_section_offsets): Delete function.
12379 (remote_cisco_objfile_relocate): Delete function.
12380 (remote_async_wait): Delete cisco specific code.
12381 (minitelnet, readtty, readsocket): Delete function.
12382
74055713
AC
123832004-01-26 Andrew Cagney <cagney@redhat.com>
12384
12385 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
12386 comments mentioning extract_returned_value_address.
12387 * infcmd.c (print_return_value): Update. Add comments on
12388 extract_returned_value_address.
12389 * stack.c (return_command): Add comments on
12390 extract_returned_value_address.
12391 * values.c: Update comment.
12392 * m32r-tdep.c: Update comment.
12393 * sparc-tdep.c: Update comment.
12394 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
12395 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12396 * sh64-tdep.c (sh64_gdbarch_init): Update.
12397 * sh-tdep.c (sh_gdbarch_init): Update.
12398 * s390-tdep.c (s390_gdbarch_init): Update.
12399 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12400 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
12401 * m68k-tdep.c (m68k_gdbarch_init): Update.
12402 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12403 * m32r-tdep.c (m32r_gdbarch_init): Update.
12404 * ia64-tdep.c (ia64_gdbarch_init): Update.
12405 * h8300-tdep.c (h8300_gdbarch_init): Update.
12406 * frv-tdep.c (frv_gdbarch_init): Update.
12407 * arm-tdep.c (arm_gdbarch_init): Update.
12408 * alpha-tdep.c (alpha_gdbarch_init): Update.
12409
a67af2b9
AC
124102004-01-26 Andrew Cagney <cagney@redhat.com>
12411
12412 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
12413 SYMBOL_LOCATION_FUNCS
12414 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
12415 "struct symbol_ops".
12416 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
12417 type to "struct symbol_ops".
12418 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
12419 (struct symbol): Replace ".aux_value.loc.funcs" and
12420 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
12421 (SYMBOL_OBJFILE): Delete macro.
12422 (SYMBOL_LOCATION_FUNCS): Delete macro.
12423 (SYMBOL_LOCATION_BATON): Update.
12424 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
12425 intead of SYMBOL_LOCATION_FUNCS.
12426 * ax-gdb.c (gen_var_ref): Ditto.
12427 * printcmd.c (address_info): Ditto.
12428 * findvar.c (read_var_value): Ditto.
12429 (symbol_read_needs_frame): Ditto.
12430
c034e007
AC
124312004-01-26 Andrew Cagney <cagney@redhat.com>
12432
12433 * dwarf2read.c (read_func_scope): Document frame-base hack.
12434
bb472c1e
MK
124352004-01-25 Mark Kettenis <kettenis@gnu.org>
12436
12437 * infcmd.c (print_return_value): Plug memory leak; delete
12438 ui_stream object. Rename argument `structure_return' to
12439 `struct_return'.
12440
c8e737d5
MK
124412004-01-25 Mark Kettenis <kettenis@gnu.org>
12442
f941662f
MK
12443 * infcmd.c (print_return_value): Wrap long lines.
12444 (finish_command_continuation, finish_command): Remove unused
12445 variable `funcaddr'. Fix some coding-standards problems.
12446
c558d81a 12447 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 12448 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
12449 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
12450 TDEP->fpregset to zero.
12451
bf1e5861 12452 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
12453 floating-point registers for traditional NetBSD core files.
12454 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
12455 TDEP->sizeof_fpregset here.
12456
4c72d57a
MK
124572004-01-25 Mark Kettenis <kettenis@gnu.org>
12458
566626fa
MK
12459 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
12460 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
12461 function with code split out from
12462 sparc32nbsd_sigcontext_frame_cache.
12463 (sparc32nbsd_sigcontext_frame_cache): Use
12464 sparc32nbsd_sigcontext_saved_regs.
12465 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
12466 OpenBSD.
12467 * sparcobsd-tdep.c: New file.
12468 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
12469 (sparcobsd-tdep.o): New dependency.
12470 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
12471 * config/sparc/obsd.mt: New file.
12472
4c72d57a
MK
12473 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
12474 TDEP->fpregset to be initialized to enable core file register
12475 sets.
12476
7e5e9f88
MK
124772004-01-24 Mark Kettenis <kettenis@gnu.org>
12478
f0f207fd 12479 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
12480 Add opaque declarations.
12481 (sparc64nbsd_sigcontext_saved_regs): New prototype.
12482 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
12483 function with code split out from
12484 sparc64nbsd_sigcontext_frame_cache.
12485 (sparc64nbsd_sigcontext_frame_cache): Use
12486 sparc64nbsd_sigcontext_saved_regs.
12487 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
12488 OpenBSD.
12489 * sparc64obsd-tdep.c: New file.
12490 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
12491 (sparc64obsd-tdep.o): New dependency.
12492 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
12493 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
12494 * config/sparc/obsd64.mt: New file.
12495
690668cc
MK
12496 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
12497 read the instruction at PC.
12498
7e5e9f88
MK
12499 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
12500 value of GDB_OSABI_DEFAULT.
12501 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
12502 instead of GDB_OSABI_NETBSD_AOUT.
12503
68b6dce9
NR
125042004-01-24 Nick Roberts <nick@nick.uklinux.net>
12505
12506 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
12507 copyright.
12508
080ce8c0
AC
125092004-01-23 Andrew Cagney <cagney@redhat.com>
12510
12511 * printcmd.c (display_command): Replace tui_set_display call with
12512 tui_set_layout_for_display_command.
12513 * tui/tui.h (enum tui_win_type): Define.
12514 (tui_set_layout): Delete declaration.
12515 (tui_set_layout_for_display_command): Rename set_tui_layout.
12516 * tui/tui-data.h (enum tui_layout_type): Define.
12517 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
12518 "tui.h".
12519 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
12520 (tui_default_win_height): Rename tuiDefaultWinHeight.
12521 (tui_default_win_viewport_height): Rename
12522 tuiDefaultWinViewportHeight.
12523 (tui_set_layout): RenametuiSetLayout.
12524 * tui/tui-layout.c: Update references.
12525 * tui/tui.c: Update references.
12526 * tui/tui-disasm.c: Update references.
12527
b368761e
DC
125282004-01-23 David Carlton <carlton@kealia.com>
12529
12530 Partial workaround for PR c++/1511:
12531 * cp-namespace.c: Include frame.h.
12532 (cp_lookup_transparent_type): New
12533 (cp_lookup_transparent_type_loop): New.
12534 * cp-support.h: Declare cp_lookup_transparent_type.
12535 * symtab.c (basic_lookup_transparent_type): Renamed from
12536 lookup_transparent_type.
12537 (lookup_transparent_type): Replace old body by a call to
12538 current_language->la_lookup_transparent_type.
12539 * symtab.h: Update copyright. Declare
12540 basic_lookup_transparent_type.
12541 * language.h: Update copyright.
12542 (struct language_defn): Add la_lookup_transparent_type.
12543 * language.c: Update copyright.
12544 (unknown_language_defn): Add basic_lookup_transparent_type.
12545 (auto_language_defn): Add basic_lookup_transparent_type.
12546 (local_language_defn): Add basic_lookup_transparent_type.
12547 * ada-lang.c: Update copyright.
12548 (ada_language_defn): Add basic_lookup_transparent_type.
12549 * c-lang.c: Update copyright.
12550 (c_language_defn): Add basic_lookup_transparent_type.
12551 (cplus_language_defn): Add basic_lookup_transparent_type.
12552 (asm_language_defn): Add basic_lookup_transparent_type.
12553 (minimal_language_defn): Add basic_lookup_transparent_type.
12554 * f-lang.c: Update copyright.
12555 (f_language_defn): Add basic_lookup_transparent_type.
12556 * jv-lang.c: Update copyright.
12557 (java_language_defn): Add basic_lookup_transparent_type.
12558 * m2-lang.c: Update copyright.
12559 (m2_language_defn): Add basic_lookup_transparent_type.
12560 * objc-lang.c: Update copyright.
12561 (objc_language_defn): Add basic_lookup_transparent_type.
12562 * p-lang.c: Update copyright.
12563 (p_language_defn): Add basic_lookup_transparent_type.
12564 * scm-lang.c: Update copyright.
12565 (scm_language_defn): Add basic_lookup_transparent_type.
12566 * Makefile.in (cp-namespace.o): Depend on frame.h.
12567
fdde2d81
DC
125682004-01-23 David Carlton <carlton@kealia.com>
12569
12570 Patch for PR c++/1520:
12571 * dwarf2read.c (read_func_scope): Set processing_current_prefix
12572 properly if we have a specification die.
12573 (determine_prefix_aux): Rename from determine_prefix.
12574 (determine_prefix): Like the old determine_prefix, but never
12575 returns NULL.
12576
5b828b6b
TR
125772004-01-23 Theodore A. Roth <troth@openavr.org>
12578
12579 * avr-tdep.c: Update copyright.
12580 (avr_iaddr_p): Delete unused function.
12581 (avr_saddr_p): Delete unused function.
12582
a1b8c067
DC
125832004-01-23 David Carlton <carlton@kealia.com>
12584
12585 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
12586 Fix for PR symtab/1534.
12587
f2cab569
MK
125882004-01-23 Mark Kettenis <kettenis@gnu.org>
12589
12590 * NEWS (New native configurations): Mention OpenBSD/sparc and
12591 OpenBSD/sparc64.
12592 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
12593 * configure.host: Likewise.
12594 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
12595 handler for OpenBSD.
12596 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
12597
642d8300
MK
125982004-01-22 Mark Kettenis <kettenis@gnu.org>
12599
89aac506
MK
12600 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
12601 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
12602
36662fde
MK
12603 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
12604 * cli/cli-cmds.c (shell_escape): Likewise.
12605
642d8300
MK
12606 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
12607 OpenBSD .note.openbsd.ident sections.
12608
fae299cd
DC
126092004-01-22 David Carlton <carlton@kealia.com>
12610
12611 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
12612 get_scope_pc_bounds.
12613 (read_file_scope): Ditto.
12614 (get_scope_pc_bounds): New function, produced by extracting code
12615 from the above two functions, consolidating it, and adding support
12616 for DW_TAG_namespace.
12617
a49d618c
MK
126182004-01-22 Mark Kettenis <kettenis@gnu.org>
12619
12620 * osabi.c (MAX_NOTESZ): New define.
12621 (check_note): New function.
12622 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
12623 check_note.
12624
fe61caab
RM
126252004-01-21 Roland McGrath <roland@redhat.com>
12626
12627 * MAINTAINERS (write after approval): Add myself.
12628
ec145965
EZ
126292004-01-21 Eli Zaretskii <eliz@gnu.org>
12630
12631 * utils.c (init_page_info): Move declarations of `rows' and
12632 `cols' before the __GO32__-specific code. Move the closing brace
12633 outside the #ifdef __GO32__..#endif block.
12634 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
12635
877522db
PB
126362004-01-21 Paul Brook <paul@codesourcery.com>
12637
12638 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
12639 BPSTAT_WHAT_CHECK_SHLIBS.
12640
dbf5be1c
PB
126412004-01-21 Paul Brook <paul@codesourcery.com>
12642
12643 * MAINTAINERS: Add myself to write-after-approval.
12644
81f08b92
AC
126452004-01-20 Andrew Cagney <cagney@redhat.com>
12646
5a1efed7
AC
12647 * ax-gdb.c (print_axs_value): Delete unused function.
12648 * jv-lang.c (java_lookup_type): Delete unused function.
12649 * cli/cli-dump.c (dump_filetype): Delete unused function.
12650 * remote-mips.c (remote_mips_insert_hw_breakpoint)
12651 (remote_mips_remove_hw_breakpoint): Delete unused functions.
12652 (mips_getstring): Delete unused function.
12653 (pmon_insert_breakpoint): Delete #if0ed function.
12654 (PMON_MAX_BP): Delete #if0ed MACRO.
12655 (mips_pmon_bp_info): Delete #if0ed variable.
12656 (pmon_remove_breakpoint): Delete #if0ed function.
12657 * monitor.c (monitor_write_even_block): Delete unused function.
12658 (monitor_write_memory_block): Delete #if0ed code.
12659 * dink32-rom.c (dink32_load): Delete unused function.
12660 (_initialize_dink32_rom): Delete #if0ed code.
12661 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
12662
b0a30fce
AC
12663 * tui/tui-command.c: Update references.
12664 * tui/tui-io.c: Update references.
12665 * tui/tui-command.h: Update copyright.
12666 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
12667
81f08b92
AC
12668 * source.c (ambiguous_line_spec): Delete never-defined function.
12669 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
12670 * gdbtypes.c (add_name, add_mangled_type): Ditto.
12671 * cli/cli-cmds.c (validate_comname): Ditto.
12672
65f05602
AC
12673 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
12674 "tui-data.h".
12675 (tui_set_disassem_content): Rename tuiSetDisassemContent.
12676 (tui_show_disassem): Rename tuiShowDisassem.
12677 (tui_show_disassem_and_update_source): Rename
12678 tuiVerticalDisassemScroll.
12679 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
12680 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
12681 * tui/tui.h: Update copyright.
12682 (enum tui_status): Define.
12683 * tui/tui-data.h (enum tui_scroll_direction): Define.
12684 * tui/tui-disasm.c: Update copyright. Update references.
12685 * tui/tui-winsource.c: Update copyright. Update references.
12686 * tui/tui-win.c: Update references.
12687 * tui/tui-layout.c: Update references.
12688
6bb0384f
AC
126892004-01-20 Andrew Cagney <cagney@redhat.com>
12690
12691 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
12692 sym2 to start of block.
12693
9175c9a3
MC
126942004-01-19 Michael Chastain <mec.gnu@mindspring.com>
12695
12696 * MAINTAINERS: Delete mmalloc.
12697 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
12698 * NEWS: Mention removal of --with-malloc.
12699 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
12700 * config.in: Regenerate.
12701 * configure: Regenerate.
6bb0384f
AC
12702 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
12703 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
12704 * gdbinit.in: Remove mmalloc.
12705 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
12706 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
12707 * config/i386/go32.mh: Likewise.
12708 * config/i386/interix.mh: Likewise.
12709 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
12710
4fcef00a
JJ
127112004-01-19 Jeff Johnston <jjohnstn@redhat.com>
12712
12713 * linespec.c (decode_variable, symtab_from_filename): Call
12714 error_silent with error message instead of throwing an exception
12715 directly.
12716 * defs.h (error_silent, error_output_message): Add prototypes.
12717 (catch_exceptions_with_msg): Ditto.
12718 * utils.c (error_silent, error_output_message): New functions.
12719 * top.c (catch_exceptions_with_msg): New function.
12720
8e94b928
NR
127212004-01-20 Nick Roberts <nick@nick.uklinux.net>
12722
12723 * mi/mi-cmds.h (enum print_values): Add definition.
12724
12725 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
12726 type and value for simple data types and just the name and type
12727 for complex ones, if required.
12728
12729 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
12730 children, if required.
12731
a02d6af8
KB
127322004-01-19 Kevin Buettner <kevinb@redhat.com>
12733
12734 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
12735 unused declarations.
12736
78a4a9b9
AC
127372004-01-19 Andrew Cagney <cagney@redhat.com>
12738
12739 * top.h (mapped_symbol_files): Delete declaration.
12740 * main.c (captured_main): Delete option "m" and "mapped".
12741 * objfiles.c (mapped_symbol_files): Delete variable.
12742 * symfile.c (symbol_file_command): Delete mmap code.
12743 (symbol_file_add_with_addrs_or_offsets): Ditto.
12744 (add_symbol_file_command, reread_separate_symbols): Ditto.
12745 * objfiles.h (OBJF_MAPPED): Delete.
12746 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
12747 (free_objfile) [USE_MMALLOC]: Ditto.
12748 (open_existing_mapped_file): Delete function.
12749 (open_mapped_file): Delete function.
12750 (map_to_file): Delete function.
12751
2dbd5e30
KB
127522004-01-19 Kevin Buettner <kevinb@redhat.com>
12753
12754 * infrun.c (step_into_function): Account for possible breakpoint
12755 adjustment when computing ``stop_func_start''.
12756
437b434f
KB
127572004-01-19 Kevin Buettner <kevinb@redhat.com>
12758
12759 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
12760 the region size against the size of a pointer, not the size of
12761 a register as given by DEPRECATED_REGISTER_SIZE.
12762
55fb0713
AC
127632004-01-19 Andrew Cagney <cagney@redhat.com>
12764
12765 * tui/tui-regs.h: Include "tui-data.h".
12766 (tuiFirstRegElementNoInLine): Delete declaration.
12767 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
12768 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
12769 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
12770 (tui_calculate_regs_column_count): Rename
12771 tuiCalculateRegsColumnCount.
12772 (tui_check_register_values): Rename tuiCheckRegisterValues.
12773 (tui_show_registers): Rename tuiShowRegisters.
12774 (tui_display_registers_from_line): Rename
12775 tuiDisplayRegistersFromLine.
12776 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
12777 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
12778 (tui_first_reg_element_no_inline): Rename
12779 tuiFirstRegElementNoInLine.
12780 * tui/tui-data.h: Update copyright.
12781 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
12782 * tui/tui-windata.c: Update copyright, update references.
12783 * tui/tui-regs.c: Update copyright, update references.
12784 * tui/tui-win.c: Update copyright, update references.
12785 * tui/tui-layout.c: Update copyright, update references.
fe61caab 12786
cebe9500
AC
127872004-01-18 Andrew Cagney <cagney@redhat.com>
12788
bcdf1568
AC
12789 * tui/tui-io.c: Update copyright.
12790 (key_is_end_sequence, key_is_backspace): New functions.
12791 (key_is_command_char, key_is_start_sequence): New function.
12792 (tui_getc): Update references.
12793 * tui/tui-io.h: Update copyright.
12794 (m_tuiStartNewLine): Delete macro.
12795 (m_isBackspace, m_isDeleteChar): Delete macros.
12796 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
12797 (m_isNextPage, m_isPrevPage): Delete macros.
12798 (m_isLeftArrow, m_isRightArrow): Delete macros.
12799 (m_isXdbStyleCommandChar): Delete macro.
12800 (key_is_start_sequence): Declare, replace m_isStartSequence.
12801 (key_is_end_sequence): Declare, replace m_isEndSequence.
12802 (key_is_backspace): Declare ,replace m_isBackspace.
12803 (key_is_command_char): Declare, replace m_isCommandChar.
12804 * tui/tui-command.c: Update copyright.
12805 (tuiDispatchCtrlChar): Update references.
12806
130d87e6
AC
12807 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
12808 tuiSourceWin.h.
12809
d7b2e967
AC
12810 * tui/tui-command.c: Rename tui/tuiCommand.c.
12811 * tui/tui-command.h: Rename tui/tuiCommand.h.
12812 * tui/tui-data.c: Rename tui/tuiData.c.
12813 * tui/tui-data.h: Rename tui/tuiData.h.
12814 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
12815 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
12816 * tui/tui-io.c: Rename tui/tuiIO.c.
12817 * tui/tui-io.h: Rename tui/tuiIO.h.
12818 * tui/tui-layout.c: Rename tui/tuiLayout.c.
12819 * tui/tui-layout.h: Rename tui/tuiLayout.h.
12820 * tui/tui-regs.c: Rename tui/tuiRegs.c.
12821 * tui/tui-regs.h: Rename tui/tuiRegs.h.
12822 * tui/tui-source.c: Rename tui/tuiSource.c.
12823 * tui/tui-source.h: Rename tui/tuiSource.h.
12824 * tui/tui-stack.c: Rename tui/tuiStack.c.
12825 * tui/tui-stack.h: Rename tui/tuiStack.h.
12826 * tui/tui-win.c: Rename tui/tuiWin.c.
12827 * tui/tui-win.h: Rename tui/tuiWin.h.
12828 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
12829 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
12830 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
12831 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
12832 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
12833 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
12834 * tui/tui-file.c: Update includes.
12835 * tui/tui-hooks.c: Update includes.
12836 * tui/tui-interp.c: Update includes.
12837 * tui/tui.c: Update includes.
12838 * Makefile.in: Update all tui/ dependencies.
12839 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
12840
b2100910
AC
12841 * Makefile.in: Update copyright. Update dependencies.
12842
cebe9500
AC
12843 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
12844 problem.
12845
c6f0559b
AC
128462004-01-18 Andrew Cagney <cagney@redhat.com>
12847
43e9390b
AC
12848 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
12849 instead of register_gdbarch_init.
12850
c6f0559b
AC
12851 * remote-sds.c (tohex): Delete unused function. Update copyright.
12852 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
12853 * v850-tdep.c (v850_register_virtual_size): Ditto.
12854 * target.c (normal_target_post_startup_inferior): Ditto.
12855 * source.c (ambiguous_line_spec): Ditto.
12856 * remote.c (adapt_remote_get_threadinfo): Ditto.
12857 * mi/mi-out.c (out_field_fmt): Ditto.
12858 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
12859 (output_control_change_notification): Ditto.
12860 * m68k-tdep.c (m68k_register_byte): Ditto.
12861 (m68k_remote_breakpoint_from_pc): Ditto.
12862 * ui-out.c (init_ui_out_state): Delete unused declaration.
12863 * stabsread.c (search_value): Ditto.
12864 * mi/mi-cmd-env.c (env_cli_command): Ditto.
12865 * maint.c (print_section_table): Ditto.
12866 * infrun.c (set_follow_fork_mode_command): Ditto.
12867
a8504492
MK
128682004-01-18 Mark Kettenis <kettenis@gnu.org>
12869
12870 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
12871 DW_CFA_def_cfa_exporession. Add support for
12872 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
12873 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
12874
0bd8997e
AC
128752004-01-18 Andrew Cagney <cagney@redhat.com>
12876
12877 * ocd.c: Update copyright.
12878 (bdm_read_register_command): Delete unused function.
12879 (_initialize_remote_ocd): Delete commented out reference.
12880 (get_quoted_char, reset_packet): Delete #if0ed function.
12881 (output_packet, put_quoted_char): Delete #if0ed function.
12882 (stu_put_packet, stu_get_packet): Delete #if0ed function.
12883 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
12884 (BDM_BREAKPOINT): Delete #if0ed macro.
12885 (remote_timeout): Delete #if0ed variable.
12886
31bb40e4
MK
128872004-01-18 Mark Kettenis <kettenis@gnu.org>
12888
12889 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
12890 (core-sol2.o): Remove dependency.
12891 * core-sol2.c: Remove file.
12892
887432a5
AC
128932004-01-17 Andrew Cagney <cagney@redhat.com>
12894
12895 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
12896 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
12897 enums.
12898
29182b13
DJ
128992004-01-17 Daniel Jacobowitz <drow@mvista.com>
12900
12901 * remote.c: Update copyright years.
12902
2963ee1d
DJ
129032004-01-17 Daniel Jacobowitz <drow@mvista.com>
12904
12905 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
12906
79d45cd4
AC
129072004-01-17 Andrew Cagney <cagney@redhat.com>
12908
ee300cd4
AC
12909 * mdebugread.c: Update copyright.
12910 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
12911 (parse_type, parse_procedure): Ditto.
12912 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
12913
fcacc9c2
AC
12914 * cris-tdep.c (cris_store_struct_return): Put back accidently
12915 deleted function.
12916
79d45cd4
AC
12917 * gdbarch.sh: Update copyright year.
12918 * gdbarch.h, gdbarch.c: Re-generate.
12919
b263358a
DJ
129202004-01-17 Daniel Jacobowitz <drow@mvista.com>
12921
12922 Suggested by George Anzinger.
12923 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
12924 correct stack offset. Include unknown opcode numbers in the error
12925 message.
12926
931aecf5
AC
129272004-01-17 Andrew Cagney <cagney@redhat.com>
12928
12929 * x86-64-tdep.c (x86_64_init_abi): No need to clear
12930 extract_struct_value_address, i386 does not set it.
12931 * sparc64-tdep.c (sparc64_init_abi): Do not set
12932 extract_struct_value_address, never called.
12933 (sparc64_extract_struct_value_address): Delete function.
12934 * m68hc11-tdep.c: Update copyright.
12935 (m68hc11_gdbarch_init): Delete redundant assignment of
12936 extract_struct_value_address.
12937 * i386-tdep.c: Update copyright.
12938 (i386_gdbarch_init): Do not set extract_struct_value_address,
12939 never called.
12940 (i386_extract_struct_value_address): Delete function.
12941 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
12942 extract_struct_value_address, never called.
12943 (sparc32_extract_struct_value_address): #if 0 function. Add
12944 comments explaining its future.
12945
756fe439
DJ
129462004-01-17 Daniel Jacobowitz <drow@mvista.com>
12947
12948 * arm-tdep.c (arm_write_pc): New function.
12949 (arm_gdbarch_init): Call set_gdbarch_write_pc.
12950
e74f0f02
DJ
129512004-01-17 Daniel Jacobowitz <drow@mvista.com>
12952
12953 * breakpoint.c (must_shift_inst_regs): Delete.
12954 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
12955 and SHIFT_INST_REGS.
12956 * infcmd.c (step_1, step_1_continuation): Delete references to
12957 SHIFT_INST_REGS.
12958 * infrun.c (keep_going): Likewise.
12959 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
12960 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
12961
b6cb9035
AC
129622004-01-17 Andrew Cagney <cagney@redhat.com>
12963
444a1e2e
AC
12964 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12965 * gdbarch.h, gdbarch.c: Re-generate.
12966 * infcmd.c (print_return_value): Delete reference to
12967 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
12968
def7e6ed
AC
12969 * cris-tdep.c (cris_gdbarch_init): Do not set
12970 deprecated_extract_struct_value_address.
12971
07be497a
AC
12972 * xstormy16-tdep.c: Update copyright.
12973 (xstormy16_extract_struct_value_address): Update to current
12974 extract struct value address interface.
12975 (xstormy16_gdbarch_init): Set extract_struct_value_address.
12976 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
12977 current extract struct value address interface.
12978 (sh64_gdbarch_init): Set extract_struct_value_address.
12979
6b4d5c91
AC
12980 * cris-tdep.c: Update copyright.
12981 (cris_extract_struct_value_address): Delete function.
12982 (struct_return_address): Delete variable.
12983 (cris_store_struct_return): Do not set struct_return_address.
12984
464e0365
AC
12985 * mcore-tdep.c: Update copyright.
12986 (mcore_extract_struct_value_address): Delete function. Update
12987 comments.
12988 (mcore_gdbarch_init): Update.
12989 * mn10300-tdep.c: Update copyright.
12990 (mn10300_extract_struct_value_address): Delete function.
12991 (mn10300_gdbarch_init): Update.
12992 * v850-tdep.c: Update copyright.
12993 (v850_extract_struct_value_address): Delete.
12994 (v850_gdbarch_init): Update.
12995 * ns32k-tdep.c: Update copyright.
12996 (ns32k_extract_struct_value_address): Delete.
12997 (ns32k_gdbarch_init): Update.
12998 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
12999 (hppa_gdbarch_init): Update.
13000 * vax-tdep.c: Update copyright.
13001 (vax_extract_struct_value_address): Delete.
13002 (vax_gdbarch_init): Update.
13003
afb18d0f
AC
13004 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
13005 * gdbarch.h, gdbarch.c: Re-generate.
13006 * procfs.c (procfs_fetch_registers): Delete reference to
13007 DEPRECATED_NPC_REGNUM.
13008 (procfs_store_registers): Ditto.
13009 * regcache.c (generic_target_write_pc): Simplify.
13010 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
13011
a698f53e
AC
13012 * core-sol2.c (fetch_core_registers): Replace
13013 DEPRECATED_NPC_REGNUM with equivalent tdep value.
13014
adc11376
AC
13015 * hppa-tdep.c: Update copyright year.
13016 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
13017 NPC_REGNUM.
13018 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
13019
b6cb9035
AC
13020 * mips-tdep.c (mips_write_pc): New function.
13021 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
13022 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
13023 (mips_find_saved_regs, mips_software_single_step: Ditto.
13024 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
13025 mips_init_extra_frame_info, mips_pop_frame): Ditto.
13026
6d82d43b
AC
130272004-01-17 Andrew Cagney <cagney@redhat.com>
13028
13029 * mips-tdep.c: Re-indent. Group functions by ABI.
13030
71bd6bd4
AC
130312004-01-17 Andrew Cagney <cagney@redhat.com>
13032
13033 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
13034 * gdbarch.c: Re-generate.
13035 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13036 DECR_PC_AFTER_BREAK to zero.
13037 * vax-tdep.c (vax_gdbarch_init): Ditto.
13038 * v850-tdep.c (v850_gdbarch_init): Ditto.
13039 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13040 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13041 * sh-tdep.c (sh_gdbarch_init): Ditto.
13042 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13043 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13044 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13045 * mips-tdep.c (mips_gdbarch_init): Ditto.
13046 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13047 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13048 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13049 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13050 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
13051 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13052 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13053 * frv-tdep.c (frv_gdbarch_init): Ditto.
13054 * cris-tdep.c (cris_gdbarch_init): Ditto.
13055 * avr-tdep.c (avr_gdbarch_init): Ditto.
13056 * arm-tdep.c (arm_gdbarch_init): Ditto.
13057 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
13058
a02abb62
JB
130592004-01-17 J. Brobecker <brobecker@gnat.com>
13060
13061 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
13062 Delete, no longer used.
13063 (read_subrange_type): New function, mostly extracted from
13064 read_array_type().
13065 (read_array_type): Replace extracted code by call to
13066 read_subrange_type().
13067 (dwarf2_get_attr_constant_value): New function.
13068 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
13069 (add_partial_symbol): Likewise.
13070 (process_die): Likewise.
13071 (new_symbol): Likewise.
13072 (read_type_die): Likewise.
13073
cf5b2f1b
AC
130742004-01-16 Andrew Cagney <cagney@redhat.com>
13075
13076 * symfile.c: Update copyright year.
13077 (compare_symbols): Delete unused function.
13078 * stabsread.c: Update copyright year.
13079 (lrs_general_complaint): Delete unused function.
13080 (ref_search_value): Ditto.
13081 (get_substring): Delete declaration.
13082 * sh64-tdep.c: Update copyright year.
13083 (sh64_get_gdb_regnum): Delete unused function.
13084 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
13085 Delete unused function.
13086
d33b9831
MK
130872004-01-17 Mark Kettenis <kettenis@gnu.org>
13088
13089 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
13090 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
13091
7aea86e6
AC
130922004-01-16 Andrew Cagney <cagney@redhat.com>
13093
13094 Changes from Peter Schauer.
13095 * rs6000-tdep.c: Update copyright year.
13096 (rs6000_push_dummy_call): Update the stack pointer before
13097 accessing the corresponding stack region.
13098 * rs6000-nat.c: Update copyright year.
13099 (set_host_arch): Set "info.abfd" to "exec_bfd".
13100
26b0da32
MK
131012004-01-15 Mark Kettenis <kettenis@gnu.org>
13102
13103 * blockframe.c: Update copyright year.
13104 (inside_entry_func): Don't treat a zero PC specially.
13105
86fbe6cc
EZ
131062004-01-14 Elena Zannoni <ezannoni@redhat.com>
13107
13108 * gcore.c (gcore_copy_callback): Use paddr_d to print size
13109 variable.
13110 (gcore_create_callback): Ditto. Skip any memory segment that has
13111 no permissions set.
13112
63d06c5c
DC
131132004-01-14 David Carlton <carlton@kealia.com>
13114
13115 Change symbols for C++ nested types to contain the fully qualified
13116 name, if possible. (At least in the DWARF-2 case.) Partial fix
13117 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
13118 c++/895.
13119 * c-exp.y (qualified_type): Handle types nested within classes.
13120 * cp-namespace.c: Update comments.
13121 (cp_set_block_scope): Delete #if 0.
13122 (cp_lookup_nested_type): Handle types nested within classes.
13123 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
13124 when appropriate.
13125 (add_partial_symbol): Add the name of the enclosing namespace to
13126 types.
13127 (pdi_needs_namespace): New.
13128 (add_partial_namespace): Tweak comment.
13129 (add_partial_structure): New.
13130 (psymtab_to_symtab_1): Initialize processing_current_prefix
13131 here...
13132 (process_die): instead of here.
13133 (read_structure_scope): Try to figure out the name of the class or
13134 namespace that the structure might be defined within.
13135 (read_enumeration): Generate fully-qualified names, if possible.
13136 (read_namespace): Don't set name to NULL.
13137 (die_specification): New.
13138 (new_symbol): Generate fully-qualified names for types.
13139 (read_type_die): Determine appropriate prefix.
13140 (determine_prefix): New.
13141 (typename_concat): New.
13142 (class_name): New.
13143 * valops.c (value_aggregate_elt): Pass NOSIDE to
13144 value_struct_elt_for_reference.
13145 (value_struct_elt_for_reference): Make static, add NOSIDE
13146 parameter, call value_maybe_namespace_elt as a last resort.
13147 (value_namespace_elt): Break out code into
13148 value_maybe_namespace_elt.
13149 (value_maybe_namespace_elt): New.
13150
87783b8b
AC
131512004-01-12 Andrew Cagney <cagney@redhat.com>
13152
13153 * mips-tdep.c (mips_convert_register_p): Handle both raw and
13154 cooked floating-point registers.
13155 (mips_gdbarch_init): Set convert_register_p, register_to_value,
13156 and value_to_register.
13157
6503b91e
AC
131582004-01-13 Andrew Cagney <cagney@redhat.com>
13159
13160 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
13161 * gdbarch.c: Re-generate.
13162 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13163 FUNCTION_START_OFFSET.
13164 * v850-tdep.c (v850_gdbarch_init): Ditto.
13165 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13166 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13167 * sh-tdep.c (sh_gdbarch_init): Ditto.
13168 * s390-tdep.c (s390_gdbarch_init): Ditto.
13169 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13170 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13171 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13172 * mips-tdep.c (mips_gdbarch_init): Ditto.
13173 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13174 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
13175 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13176 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13177 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13178 * i386-tdep.c (i386_gdbarch_init): Ditto.
13179 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13180 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13181 * frv-tdep.c (frv_gdbarch_init): Ditto.
13182 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
13183 * cris-tdep.c (cris_gdbarch_init): Ditto.
13184 * avr-tdep.c (avr_gdbarch_init): Ditto.
13185 * arm-tdep.c (arm_gdbarch_init): Ditto.
13186 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
13187
ea1dd7bc
DJ
131882004-01-13 Daniel Jacobowitz <drow@mvista.com>
13189
13190 * infrun.c (follow_fork_mode_ask): Remove.
13191 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
13192 (follow_fork): Simplify and remove internal error for
13193 follow_fork_mode_ask.
13194 (_initialize_infrun): Update "set follow-fork-mode" help text.
13195
0f0cffd2
AC
131962004-01-13 Andrew Cagney <cagney@redhat.com>
13197
13198 * configure.in: Update copyright year.
13199 (build_warnings): Add -Wunused-label.
13200 * configure: Re-generate.
13201
de38af99
AC
132022004-01-12 Andrew Cagney <cagney@redhat.com>
13203
954a7fba
AC
13204 * exec.h (exec_ops): Make "extern".
13205
de38af99
AC
13206 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
13207 the function is void.
13208 (mips_pseudo_register_write): Ditto.
13209
1a111ce3
AC
132102004-01-12 Andrew Cagney <cagney@redhat.com>
13211
13212 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
13213 call. Never defined.
13214 * sparc-tdep.h (struct frame_info): Add opaque declaration.
13215 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
13216 (struct sparc_gregset, struct regcache): Ditto.
13217 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
13218
48efe704
AC
132192004-01-12 Andrew Cagney <cagney@redhat.com>
13220
13221 * mi/ChangeLog: Delete file. Renamed to ...
13222 * mi/ChangeLog-1999-2003: New file.
13223 * tui/ChangeLog: Delete file. Renamed to ...
13224 * tui/ChangeLog-1998-2003: New file.
fe61caab 13225
a54124c5
MK
132262004-01-11 Mark Kettenis <kettenis@gnu.org>
13227
2ca62865
MK
13228 * sparc64nbsd-tdep.c: Include "regset.h".
13229 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
13230 Remove variables.
13231 (fetch_core_registers): Remove function.
13232 (sparc64nbsd_core_fns): Remove variable.
13233 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
13234 functions.
13235 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
13236 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
13237 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
13238
ca9d58e9
MK
13239 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
13240 sparc_extract_struct_value_address.
13241 (sparc32_gdbarch_init): Set extract_struct_value_address.
13242 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
13243 function.
13244 (sparc64_init_abi): Set extract_struct_value_address. Don't set
13245 return_value_on_stack.
13246
3cc87ec0
MK
13247 * NEWS: Mention that %cs and %ss have been added to the AMD64
13248 configurations
13249
5bf00f29
MK
13250 * frame.c: Update copyright year.
13251 (get_prev_frame): Improve comment.
13252
4f7ec84e
MK
13253 * sparc64fbsd-tdep.c: Include "regset.h".
13254 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
13255 Remove variables.
13256 (fetch_core_registers): Remove function.
13257 (sparc64fbsd_core_fns): Remove variable.
13258 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
13259 functions.
13260 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
13261 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 13262 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 13263
4e7b0cd3
MK
13264 * sparcnbsd-tdep.c: Include "regset.h".
13265 (fetch_core_registers): Remove function.
13266 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
13267 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
13268 functions.
13269 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
13270 TDEP->fpregset.
46b58ce9 13271 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 13272
a54124c5
MK
13273 * sparc-tdep.h (struct regset): Provide opaque declaration.
13274 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
13275 fpregset and sizeof_fpregset members.
13276 * sparc-tdep.c (struct regset): Provide opaque declaration.
13277 (sparc_regset_from_core_section): New function.
13278 (sparc32_gdbarch_init): Initialize TDEP->gregset,
13279 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
13280 Set regset_from_core_section when appropriate.
13281
29ff87c5
MK
132822004-01-10 Mark Kettenis <kettenis@gnu.org>
13283
79b1ab3d
MK
13284 * x86-64-tdep.c (amd64_non_pod_p): New function.
13285 (amd64_classify_aggregate): Return class memory for non-POD
13286 C++ structure types.
13287
6470d250
MK
13288 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
13289 argument. Use it to reserve a register if necessary.
13290 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
13291 amd64_push_arguments.
13292
562c50c2
MK
13293 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
13294
af233647
MK
13295 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
13296 register numbers in comments.
13297 * x86-64-tdep.h: Update copyright year.
13298 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
13299 Adjust for addition of %cs and %ss.
13300 * amd64fbsd-nat.c: Update copyright year.
13301 (reg_offset): Add register offsets for %cs and %ss.
13302 * amd64fbsd-tdep.c: Update copyright year.
13303 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
13304 (amd64fbsd_sc_reg_offset): Likewise.
13305 * x86-64-linux-nat.c: Update copyright year.
13306 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
13307 and %ss.
13308 * amd64nbsd-nat.c: Update copyright year.
13309 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
13310 * amd64nbsd-tdep.c: Update copyright year.
13311 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
13312 * x86-64-linux-tdep.c: Update copyright year.
13313 (user_to_gdb_regmap): Add mapping for %cs and %ss.
13314 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
13315 * regformats/reg-x86-64.dat: Add %cs and %ss.
13316
29ff87c5
MK
13317 * blockframe.c (inside_entry_func): Reformat. Introduce new local
13318 variables to prevent long lines. Update comments to reflect
13319 reality.
13320
38d518c9
EZ
133212004-01-09 David Carlton <carlton@kealia.com>
13322
13323 Checked in by Elena Zannoni <ezannoni@redhat.com>.
13324 * dwarf2read.c (read_namespace): Pull out name-generating code
13325 into namespace_name. Rename previous_namespace to previous_prefix
13326 and processing_current_namespace to processing_current_prefix..
13327 (namespace_name): New function.
13328 (add_partial_symbol): Substitute uses of pdi->name with
13329 actual_name.
13330 * cp-support.h: Rename processing_current_namespace to
13331 processing_current_prefix.
13332 Update copyright year.
13333 * cp-namespace.c: Rename processing_current_namespace to
13334 processing_current_prefix.
13335 Update copyright year.
fe61caab 13336
1e4728e7
AC
133372004-01-09 Andrew Cagney <cagney@redhat.com>
13338
13339 * jv-valprint.c, ser-unix.c: Add missing copyright years.
13340
c77c642a
MK
133412004-01-09 Mark Kettenis <kettenis@gnu.org>
13342
13343 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
13344 complaining.
13345 (process_one_symbol): Deal with N_PATCH stabs.
13346
b44e9041
EZ
133472004-01-09 Elena Zannoni <ezannoni@redhat.com>
13348
13349 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
13350 ifdeffed code.
13351 Update copyright year.
38d518c9 13352
eccfb640
MC
133532004-01-08 Michael Chastain <mec.gnu@mindspring.com>
13354
13355 * config/pa/tm-hppa.h: Update extern declarations for
13356 hppa32_hpux_frame_saved_pc_in_sigtramp,
13357 hppa32_hpux_frame_base_before_sigtramp, and
13358 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
13359
848c5feb
MC
133602004-01-08 Michael Chastain <mec.gnu@mindspring.com>
13361
13362 * config/pa/tm-hppah.h: Update copyright years.
13363
3cc5d663
AC
133642004-01-08 Andrew Cagney <cagney@redhat.com>
13365
13366 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
13367 (mips_o32_reg_struct_has_addr): Delete function.
13368 (mips_gdbarch_init): Update.
13369 (mips_extract_struct_value_address): Delete function.
13370
bfec0b41
JJ
133712004-01-08 David Mosberger <davidm@hpl.hp.com>
13372
13373 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
13374 reality.
13375
16e109ca
AC
133762004-01-07 Andrew Cagney <cagney@redhat.com>
13377
6214a8a1
AC
13378 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
13379 architecture's elf flags (when available).
13380
8d5838b5
AC
13381 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
13382 FPU to the start, check the MIPS FPU when looking for an old
13383 architecture.
13384 (set_mipsfpu_single_command): Update the architecture.
13385 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
13386
480d3dd2
AC
13387 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
13388 (mips_mask_address_p): Add "tdep" parameter.
13389 (show_mask_address, mips_addr_bits_remove): Update.
13390 (mips_dump_tdep): Update.
13391 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
13392 (MIPS_STACK_ARGSIZE): Delete macro.
13393 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
13394 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
13395 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
13396 (mips_dump_tdep): Update.
13397 (MIPS_SAVED_REGSIZE): Delete macro.
13398 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
13399 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
13400 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
13401 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
13402 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
13403 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
13404 (mips_pop_frame, return_value_location): Update.
13405 (mips_n32n64_return_value, mips_dump_tdep): Update.
13406
ec03c1ac
AC
13407 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
13408 MIPS ABI.
13409
16e109ca
AC
13410 * mips-tdep.c: Update copyright.
13411 (mips_gdbarch_init): Merge two code blocks handling the register
13412 name and number layout.
13413
15255275
MS
134142004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
13415
13416 * tracepoint.c (validate_actionline): Fix segv at EOF
13417
9f9057da
MC
134182004-01-07 Michael Chastain <mec.gnu@mindspring.com>
13419
13420 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
13421 properly for static fields.
13422
0127c0d3 134232004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 13424 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
13425
13426 * disasm.c: Update copyright to include 2004.
13427 (do_mixed_source_and_assembly): For uiout asm list
13428 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 13429 NULL and do so prior to loop. Only reset when we close off
0127c0d3 13430 the tuple/list. Move check for whether to close off the
fe61caab 13431 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
13432 on each loop iteration.
13433
5269965e
AC
134342004-01-05 Andrew Cagney <cagney@redhat.com>
13435
54f1137d
AC
13436 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
13437 should be a switch case and not a label.
13438 * mips-tdep.c (mips32_next_pc): Delete unused labels
13439 "greater_equal_branch" and "less_zero_branch".
13440 * jv-valprint.c (java_print_value_fields): Delete unused label
13441 "flush_it".
13442
5269965e
AC
13443 * target.c (unpush_target): Only close a target that is in the
13444 target stack.
13445
dbc22fa1
MK
134462004-01-05 Mark Kettenis <kettenis@gnu.org>
13447
9515395e
MK
13448 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
13449 address from [sp + 64] instead of %o2.
13450
dbc22fa1
MK
13451 * frame.c (get_prev_frame): Don't try to unwind the PC. This
13452 fixes PR backtrace/1476.
13453
5439edaa
AC
134542004-01-05 Andrew Cagney <cagney@redhat.com>
13455
13456 * libunwind-frame.h (struct frame_id): Add opaque declaration,
13457 move to start of file.
13458 * i386-tdep.h (struct regcache): Add opaque declaration.
13459 * config/ia64/nm-linux.h (struct target_ops): Add opaque
13460 declaration.
13461 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
13462 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
13463 * win32-nat.c (fake_create_process): Use ISO C style definition.
13464 * stabsread.c (define_symbol): Delete #ifndef
13465 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
13466 stabs_argument_has_addr call, macro never defined.
13467
19061abe
MC
134682004-01-04 Michael Chastain <mec.gnu@mindspring.com>
13469
13470 * op50-rom.c: Delete.
13471 * w89k-rom.c: Delete.
13472 * Makefile.in: Remove references.
13473
e53bef9f
MK
134742004-01-04 Mark Kettenis <kettenis@gnu.org>
13475
13476 * x86-64-tdep.c: Update copyright year.
13477 (struct amd64_register_info): Rename from x86_64_register_info.
13478 (amd64_register_info): Rename from x86_64_register_info.
13479 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
13480 (amd64_register_name): Rename from x86_64_register_name.
13481 (amd64_register_type): Rename from x86_64_register_type.
13482 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
13483 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
13484 (amd64_dwarf_reg_to_regnum): Rename from
13485 x86_64_dwarf_reg_to_regnum.
13486 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
13487 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
13488 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
13489 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
13490 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
13491 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
13492 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
13493 (amd64_frame_cache): Rename from x86_64_frame_cache.
13494 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
13495 (amd64_frame_prev_register): Rename from
13496 x86_64_frame_prev_register.
13497 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
13498 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
13499 (amd64_sigtramp_frame_cache): Rename from
13500 x86_64_sigtramp_frame_cache.
13501 (amd64_sigtramp_frame_prev_register): Rename from
13502 x86_64_sigtramp_frame_prev_register.
13503 (amd64_sigtramp_frame_unwind): Rename from
13504 x86_64_sigtramp_frame_unwind.
13505 (amd64_sigtramp_frame_sniffer): Rename from
13506 x86_64_sigtramp_frame_sniffer.
13507 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
13508 (amd64_frame_base): Rename from x86_64_frame_base.
13509 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
13510 (amd64_frame_align): Rename from x86_64_frame_align.
13511 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
13512 (amd64_regset_from_core_section): Rename from
13513 x86_64_regset_from_core_section.
13514 (x86_64_init_abi): Update comments.
13515
fca6aa58
NR
135162004-01-04 Nick Roberts <nick@nick.uklinux.net>
13517
13518 * MAINTAINERS (write after approval): Add myself.
13519
8ada74e3
MK
135202004-01-04 Mark Kettenis <kettenis@gnu.org>
13521
13522 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
13523 `float' arguments.
13524
5154b0cd
MK
135252004-01-04 Mark Kettenis <kettenis@gnu.org>
13526
13527 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
13528 such that it mentions a specific version of GCC that exhibits this
13529 bug.
13530
fb316966
MK
135312004-01-03 Mark Kettenis <kettenis@gnu.org>
13532
200cc553
MK
13533 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
13534 structure that has a single `float' member, store it in %f1 in
13535 addition to %f0.
13536
e226a4a0
MK
13537 * sparc-sol2-nat.c: Add missing '\'.
13538
b9d4c5ed
MK
13539 * sparc-tdep.c (sparc32_return_value): New function.
13540 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
13541 Remove functions.
13542 (sparc32_gdbarch_init): Set return_value, don't set
13543 extract_return_value, store_return_value, use_struct_convention
13544 and return_value_on_stack.
13545
fb316966
MK
13546 * sparc-sol2-nat.c: Add missing ')'.
13547
1af510a8
JB
135482004-01-03 J. Brobecker <brobecker@gnat.com>
13549
13550 * infrun.c (handle_step_into_function): New function.
13551 (handle_inferior_event): Extract out some code into the new
13552 function above.
13553
5cf4d23a
JB
135542004-01-03 J. Brobecker <brobecker@gnat.com>
13555
13556 * infrun.c (handle_inferior_event): Move the declaration of
13557 real_stop_pc inside the if blocks where it is used.
13558
60af1db2
MK
135592004-01-03 Mark Kettenis <kettenis@gnu.org>
13560
13561 * sparc64-tdep.c (sparc64_16_byte_align_p)
13562 (sparc64_store_floating_fields, sparc64_store_floating_fields):
13563 Use check_typedef to get subtypes of structures and unions.
13564 (sparc64_store_return_value): Fix calculation of the appropriate
13565 offset into VALBUF when storing a structure or union.
13566 (sparc64_return_value): New function.
13567 (sparc64_use_struct_convention): Remove function.
13568 (sparc64_init_abi): Set return_value, don't set
13569 extract_return_value, store_return_value and
13570 use_struct_convention.
13571
1a901d3f
EZ
135722004-01-03 Eli Zaretskii <eliz@elta.co.il>
13573
13574 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
13575 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
13576 gdb/config/alpha/xm-alphaosf.h,
13577 gdb/config/powerpc/tm-ppcle-eabi.h,
13578 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
13579 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
13580 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
13581 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
13582 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
13583 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
13584 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
13585 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
13586 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
13587 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
13588 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
13589 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
13590 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
13591 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
13592 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
13593 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
13594 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
13595 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
13596 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
13597 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
13598 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
13599 Remove lines for .cvsignore files.
13600
ef52e463
JB
136012004-01-03 J. Brobecker <brobecker@gnat.com>
13602
13603 * infrun.c: Back out the previous change.
13604
cb1bf9dc
MK
136052004-01-03 Mark Kettenis <kettenis@gnu.org>
13606
f0424ef6
MK
13607 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
13608 sparc-*-sunos4* to the list of REMOVED configurations.
13609
cb1bf9dc
MK
13610 * configure.tgt: Add back sparc-*-vxworks*.
13611 * remote-vxsparc.c: Remove all includes except for "defs.h",
13612 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
13613 Include "sparc-tdep.h".
13614 (SPARC_R_G1): New define.
13615 (vxsparc_gregset): New variable.
13616 (ext_format_sparc): Remove extern declaration.
13617 (vx_read_register): Rewrite to use sparc32_supply_gregset and
13618 sparc32_supply_fpregset.
13619 (vx_write_register): Rewrite to use sparc32_collect_gregset,
13620 sparc_collect_rwindow and sparc32_collect_fpregset.
13621 * config/sparc/tm-vxworks.h: New file, based on recently removed
13622 tm-vxsparc.h.
13623 * config/sparc/vxworks.mt: New file, based on recently removed
13624 vxworks.mt.
fe61caab 13625
5e938f9f
JB
136262004-01-03 J. Brobecker <brobecker@gnat.com>
13627
13628 * infrun.c (handle_step_into_function): New function.
13629 (handle_inferior_event): Extract out some code into the new
13630 function above.
13631
386c036b
MK
136322004-01-02 Mark Kettenis <kettenis@gnu.org>
13633
13634 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
13635 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
13636 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
13637 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
13638 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
13639 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
13640 (sparc_nat_h): New variable.
13641 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
13642 (tm-sun4os4.h): Remove dependency.
13643 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
13644 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
13645 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
13646 sparc-tdep.o): Update dependencies.
13647 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
13648 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
13649 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
13650 dependencies.
13651 * configure.host: Remove existing sparc-*-lynxos*,
13652 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
13653 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
13654 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
13655 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
13656 triplets.
13657 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
13658 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
13659 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
13660 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
13661 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
13662 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
13663 sparc64-*-solaris2* and sparc64-*-* triplets.
13664 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
13665 "symtab.h" and "objfiles.h".
13666 (BIAS): Remove define.
13667 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
13668 (X_DISP19): Remove macros.
13669 (sparc_fetch_instruction): Remove function.
13670 (struct gdbarch_tdep): Remove definition.
13671 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
13672 (sparc_breakpoint_from_pc): Remove function.
13673 (struct sparc64_frame_cache): Remove definition.
13674 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
13675 sparc64_unwind_pc): Remove functions.
13676 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
13677 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
13678 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
13679 (sparc64_frame_cache): Change return type to `struct
13680 sparc_frame_cache *'. Simply call sparc_frame_cache.
13681 (sparc64_frame_this_id, sparc64_frame_prev_register,
13682 sparc64_frame_base_address): Use `struct sparc_frame_cache'
13683 instead of `struct sparc64_frame_cache.
13684 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
13685 sparc_analyze_control_transfer, sparc_software_single_step,
13686 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
13687 _initialize_sparc64_tdep): Remove functions.
13688 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
13689 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
13690 macros.
13691 (sparc64_supply_gregset, sparc64_collect_gregset,
13692 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
13693 (sparc64_init_abi): New function.
13694 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
13695 inclusion guard. Include "sparc-tdep.h".
13696 (BIAS): Define.
13697 (r_tstate_offset, r_fprs_offset): New defines.
13698 (enum sparc_regnum): Remove defenition.
13699 (enum sparc64_regnum): Reformat.
13700 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
13701 (sparc64_init_abi, sparc64_supply_gregset,
13702 sparc64_collect_gregset, sparc64_supply_fpregset,
13703 sparc64_collect_fpregset): New prototypes.
13704 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
13705 Add extern declarations.
13706 (sparc64_sol2_init_abi): New prototype.
13707 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
13708 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
13709 prototypes.
13710 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
13711 "sparnbsd-nat.h".
13712 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
13713 functions.
13714 (_initialize_sparc64fbsd_nat): Remove initialization of
13715 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
13716 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 13717 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
13718 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
13719 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
13720 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
13721 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
13722 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
13723 (sparc64fbsd_r_y_offset): Remove variables.
13724 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
13725 Make static and const.
13726 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
13727 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
13728 functions.
13729 (sparc64fbsd_gregset): New variable.
13730 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
13731 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
13732 and sparc64_supply_fpregset.
13733 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
13734 (sparc64fbsd_sigtramp_frame_this_id)
13735 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
13736 (sparc64fbsd_sigtramp_frame_unwind): New variable.
13737 (sparc64fbsd_sigtramp_frame_sniffer): New function.
13738 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
13739 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
13740 * sparcnbsd-tdep.c: Update copyright year. Include
13741 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
13742 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
13743 "value.h" and "sparcnbsd-tdep.h".
13744 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
13745 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
13746 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
13747 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
13748 defines.
13749 (sparcnbsd_gregset): New variable.
13750 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
13751 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
13752 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
13753 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
13754 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
13755 variables.
13756 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
13757 (sparc32nbsd_sigcontext_frame_this_id)
13758 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
13759 (sparc32nbsd_sigcontext_frame_unwind): New variable.
13760 (sparc32nbsd_sigtramp_frame_sniffer): New function.
13761 (sparcnbsd_get_longjmp_target_32,
13762 sparcnbsd_get_longjmp_target_64): Remove functions.
13763 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
13764 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
13765 sparcnbsd_init_elf): Remove.
13766 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
13767 (sparcnbsd_elf_init_abi): New functions.
13768 (_initialize_sparcnbsd_tdep): New prototype.
13769 (_initialize_sparnbsd_tdep): Update.
13770 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
13771 corelow.o. Add sparc64-nat.o and sparc-nat.o.
13772 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
13773 * config/sparc/linux.mh: Update comment.
13774 (XM_FILE, HOST_IPC): Remove variables.
13775 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
13776 sparc-linux-nat.o.
13777 * config/sparc/linux.mt: Update comment.
13778 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
13779 * config/sparc/nbsd.mt: Reformat.
13780 * config/sparc/nbsd64.mh: Update comment.
13781 (NATDEPFILES): Add sparc-nat.o.
13782 * config/sparc/nbsd64.mt: Update comment.
13783 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
13784 (TM_FILE): Set to tm-nbsd.h.
13785 * config/sparc/nbsdelf.mh: Update comment.
13786 (NATDEPFILES): Add sparc-nat.o.
13787 (XM_FILE): Delete.
13788 * config/sparc/nbsdaout.mh: Update comment.
13789 (NATDEPFILES): Add sparc-nat.o
13790 (XM_FILE): Delete.
13791 * config/sparc/nm-linux.h: Update copyright year. Don't include
13792 "config/nm-svr4.h" and "solib.h". Add protection against multiple
13793 inclusion.
13794 (KERNEL_U_SIZE): Remove define.
13795 (kernel_u_size): Remove prototype.
13796 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
13797 * config/sparc/nm-nbsd.h: Update copyright. Don't include
13798 "regcache.h".
13799 (CHILD_PREPARE_TO_STORE): Remove define.
13800 * config/sparc/nm-nbsdaout.h: Tweak some comments.
13801 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
13802 sparcnbsd-nat.c: Rewrite files.
13803 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
13804 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
13805 sparcnbsd-tdep.h: Remove files.
13806 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
13807 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
13808 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
13809 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
13810 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
13811 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
13812 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
13813 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
13814 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
13815 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
13816 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
13817 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
13818 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
13819 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
13820 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
13821 * config/sparc/linux64.mh, config/sparc/linux64.mt,
13822 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
13823 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
13824 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
13825
ee84457a
AC
138262004-01-02 Andrew Cagney <cagney@redhat.com>
13827
13828 From 2003-12-18 Kazuhiro Inaoka:
13829 * configure.host: Add m32r-linux target.
13830
0bc2134e
MC
138312004-01-02 Michael Chastain <mec.gnu@mindspring.com>
13832
13833 * top.c (print_gdb_version): Update year to 2004.
13834
89a72f9c
MM
138352004-01-02 Mark Mitchell <mark@codesourcery.com>
13836
13837 * MAINTAINERS: Add myself to the write-after-approval category.
13838
86b013ed
DJ
138392004-01-02 Daniel Jacobowitz <drow@mvista.com>
13840
13841 From Bernardo Innocenti <bernie@develer.com>:
13842 * configure.tgt: Add uClinux target.
13843
e42c9534
AC
138442004-01-02 Andrew Cagney <cagney@redhat.com>
13845
13846 * utils.c (do_my_cleanups): Make static, add forward declaration.
13847 * defs.h (do_my_cleanups): Delete declaration.
13848
162467d3
EZ
138492004-01-02 Eli Zaretskii <eliz@elta.co.il>
13850
13851 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
13852 bfd/ChangeLog-0203.
13853
78434e59
MK
138542004-01-02 Mark Kettenis <kettenis@gnu.org>
13855
13856 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
13857 in <machine/reg.h>.
13858 * configure, config.in: Regenerate.
13859
48efe704
AC
13860For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
13861tui/ChangeLog-1998-2003.
c906108c
SS
13862\f
13863Local Variables:
13864mode: change-log
13865left-margin: 8
13866fill-column: 74
13867version-control: never
13868End:
This page took 1.487916 seconds and 4 git commands to generate.