* Makefile.in (symfile-mem.o): Update dependencies.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
12b8a2cb
DJ
12004-11-07 Andrew Cagney <cagney@redhat.com>
2 Daniel Jacobowitz <dan@debian.org>
3 Roland McGrath <roland@redhat.com>
4
5 * Makefile.in (symfile-mem.o): Update dependencies.
6 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New.
7 (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p.
8 * inf-ptrace.c (inf_ptrace_attach): Call
9 observer_notify_inferior_created.
10 * inftarg.c (child_attach): Likewise.
11 * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h".
12 (symbol_file_add_from_memory): Take NAME argument. Use it for
13 the new BFD's filename.
14 (add_symbol_file_from_memory_command): Update call to
15 symbol_file_add_from_memory.
16 (struct symbol_file_add_from_memory_args, add_vsyscall_page)
17 (symbol_file_add_from_memory_wrapper): New.
18 (_initialize_symfile_mem): Register add_vsyscall_page as an
19 inferior_created observer.
20
abbc6945
MK
212004-11-07 Mark Kettenis <kettenis@gnu.org>
22
23 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Rename from
24 fetch_inferior_registers. Make static.
25 (m68kbsd_store_inferior_registers): Rename from
26 store_inferior_registers. Make static.
27 (_initialize_m68kbsd_nat): Construct and add target vector.
28 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
29 inftarg.o. Add inf-ptrace.o.
30 (NAT_FILE): Set to tm-solib.h.
31 (LOADLIBES): New variable.
32 * config/m68k/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
33 inftarg.o. Add inf-ptrace.o.
34 (NAT_FILE): Delete variable.
35 * config/m68k/obsd.mh (NATDEPFILES): Remove infptrace.o and
36 inftarg.o. Add inf-ptrace.o.
37 (NAT_FILE): Set to tm-solib.h.
38 * config/m68k/nm-nbsdaout.h: Remove file.
39
3ed09a32
DJ
402004-11-07 Daniel Jacobowitz <dan@debian.org>
41
42 * dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
43 (dwarf2_frame_set_signal_frame_p, dwarf2_frame_signal_frame_p)
44 (dwarf2_signal_frame_unwind): New.
45 (dwarf2_frame_sniffer): Use dwarf2_frame_signal_frame_p.
46 * dwarf2-frame.h (dwarf2_frame_set_signal_frame_p): New prototype.
47
8e763687
MK
482004-11-07 Mark Kettenis <kettenis@gnu.org>
49
4fb31ed0
MK
50 * Makefile.in (mips64obsd-tdep.o): Fix typo.
51
fabe86c8
MK
52 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Renamed
53 from mipsnbsd_ilp32_solib_svr4_fetch_link_map_offsets. Trim sizes
54 to only include the structure members we actually need.
55 (mipsnbsd_lp64_fetch_link_map_offsets): Renamed from
56 mipsnbsd_lp64_solib_svr4_fetch_link_map_offsets. Trim sizes to
57 only include the structure members we actually need.
58 (mipsnbsd_init_abi): Update.
59
366e93e8
MK
60 * mips64obsd-nat.c: Include "mips-tdep.h".
61 (MIPS64OBSD_NUM_REGS): Remove define.
62 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM): New defines.
63 (mips64obsd_supply_gregset, mips64obsd_collect_gregset): Handle
64 floating-point registers correctly.
65 * Makefile.in (mips64obsd-nat.o): Update dependencies.
66
8e763687
MK
67 * mips64obsd-tdep.c: Include "trad-frame.h", "tramp-frame.h" and
68 "gdb_assert.h".
69 (mips64obsd_sigframe_init): New function.
70 (mips64obsd_sigframe): New variable.
71 (mips64obsd_init_abi): Add comments. Prepend mips64obsd_sigrame
72 unwinder.
73 * Makefile.in (mips64obsd-tdep.o): Update dependencies.
74
5f6a2351
JB
752004-11-06 Joel Brobecker <brobecker@gnat.com>
76
77 * alpha-mdebug-tdep.c: #include mdebugread.h.
78 Replace alpha_extra_func_info_t by struct mdebug_extra_func_info *.
79 * Makefile.in (alpha-mdebug-tdep.o): Add dependency on mdebugread.h.
80
f059bf6f
AC
812004-11-05 Andrew Cagney <cagney@gnu.org>
82
83 * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
84 CFI and the init_reg method leave the register unspecified.
85 Include the register name in the "Incomplete CFI data" complaint.
86 Supress leading zeros in the address.
87
1234d960
MK
882004-11-05 Mark Kettenis <kettenis@gnu.org>
89
90 * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
91 skipping a personality routine in a CIE augmentation.
92
d75e3c94
JJ
932004-11-05 Jeff Johnston <jjohnstn@redhat.com>
94
95 * defs.h (fatal, vfatal): New function prototypes.
96 * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
97 via catch_errors.
98 (backtrace_command): Change to call backtrace_command_stub via
99 catch_errors instead of calling backtrace_command_1 directly.
100 (backtrace_full_command): Ditto.
101 * utils.c (error_stream_1): New static function.
102 (verror): Change to call error_stream_1 instead of error_stream.
103 (error_stream): Call error_stream_1 with RETURN_ERROR argument.
104 (vfatal, fatal): New functions.
105
98f276a0
AC
1062004-11-05 Andrew Cagney <cagney@gnu.org>
107
108 * stack.c (parse_frame_specification_1): Clear selected_frame_p
109 when not using selected frame.
110
f724bf08
MK
1112004-11-05 Mark Kettenis <kettenis@jive.nl>
112
113 * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
114 personality routine in a CIE augmentation.
115
c789492a
FL
1162004-11-05 Felix Lee <felix+log1@specifixinc.com>
117
118 * stack.c (set_current_sal_from_frame): New function.
119 (print_args_stub): Use it.
120 (print_frame_info): Don't set sal here.
121
a81b10ae
MK
1222004-11-04 Mark Kettenis <kettenis@gnu.org>
123
124 * dwarf2-frame.c (read_encoded_value): Change type of third
125 argument to `unsigned char *'. Add support for LEB128 encodings.
126
ad766c0a
JB
1272004-11-04 Jim Blandy <jimb@redhat.com>
128
129 * gdbtypes.c (make_qualified_type): Doc fix. Add assertion to
130 prevent cross-objfile references.
131 (make_cv_type): Doc fix. Don't create cross-objfile references,
132 even for stub types.
133 (replace_type): Add assertion to prevent cross-objfile references.
134 (check_typedef): Never resolve a stub type by copying over a type
135 from another file.
136
c46b0409 1372004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
f16d97c9 138
c46b0409
KI
139 * Makefile.in (m32r-tdep.o): Update dependencies.
140 * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
141 ABI-specific overrides.
142
9f0b0322 1432004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
f16d97c9 144
9f0b0322
KI
145 * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
146 unnecessary parallel execution bit.
147 (m32r_memory_remove_breakpoint): Ditto.
148 (m32r_breakpoint_from_pc): Update.
149
d5c27f81
RC
1502004-11-03 Randolph Chung <tausq@debian.org>
151
152 * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
9f0b0322 153 frame_func_unwind to locate the unwind entry.
d5c27f81
RC
154 (hppa_frame_this_id): Likewise.
155
4577593c
AC
1562004-11-03 Andrew Cagney <cagney@gnu.org>
157
158 * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
159 packet, obsolete configurations, end-of-life deprecated_registers.
160
b04de778
MK
1612004-11-02 Mark Kettenis <kettenis@gnu.org>
162
163 * dwarf2-frame.c (read_encoded_value): Set proper size for signed
164 encodings as well as unsigned encodings.
165
9f2feefc
AC
1662004-11-02 Andrew Cagney <cagney@gnu.org>
167
168 * value.h (COERCE_VARYING_ARRAY): Delete.
169 * valops.c (value_cast, value_slice): Delete use.
170 * valarith.c (value_subscript, value_concat): Delete use.
171
117ea3cf
PH
1722004-11-02 Paul Hilfinger <hilfingr@nile.gnat.com>
173
174 * NEWS: GDB understands GNAT Ada.
175
0bbc026e
JM
1762004-11-01 Joseph S. Myers <joseph@codesourcery.com>
177
178 * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
179 (amd64-sol2-tdep.o): Add dependencies.
180 * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
181 config/i386/sol2-64.mt: New files.
182 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
183 amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
184 (supply_gregset): Correct order of arguments to
185 amd64_supply_native_gregset.
186 (fill_gregset): Correct order of arguments to
187 amd64_collect_native_gregset.
188 * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
189 * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
190 * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
191 for definition of NEW_PROC_API.
192 * configure: Regenerate.
193
3d38a0a5
JM
1942004-11-01 Joseph S. Myers <joseph@codesourcery.com>
195
196 * MAINTAINERS (Write After Approval): Add myself.
197
f81cd1cf
AC
1982004-11-01 Andrew Cagney <cagney@gnu.org>
199
200 * configure.tgt: Mark d10v-*-* as obsolete.
201 * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
202
f4e88c8e
PH
2032004-11-01 Paul N. Hilfinger <Hilfinger@gnat.com>
204
205 * values.c (modify_field): Correct handling of bit-fields that
206 don't fit in 32 bits. Use unsigned operations throughout and
207 simplify the code a bit. Document preconditions.
208
84674fe1
AC
2092004-10-31 Andrew Cagney <cagney@gnu.org>
210
96693b3a
AC
211 * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
212 * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
213 (in_plt_section): Delete.
214
6f296f8f
AC
215 * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
216 (mips_gdbarch_init): Do not set same.
217
618501c0
AC
218 * arch-utils.c (generic_in_solib_call_trampoline): Delete.
219 * arch-utils.h (generic_in_solib_call_trampoline): Delete.
220
b22e8f02
AC
221 * gdbarch.sh (in_solib_call_trampoline): Delete.
222 * gdbarch.h, gdbarch.c: Re-generate.
223
84674fe1
AC
224 * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
225 IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
226 * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
227 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
228 * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
229
c6d1029f
MK
2302004-10-31 Mark Kettenis <kettenis@gnu.org>
231
232 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
233 (mipsnbsd_fetch_inferior_registers): Rename from
234 fetch_inferior_registers. Make static.
235 (mipsnbsd_store_inferior_registers): Rename from
236 store_inferior_registers. Make static.
237 (_initialize_mipsnbsd_nat): New function and prototype.
238 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
239 * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
240 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
241 inf-ptrace.o.
242
bd9ca83f
AC
2432004-10-31 Andrew Cagney <cagney@gnu.org>
244
19d718a3
AC
245 * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
246 (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
247 delete corresponding unused function.
248 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
249 in_solib_call_trampoline.
250 * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
251 * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
252 * config/mips/tm-nbsd.h: Ditto.
253 * config/arm/tm-linux.h: Ditto.
254 * config/mips/tm-linux.h: Ditto.
255
e8ce19c0
AC
256 * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
257 (arm_netbsd_aout_in_solib_call_trampoline): Do not set
258 in_solib_call_trampoline, delete corresponding unused function.
259 * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
260 (vaxnbsd_aout_init_abi): Ditto.
261 * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
262 (sparc32nbsd_aout_init_abi): Ditto.
263 * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
264 (ppc_linux_init_abi): Ditto.
265 * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
266 (ns32knbsd_init_abi_aout): Ditto.
267 * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
268 * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
269 * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
270 (m68kbsd_aout_init_abi): Ditto.
271 * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
272 (i386_cygwin_init_abi): Ditto.
273 * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
274 (i386bsd_init_abi): Ditto.
275
af380d61
AC
276 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
277 in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
278 isn't used by this architecture.
279 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
280 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
281 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
282 * s390-tdep.c (s390_gdbarch_init): Ditto.
283 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
284 * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
285 * i386-tdep.c (i386_svr4_init_abi): Ditto.
286 * i386-nto-tdep.c (i386nto_init_abi): Ditto.
287 * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
288 * amd64-tdep.c (amd64_init_abi): Ditto.
289
0528d9f7
AC
290 * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
291 in_solib_call_trampoline to its default value of
292 generic_in_solib_call_trampoline.
293 * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
294 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
295 * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
296 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
297 * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
298 * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
299
f9f9eacb
AC
300 * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
301
a4ffd1e7
AC
302 * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
303
82e34d2f
AC
304 * config/mips/tm-mips.h: Delete file.
305 * remote-mips.c: Delete tm-mips.h from comment.
306 * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
307 * config/mips/tm-nbsd.h: Don't include tm-mips.h.
308 * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
309 * config/mips/tm-linux.h: Don't include tm-mips.h.
310 * config/mips/tm-vxmips.h: Don't include tm-mips.h.
311 * config/mips/irix5.mt (DEPRECATED_TM_FILE):
312 * config/mips/tm-wince.h: Don't include.
313
75dec9cf
AC
314 * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
315 * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
316 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
317 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
318
bd9ca83f
AC
319 * mdebugread.h (ecoff_relocate_efi): Delete declaration.
320 * mdebugread.c (ecoff_relocate_efi): Delete function.
321 * objfiles.c (objfile_relocate): Delete #ifdef
322 MDEBUG_EFI_SYMBOL_NAME code.
323
3352ef37
AC
3242004-10-31 Orjan Friberg <organ.friberg@axis.com>
325 Andrew Cagney <cagney@gnu.org>
326
327 * gdbarch.sh (single_step_through_delay): Add.
328 * gdbarch.h, gdbarch.c: Re-generate.
329 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
330 (mips_step_skips_delay): Delete.
331 * mips-tdep.c (mips_single_step_through_delay): Replace
332 mips_step_skips_delay.
333 (mips_gdbarch_init): Set single_step_through_delay.
334 (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
335
2440b685
MK
3362004-10-31 Mark Kettenis <kettenis@gnu.org>
337
338 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
339 from TRAMP_FRAME frame type.
340
56a2fed5
AC
3412004-10-31 Andrew Cagney <cagney@gnu.org>
342
9b792b1d
AC
343 * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
344
0a5e8d98
AC
345 * mips-tdep.c (mips_ignore_helper): Delete.
346 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
347 * infrun.c (handle_inferior_event): Delete #ifdef
348 DEPRECATED_IGNORE_HELPER_CALL code.
349
56a2fed5
AC
350 * config/mips/tm-mips.h (RA_REGNUM): Delete.
351
f69c55b2
MK
3522004-10-31 Mark Kettenis <kettenis@gnu.org>
353
354 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
355 (fill_fpregset): Do not compile for 64-bit systems.
356 * i386-sol2-nat.c: Don't include "i386v4-nat.c".
357 * Makefile.in (i386-sol2-nat.o): Update dependencies.
358 * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
359
d37cca3d
AC
3602004-10-30 Andrew Cagney <cagney@gnu.org>
361
36b8628e
AC
362 * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
363 (struct mdebug_extra_func_info): Define.
364 * config/alpha/tm-alpha.h: Delete same.
365 * config/mips/tm-mips.h: Delete same.
366 * mdebugread.c: Delete same.
367 * Makefile.in: Update dependencies.
368 * mips-mdebug-tdep.c: Include "mdebugread.h".
369
5b123146
AC
370 * objfiles.c: Include "mdebugread.h".
371 * mdebugread.c: Include "mdebugread.h".
372 (ecoff_relocate_cfi): Delete.
373 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
374 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
375 * mdebugread.h (ecoff_relocate_efi): New file.
376 * Makefile.in: Update dependencies.
377
b9c3a7de
AC
378 * mips-tdep.c (struct frame_extra_info): Delete.
379 (temp_proc_desc): Delete.
380
f92761ec
AC
381 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
382 MIPS_EFI_SYMBOL_NAME.
383 (mips_extra_func_info_t, mips_extra_func_info): Delete.
384 (struct mdebug_extra_func_info): Replace struct
385 alpha_extra_func_info and alpha_extra_func_info_t.
386 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
387 MIPS_EFI_SYMBOL_NAME.
388 (struct mdebug_extra_func_info): Replace struct
389 alpha_extra_func_info and alpha_extra_func_info_t.
390 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
391 * mdebugread.c, alpha-mdebug-tdep.c:
392
0bb57b31
AC
393 Suggested by Mark Kettenis.
394 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
395 fields frame_adjust and high_addr.
396 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
397 (non_heuristic_proc_desc): Delete references.
398
a5c9623c
AC
399 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
400 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
401 * mips-tdep.c: Update.
402
607fc93c
AC
403 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
404 (MIPS_LAST_EMBED_REGNUM): Add.
405 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
406 (LAST_EMBED_REGNUM): Delete.
407 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
408
24e05951
AC
409 * config/mips/tm-mips.h (PS_REGNUM): Delete.
410 * mips-tdep.h (MIPS_PS_REGNUM): Add.
411 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
412 * mips-linux-nat.c: Update.
413
613e114f
AC
414 * mips-tdep.h: Add comments on registers.
415 (MIPS_UNUSED_REGNUM): Define.
416 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
417 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
418 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
419 * mips-linux-nat.c, remote-mips.c: Update.
420
d37cca3d
AC
421 * config/mips/tm-mips.h (t_insn): Delete.
422 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
423 Replace t_insn with ULONGEST.
424
ceb41096
MK
4252004-10-30 Mark Kettenis <kettenis@gnu.org>
426
d1180b0f
MK
427 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
428 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
429 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
430 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
431 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
432 (mipsnbsd_core_osabi_sniffer): New function.
433 (mipsnbsd_init_abi): Set regset_from_core_section.
434 (_initialize_mipsnbsd_tdep): Remove calls to
435 deprecated_add_core_fns.
436 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
437 (mipsnbsd_regset_from_core_section): New functions.
438 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
439 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
440
ceb41096
MK
441 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
442 Remove optimization for DEPRECATED_FP_REGNUM.
443
ec4045ea
AC
4442004-10-30 Andrew Cagney <cagney@gnu.org>
445
cd65c8f6
AC
446 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
447 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
448 (alpha_setup_arbitrary_frame): Delete.
449 * mips-tdep.c (setup_arbitrary_frame): Delete.
450 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
451 (setup_arbitrary_frame): Delete.
452 * stack.c (parse_frame_specification_1): When specified, call
453 create_new_frame with two parameters. Delete #ifdef
454 SETUP_ARBITRARY_FRAME.
455
95ac2dcf
AC
456 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
457 (MIPS_INSTLEN): Delete.
458 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
459 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
460 * remote-mips.c, mips-tdep.c: Update.
461
1a8da44d
AC
462 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
463 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
464 * mips-tdep.c (mips_mdebug_frame_cache)
465 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
466 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
467 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
468 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
469 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
470 (mips_gdbarch_init): Do not append mdebug sniffers.
471 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
472 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
473 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
474 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
475 * Makefile.in: Update dependencies.
476
e6bc2e8a
AC
477 * mips-tdep.h (mips_abi_regsize): Declare.
478 * mips-tdep.c (mips_abi_regsize): Make non-static.
479
ec4045ea
AC
480 * mips-tdep.c (gdb_print_insn_mips): Simplify.
481 (make_mips16_addr): Delete.
e6bc2e8a 482
6b16acab
MK
4832004-10-30 Mark Kettenis <kettenis@gnu.org>
484
485 * i386-sol2-nat.c: New file.
486 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
487 i386-sol2-tdep.c.
488 (i386-sol2-nat.o): Update dependencies.
489 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
490 i386-sol2-nat.o.
491
8b622e6a
AC
4922004-10-30 Andrew Cagney <cagney@gnu.org>
493
494 Total breakage identified by Joel Brobecker.
495 * mips-tdep.c (after_prologue): Delete.
496 (mips_skip_prologue): Use skip_prologue_using_sal.
497 (heuristic_proc_desc): Delete, unused.
498
772cf8be
MK
4992004-10-30 Mark Kettenis <kettenis@gnu.org>
500
501 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
502 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
503 Cleanup coding style.
504
9c8fdbfa
AC
5052004-10-30 Andrew Cagney <cagney@gnu.org>
506
0fe7e7c8
AC
507 * mips-tdep.h (mips_pc_is_mips16): Declare.
508 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
509 non-static. Update calls.
510
1b295c3d
AC
511 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
512 * command.h (add_setshow_enum_cmd): Declare.
513 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
514
6bcadd06
AC
515 * mips-tdep.c (_initialize_mips_tdep): Use
516 add_setshow_zinteger_cmd.
517
9c8fdbfa
AC
518 * mips-tdep.c (mips_eabi_extract_return_value)
519 (mips_o64_extract_return_value, mips_o64_store_return_value)
520 (return_value_location, mips_eabi_reg_struct_has_addr)
521 (mips_eabi_use_struct_convention)
522 (mips_eabi_store_return_value): Delete.
523 (mips_eabi_store_return_value): New function.
524 (mips_eabi_return_value): New function.
525 (mips_gdbarch_init): For O64 and EABI, delete
526 extract_return_value, store_return_value, use_struct_convention
527 and reg_struct_has_addr, add return_value.
528
1d93fe1a
AC
529 * mips-tdep.c (read_signed_register): Use
530 regcache_cooked_read_signed.
531
303d2914
MK
5322004-10-30 Mark Kettenis <kettenis@gnu.org>
533
534 * mipsread.c: Cleanup coding style.
535 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
536 (mipscoff_symfile_finish): Remove prototypes.
537
5382004-10-29 Mark Kettenis <kettenis@gnu.org>
539
540 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
541 (mips_mdebug_frame_cache, mips16_scan_prologue)
542 (mips32_scan_prologue, mips_stub_frame_cache)
543 (heuristic_proc_start, heuristic_proc_desc)
544 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
545 (mips_n32n64_return_value, mips_o32_push_dummy_call)
546 (mips_o32_return_value, mips_o64_push_dummy_call)
547 (mips_step_skips_delay, mips_skip_trampoline_code)
548 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
549 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
550 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
551 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
552 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
553 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
554 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
555 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
556 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
557 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
558 ZERO_REGNUM.
559 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
560 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
561 ZERO_REGNUM.
562 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
563 A0_REGNUM.
564 * mipsnbsd-nat.c: Include "mips-tdep.h".
565 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
566 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
567
1c8831c5
AC
5682004-10-29 Andrew Cagney <cagney@gnu.org>
569
570 * stack.c (parse_frame_specification_1): New function based on
571 parse_frame_specification. Add message and selected_frame_p
572 paramters. Truely always return non-NULL.
573 (parse_frame_specification): Call parse_frame_specification_1.
574 (frame_info): Update. Eliminate target_has_stack check.
575 (select_frame_command): Update.
576
b04f3ab4
AC
5772004-10-29 Andrew Cagney <cagney@gnu.org>
578
579 * frame.h (get_selected_frame): Add message parameter.
580 * frame.c (get_selected_frame): Add and use message parameter.
581 * stack.c (current_frame_command, return_command, locals_info)
582 (catch_info, args_info, up_silently_base, down_silently_base): Use
583 get_selected_frame with an explicit message.
584 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
585 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
586 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
587 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
588 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
589 * breakpoint.c: Update.
590
5912004-10-29 Andrew Cagney <cagney@gnu.org>
00b25ff3
AC
592
593 * trad-frame.c (trad_frame_get_prev_register): Use
594 frame_unwind_register instead of frame_register_unwind, do not
595 recurse the register's location.
596 * xstormy16-tdep.c (xstormy16_frame_prev_register):
597 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
598 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
599 * sh-tdep.c (sh_frame_prev_register): Ditto.
600 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
601 * i386-tdep.c (i386_frame_prev_register): Ditto.
602 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
603 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
604
7a952542
MK
6052004-10-28 Mark Kettenis <kettenis@jive.nl>
606
c18c06be
MK
607 * proc-events.c: Fix several coding-style issues. Consistently
608 use #ifdef instead of #if defined().
609 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
610 ARRAY_SIZE.
611 (_initialize_proc_events): New prototype.
612
7a952542
MK
613 * proc-why.c: Fix several coding-style issues.
614 (proc_prettyfprint_why): Use ARRAY_SIZE.
615
fcad0fa4
JB
6162004-10-27 Jim Blandy <jimb@redhat.com>
617
618 * remote.c (fetch_register_using_p): Construct 'p' packet in a
619 manner independent of the host byte order.
620
c163184f
MK
6212004-10-27 Mark Kettenis <kettenis@gnu.org>
622
623 * mips-tdep.c (id_delayed): Remove prototype.
624
9c46b6f0
MK
6252004-10-26 Mark Kettenis <kettenis@gnu.org>
626
627 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
628 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
629 to enum with register numbers.
630 (enum mips_insn_size): New enum.
631
0d0266c6
AC
6322004-10-26 Andrew Cagney <cagney@gnu.org>
633
e7d6a6d2
AC
634 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
635 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
636 (mips_gdbarch_init): Update.
637 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
638
c5115f39
AC
639 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
640 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
641 IN_SOLIB_RETURN_TRAMPOLINE.
642 * mips-tdep.c (mips_dump_tdep): Do not print
643 IN_SOLIB_RETURN_TRAMPOLINE.
644 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
645 (mips_gdbarch_init): Update.
646
0d0266c6
AC
647 * mips-tdep.h (mips_software_single_step): Move to here ...
648 * config/mips/tm-mips.h: ... from here.
649 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
650 (SOFTWARE_SINGLE_STEP): Delete.
651 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
652
156a53ca
AC
6532004-10-25 Andrew Cagney <cagney@gnu.org>
654
655 * NEWS: Add Changes since GDB 6.3 section.
656
f27cf670
AS
6572004-10-23 Andreas Schwab <schwab@suse.de>
658
156a53ca
AC
659 * ada-lang.c (grow_vect): Return the new array instead of
660 expecting pointer to pointer to avoid violation of aliasing rules.
f27cf670
AS
661 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
662
121d8485
UW
6632004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
664
665 * s390-tdep.c (enum pv_boolean): Remove.
666 (pv_is_array_ref): Remove.
667 (s390_on_stack): Remove.
668 (S390_NUM_SPILL_SLOTS): Remove.
669 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
670 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
671 (s390_store): Track all stores of orginal incoming registers to the
672 stack constant offsets relative to the CFA, instead of only tracking
673 stores into specific spill slots.
674 (s390_load): Likewise.
675 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
676 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
677 defined as call-saved by the ABI.
678 (s390_push_dummy_call): Use bottom of dummy call argument save area
679 as return value, not the top. Do not store to the called function's
680 register save area.
681 (s390_unwind_dummy_id): Adapt accordingly.
682
0a6ddd08
AC
6832004-10-23 Andrew Cagney <cagney@gnu.org>
684
685 * objfiles.h (struct objfile): Rename obj_private to
686 deprecated_obj_private, sym_private to deprecated_sym_private, and
687 sym_stab_info to deprecated_sym_stab_info.
688 * gdb-stabs.h: Update.
689 * elfread.c: Update.
690 * dbxread.c: Update.
691 * coffread.c: Update.
692 * xcoffread.c: Update.
693 * symfile.c: Update.
694 * somread.c: Update.
695 * nlmread.c: Update.
696 * mdebugread.c: Update.
697 * hpread.c: Update.
698 * coffread.c: Update.
699
abc08782
MK
7002004-10-23 Mark Kettenis <kettenis@gnu.org>
701
702 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
703 * configure.host: Add mips64*-*-openbsd*.
704 * configure.tgt: Add mips64*-*-openbsd*.
705 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
706 mips64obsd-tdep.c.
707 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
708 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
709
fc062ac6
JB
7102004-10-21 Joel Brobecker <brobecker@gnat.com>
711
712 * symtab.c (symbol_search_name): Minor reformatting.
713
5bccb4d1
JB
7142004-10-20 Joel Brobecker <brobecker@gnat.com>
715
716 * symtab.h: Fix typo in comment.
717
a738430d
MK
7182004-10-19 Mark Kettenis <kettenis@gnu.org>
719
720 * dwarf2read.c (struct comp_unit_head): Fix coding style.
721 (dwarf_decode_line_header): Likewise.
722
f2cb65ca
MC
7232004-10-19 Michael Chastain <mec.gnu@mindspring.com>
724
725 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
726
09e55376
AC
7272004-10-19 Andrew Cagney <cagney@gnu.org>
728
729 GDB 6.3 branch created.
730 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
731
bc5f45f8
JB
7322004-10-15 Joel Brobecker <brobecker@gnat.com>
733
734 * dwarf2read.c (set_cu_language): Set language to Ada for
735 DW_LANG_Ada83 and DW_LANG_Ada95.
736
2941da8c
MC
7372004-10-15 Michael Chastain <mec.gnu@mindspring.com>
738
739 From Andreas Schwab <schwab@suse.de>:
740 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
741 for xmalloc and xrealloc.
742
34a17005
AC
7432004-10-15 Andrew Cagney <cagney@gnu.org>
744
745 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
746 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
747 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
748 Update dependencies.
749
714e53ab
PH
7502004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
751
752 * ada-lang.c (ada_lookup_symbol): Correct comment.
753 (ada_evaluate_subexp): Change error message for
754 OP_FUNCALL case so as not to indicate an internal error.
755
7562004-10-15 Joel Brobecker <brobecker@gnat.com>
757
758 Committed by Paul Hilfinger.
759 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
760 type sizes in XVE/XVU types, and emit a warning when that happens,
761 instead of rounding up the size of the resulting type.
762 Some minor reformatting.
763 (ada_is_aligner_type): Do not consider a type as an aligner type
764 if there is a corresponding XVS type as well.
765 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
766 have several levels of pointer indirection to the array.
767
7682004-10-15 Jerome Guitton <guitton@gnat.com>
769
770 Committed by Paul Hilfinger.
771 * ada-lang.c (check_size): New function.
772 (coerce_unspec_val_to_type): call check_size to make sure
773 that the object size is reasonable.
774 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
775 Implements the case when we get a reference when we evaluate
776 the expression of one of the bounds of the slice.
777 (ada_value_struct_elt): when a packed array field is
778 a reference, use ada_coerce_ref to dereference it; use
779 ada_value_ind only if it is a pointer.
780
29639122
JB
7812004-10-15 Joel Brobecker <brobecker@gnat.com>
782
783 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
784 a bit to avoid the necessity of an advance declaration. Remove
785 declaration.
786 (set_reg_offset): Move implemenation up.
787 (mips16_get_imm): Likewise.
788 (mips16_scan_prologue): Likewise.
789 (reset_saved_regs): Likewise.
790 (mips32_scan_prologue): Likewise.
791
a65bbe44
JB
7922004-10-14 Joel Brobecker <brobecker@gnat.com>
793
794 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
795 Remove sp as a parameter, compute it internally instead. Move
796 prologue scanning limit from heuristic_proc_desc to here.
797 (mips16_scan_prologue): Likewise.
798 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
799 by call to mips16_scan_prologue.
800 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
801 by call to mips32_scan_prologue.
802 (heuristic_proc_desc): Remove code that's no longer necessary.
803 Update calls to mips16_scan_prologue and mips32_scan_prologue.
804 (mips_skip_prologue): Update calls to mips16_scan_prologue
805 and mips32_scan_prologue.
806
1c645fec
JB
8072004-10-14 Joel Brobecker <brobecker@gnat.com>
808
809 * mips-tdep.c (mips16_scan_prologue): Merge code from
810 mips16_skip_prologue. Now return the address of the first
811 instruction past the function prologue.
812 (mips16_skip_prologue): Remove, no longer necessary.
813 (mips_skip_prologue): Replace call to mips16_skip_prologue
814 by call to mips16_scan_prologue.
815
98b4dd94
JB
8162004-10-14 Joel Brobecker <brobecker@gnat.com>
817
818 * mips-tdep.c (mips32_scan_prologue): Merge code from
819 mips32_skip_prologue. Now return the address of the first
820 instruction past the function prologue.
821 (mips32_skip_prologue): Remove. No longer necessary.
822 (mips16_skip_prologue): Add parameter end_pc instead of
823 computing it.
824 (mips_skip_prologue): Compute the upper limit for the
825 prologue scanning. Update call to mips16_skip_prologue.
826 Replace call to mips32_skip_prologue by call to
827 mips32_scan_prologue.
828
ad4c72d2
MK
8292004-10-14 Mark Kettenis <kettenis@gnu.org>
830
dfaf8edb
MK
831 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
832 NetBSD system call stubs that store %rp in the ERP slot of the
833 stack frame.
834
3e3a28f1
MK
835 * source.c: Always define O_BINARY to 0 if not defined already.
836 (openp): Unconditionally use O_BINARY.
837
ad4c72d2
MK
838 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
839 * event-top.c (gdb_readline2): Likewise.
840
52bd1401
OF
8412004-10-14 Orjan Friberg <orjanf@axis.com>
842
843 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
844 deprecated_add_core_fns which was removed by mistake.
845
e0e25c6c
KB
8462004-10-13 Kevin Buettner <kevinb@redhat.com>
847
848 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
849 references to deprecated_registers[] with equivalent code.
850
9f335945
KB
8512004-10-13 Kevin Buettner <kevinb@redhat.com>
852
853 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
854 ``deprecated_registers'' with equivalent code. Use gdb_assert()
855 instead of explicit test and print statement.
856
06c2338d
MK
8572004-10-12 Mark Kettenis <kettenis@gnu.org>
858
1b9445c2
MK
859 * sparc-nat.c: Include "inf-ptrace.h".
860 (sparc_target): New function.
861 * sparc-nat.h: Update copyright year.
862 (sparc_target): New prototype.
863 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
864 (_initialize_sparcnbsd_nat): Construct and add target vector.
865 * sparc64nbsd-nat.c: Include "target.h".
866 (_initialize_sparc64nbsd_nat): Construct and add target vector.
867 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
868 Update dependencies.
869 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
870 inftarg.o, add inf-ptrace.o.
871 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
872 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
873 (NAT_FILE): Set to nm-bsd.h.
874 (LOADLIBES): New variable.
875 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
876 infarg.o, add inf-ptrace.o.
877 * config/sparc/nm-nbsdaout.h: Remove file.
878 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
879 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
880 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
881
06c2338d
MK
882 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
883 "fopen-same.h". Update comment.
884
3303a276
MK
8852004-10-11 Mark Kettenis <kettenis@gnu.org>
886
887 * i386gnu-nat.c: Include "gdb_string.h".
888 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
889 registers when the floating-point state isn't initialized.
890 * Makefile.in (i386gnu-nat.o): Update dependencies.
891
04c663e3
DA
8922004-10-11 David Anderson <davea@sgi.com>
893
894 * regcache.c (regcache_raw_read): Comment was missing "to".
895 Extraneous ' removed.
896 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
897 comment now describes use.
898
a5f6c8f5
OF
8992004-10-11 Orjan Friberg <orjanf@axis.com>
900
901 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
902 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
903 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
904 (cris_sigtramp_frame_sniffer): New functions.
905 (cris_gdbarch_init): Hook in signal trampoline unwinder.
906 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
907 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
908 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
909 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
910 command.
911 (cris_version_update): Remove, replace with ...
912 (set_cris_version): New function.
913 (struct gdbarch_tdep, cris_mode, cris_mode_update)
914 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
915 (_initialize_cris_tdep): Remove CRIS mode command.
916 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
917 cris-fpless-backtrace command.
918 (cris_scan_prologue): Fix prologue scanning limit.
919 (cris_register_type): Update to reflect actual registers.
920 (cris_register_bytes_ok) Remove.
921 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
922 Remove set_gdbarch_deprecated_register_size,
923 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
924
77109804
AC
9252004-10-10 Andrew Cagney <cagney@gnu.org>
926
927 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
928 comment.
929
25652d4f
JB
9302004-10-10 Joel Brobecker <brobecker@gnat.com>
931
932 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
933
1e05a7bf
JB
9342004-10-10 Joel Brobecker <brobecker@gnat.com>
935
936 * mips-tdep.c (mips16_scan_prologue): Renames
937 mips16_heuristic_proc_desc. Update comment.
938 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
939 (heuristic_proc_desc): Update calls to the 2 functions above.
940
c68a4142
JB
9412004-10-10 Joel Brobecker <brobecker@gnat.com>
942
943 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
944 Update comments. Also immediately return empty cache when the start
945 address of our function could not be found.
946 (mips_insn32_frame_cache): Likewise.
947
0fce0821
JB
9482004-10-10 Joel Brobecker <brobecker@gnat.com>
949
950 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
951 (mips_insn16_frame_cache): Pass frame cache in call to
952 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
953 Remove code that became redundant as a consequence.
954 (mips32_heuristic_proc_desc): No longer compute a fake
955 procedure descriptor. Compute the full frame cache instead.
956 Some minor comment reformatting.
957
b672553e
JB
9582004-10-10 Jim Blandy <jimb@redhat.com>
959
960 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
961 reader, tracing bytecode stuff): Remove self.
962
9cc52bde
MK
9632004-10-10 Mark Kettenis <kettenis@gnu.org>
964
cc9784b6
MK
965 * sparc64-linux-tdep.c: Update copyright year. Don't include
966 "solib-svr4.h".
967 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
968 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
969 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
970
ee8aef23
MK
971 * sparc-linux-tdep.c: Update copyright year.
972 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
973 to struct frame_info *. Use safe_frame_unwind_memory instead of
974 deprecated_read_memory_nobpt.
975 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
976 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
977 changed signature of sparc_linux_sigtramp_start.
978 (sparc32_linux_pc_in_sigtramp): Remove function.
979 (sparc32_linux_sigtramp_p): New function.
980 (sparc32_linux_sigtramp_frame_sniffer): Use
981 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
982
bc73f8cc
MK
983 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
984 Remove function.
985 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
986
a2249542
MK
987 * ada-lang.c (lim_warning): Re-implement as a varargs function.
988 (decode_packed_array_type, value_subscript_packed)
989 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
990 argument in call to lim_warning.
991
9cc52bde
MK
992 * configure.in: Really disable the TUI if an enhanced curses
993 library isn't found.
994 * configure: Regenerate.
995
151fc45b
MK
9962004-10-09 Mark Kettenis <kettenis@gnu.org>
997
998 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
999 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
1000 * config/i386/nm-nbsdaout.h: Remove file.
1001 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
1002 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
1003 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
1004 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
1005 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
1006 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
1007 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
1008 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
1009 (ldd, ld_un, ld_2): Remove defines.
1010 * config/i386/nm-obsd.h: Likewise.
1011
375c0479
PH
10122004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
1013
1014 * ada-lex.l: Remove useless rule whose right-context clause
1015 causes unreferenced static function warning for yyrealloc.
1016 (ada_flex_use): Remove the artificial reference to yyrealloc.
1017
c8e73a31
AC
10182004-10-08 Andrew Cagney <cagney@gnu.org>
1019
1020 * target.h (struct target_ops): Rename to_xfer_memory to
1021 deprecated_xfer_memory.
1022 * target.c: Update.
1023 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
1024 * wince.c: Update.
1025 * win32-nat.c: Update.
1026 * v850ice.c: Update.
1027 * uw-thread.c: Update.
1028 * thread-db.c: Update.
1029 * sol-thread.c: Update.
1030 * remote.c: Update.
1031 * remote-vx.c: Update.
1032 * remote-st.c: Update.
1033 * remote-sim.c: Update.
1034 * remote-sds.c: Update.
1035 * remote-rdp.c: Update.
1036 * remote-rdi.c: Update.
1037 * remote-mips.c: Update.
1038 * remote-m32r-sdi.c: Update.
1039 * remote-e7000.c: Update.
1040 * procfs.c: Update.
1041 * ppc-bdm.c: Update.
1042 * nto-procfs.c: Update.
1043 * monitor.c: Update.
1044 * linux-nat.c: Update.
1045 * inftarg.c: Update.
1046 * hpux-thread.c: Update.
1047 * go32-nat.c: Update.
1048 * gnu-nat.c: Update.
1049 * exec.c: Update.
1050 * corelow.c: Update.
1051 * bsd-kvm.c: Update.
1052 * aix-thread.c: Update.
1053
aa869812
AC
10542004-10-08 Andrew Cagney <cagney@gnu.org>
1055
1056 * target.c (debug_target): Move to near start of file.
1057 (target_stopped_data_address_p): Re-org logic, add casts.
1058
8dcef9cf
MK
10592004-10-02 Mark Kettenis <kettenis@gnu.org>
1060
1061 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
1062 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
1063 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
1064 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
1065 New defines.
1066
4aa7a7f5
JJ
10672004-10-08 Jeff Johnston <jjohnstn@redhat.com>
1068
1069 * target.h (to_stopped_data_address): Change prototype to
1070 take a CORE_ADDR pointer and return an int.
1071 * target.c (update_current_target): Change to_stopped_data_address
1072 to match new prototype.
1073 (debug_to_stopped_data_address): Change appropriately.
1074 * breakpoint.c (bpstat_stop_status): Change call to
1075 target_stopped_data_address to use new prototype.
1076 * frv-tdep.c (frv_have_stopped_data_address): New function.
1077 (frv_stopped_data_address): Change to new prototype and
1078 functionality.
1079 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
1080 prototype and functionality.
1081 (ia64_stopped_by_watchpoint): New function.
1082 * i386-nat.c (i386_stopped_data_address): Change to new
1083 prototype and functionality.
1084 (i386_stopped_by_watchpoint): New function.
1085 * remote.c (remote_stopped_data_address): Change to new prototype
1086 and functionality.
1087 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
1088 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
1089 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
1090 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
1091 new i386_stopped_by_watchpoint function.
1092 (i386_stopped_by_watchpoint): New prototype.
1093 (i386_stoppped_data_address): Change to new prototype.
1094 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
1095 new ia64_stopped_by_watchpoint function.
1096 (ia64_stopped_by_watchpoint): New prototype.
1097 (ia64_stopped_data_address): Ditto.
1098
61ee279c
PH
10992004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
1100
1101 * ada-typeprint.c (ada_print_type): Use int_string for printing
1102 modulus of modular type.
1103 * ada-lang.h (ada_modulus): Change return type to unsigned.
1104 * ada-lang.c (ada_language_arch_info): Correct type of
1105 string_char_type.
1106 (ada_modulus): Return unsigned result.
1107 (ada_lookup_symbol): Remove user disambiguation and modify comment
1108 accordingly.
1109
11102004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
1111
1112 Committed by Paul Hilfinger.
1113 * ada-lang.c (decode_packed_array): On big-endian targets,
1114 left-justify the value if it comes with a modular type.
1115
11162004-10-08 Joel Brobecker <brobecker@gnat.com>
1117
1118 Committed by Paul Hilfinger.
1119 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
1120 (is_name_suffix): Add support for "___JM" suffixes.
1121 (ada_check_typedef): Renames ada_completed_type.
1122 Update all users of CHECK_TYPEDEF, check_typedef, and
1123 ada_complete_type to call ada_check_typedef.
1124 * ada-typeprint.c: Likewise.
1125 * ada-valprint.c: Likewise.
1126
b6c25a56
CV
11272004-10-08 Corinna Vinschen <vinschen@redhat.com>
1128
1129 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
1130
83ca6a46
NR
11312004-10-08 Nick Roberts <nickrob@snap.net.nz>
1132
1133 * MAINTAINERS: Update e-mail address.
1134
1fd8cd20
DJ
11352004-10-07 Daniel Jacobowitz <dan@debian.org>
1136
1137 From Maciej W. Rozycki <macro@mips.com>:
1138 * mips-tdep.c (mips32_next_pc): Check the register's contents,
1139 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
1140
cea15572
KI
11412004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
1142
1143 * m32r-tdep.c (decode_prologue): Support functions written
1144 in assembler language. Recognize trap instructions as the
1145 end of prologue.
1146 (m32r_frame_unwind_cache): Ditto.
1147 (m32r_skip_prologue): Extend search limit. Quit analyzing
1148 prologue if pc's location is not readable.
1149
23485554
PH
11502004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
1151
1152 * Makefile.in (.l.c): Do conversions of names of alloc and free
1153 functions that are done for .y.c files, plus special one
1154 for yy_flex_realloc. Also, correct missing-file tests here.
1155 * ada-lex.l (malloc, free): Remove macros.
1156 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
1157 xrealloc.
1158 (ada_flex_use): Dummy definition to remove warnings about unused
1159 functions.
1160 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
1161 to suppress warning.
1162
c0409442
CV
11632004-10-06 Corinna Vinschen <vinschen@redhat.com>
1164
1165 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
1166 RETURN_VALUE.
1167 (sh_return_value_fpu): Ditto for CPUs with FPU.
1168 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
1169 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
1170 Install sh_return_value_nofpu resp. sh_return_value_fpu as
1171 RETURN_VALUE functions.
1172
9bed62d7
CV
11732004-10-06 Corinna Vinschen <vinschen@redhat.com>
1174
1175 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
1176 (sh_pseudo_register_write): Ditto.
1177
03131d99
CV
11782004-10-06 Corinna Vinschen <vinschen@redhat.com>
1179
1180 * sh-tdep.c (IS_MACL_STS): New define.
1181 (IS_MOVI20): Ditto.
1182 (IS_MACL_LDS): Ditto.
1183 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
1184 instructions in prologue.
1185 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
1186 instructions in epilogue.
1187
da962468
CV
11882004-10-06 Corinna Vinschen <vinschen@redhat.com>
1189
1190 * sh-tdep.c (SH_NUM_REGS): Define as 67.
1191 (sh_sh_register_name): Add eight empty register names.
1192 (sh_sh3_register_name): Ditto.
1193 (sh_sh3e_register_name): Ditto.
1194 (sh_sh2e_register_name): Ditto.
1195 (sh_sh2a_register_name): New function, defining SH2A register set.
1196 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
1197 in nofpu case.
1198 (sh_sh_dsp_register_name): Add eight empty register names.
1199 (sh_sh3_dsp_register_name): Ditto.
1200 (sh_sh4_register_name): Ditto.
1201 (sh_sh4_nofpu_register_name): Ditto.
1202 (sh_sh4al_dsp_register_name): Ditto.
1203 (sh2a_show_regs): New function.
1204 (sh2a_nofpu_show_regs): New function.
1205 (sh_sh2a_register_type): New function.
1206 (do_bank_register_info): New function.
1207 (sh_print_pseudo_register): Call do_bank_register_info.
1208 Call sh_print_pseudo_register for valid "bank" register.
1209 (sh_sh2a_register_sim_regno): New function.
1210 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
1211 Increment pseudo register count by one for all sh variants with
1212 pseudo registers to accomodate pseudo bank register.
1213 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
1214 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
1215 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
1216 Increment pseudo register numbers.
1217
1326e61b
CV
12182004-10-06 Corinna Vinschen <vinschen@redhat.com>
1219
1220 * dwarf2read.c (read_subroutine_type): Call make_function_type
1221 instead of lookup_function_type.
1222
146c42e3
JB
12232004-10-05 Jim Blandy <jimb@redhat.com>
1224
1225 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
1226 (Previous change missed some uses.)
1227
1df84f13
AC
12282004-10-05 Andrew Cagney <cagney@gnu.org>
1229
1230 * target.h (deprecated_child_ops): Rename child_ops.
1231 * wince.c: Update copyright. Rename child_ops.
1232 * win32-nat.c: Rename child_ops.
1233 * target.c: Rename child_ops.
1234 * rs6000-nat.c: Rename child_ops.
1235 * linux-nat.c: Rename child_ops.
1236 * infttrace.c: Rename child_ops.
1237 * inftarg.c: Rename child_ops.
1238 * infptrace.c: Rename child_ops.
1239 * hppah-nat.c: Update copyright. Rename child_ops.
1240 * hpux-thread.c: Update copyright. Rename child_ops.
1241
21e3b9b9
DJ
12422004-10-05 Daniel Jacobowitz <dan@debian.org>
1243
1244 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
1245
de83afe7
AC
12462004-10-05 Andrew Cagney <cagney@gnu.org>
1247
1248 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
1249
10b3939b
DJ
12502004-10-05 Daniel Jacobowitz <dan@debian.org>
1251
1252 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
1253 (die_ref_table): Remove.
1254 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
1255 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
1256 the usage of this type.
1257 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
1258 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
1259 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
1260 (dwarf2_create_include_psymtab): Update comment.
1261 (find_partial_die): Remove third argument. Remove unreachable call
1262 to error ().
1263 (dwarf2_find_containing_comp_unit): Update comments. Change one
1264 assertion to an error. Remove an unreachable error.
1265 (dwarf2_find_comp_unit): Update comments.
1266 (type_at_offset): Remove dead code.
1267 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
1268 (store_in_ref_table): Add CU argument.
1269 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
1270 inter-compilation-unit references.
1271 (load_full_comp_unit, process_full_comp_unit): New functions, based
1272 on psymtab_to_symtab_1.
1273 (psymtab_to_symtab_1): Use them.
1274 (dwarf2_add_dependence): New function.
1275 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
1276 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
1277 (partial_die_parent_scope, guess_structure_name): Update for changes
1278 to find_partial_die.
1279 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
1280 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
1281 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
1282 (read_die_and_children): Update call to store_in_ref_table.
1283 (do_free_die_list_cleanup): Remove.
1284 (fixup_partial_die): Update for changes to find_partial_die.
1285 (read_full_die): Handle queueing absolute references.
1286 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
1287 (dwarf2_attr, die_specification, die_type)
1288 (die_containing_type, dwarf2_extension): Update calls to
1289 follow_die_ref.
1290 (dump_die): Update DW_FORM_ref* handling.
1291 (dwarf2_get_ref_die_offset): Likewise.
1292 (free_one_comp_unit): Release the dies list.
1293 (dwarf2_mark_helper): New function.
1294 (dwarf2_mark): Use it.
1295
998bdd68
MK
12962004-10-05 Mark Kettenis <kettenis@jive.nl>
1297
1298 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
1299 when writing to memory.
1300
14588880
KI
13012004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
1302
1303 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
1304 (m32r_extract_struct_value_address): Delete function.
1305 (m32r_return_value): New function.
1306 (m32r_gdbarch_init): Instead of store_return_value,
1307 extract_return_value, deprecated_extract_struct_value_address
1308 and deprecated_use_struct_convention, set return_value.
1309
dd5e6932
DJ
13102004-10-03 Daniel Jacobowitz <dan@debian.org>
1311
1312 * dwarf2read.c (read_subrange_type): Add comment for variable
1313 sized arrays.
1314
7dc1ef8d
PH
13152004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
1316
1317 * Makefile.in (.l.c): Modify rule for compatibility with recent
1318 versions of flex, and remove most command-line options.
1319 * ada-lex.l: Add %options line in place of -I -i and -s command-line
1320 options.
1321
1f8173e6
PH
13222004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
1323
1324 Turn on initial Ada support (mainly expression evaluation).
1325
1326 * Makefile.in (SFILES): Remove ada-tasks.c.
1327 (HFILES_NO_SRCDIR): Add ada-lang.h.
1328 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
1329 (YYOBJ): Add ada-exp.o.
1330 (rule .l.c): Generalize to not mention ada.
1331 * symtab.c: Include ada-lang.h.
1332 (symbol_natural_name, symbol_demangled_name)
1333 (symbol_search_name): Add Ada case.
1334
cb85a953
AC
13352004-10-01 Andrew Cagney <cagney@gnu.org>
1336
3f3db248
AC
1337 * Makefile.in (COMMON_OBS): Add inf-child.o.
1338 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
1339 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1340 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1341 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
1342 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
1343 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
1344 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
1345 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
1346 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1347 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1348 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
1349 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
1350 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
1351
cb85a953
AC
1352 * target.c (xfer_using_stratum): Change return type to LONGEST.
1353 On each iteration offset, readbuf and writebuf.
1354 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
1355 partial_length, and read/modify/write predicate, update comments.
1356 Pass buffer.word to ptrace write.
1357
963a6417
PH
13582004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1359
1360 * symfile.c (init_filename_language_table): Add extensions for
1361 Ada.
1362 * defs.h (enum language): Add language_ada.
1363 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
1364 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
1365 (add_symbols_from_enclosing_procs): Make a no-op for now.
1366 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
1367 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
1368 (find_line_in_linetable, find_next_line_in_linetable)
1369 (read_all_symtabs, is_plausible_func_for_line)
1370 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
1371 (is_runtime_sym_defined, check_size): Remove declaration.
1372 (function_name_from_pc, ada_translate_error_message)
1373 (ada_lookup_minimal_symbol): Remove definition.
1374 (ada_add_block_symbols): Remove useless label.
1375 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
1376 useless declaration.
1377 (ada_is_exception_sym): Likewise.
1378
9b32d526
KI
13792004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
1380
1381 Add m32r-linux support.
1382 * configure.tgt: Add m32r*-*-linux*.
1383 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
1384 and m32r-linux-tdep.c.
1385 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
1386 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
1387 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
1388 m32r-linux-tdep.c.
1389 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
1390 config/m32r/linux.mh, config/m32r/linux.mt,
1391 config/m32r/nm-linux.h: New files.
1392
2de118d3
JB
13932004-09-30 Joel Brobecker <brobecker@gnat.com>
1394
1395 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
1396 (mips32_fetch_instruction): Remove, unused.
1397
a9fe69d1
JB
13982004-09-30 Joel Brobecker <brobecker@gnat.com>
1399
1400 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
1401 conditions that will always be true.
1402
bc8ffc12
MK
14032004-09-30 Mark Kettenis <kettenis@gnu.org>
1404
ba0cd111
MK
1405 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
1406 (vaxbsd_fetch_inferior_registers): Rename from
1407 fetch_inferior_registers. Make static.
1408 (vaxbsd_store_inferior_registers): Rename from
1409 store_inferior_registers. Make static.
1410 (_initialize_vaxbsd_nat): Construct and add target vector.
1411 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1412 inftarg.o. Add inf-child.o and inf-ptrace.o.
1413 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1414 inftarg.o. Add inf-child.o and inf-ptrace.o.
1415 (NAT_FILE): Remove.
1416 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
1417 inftarg.o. Add inf-child.o and inf-ptrace.o.
1418 (NAT_FILE): Remove.
1419 * Makefile.in (vaxbsd-nat.o): Update dependencies.
1420
bc8ffc12
MK
1421 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
1422 (m88kbsd_fetch_inferior_registers): Rename from
1423 fetch_inferior_registers. Make static.
1424 (m88kbsd_store_inferior_registers): Rename from
1425 store_inferior_registers. Make static.
1426 (_initialize_m88kbsd_nat): New prototype and function.
1427 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
1428 inftarg.o. Add inf-child.o and inf-ptrace.o.
1429 (NAT_FILE): Remove.
1430 * Makefile.in (m88kbsd-nat.o): Update dependencies.
1431
27394598
AC
14322004-09-30 Andrew Cagney <cagney@gnu.org>
1433
1434 * target.c (target_xfer_partial): New function.
1435 (target_read_memory_partial, target_write_memory_partial)
1436 (default_xfer_partial, target_read_partial, target_write_partial)
1437 (xfer_using_stratum): Use.
1438 (debug_to_xfer_partial): Delete function.
1439 (setup_target_debug): Do not override to_xfer_partial.
1440
74a4fe32
MK
14412004-09-30 Mark Kettenis <kettenis@chello.nl>
1442
1443 * fork-child.c: Update copyright year. Fix coding style.
1444
982526a1
MK
14452004-09-29 Mark Kettenis <kettenis@gnu.org>
1446
1447 * defs.h (msavestring, mstrsave): Remove prototypes.
1448 * utils.c (msavestring, mstrsave): Remove functions.
1449 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
1450 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
1451 of mstrsave.
1452 * source.c (find_and_open_source): Use xstrdup instead of
1453 mstrsave.
1454
b8eb5af0
AC
14552004-09-30 Andrew Cagney <cagney@gnu.org>
1456
0779438d
AC
1457 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
1458 (inf_ptrace_xfer_memory): Delete.
1459 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
1460 (target_read_memory, target_write_memory): Use xfer_using_stratum
1461 when target_xfer_partial_p.
1462 (debug_target): Move to start of file.
1463 (target_read_memory_partial, target_write_memory_partial): Use
1464 to_xfer_partial when target_xfer_partial_p.
1465
f929a579
AC
1466 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
1467 inf_ptrace_xfer_memory with equivalent code.
1468 * inftarg.c (child_xfer_partial): When performing a write, pass
1469 writebuf to child_xfer_memory.
1470
b8eb5af0
AC
1471 * target.c (target_read_string): Use target_read_memory instead of
1472 target_xfer_memory.
1473
ee21b650
AC
14742004-09-29 Andrew Cagney <cagney@gnu.org>
1475
d3e05d0d
AC
1476 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
1477 the address of status.
1478
ee21b650
AC
1479 * infptrace.c (ptrace_wait): Mention problem with HPUX.
1480 (kill_inferior): Inline ptrace_wait call.
1481 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
1482 * inftarg.c (child_wait): Inline ptrace_wait call.
1483
a182eed6
AC
1484 * target.h (struct target_ops): Delete field to_post_wait.
1485 (target_post_wait): Delete macro.
1486 (child_post_wait): Delete declaration.
1487 * target.c (update_current_target, update_current_target)
1488 (debug_to_post_wait, setup_target_debug): Delete functions and
1489 references.
1490 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
1491 * inftarg.c (child_post_wait): Delete.
1492 (init_child_ops): Do not set to_post_wait.
1493 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
1494 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
1495 * inf-child.c (inf_child_post_wait): Delete.
1496 (inf_child_target): Do not set to_post_wait.
1497 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
1498 (inf_ptrace_target): Do not set to_post_wait.
1499
ba0c540b
AC
1500 * wince.c (child_ops): Delete.
1501 * win32-nat.c (child_ops): Delete.
1502
81977402
AC
1503 * inftarg.c (inftarg_set_find_memory_regions)
1504 (inftarg_set_make_corefile_notes): Delete functions.
1505 (_initialize_linux_nat): Inline calls.
1506
5ac10fd1
AC
1507 * target.h (child_ops): Declare.
1508 * inftarg.c (child_ops): Move from here ...
1509 * target.c (child_ops): ... to here.
1510 * wince.c (child_ops): Delete extern declaration.
1511 * win32-nat.c (child_ops): Delete extern declaration.
1512 * linux-nat.c (child_ops): Delete extern declaration.
1513 * hpux-thread.c (child_ops): Delete extern declaration.
1514
663408c2 15152004-09-28 Mark Kettenis <kettenis@gnu.org>
890c8f4d
MK
1516
1517 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
1518
0dad8a66
MK
15192004-09-28 Mark Kettenis <kettenis@gnu.org>
1520
1521 * configure.in: Only set host_makefile_frag when building a native
1522 debugger.
1523 * configure: Regenerate.
e8d74ed3
MK
1524
1525 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
1526 for OpenBSD ELF.
1527
dba24537
AC
15282004-09-28 Andrew Cagney <cagney@gnu.org>
1529
e979516b
AC
1530 Problem identified by Paul Hilfinger.
1531 * Makefile.in (ada_lex_c): Define.
1532 (ada-lex.o): Delete rule.
1533
dba24537
AC
1534 * linux-proc.c: Delete file.
1535 * Makefile.in: Update.
1536 * config/sparc/linux64.mh (NATDEPFILES):
1537 * config/sparc/linux.mh (NATDEPFILES): Update.
1538 * config/s390/s390.mh (NATDEPFILES): Update.
1539 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
1540 * config/powerpc/linux.mh (NATDEPFILES): Update.
1541 * config/pa/linux.mh (NATDEPFILES): Update.
1542 * config/mips/linux.mh (NATDEPFILES): Update.
1543 * config/m68k/linux.mh (NATDEPFILES): Update.
1544 * config/ia64/linux.mh (NATDEPFILES): Update.
1545 * config/i386/linux64.mh (NATDEPFILES): Update.
1546 * config/i386/linux.mh (NATDEPFILES): Update.
1547 * config/arm/linux.mh (NATDEPFILES): Update.
1548 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
1549 * linux-nat.c: Update copyright. Include <sys/param.h>,
1550 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
1551 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
1552 (O_LARGEFILE): Possibly define.
1553 (_initialize_linux_nat, linux_proc_pending_signals)
1554 (add_line_to_sigset, linux_proc_xfer_memory)
1555 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
1556 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
1557 (struct linux_corefile_thread_data)
1558 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
1559 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
1560
d6b0e80f
AC
15612004-09-16 Andrew Cagney <cagney@gnu.org>
1562
1563 * lin-lwp.c: Delete file.
1564 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
1565 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
1566 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
1567 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
1568 (linux_nat_attach, detach_callback, linux_nat_detach)
1569 (resume_callback, resume_clear_callback, linux_nat_resume)
1570 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
1571 (stop_wait_callback, linux_nat_has_pending, flush_callback)
1572 (status_callback, running_callback, count_events_callback)
1573 (select_singlestep_lwp_callback, select_event_lwp_callback)
1574 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
1575 (child_wait, stop_and_resume_callback, linux_nat_wait)
1576 (kill_callback, kill_wait_callback, linux_nat_kill)
1577 (linux_nat_create_inferior, linux_nat_mourn_inferior)
1578 (linux_nat_xfer_memory, linux_nat_thread_alive)
1579 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
1580 (_initialize_linux_nat): New functions.
1581 * Makefile.in: Update all dependencies.
1582 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
1583 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1584 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
1585 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
1586 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1587 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1588 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1589 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1590 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1591 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
1592 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1593 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1594 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
1595
5a174d79
MK
15962004-09-27 Mark Kettenis <kettenis@gnu.org>
1597
2f604c28
MK
1598 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
1599 config/i386/obsd64.mh (NAT_FILE): Remove variable.
1600
5a174d79
MK
1601 * configure.in: Don't comment out NATDEPFILES in the generated
1602 Makefile if NAT_FILE is unset.
1603 * configure: Regenerate.
1604
b2ed1746
AC
16052004-09-27 Andrew Cagney <cagney@gnu.org>
1606
44cbf7b5
AC
1607 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
1608 (insert_step_resume_breakpoint): Delete.
1609 (insert_step_resume_breakpoint_at_frame): New function.
1610 (insert_step_resume_breakpoint_at_sal): New function.
1611 (handle_inferior_event, step_into_function)
1612 (insert_step_resume_breakpoint): Simplify by using same.
1613
b2ed1746
AC
1614 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
1615
3691b3be
MK
16162004-09-26 Mark Kettenis <kettenis@gnu.org>
1617
36f391e8
MK
1618 * fbsd-proc.c: Remove file.
1619 * Makefile.in (fbsd-proc.o): Remove dependency.
1620
771e236c
MK
1621 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
1622 code together.
1623
3691b3be
MK
1624 * config/i386/nm-fbsd64.h: Remove file.
1625 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1626
6a5c78a3
MK
16272004-09-26 Mark Kettenis <kettenis@gnu.org>
1628
1629 * amd64-nat.h: Update copyright year.
1630 (amd64bsd_target): New prototype.
1631 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
1632 (amd64bsd_target): New function.
1633 (amd64bsd_fetch_inferior_registers): Rename from
1634 fetch_inferior_registers. Make static.
1635 (amd64bsd_store_inferior_registers): Rename from
1636 store_inferior_registers. Make static.
1637 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
1638 (_initialize_amd64fbsd_nat): Construct and add target vector.
1639 * amd64nbsd-nat.o: Include "target.h".
1640 (_initialize_amd64nbsd_nat): Construct and add target vector.
1641 * amd64obsd-nat.c: Include "target.h".
1642 (_initialize_amd64obsd_nat): Construct and add target vector.
1643 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
1644 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
1645 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
1646 fbsd-nat.o.
1647 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
1648 Remove infptrace.o and inftarg.o. Add inf-child.o and
1649 inf-ptrace.o.
1650 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
1651 (amd64obsd-nat.o): Update dependencies.
1652
27acbe61
MK
16532004-09-25 Mark Kettenis <kettenis@gnu.org>
1654
509a5e7d
MK
1655 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
1656 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
1657 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
1658 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
1659 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
1660
6e1e94ea
MK
1661 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
1662 Inline attach call.
1663 (inf_ptrace_detach): Inline detach call.
1664
8b9cf735
MK
1665 * configure.in: Check for waddstr instead of mvwaddstr when
1666 searching for curses library. Check for wborder.
1667 * configure, config.in: Regenerate.
1668 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
1669 available.
1670
27acbe61
MK
1671 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
1672
b96ec7ac
AC
16732004-09-24 Robert Picco <Robert.Picco@hp.com>
1674
1675 Committed by Andrew Cagney.
1676 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
1677 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
1678 configuration.
1679 (fetch_register_using_p): Implement 'p' packet. Based on code by
1680 Fernando Nasser.
1681 (remote_fetch_registers): Call fetch_register_using_p.
1682 (init_all_packet_configs, show_remote_cmd)
1683 (_initialize_remote): Add p-packet.
1684
62ece330
MK
16852004-09-24 Mark Kettenis <kettenis@gnu.org>
1686
1687 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
1688 instead of call_ptrace. Call wait directly instead of
1689 ptrace_wait.
1690 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
1691 (inf_ptrace_wait): Inline ptrace_wait call.
1692
00937274
PH
16932004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
1694
1695 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
1696 rolled back instead.
1697
3f2c7a45
PH
16982004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
1699
1700 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
1701 the new argument order.
1702
b6fcb393
CV
17032004-09-23 Corinna Vinschen <vinschen@redhat.com>
1704
1705 * MAINTAINERS: Remove "broken" from XStormy16 entry.
1706 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
1707 (struct gdbarch_tdep): Remove.
1708 (struct xstormy16_frame_cache): New frame cache structure.
1709 (xstormy16_register_byte, xstormy16_register_raw_size)
1710 (xstormy16_reg_virtual_type, xstormy16_register_type)
1711 (xstormy16_push_arguments, xstormy16_push_return_address)
1712 (xstormy16_pop_frame, xstormy16_store_struct_return)
1713 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
1714 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
1715 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
1716 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
1717 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
1718 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
1719 (xstormy16_use_struct_convention): Drop gcc_p parameter.
1720 (xstormy16_extract_return_value, xstormy16_store_return_value):
1721 Regcachify. Drop useless struct convention handling.
1722 (xstormy16_register_type, xstormy16_return_value)
1723 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
1724 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
1725 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
1726 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
1727 (xstormy16_unwind_sp, xstormy16_unwind_pc)
1728 (xstormy16_unwind_dummy_id) : New functions.
1729 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
1730 of xstormy16_scan_prologue.
1731 (xstormy16_frame_unwind): New frame_unwind structure.
1732 (xstormy16_frame_base): New frame_base structure.
1733 (xstormy16_gdbarch_init): Accomodate all of the above changes.
1734 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
1735
1285b746
MK
17362004-09-22 Mark Kettenis <kettenis@gnu.org>
1737
1738 * language.c (language_gdbarch_post_init): Fix off-by one error.
1739
1c379e20
DJ
17402004-09-21 Daniel Jacobowitz <dan@debian.org>
1741
1742 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
1743 (struct dwarf2_offset_and_type): New.
1744 (set_die_type, reset_die_and_siblings_types, get_die_type)
1745 (offset_and_type_hash, offset_and_type_eq): New functions.
1746 (read_structure_type, read_enumeration_type, read_array_type)
1747 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
1748 (read_tag_reference_type, read_tag_const_type)
1749 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
1750 (read_typedef, read_base_type, read_subrange_type): Use
1751 set_die_type.
1752
ae038cb0
DJ
17532004-09-20 Daniel Jacobowitz <dan@debian.org>
1754
1755 * Makefile.in (dwarf2read.o): Update dependencies.
1756 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
1757 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
1758 and read_in_chain.
1759 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
1760 mark, and has_form_ref_addr.
1761 (struct dwarf2_per_cu_data): New.
1762 (dwarf2_max_cache_age): New.
1763 (dwarf2_build_psymtabs_hard): Free cached compilation units
1764 after loading. Create and manage the list of compilation units.
1765 Remove unnecessary NULL initialization. Fix indentation.
1766 (psymtab_to_symtab_1): Initialize all of CU.
1767 (dwarf2_read_abbrevs): Set has_form_ref_addr.
1768 (find_partial_die): Use dwarf2_find_containing_comp_unit
1769 and load_comp_unit.
1770 (free_stack_comp_unit): Update comments. Clear the per-cu
1771 pointer. Handle aging.
1772 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
1773 (age_cached_comp_units, free_one_cached_comp_unit)
1774 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
1775 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
1776 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
1777 (show_dwarf2_cmd): New.
1778 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
1779 and "maint show dwarf2 max-cache-age".
1780 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
1781 externs.
1782 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
1783 global.
1784
987504bb
JJ
17852004-09-20 Jeff Johnston <jjohnstn@redhat.com>
1786
1787 * dwarf2read.c (typename_concat): Change prototype to accept obstack
1788 and dwarf2_cu struct pointer as arguments. Change function to use
1789 obstack if provided and use dwarf2_cu to determine language-specific
1790 separator.
1791 (partial_die_parent_scope): Change comment to include java. Use
1792 new version of typename_concat instead of obconcat.
1793 (partial_die_full_name): Use typename_concat.
1794 (read_namespace): Ditto.
1795 (read_enumeration_type): Use typename_concat instead of obconcat.
1796 (new_symbol): Ditto.
1797 (add_partial_symbol): Enhance tests for C++ to also test for Java.
1798 (guess_structure_name): Ditto.
1799 (read_subroutine_type): Ditto.
1800 (read_structure_type): Ditto.
1801 (is_vtable_name): Add Java support.
1802 (determine_class_name): Switch to new typename_concat call.
1803 (determine_prefix): Switch to new typename_concat call.
1804 * jv-exp.y (FuncStart): New pattern.
1805 (MethodInvocation): Add support for simple function calls. Change
1806 warning message for other forms of inferior call currently not
1807 supported.
1808 * valarith.c (value_subscript): Treat an array with upper-bound
1809 of -1 as unknown size.
1810
d9c8471e
DJ
18112004-09-20 Daniel Jacobowitz <dan@debian.org>
1812
1813 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
1814 (lookup_partial_symtab): Use symtab_to_fullname.
1815
d73f140a
JB
18162004-09-19 Jim Blandy <jimb@redhat.com>
1817
1818 * minsyms.c (lookup_minimal_symbol): Doc fix.
1819
adbef1f0
AC
18202004-09-20 Andrew Cagney <cagney@gnu.org>
1821
1822 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
1823 CHILD_RESUME.
1824 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
1825 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
1826 KILL_INFERIOR.
1827 * infptrace.c: Update.
1828
d092d1a2
DJ
18292004-09-19 Daniel Jacobowitz <dan@debian.org>
1830
1831 * symtab.c (output_source_filename): Mark first argument as const.
1832 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
1833 for "info sources" output.
1834
86d9e1d7
MK
18352004-09-20 Mark Kettenis <kettenis@gnu.org>
1836
1837 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
1838 <machine/vmparam.h>.
1839 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
1840 (register_u_addr): Remove prototype.
1841
9a6c8ef4
MK
18422004-09-19 Mark Kettenis <kettenis@gnu.org>
1843
9692934b
MK
1844 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
1845 (i386bsd_fetch_inferior_registers): Rename from
1846 fetch_inferior_registers. Make static.
1847 (i386bsd_store_inferior_registers): Rename from
1848 store_inferior_registers. Make static.
1849 (i386bsd_target): New function.
1850 * i386bsd-nat.h: New file.
1851 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
1852 "i386bsd-nat.h".
1853 (i386fbsd_resume): Rename from child_resume. Make static.
1854 (_initialize_i386fbsd_nat): Construct and add target vector.
1855 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
1856 (_initialize_i386nbsd_nat): Construct and add target vector.
1857 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
1858 Remove defines.
1859 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
1860 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
1861 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
1862 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
1863 (LOADLIBES): New variable.
1864 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
1865 inf-ptrace.o. Remove inftarg.o.
1866 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
1867 inf-ptrace.o. Remove inftarg.o.
1868 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
1869 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
1870 (LOADLIBES): New variable.
1871 * Makefile.in (i386bsd_nat_h): New variable.
1872 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
1873 dependencies.
1874
3510d1f2
MK
1875 * sparc64nbsd-tdep.c: Include "objfiles.h".
1876 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
1877 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
1878 svr4_lp64_fetch_link_map_offsets.
1879 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
1880 "nbsd-tdep.h".
1881 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
1882 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
1883 svr4_lp64_fetch_link_map_offsets.
1884 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
1885 dependencies.
1886
578c1c03
MK
1887 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
1888 * fbsd-nat.h: New file.
1889 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
1890 (fbsd_nat_h): New variable.
1891 (fbsd-nat.o): New dependency.
1892
7a7b73b7
MK
1893 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
1894 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
1895
9a6c8ef4
MK
1896 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
1897 comment.
1898
72d5681a
PH
18992004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
1900
1901 * ada-exp.y (type_int): New function to add layer of abstraction
1902 around references to expression types.
1903 (type_long): Ditto.
1904 (type_long_long): Ditto.
1905 (type_float): Ditto.
1906 (type_double): Ditto.
1907 (type_long_double): Ditto.
1908 (type_char): Ditto.
1909 (type_system_address): Ditto.
1910 (simple_exp): Use type_* functions in place of builtin_*
1911 variables.
1912 (exp): Ditto.
1913 (write_var_from_name): Ditto.
1914 (write_object_renaming): Ditto.
1915 * ada-lang.c (ada_create_fundamental_type): Remove redundant
1916 declaration.
1917 (build_ada_types): Remove, replacing with...
1918 (ada_language_arch_info): New function to initialize primitive
1919 type vector in language_arch_info.
1920 (ada_array_length): Remove use of builtin_type_ada_int.
1921 (value_pos_atr): Ditto.
1922 (ada_evaluate_subexp): Ditto.
1923 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
1924 builtin_type_ada_long_long, builtin_type_ada_char,
1925 builtin_type_ada_float, builtin_type_ada_double,
1926 builtin_type_ada_long_double, builtin_type_ada_natural,
1927 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
1928 (ada_builtin_types): Remove.
1929 (ada_language_defn): Remove entries for la_builtin_type_vector and
1930 string_char_type and use ada_language_arch_info.
1931 (_initialize_ada_language): Do type-vector initialization along
1932 the lines of c-lang.c.
1933 (ada_create_fundamental_type): Break up line.
1934 (ada_dump_symtab): Remove unused function.
1935 (enum ada_primitive_types): Define.
1936 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
1937 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
1938 builtin_type_ada_float, builtin_type_ada_double,
1939 builtin_type_ada_long_double, builtin_type_ada_natural,
1940 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
1941 * ada-lex.l: Use type_* functions in place of builtin_* variables.
1942 (processInt): Ditto.
1943 (processReal): Ditto.
1944 (name_lookup): Ditto.
1945 * ada-typeprint.c (print_range): Use builtin_type_int, not
1946 builtin_type_ada_int.
1947
4f0be353
MK
19482004-09-18 Mark Kettenis <kettenis@gnu.org>
1949
30b0e2d8
MK
1950 * i386-tdep.c (i386_register_name): Rename regno to regnum.
1951
4f0be353
MK
1952 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
1953 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
1954 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
1955 * configure.in: Improve checks for curses library by checking for
1956 mvwaddstr instead of initscr. Drop HP curses in favour of
1957 standard curses on HP-UX.
1958 * configure: Regenerated.
1959
72d5681a 19602004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
6c038f32
PH
1961
1962 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
1963 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
1964 Minor formatting changes.
1965 (empty_array): Slight rewrite for formatting.
1966 (emit_char,parse,ada_language_defn,build_ada_types,
1967 ada_is_exception_sym, _initialize_ada_language): Move
1968 definitions around.
1969 (ada_dump_symtab): Remove unused definition.
1970 (ada_maybe_exception_partial_symbol): Remove unused definition.
1971
1c8c7407
AC
19722004-09-16 Andrew Cagney <cagney@gnu.org>
1973
7681f339
AC
1974 * inf-child.c: Include "gdb_string.h".
1975 (inf_child_core_file_to_sym_file): Delete.
1976 (inf_child_target): Set to_fetch_registers and to_store_registers.
1977 * inf-ptrace.c: Include "gdb_string.h".
1978 * Makefile.in: Update all dependencies.
1979
1c8c7407
AC
1980 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
1981 problem.
1982
65596487
JB
19832004-09-14 Joel Brobecker <brobecker@gnat.com>
1984
1985 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
1986 call to heuristic_proc_desc. Remove code that became redundant
1987 as a consequence.
1988 (read_next_frame_reg): Remove special case for SP_REGNUM.
1989 (set_reg_offset): Fix small typo.
1990 (reset_saved_regs): New procedure.
1991 (mips32_heuristic_proc_desc): No longer compute a fake
1992 procedure descriptor. Compute the full frame cache instead.
1993 Some minor comment reformatting.
1994
95575b2e
AC
19952004-09-14 Andrew Cagney <cagney@gnu.org>
1996
f200c492
AC
1997 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
1998 maintainer.
1999
95575b2e
AC
2000 * thread-db.c (thread_db_new_objfile): Assume that there is a
2001 child process.
2002
69657671
JB
20032004-09-13 Jim Blandy <jimb@redhat.com>
2004
2005 * valops.c (value_assign): Move 'buffer' to the enclosing block,
2006 so that its storage isn't referenced after its lifetime ends.
2007
6c4182dd
JB
2008 * valops.c (value_assign): 'use_buffer' is initialized to zero,
2009 and never assigned to. Delete it, and the 'if (use_buffer)'
2010 clauses. Delete 'raw_buffer', since it is now unused.
2011
ee31a58d
AC
20122004-09-13 Andrew Cagney <cagney@gnu.org>
2013
2c0fc042
AC
2014 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
2015 * configure: Re-generate.
2016 * nlm/Makefile.in (TAGS): Update.
2017 * Makefile.in (TAGS): Update.
2018 * config/vax/nbsd.mt (TM_FILE): Update.
2019 * config/sparc/vxworks.mt (TM_FILE): Update.
2020 * config/sparc/sol2.mt (TM_FILE): Update.
2021 * config/sparc/sol2-64.mt (TM_FILE): Update.
2022 * config/sparc/obsd64.mt (TM_FILE): Update.
2023 * config/sparc/obsd.mt (TM_FILE): Update.
2024 * config/sparc/nbsd64.mt (TM_FILE): Update.
2025 * config/sparc/nbsd.mt (TM_FILE): Update.
2026 * config/sparc/linux64.mt (TM_FILE): Update.
2027 * config/sparc/linux.mt (TM_FILE): Update.
2028 * config/sparc/fbsd.mt (TM_FILE): Update.
2029 * config/sh/wince.mt (TM_FILE): Update.
2030 * config/sh/nbsd.mt (TM_FILE): Update.
2031 * config/sh/linux.mt (TM_FILE): Update.
2032 * config/sh/embed.mt (TM_FILE): Update.
2033 * config/s390/s390.mt (TM_FILE): Update.
2034 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
2035 * config/rs6000/rs6000.mt (TM_FILE): Update.
2036 * config/rs6000/aix4.mt (TM_FILE): Update.
2037 * config/powerpc/vxworks.mt (TM_FILE): Update.
2038 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
2039 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
2040 * config/powerpc/obsd.mt (TM_FILE): Update.
2041 * config/powerpc/nbsd.mt (TM_FILE): Update.
2042 * config/powerpc/linux.mt (TM_FILE): Update.
2043 * config/powerpc/aix.mt (TM_FILE): Update.
2044 * config/pa/obsd.mt (TM_FILE): Update.
2045 * config/pa/linux.mt (TM_FILE): Update.
2046 * config/pa/hppahpux.mt (TM_FILE): Update.
2047 * config/pa/hppa64.mt (TM_FILE): Update.
2048 * config/pa/hppa.mt (TM_FILE): Update.
2049 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
2050 * config/mips/wince.mt (TM_FILE): Update.
2051 * config/mips/vxmips.mt (TM_FILE): Update.
2052 * config/mips/nbsd.mt (TM_FILE): Update.
2053 * config/mips/linux.mt (TM_FILE): Update.
2054 * config/mips/irix6.mt (TM_FILE): Update.
2055 * config/mips/irix5.mt (TM_FILE): Update.
2056 * config/mips/embed.mt (TM_FILE): Update.
2057 * config/m68k/vxworks68.mt (TM_FILE): Update.
2058 * config/m68k/st2000.mt (TM_FILE): Update.
2059 * config/m68k/os68k.mt (TM_FILE): Update.
2060 * config/m68k/obsd.mt (TM_FILE): Update.
2061 * config/m68k/nbsd.mt (TM_FILE): Update.
2062 * config/m68k/monitor.mt (TM_FILE): Update.
2063 * config/m68k/linux.mt (TM_FILE): Update.
2064 * config/m68k/cisco.mt (TM_FILE): Update.
2065 * config/ia64/linux.mt (TM_FILE): Update.
2066 * config/ia64/aix.mt (TM_FILE): Update.
2067 * config/ia64/ia64.mt (TM_FILE): Update.
2068 * config/i386/vxworks.mt (TM_FILE): Update.
2069 * config/i386/obsd64.mt (TM_FILE): Update.
2070 * config/i386/obsd.mt (TM_FILE): Update.
2071 * config/i386/nto.mt (TM_FILE): Update.
2072 * config/i386/nbsd64.mt (TM_FILE): Update.
2073 * config/i386/nbsd.mt (TM_FILE): Update.
2074 * config/i386/linux64.mt (TM_FILE): Update.
2075 * config/i386/linux.mt (TM_FILE): Update.
2076 * config/i386/i386sol2.mt (TM_FILE): Update.
2077 * config/i386/i386lynx.mt (TM_FILE): Update.
2078 * config/i386/fbsd64.mt (TM_FILE): Update.
2079 * config/i386/fbsd.mt (TM_FILE): Update.
2080 * config/i386/cygwin.mt (TM_FILE): Update.
2081 * config/h8300/h8300.mt (TM_FILE): Update.
2082 * config/frv/frv.mt (TM_FILE): Update.
2083 * config/cris/cris.mt (TM_FILE): Update.
2084 * config/arm/wince.mt (TM_FILE): Update.
2085 * config/arm/nbsd.mt (TM_FILE): Update.
2086 * config/arm/linux.mt (TM_FILE): Update.
2087 * config/arm/embed.mt (TM_FILE): Update.
2088 * config/alpha/nbsd.mt (TM_FILE): Update.
2089 * config/alpha/fbsd.mt (TM_FILE): Update.
2090 * config/alpha/alpha.mt (TM_FILE): Update.
2091 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
2092 * config/alpha/alpha-linux.mt (TM_FILE): Update.
2093
362646f5
AC
2094 Eliminate event_loop_p, always has the value 1.
2095 * defs.h (event_loop_p): Delete macro.
2096 * breakpoint.c (until_break_command): Simplify.
2097 * utils.c (prompt_for_continue): Simplify.
2098 * tracepoint.c (read_actions): Simplify.
2099 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
2100 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
2101 (set_prompt, init_main): Simplify.
2102 (init_signals, disconnect): Delete, unused.
2103 * remote.c (remote_async_resume)
2104 (extended_remote_async_create_inferior): Simplify.
2105 * mi/mi-interp.c (mi_input): Delete, unused.
2106 (mi_interpreter_resume, mi_command_loop): Simplify.
2107 * interps.c (current_interp_command_loop): Simplify.
2108 * infrun.c (proceed): Simplify.
2109 * infcmd.c (run_command, continue_command, step_1, jump_command)
2110 (until_command, advance_command, finish_command)
2111 (interrupt_target_command): Simplify.
2112 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
2113
ee31a58d
AC
2114 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2115 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2116 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2117 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2118 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2119 * mips-tdep.c (mips_dump_tdep): Do not print same.
2120
b7ffc4a8
AC
21212004-09-12 Andrew Cagney <cagney@gnu.org>
2122
2bfb72ee
AC
2123 * valprint.c (print_longest): Use fputs_filtered. Make "val"
2124 const.
2125 * Makefile.in (valprint.o): Delete explict rule.
2126
4f17c3c1
AC
2127 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
2128 reported by Dave Anderson.
2129
f810308b
AC
2130 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
2131
b7ffc4a8
AC
2132 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
2133
28b41c52
AC
21342004-09-12 Salvador E. Tropea <set@users.sf.net>
2135 Andrew Cagney <cagney@gnu.org>
2136
2137 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
2138 (mi_cmd_data_list_register_values)
2139 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
2140 the register number computation.
2141
5bf970f9
AC
21422004-09-12 Andrew Cagney <cagney@gnu.org>
2143
2144 * ppcnbsd-nat.c: Include "inf-ptrace.h".
2145 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
2146 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
2147 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
2148 target.
2149 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
2150 inf-ptrace.o and inf-child.o.
2151 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
2152 * Makefile.in: Update dependencies.
2153
0759e0bf
AC
21542004-09-11 Andrew Cagney <cagney@gnu.org>
2155
2156 * language.c (hex_string, hex_string_custom): Move from here ...
2157 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
2158 (CELLSIZE): Increase to 50.
2159 * language.h (hex_string, hex_string_custom): Move from here ...
2160 * defs.h: ... to here.
2161 * Makefile.in: Update all dependencies.
2162
bb599908
PH
21632004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
2164
2165 * language.c (local_hex_format_custom): Remove.
2166 (local_hex_string): Rename to hex_string, use C format, and move to
2167 utils.c
2168 (local_hex_string_custom): Rename to hex_string_custom and change
2169 interface. Now uses C format. Move to utils.c
2170 (local_octal_format_custom): Remove.
2171 (local_decimal_format_custom): Remove.
2172 (unknown_language_defn): Remove language-specific number
2173 formatting entries.
2174 (auto_language_defn): Ditto.
2175 (local_language_defn): Ditto.
2176 * language.h (struct language_format_info): Delete declaration.
2177 (struct language_defn): Remove language_format_info fields
2178 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
2179 (local_binary_format): Remove macro.
2180 (local_binary_format_prefix): Remove macro.
2181 (local_binary_format_specifier): Remove macro.
2182 (local_binary_format_suffix): Remove macro.
2183 (local_octal_format): Remove macro.
2184 (local_octal_format_prefix): Remove macro.
2185 (local_octal_format_specifier): Remove macro.
2186 (local_octal_format_suffix): Remove macro.
2187 (local_decimal_format): Remove macro.
2188 (local_decimal_format_prefix): Remove macro.
2189 (local_decimal_format_specifier): Remove macro.
2190 (local_decimal_format_suffix): Remove macro.
2191 (local_hex_format): Remove macro.
2192 (local_hex_format_prefix): Remove macro.
2193 (local_hex_format_specifier): Remove macro.
2194 (local_hex_format_suffix): Remove macro.
2195 (local_decimal_format_custom): Remove.
2196 (local_octal_format_custom): Remove.
2197 (local_hex_format_custom): Remove.
2198 (local_hex_string): Rename to hex_string and move to defs.h.
2199 (local_hex_string_custom): Rename to hex_string_custom, change
2200 interface, and move to defs.h.
2201 * utils.c: (int_string): New function.
2202 (hex_string): New function (from language.c).
2203 (hex_string_custom): New function (from language.c).
2204 (octal2str): New function.
2205 (decimal2str): Add width parameter.
2206 (paddr_u): Use new decimal2str interface.
2207 (paddr_d): Ditto.
2208 * defs.h (hex_string): Declare.
2209 (hex_string_custom): Declare.
2210 (int_string): Declare.
2211 * printcmd.c (print_scalar_formatted): Remove localized binary
2212 formatting.
2213 * valprint.c (print_longest): Use int_string.
2214 (print_floating): Use C hex format.
2215 (print_hex_chars): Ditto.
2216 (print_binary_chars): Remove language-specific formatting.
2217 (print_octal_chars): Use C octal format.
2218 (print_decimal_chars): Delocalize format.
2219 (print_decimal): Remove.
2220 * ada-lang.c (ada_language_defn): Remove language-specific number
2221 formatting entries.
2222 * p-lang.c (pascal_language_defn): Ditto.
2223 * c-lang.c (c_language_defn): Ditto.
2224 (cplus_language_defn): Ditto.
2225 (asm_language_defn): Ditto.
2226 (minimal_language_defn): Ditto.
2227 * f-lang.c (f_language_defn): Ditto.
2228 * jv-lang.c (java_language_defn): Ditto.
2229 * m2-lang.c (m2_language_defn): Ditto.
2230 * scm-lang.c (scm_language_defn): Ditto.
2231 * objc-lang.c (objc_language_defn): Ditto.
2232 * memattr.c (mem_info_command): Use renamed hex_string_custom with
2233 new interface.
2234 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
2235 * ui-out.c (ui_out_field_core_addr): Ditto.
2236 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
2237 * exec.c (print_section_info): Ditto.
2238 * i387-tdep.c (print_i387_status_word): Ditto.
2239 (print_i387_control_word): Ditto.
2240 (i387_print_float_info): Ditto.
2241 * maint.c (maint_print_section_info): Ditto.
2242 * solib.c (info_sharedlibrary_command): Ditto.
2243 * somsolib.c (som_sharedlibrary_info_command): Ditto.
2244 * symtab.c (print_msymbol_info): Ditto.
2245 * tracepoint.c (tracepoints_info): Ditto.
2246 * solib-frv.c (lm_base): Ditto.
2247 (frv_current_sos): Ditto.
2248 (enable_break2): Ditto.
2249 (enable_break): Ditto.
2250 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
2251 (process_one_symbol): Ditto.
2252 * infcmd.c (program_info): Ditto.
2253 * mdebugread.c (parse_partial_symbols): Ditto.
2254 * symfile.c (add_symbol_file_command): Ditto.
2255 * cli/cli-cmds.c (edit_command): Ditto.
2256 (list_command): Ditto.
2257 * infcall.c (call_function_by_hand): Ditto.
2258 * remote-vx.c (vx_run_files_info): Ditto.
2259 (vx_wait): Ditto.
2260 (vx_attach): Ditto.
2261 (vx_detach): Ditto.
2262 (vx_kill): Ditto.
2263 * aix-thread.c (pdc_symbol_addrs): Ditto.
2264 (pdc_read_regs): Ditto.
2265 (pdc_write_regs): Ditto.
2266 (pdc_read_data): Ditto.
2267 (pdc_write_data): Ditto.
2268 * d10v-tdep.c (display_trace): Ditto.
2269 * rs6000-nat.c (find_toc_address): Ditto.
2270 * aix-thread.c: Don't include language.h.
2271 * buildsym.c: Ditto.
2272 * dbxread.c: Ditto.
2273 * mdebugread.c: Ditto.
2274 * rs6000-nat.c: Ditto.
2275 * buildsym.c (make_blockvector): Use renamed hex_string.
2276
33f2d567
JM
22772004-09-10 Jason Molenda (jmolenda@apple.com)
2278
2279 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
2280 chars after 'if' or 'while' commands in user-defined commands.
2281
7b90c3f9
JB
22822004-09-08 Jim Blandy <jimb@redhat.com>
2283
2284 Fix bug reported and analyzed by Olivier Crete:
2285 * symfile.c (copy_section_addr_info): New function.
2286 (symbol_file_add_with_addrs_or_offsets): Use it to save the
2287 original set of address arguments, instead of handwritten code
2288 that uses one length to allocate and a different length to
2289 initialize. Use make_cleanup_free_section_addr_info.
2290 * symfile.h (copy_section_addr_info): New declaration.
2291 * utils.c: #include "symfile.h".
2292 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
2293 New functions.
2294 * defs.h (make_cleanup_free_section_addr_info): New declaration.
2295 * Makefile.in (utils.o): Update dependencies.
2296
b26a6851
AC
22972004-09-08 Andrew Cagney <cagney@gnu.org>
2298
2299 * thread-db.c (keep_thread_db): Delete.
2300 (thread_db_new_objfile, thread_db_create_inferior)
2301 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
2302
be24b061
MK
23032004-09-08 Mark Kettenis <kettenis@gnu.org>
2304
f6792ef4
MK
2305 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
2306 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
2307 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
2308 (i386_frameless_signal_p): Remove prototype.
2309 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
2310 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
2311 I386_SSE_NUM_REGS.
2312 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
2313 instead of FP0_REGNUM.
2314 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
2315 of FP0_REGNUM and FPC_REGNUM.
2316
eeefdaa7
MK
2317 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
2318 (sunos_solib_create_inferior_hook): Don't call
2319 sunos_relocate_main_executable.
2320
be24b061
MK
2321 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
2322 solib_svr4_fetch_link_map_offsets to
2323 svr4_ilp32_fetch_link_map_offsets.
2324 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
2325 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
2326 svr4_ilp32_fetch_link_map_offsets.
2327 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
2328
7c679d16
JB
23292004-09-07 Jim Blandy <jimb@redhat.com>
2330
2331 * frame.h (frame_register): Doc fix.
2332
1f04aa62
AC
23332004-09-07 Andrew Cagney <cagney@gnu.org>
2334
2335 * vx-share/wait.h: Delete #ifdef USG.
2336 * utils.c (request_quit): Ditto.
2337 * tui/tui.c (tui_reset): Ditto.
2338 * remote.c: Ditto.
2339 * remote-sds.c: Ditto.
2340 * remote-rdi.c: Ditto.
2341 * mdebugread.c: Ditto.
2342 * m68klinux-nat.c: Ditto.
2343 * infttrace.c: Ditto.
2344 * infptrace.c: Ditto.
2345 * i386v-nat.c: Ditto.
2346 * exec.c: Ditto.
2347 * dbxread.c: Ditto.
2348 * core-aout.c: Ditto.
2349
90edbfbc
JB
23502004-09-05 Joel Brobecker <brobecker@gnat.com>
2351
2352 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
2353 heuristic_proc_desc.
2354 (mips_insn32_frame_cache): Likewise.
2355
01f4bf2b
JB
23562004-09-04 Joel Brobecker <brobecker@gnat.com>
2357
2358 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
2359 left behind by error.
2360
8511a048
JB
23612004-09-04 Joel Brobecker <brobecker@gnat.com>
2362
2363 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
2364 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
2365
649dfe9f
JB
23662004-09-04 Joel Brobecker <brobecker@gnat.com>
2367
2368 * config/rs6000/xm-aix4.h: Remove this file.
2369 * config/rs6000/aix4.mh (XM_FILE): Delete.
2370
6e50f889
JB
23712004-09-04 Joel Brobecker <brobecker@gnat.com>
2372
2373 * config/rs6000/xm-rs6000.h: Remove this file.
2374 * config/rs6000/rs6000.mh (XM_FILE): Remove.
2375
b8c4aece
AC
23762004-09-03 Andrew Cagney <cagney@gnu.org>
2377
fb603883
AC
2378 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
2379 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
2380 only use.
2381
c9343fd1
AC
2382 * mips-tdep.c (temp_saved_regs): Delete.
2383 (set_reg_offset): Replace saved_regs parameter with this_cache.
2384 (heuristic_proc_desc, mips16_heuristic_proc_desc)
2385 (mips32_heuristic_proc_desc): Add this_cache parameter.
2386 (mips_insn32_frame_cache, mips_insn16_frame_cache)
2387 (after_prologue): Pass a NULL this_cache.
2388
9733cfe1
AC
2389 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
2390 non-kernel trap prologues.
2391
0d5febcc
AC
2392 * mips-tdep.c (find_proc_desc): Delete function.
2393 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
2394 simplify.
2395 (mips_insn16_frame_cache): Replace find_proc_desc with code from
2396 mips_insn32_frame_cache.
2397
9733cfe1 2398 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
283be873
AC
2399 Simplify as NEXT_FRAME is NULL.
2400 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
2401
177f84a3
AC
2402 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
2403 local variable.
2404 (mips_skip_prologue): Update.
2405
465f7520
AC
2406 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
2407 "cur_frame" parameter.
177f84a3
AC
2408 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
2409 (mips_insn32_frame_cache, find_proc_desc): Update
465f7520 2410
e38b8658
AC
2411 * config/vax/nm-obsd.h: Delete file.
2412 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2413 * config/vax/nm-nbsd.h: Delete file.
2414 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
2415 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2416 * config/sh/nm-nbsd.h: Delete file.
2417 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2418 * config/rs6000/nm-rs6000ly.h: Delete file.
2419 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
2420 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2421 * config/powerpc/nm-obsd.h: Delete file.
2422 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2423 * config/powerpc/nm-nbsd.h: Delete file.
2424 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2425 * config/pa/nm-obsd.h: Delete file.
2426 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2427 * config/mips/nm-nbsd.h: Delete file.
2428 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2429 * config/m88k/nm-obsd.h: Delete file.
2430 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2431 * config/m68k/nm-nbsd.h: Delete file.
2432 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
2433 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2434 * config/i386/nm-nbsd.h: Delete file.
2435 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
2436 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2437 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2438 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2439 * config/i386/nm-i386lynx.h: Delete file.
2440 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2441 * config/arm/nm-nbsd.h: Delete file.
2442 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
2443 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2444
be1ed680
AC
2445 * config/i386/tm-fbsd.h: Delete file.
2446 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
2447 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
2448
4b392b26
AC
2449 * config/rs6000/tm-rs6000-aix4.h: Delete file.
2450 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
2451 * config/rs6000/aix4.mt (TM_FILE): Set to
2452 config/rs6000/tm-rs6000.h.
2453 * config/powerpc/tm-ppc-aix.h: Delete file.
2454 * config/powerpc/aix.mt (TM_FILE): Set to
2455 config/rs6000/tm-rs6000.h.
2456 * config/m68k/tm-linux.h: Delete file.
2457 * config/m68k/linux.mt (TM_FILE): Set to solib.h
2458 * config/i386/tm-linux64.h: Delete file.
2459 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
2460 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
2461
f3219c75
AC
2462 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
2463 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
2464 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
2465 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
2466 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
2467 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
2468 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
2469 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
2470 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
2471
b8c4aece
AC
2472 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
2473 gdb_host_cpu.
2474
8ac2e020
JB
24752004-09-02 Joel Brobecker <brobecker@gnat.com>
2476
2477 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
2478 Minor reformatting. Some code factoring.
2479
c185a355
AC
24802004-09-02 Andrew Cagney <cagney@gnu.org>
2481
63f22f0d
AC
2482 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
2483 * config/vax/tm-nbsd.h: Delete file.
2484 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
2485 * config/sparc/tm-vxworks.h: Delete file.
2486 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
2487 * config/sparc/tm-nbsd.h: Delete file.
2488 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
2489 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
2490 * config/sparc/tm-linux.h: Delete file.
2491 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
2492 * config/s390/tm-linux.h: Delete file.
2493 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
2494 * config/pa/tm-bsd.h: Delete file.
2495 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
2496 * config/m68k/tm-obsd.h: Delete file.
2497 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
2498 * config/m68k/tm-nbsd.h: Delete file.
2499 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
2500 * config/i386/tm-vxworks.h: Delete file.
2501 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
2502 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
2503 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
2504 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
2505 * config/i386/tm-nbsd.h: Delete file.
2506 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
2507 * config/i386/tm-i386lynx.h: Delete file.
2508 * config/cris/cris.mt (TM_FILE): Set to solib.h.
2509 * config/cris/tm-cris.h: Delete file.
2510
0f475e27
AC
2511 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
2512 * configure: Re-generate.
2513 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
2514 * config/arm/tm-nbsd.h: Delete file.
2515
458ed000
AC
2516 * config/powerpc/tm-ppcle-sim.h: Delete.
2517 * config/powerpc/tm-ppcle-eabi.h: Delete.
2518 * config/powerpc/tm-nbsd.h: Delete.
2519 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
2520 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
2521 tm-ppcle-eabi.h.
2522
f14375f3
AC
2523 * config/i386/nto.mh (NAT_FILE): Delete.
2524 * config/i386/nm-nto.h: Delete.
2525
c34d127c
AC
2526 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
2527 * config/m68k/tm-os68k.h: Ditto.
2528 * config/m68k/tm-monitor.h: Ditto.
2529 * config/m68k/tm-cisco.h: Ditto.
2530 * config/m68k/st2000.mt (TM_FILE): Delete.
2531 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
2532 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
2533 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
2534 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
2535
f7f0fe03
AC
2536 * config/m68k/tm-st2000.h: Delete.
2537 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
2538 * config/sparc/fbsd.mt (TM_FILE): Delete.
2539 * config/sparc/tm-fbsd.h: Delete.
2540
a2558533
AC
2541 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
2542 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
2543 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
2544
b78960be
AC
2545 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
2546 GDB_TM_FILE and GDB_XM_FILE.
2547 * gdbarch.c: Re-generate.
2548 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
2549 quotes in macro definition.
2550 * configure.in: Re-generate.
2551
4d60522e
AC
2552 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
2553 validating architecture methods.
2554 * gdbarch.c: Re-generate.
2555
5010d38b
AC
2556 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
2557 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
2558 GDB_MULTI_ARCH_PARTIAL.
2559 * gdbarch.h: Re-generate.
2560
c185a355
AC
2561 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
2562 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
2563 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
2564 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
2565 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
2566 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
2567 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
2568 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
2569 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
2570 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
2571 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
2572 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
2573
14aaa6ab
AC
25742004-09-01 Andrew Cagney <cagney@gnu.org>
2575
2576 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
2577 and main_func_highpc.
2578 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
2579 * objfiles.c (init_entry_point_info, objfile_relocate): Update
2580 * nlmread.c (nlm_symfile_read): Update.
2581
a343eb3c
JB
25822004-09-01 Joel Brobecker <brobecker@gnat.com>
2583
2584 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
2585 (mips_insn32_frame_cache): Inline call to find_proc_desc.
2586 (find_proc_desc): Remove dead code.
2587
4fbbbd07
JB
25882004-09-01 Joel Brobecker <brobecker@gnat.com>
2589
2590 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
2591
84acb35a
JJ
25922004-09-01 Jeff Johnston <jjohnstn@redhat.com>
2593
2594 * observer.sh: Add struct so_list declaration.
2595 * Makefile.in: Add dependencies on observer.h for solib.c and
2596 breakpoint.c.
2597 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
2598 function.
2599 (_initialize_breakpoint): Register
2600 disable_breakpoints_in_unloaded_shlib as an observer of the
2601 "solib unloaded" observation event.
2602 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
2603 call decode_line_1 so unfound breakpoint errors are silent.
2604 * solib.c (update_solib_list): When a solib is discovered to have
2605 been unloaded by the program, notify all observers of the
2606 "solib unloaded" observation event.
2607
c8cd9f6c
AC
26082004-09-01 Andrew Cagney <cagney@gnu.org>
2609
2610 * frame.c: Include "objfiles.h".
2611 (inside_main_func): New function.
2612 (get_prev_frame): Use new inside_main_func.
2613 * Makefile.in (frame.o): Update dependencies.
2614 * defs.h (inside_main_func): Delete declaration.
2615 * blockframe.c (inside_main_func): Delete function.
2616
1168df01
JB
26172004-08-31 Jim Blandy <jimb@redhat.com>
2618
2619 * dwarf2read.c (is_vtable_name): New function, based on logic from
2620 read_structure_type, but passing the correct length to strncmp,
2621 and using 'sizeof' instead of 'strlen'.
2622 (read_structure_type): Call it.
2623
f14f9744
JB
26242004-08-31 Joel Brobecker <brobecker@gnat.com>
2625
2626 * config/powerpc/aix.mh: Add comment.
2627
386d4518
PG
26282004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
2629
2630 * MAINTAINERS: Add self to Write-After-Approval.
2631
7d97d5e2
MI
26322004-08-30 Manoj Iyer <manjo@austin.ibm.com>
2633
2634 * MAINTAINERS: Add self to Write-After-Approval.
2635
68f53502
AC
26362004-08-30 Andrew Cagney <cagney@gnu.org>
2637
2638 Fix PR breakpoints/1757.
2639 * infrun.c (struct execution_control_state): Replace
2640 remove_breakpoints_on_following_step with
2641 step_after_step_resume_breakpoint.
2642 (init_execution_control_state): Update.
2643 (handle_inferior_event): For signals, when stepping off a
2644 breakpoint, set step_after_step_resume_breakpoint. When
2645 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
2646 (keep_going): Delete code handling
2647 remove_breakpoints_on_following_step.
2648
7ca2d3a3
DL
26492004-08-29 David Lecomber <david@streamline-computing.com>
2650
2651 Fix PR gdb/648
2652 * language.h (enum array_ordering): New enum.
2653 * language.h (struct language_defn): New la_array_ordering
2654 attribute.
2655 * language.c (unknown_language_defn, auto_language_defn)
2656 (local_language_defn): Ditto.
2657 * ada-lang.c (ada_language_defn): Ditto.
2658 * c-lang.c (c_language_defn, cplus_language_defn)
2659 (asm_language_defn, minimal_language_defn): Ditto.
2660 * f-lang.c (f_language_defn): Ditto.
2661 * jv-lang.c (java_language_defn): Ditto.
2662 * m2-lang.c (f_language_defn): Ditto.
2663 * objc-lang.c (objc_language_defn): Ditto.
2664 * p-lang.c (pascal_language_defn): Ditto.
2665 * scm-lang.c (scm_language_defn): Ditto.
2666 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
2667 oriented large to small in type structure.
2668 * dwarf2read.c (read_array_order): New function.
2669 (read_array_type): Use read_array_order to check row/column
2670 major ordering.
2671
e354df01
NW
26722004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
2673
2674 * target.c (target_resize_to_sections): Check
2675 current_target.to_sections for an old value when updating.
2676
9185ddce
JB
26772004-08-27 Joel Brobecker <brobecker@gnat.com>
2678
2679 * procfs.c (dbx_link_bpt_addr): New static global variable.
2680 (dbx_link_shadow_contents): New static global variable.
2681 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
2682 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
2683 if we just hit it.
2684 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
2685 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
2686 from run to run.
2687 (procfs_create_inferior): Remove syssgi syscall-exit notifications
2688 after the inferior has been forked.
2689 (remove_dbx_link_breakpoint): New function.
2690 (dbx_link_addr): New function.
2691 (insert_dbx_link_bpt_in_file): New function.
2692 (insert_dbx_link_bpt_in_region): New function.
2693 (insert_dbx_link_breakpoint): New function.
2694 (proc_trace_syscalls_1): New function, extracted from
2695 proc_trace_syscalls.
2696 (proc_trace_syscalls): Replace extract code by call to
2697 proc_trace_syscalls_1.
2698 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
2699 is no longer valid.
2700
e6742ace
JB
27012004-08-25 Jim Blandy <jimb@redhat.com>
2702
2703 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
2704
8fb3e588
AC
27052004-08-25 Andrew Cagney <cagney@gnu.org>
2706
629a41ee
AC
2707 * infrun.c (struct execution_control_state): Delete field
2708 "stepping_through_sigtramp".
2709 (init_execution_control_state): Do not set same.
2710 (context_switch): Do not pass same to save_infrun_state and
2711 load_infrun_state.
2712 * gdbthread.h (struct thread_info): Delete field
2713 stepping_through_sigtramp.
2714 (save_infrun_state, load_infrun_state): Delete parameter
2715 stepping_through_sigtramp.
2716 * thread.c (load_infrun_state, save_infrun_state): Update.
2717
8fb3e588
AC
2718 * infrun.c: Re-indent. Move expression operators to the beginning
2719 of the line. Remove long disabled #if 0 code.
2720
49c54768
AC
27212004-08-24 Andrew Cagney <cagney@gnu.org>
2722
2723 * doublest.h (floatformat_ieee_quad): Rename
2724 floatformat_ia64_quad.
2725 * doublest.c (floatformat_ieee_quad): Rename
2726 floatformat_ia64_quad.
2727 (_initialize_doublest): Update.
2728
5ca2e327
JB
27292004-08-24 Jim Blandy <jimb@redhat.com>
2730
87808bd6
JB
2731 * dwarf2expr.h (struct dwarf_expr_context): New members
2732 'num_pieces' and 'pieces', for returning the result of an
2733 expression that uses DW_OP_piece.
2734 (struct dwarf_expr_piece): New struct type.
2735 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
2736 pieces.
2737 (free_dwarf_expr_context): Free pieces, if any.
2738 (add_piece): New function.
2739 (execute_stack_op): Implement DW_OP_piece.
2740 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
2741 expression is a list of pieces, print an error message.
2742 (dwarf2_loc_desc_needs_frame): If the expression yields
2743 pieces, and any piece is in a register, then we need a frame.
2744
5ca2e327
JB
2745 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
2746 the stack until we've decided what sort of result the evaluation
2747 has produced. Use separate variables, with more specific names.
2748
2afeb6b8
RE
27492004-08-23 Richard Earnshaw <rearnsha@arm.com>
2750
2751 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
2752 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
2753 (arm_netbsd_init_abi_common): Register them.
2754
5885ab49
MK
27552004-08-22 Mark Kettenis <kettenis@gnu.org>
2756
fda820a6
MK
2757 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
2758
1c5bf419
MK
2759 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
2760 safe_frame_unwind_memory instead of target_read_memory.
2761
8cbba7c8
MK
2762 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
2763 Reorder includes.
2764 (fetch_register, store_register): Remove prototypes.
2765 (child_resume): Reorganize code and comments such that it is
2766 grouped a bit more logically.
2767 (attach): Explicitly compare errno against 0.
2768 (detach): Likewise. Use perror_with_name instead of
2769 print_sys_errmsg.
2770 * Makefile.in (infptrace.o): Update dependencies.
2771
c5fa4245
MK
2772 * ia64-linux-nat.c: Update copyright year.
2773 (fetch_debug_register, store_debug_register)
2774 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
2775 PTRACE_TYPE_ARG3.
2776 * config/ia64/nm-linux.h: Update copyright year.
2777 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
2778
387c058c
MK
2779 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
2780 from CORE_ADDR to struct frame_info *. Use
2781 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
2782 (amd64_linux_sigtramp_p): Adjust for changed signature of
2783 and64_linux_sigtramp_start
2784
277215a6
MK
2785 * gdb_ptrace.h: GNU/Linux.
2786
25f6178e
MK
2787 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
2788 Remove defines.
2789
652fc137
MK
2790 * infptrace.c: Include "gdb_assert.h".
2791 (PTRACE_XFER_TYPE): Remove define.
2792 (offsetof): Only define if U_REGS_OFFSET isn't defined.
2793 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
2794 Tweak comment.
2795 (fetch_inferior_registers, store_inferior_registers): Remove
2796 redundant culry braces. Tweak comment. s/regno/regnum.
2797 * Makefile.in (infptrace.o): Update dependencies.
2798
5885ab49
MK
2799 * configure.in: Change test for return type of ptrace to default
2800 to `long' instead of `int'.
2801 * configure: Regenerate.
2802
11003ae3
MK
28032004-08-21 Mark Kettenis <kettenis@gnu.org>
2804
6b95110c
MK
2805 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
2806
bcb3dc3d
MK
2807 * configure.in: Check for ttrace function.
2808 * configure, config.in: Regenerate.
2809
11003ae3
MK
2810 * gdb_ptrace.h: New file.
2811 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
2812 <sys/ptrace.h>.
2813 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
2814 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
2815 (attach): Don't define PT_ATTACH.
2816 (detach): Don't define PT_DETACH.
2817 * Makefile.in (gdb_ptrace_h): New variable.
2818 (infptrace.o): Update dependencies.
2819
f8707cac
MK
28202004-08-16 Mark Kettenis <kettenis@gnu.org>
2821
2822 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
2823 instead of `int' if not already defined.
2824 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
2825 PTRACE_TYPE_ARG3.
2826 * infptrace.c (call_ptrace): Revert change that replaced
2827 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2828
655c5466
MK
28292004-08-15 Mark Kettenis <kettenis@gnu.org>
2830
156e5ba7
MK
2831 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
2832 Remove defines.
2833
de9a9e51
MK
2834 * linux-nat.c (kill_inferior): Add missing third and fourth
2835 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
2836
88800403
MK
2837 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
2838 PTRACE_TYPE_RET.
2839
849a1d7c
MK
2840 * proc-why.c (proc_prettyfprint_why): Fix format string.
2841
61ad16d1
MK
2842 * solib-osf.c (osf_current_sos): Remove unsused label.
2843
a6ed5501
MK
2844 * configure.in: Add <ncurses/ncurses.h> to the list of possible
2845 curses headers.
2846 * configure, config.in: Regenerate.
2847 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
2848 <ncurses/ncurses.h>.
2849
016ddeca
MK
2850 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
2851 * config/nm-nbsd.h: Update copyright year.
2852 (PTRACE_ARG3_TYPE): Remove define.
2853
49ec097f
MK
2854 * sparc-nat.c (fetch_inferior_registers)
2855 (store_inferior_registers, sparc_xfer_wcookie):
2856 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2857
9f8e0089
MK
2858 * alphabsd-nat.c (fetch_inferior_registers):
2859 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2860 PTRACE_TYPE_ARG3.
2861 * amd64bsd-nat.c (fetch_inferior_registers)
2862 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2863 PTRACE_TYPE_ARG3.
2864 * armnbsd-nat.c: Update copyright year.
2865 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
2866 (store_register, store_regs, store_fp_register, store_fp_regs):
2867 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2868 * hppabsd-nat.c (fetch_inferior_registers)
2869 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2870 PTRACE_TYPE_ARG3.
2871 * i386bsd-nat.c (fetch_inferior_registers)
2872 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
2873 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2874 * m68kbsd-nat.c (fetch_inferior_registers)
2875 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2876 PTRACE_TYPE_ARG3.
2877 * m88kbsd-nat.c (fetch_inferior_registers)
2878 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2879 PTRACE_TYPE_ARG3.
2880 * mipsnbsd-nat.c: Update copyright year.
2881 (fetch_inferior_registers, store_inferior_registers):
2882 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2883 * ns32knbsd-nat.c: Update copyright year.
2884 (fetch_inferior_registers, store_inferior_registers):
2885 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2886 * ppcnbsd-nat.c (fetch_inferior_registers):
2887 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2888 PTRACE_TYPE_ARG3.
2889 * ppcobsd-nat.c (fetch_inferior_registers):
2890 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2891 PTRACE_TYPE_ARG3.
2892 * shnbsd-nat.c: Update copyright year.
2893 (fetch_inferior_registers, store_inferior_registers):
2894 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2895 * vaxbsd-nat.c (fetch_inferior_registers)
2896 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2897 PTRACE_TYPE_ARG3.
2898
655c5466
MK
2899 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
2900 PTRACE_TYPE_ARG3.
2901 * infptrace.c (call_ptrace, child_resume, attach, detach)
2902 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
2903 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2904 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
2905 PTRACE_TYPE_ARG3.
2906
c40d0d10
MK
29072004-08-14 Mark Kettenis <kettenis@gnu.org>
2908
5cb0ff31
MK
2909 * defs.h: Remove out-of-date comment.
2910 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
2911 [!GETENV_PROVIDED] (getenv): Remove prototype.
2912
5f0f34cb
MK
2913 * standalone.c: Remove file.
2914 * Makefile.in (standalone.o): Remove dependency.
2915
7532965f
MK
2916 * i386-linux-nat.c (dummy_sse_values): Remove function and
2917 prototype.
2918 (i386_linux_dr_get): Fix typo in comment.
2919 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
2920
1bdc6c53
MK
2921 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
2922
c40d0d10
MK
2923 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
2924 from declaration.
2925 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
2926 from definition.
2927
64218d3e
MK
29282004-08-13 Mark Kettenis <kettenis@gnu.org>
2929
2930 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
2931 parenthesis in definition.
2932 * configure: Regenerated.
2933
926c94e7
MC
29342004-08-12 Michael Chastain <mec.gnu@mindspring.com>
2935
2936 * PROBLEMS: Mention build/1411.
2937
69489883
NN
29382004-08-09 Robert Millan <robertmh@gnu.org>
2939
2940 Committed by Nathanael Nerode.
2941 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
2942 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
2943
ebb7c577
AC
29442004-08-12 Andrew Cagney <cagney@gnu.org>
2945
2946 * NEWS: Mention fixes in GDB 6.2.1.
2947 * PROBLEMS: Remove mention of mips-irix.
2948
232d697c
JB
29492004-08-11 Joel Brobecker <brobecker@gnat.com>
2950
2951 * config/powerpc/xm-aix.h: Delete.
2952 * config/powerpc/aix.mh (MH_FILE): Remove.
2953 * config/powerpc/aix432.mh (MH_FILE): Remove.
2954
72f4e82b
JB
29552004-08-11 Joel Brobecker <brobecker@gnat.com>
2956
2957 * config/powerpc/aix.mh: Remove obsolete comment.
2958 * config/powerpc/aix432.mh: Likewise.
2959
0687ccb2
JB
29602004-08-11 Joel Brobecker <brobecker@gnat.com>
2961
2962 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
2963
dbf3ada7
JB
29642004-08-11 Joel Brobecker <brobecker@gnat.com>
2965
e08e1886
JB
2966 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
2967 this file is now empty.
2968 * config/xm-aix4.h: Remove, this file is no longer included
2969 anywhere.
2970
29712004-08-11 Joel Brobecker <brobecker@gnat.com>
2972
2973 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
2974 that file is now empty.
dbf3ada7
JB
2975 (termdef): Remove prototype, function no longer used.
2976
4c525ef6
JB
29772004-08-11 Joel Brobecker <brobecker@gnat.com>
2978
2979 * doc/gdbint.texinfo (Host Definition): Remove documentation
2980 for USE_O_NOCTTY, no longer used.
2981 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
2982 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
2983
82e0b968
JB
29842004-08-11 Joel Brobecker <brobecker@gnat.com>
2985
2986 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
2987 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
2988 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
2989
f2acbe1c
MK
29902004-08-11 Mark Kettenis <kettenis@gnu.org>
2991
daa98270
MK
2992 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
2993 instead of FIVE_ARG_PTRACE.
2994
f2acbe1c
MK
2995 * inflow.c (O_NOCTTY): Define to zero if not already defined.
2996 (new_tty): Use O_NOCTTY unconditionally.
2997
cc377e6b
MK
29982004-08-10 Mark Kettenis <kettenis@gnu.org>
2999
3000 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
3001 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
3002 fflush on stdout.
3003
3bcc18fa
JB
30042004-08-10 Joel Brobecker <brobecker@gnat.com>
3005
3006 * xcoff_symfile_finish: Replace last call to xmfree by call
3007 to xfree.
3008
7936743b
AC
30092004-08-10 Andrew Cagney <cagney@gnu.org>
3010
cc503c8a
AC
3011 * main.c (captured_main): Delete call to init_malloc.
3012 * defs.h (init_malloc): Delete declaration.
3013 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
3014 (init_malloc): Delete functions.
3015
2dc74dc1
AC
3016 * defs.h (xmfree): Delete.
3017 * utils.c (xmfree): Delete function.
3018 (xfree): Inline calls to xmfree and mfree.
3019 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
3020 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
3021 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
3022 * somread.c (som_symfile_finish): Ditto.
3023 * objfiles.c (allocate_objfile, free_objfile):
3024 * nlmread.c (nlm_symfile_finish): Ditto.
3025 * hpread.c (hpread_symfile_finish): Ditto.
3026 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
3027 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
3028 * coffread.c (coff_symfile_finish): Ditto.
3029
aa2ee5f6
AC
3030 * defs.h (xmcalloc): Delete declaration.
3031 * utils.c (xmcalloc): Delete.
3032 (xcalloc): Inline calls to xmcalloc and mcalloc.
3033 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
3034 xcalloc and xfree.
3035 * symtab.c (create_demangled_names_hash): Ditto.
3036
0efffb96
AC
3037 * defs.h (xmrealloc): Delete.
3038 * utils.c (xmrealloc): Delete.
3039 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
3040 * symmisc.c (extend_psymbol_list): Use xrealloc.
3041 * source.c (find_source_lines): Ditto.
3042 * hpread.c (hpread_lookup_type): Ditto.
3043 * dbxread.c (add_bincl_to_list): Ditto.
3044
7936743b
AC
3045 * utils.c (xmmalloc): Delete.
3046 (xmalloc): Inline xmmalloc and mmalloc calls.
3047 (msavestring): Use xmalloc.
3048 * defs.h (xmmalloc): Delete declaration.
3049 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
3050 xmmalloc.
3051 * symmisc.c (extend_psymbol_list): Ditto.
3052 * symfile.c (init_psymbol_list): Ditto.
3053 * source.c (find_source_lines): Ditto.
3054 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
3055 * elfread.c (elf_symtab_read): Ditto.
3056 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
3057 * coffread.c (coff_symfile_init): Ditto.
3058
252ab814
DC
30592004-08-10 David Carlton <carlton@bactrian.org>
3060
3061 * MAINTAINERS: Remove David Carlton from c++ testsuite
3062 maintainers.
3063
8f5ba92b
JG
30642004-08-10 Jerome Guitton <guitton@gnat.com>
3065
3066 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
3067 print a line feed before the prompt.
3068
21749010
MK
30692004-08-10 Mark Kettenis <kettenis@gnu.org>
3070
3071 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
3072
1f011ce2
JB
30732004-08-09 Joel Brobecker <brobecker@gnat.com>
3074
3075 General cleanup of the AIX xm include file:
3076 * config/xm-aix4.h (fd_set): Remove undefine.
3077 Remove include of <sys/select.h>.
3078 (HAVE_TERMIO): Remove define.
3079 (USG): Likewise.
3080 (NULL): Remove redefine.
3081 (alloca): Remove #pragma.
3082 (vfork): Remove define.
3083 (termdef): Remove.
3084 (SIGWINCH_HANDLER): Remove.
3085 (SIGWINCH_HANDLER_BODY): Remove.
3086
cf4e7692
MK
30872004-08-09 Mark Kettenis <kettenis@gnu.org>
3088
3089 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
3090 GDB_OSABI_OPENBSD_ELF.
3091
ac5754fa
MK
30922004-08-07 Robert Millan <robertmh@gnu.org>
3093
3094 * bsd-kvm.c: Check for nlist.h before including it.
3095
086ec9eb
MK
30962004-08-09 Mark Kettenis <kettenis@gnu.org>
3097
bbe06c74
MK
3098 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
3099 sigcontext' offset consistency checks for ancient BSD.
3100
3aa7b3b3
MK
3101 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
3102
086ec9eb
MK
3103 * configure.in: Check for <sys/types.h>. Check return and
3104 argument types of ptrace.
3105 * configure, config.in: Regenerate.
3106
09991fa0
JB
31072004-08-09 Jim Blandy <jimb@redhat.com>
3108
3109 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
3110 rs6000_register_sim_regno): Doc fixes.
3111
fed7ba43
JB
31122004-08-08 Joel Brobecker <brobecker@gnat.com>
3113
3114 * mips-tdep.c: Include "floatformat.h".
3115 (n32n64_floatformat_always_valid): New function.
3116 (floatformat_n32n64_long_double_big): New constant.
3117 (mips_gdbarch_init): Set size and format of long double
3118 for N32 and N64 ABIs.
3119 * Makefile.in (mips-tdep.o): Update dependencies.
3120
456fcf94
AC
31212004-08-08 Andrew Cagney <cagney@gnu.org>
3122
2f9b146e
AC
3123 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
3124 print. Improve script's error messages.
3125 * gdbarch.h: Re-generate.
3126
456fcf94
AC
3127 * gdbarch.sh (pformat): New function.
3128 (float_format, double_format, long_double_format): List with bit
3129 members. Use pformat when printing.
3130 * gdbarch.c, gdbarch.h: Re-generate.
3131
69e9e646
NW
31322004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
3133
3134 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
3135 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
3136 (ppcnbsd_supply_pcb): New function.
3137 (_initialize_ppcnbsd_nat): New prototype and function.
3138 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
3139 (LOADLIBES): New variable.
3140 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
3141
5ef2d0aa
AC
31422004-08-08 Andrew Cagney <cagney@gnu.org>
3143
3144 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
3145 (builtin_type_ieee_double, builtin_type_ia64_quad)
3146 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
3147 BE/LE floating-point types.
3148 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
3149 (builtin_type_ieee_double, builtin_type_ia64_quad)
3150 (builtin_type_ia64_spill): Declare.
3151 * doublest.c (_initialize_doublest, floatformat_ieee_single)
3152 (floatformat_ieee_double, floatformat_arm_ext)
3153 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
3154 of LE/BE floatformats.
3155 * doublest.h: (struct floatformat, floatformat_ieee_single)
3156 (floatformat_ieee_double, floatformat_arm_ext)
3157 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
3158
5c7f2947
MK
31592004-08-08 Mark Kettenis <kettenis@gnu.org>
3160
ecac404d
MK
3161 * i386gnu-nat.c (gnu_store_registers): Fix typo.
3162
9b8607ce
MK
3163 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
3164 instead of regcache_raw_supply when storing the registers.
3165
f6052080
MK
3166 * i386gnu-nat.c: Update copyright year.
3167 (gnu_store_registers): Don't use deprecated_registers and
3168 deprecated_registers_valid. Use regcache_valid_p and
3169 regcache_raw_supply instead.
3170
17777823
MK
3171 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
3172 frame_pc_unwind.
3173
5240ceac
MK
3174 * procfs.c (procfs_pid_to_str): Remove redundant and unused
3175 variables. Incapitalized "process".
3176
5c7f2947
MK
3177 * configure.in: Add cursesX to the list of possible curses libs.
3178 Add cursesX.h to the list of possible curses headers.
3179 * configure, config.in: Regenerate.
3180
da7d81e3
NW
31812004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3182
3183 * configure.in: Test for struct lwp in <sys/lwp.h>.
3184 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
3185 the offset of l_addr in struct lwp.
3186
7f245d65
NW
31872004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3188
3189 * bsd-kvm.c: Include "gdbcore.h"
3190 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
3191
47b3f456
AC
31922004-08-07 Andrew Cagney <cagney@gnu.org>
3193
70bd8e24
AC
3194 * gdbtypes.c (build_flt, build_complex): New functions.
3195 (gdbtypes_post_init): Use.
3196
9b0dea39
AC
3197 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
3198
5cf7abac
AC
3199 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
3200 through to builtin_type_uint128.
3201
64d2b26d
AC
3202 * c-exp.y: Use builtin_type function to obtain builtin types.
3203
7ad6570d
AC
3204 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
3205 builtin_uint128.
3206 * gdbtypes.c (gdbtypes_post_init): Update.
3207 (build_gdbtypes): Move initialization of builtin_type_int0
3208 through to builtin_type_uint128 from here ...
3209 (_initialize_gdbtypes): ... to here.
3210 * d10v-tdep.c (d10v_register_type): Update.
3211
47b3f456
AC
3212 * doublest.c: Update copyright.
3213 (floatformat_from_length): Call error when floatformat is NULL.
3214 (extract_floating_by_length): Remove NULL fmt check.
3215 (store_floating_by_length): Ditto.
3216
0a8146bf
AC
32172004-08-07 Andrew Cagney <cagney@gnu.org>
3218
3219 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
3220 that the register is valid.
3221
c0ccb908
MK
32222004-08-05 Mark Kettenis <kettenis@chello.nl>
3223
8e6bed05
MK
3224 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3225 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
3226 struct frame_info *. Use safe_frame_unwind_memory instead of
3227 deprecated_read_memory_nobpt.
3228 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
3229 changed signature of i386_linux_sigtramp_start and
3230 i386_linux_rt_sigtramp_start.
3231
24f9f5e3
MK
3232 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
3233 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
3234 instead of deprecated_read_memory_nobpt.
3235 (i386nbsd_sigtramp_p): Adjust for changed signature of
3236 i386nbsd_sigtramp_offset.
3237
c822af0c
MK
3238 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
3239 safe_frame_unwind_memory instead of target_read_memory.
3240
c0ccb908
MK
3241 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3242 !NO_SYS_FILE.
3243 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
3244 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
3245 (_initialize_kernel_u_addr): Remove prototype and function.
3246 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3247 !NO_SYS_FILE.
3248 * xcoffread.c: Likewise.
3249
b9e1c0d6
MK
32502004-08-06 Mark Kettenis <kettenis@gnu.org>
3251
3252 * vax-nat.c: New file.
3253 * vaxbsd-nat.c: Tweak comment.
3254 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
3255 vaxnbsd-tdep.c.
3256 (vax-nat.o): New dependency.
3257 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
3258 (vax-*-ultrix2*): Remove.
3259 * config/vax/vax.mh: New file.
3260 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
3261 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
3262 (vax_register_u_addr): New prototype.
3263 (REGISTER_U_ADDR): Define using vax_register_u_addr.
3264 * config/vax/vaxult2.mh: Remove file.
3265 * config/vax/vaxult.mh: Remove file.
3266 * config/vax/vaxbsd.mh: Remove file.
3267 * config/vax/vax.mt (TM_FILE): Remove.
3268 * config/vax/tm-vaxbsd.h: Remove file.
3269
9ad7bec7
JB
32702004-08-06 Joel Brobecker <brobecker@gnat.com>
3271
3272 * aix-thread.c (get_signaled_thread): New function.
3273 (iter_trap): Delete, no longer used.
3274 (iter_tid): New function.
3275 (pd_update): Find the thread that received the SIGTRAP signal
3276 by first locating the kernel thread, and then finding its
3277 associated thread.
3278
bf0d233d
UW
32792004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
3280
3281 * lin-lwp.c (child_wait): Continue inferior after processing
3282 PTRACE_EVENT_CLONE event.
3283
d0f853e1
NN
32842004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
3285
3286 * MAINTAINERS: Add self to Write-After-Approval.
3287
ab14aeb0
JJ
32882004-08-05 Jeff Johnston <jjohnstn@redhat.com>
3289
3290 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
3291 libunwind-xxxx.so" where xxxx is UNW_TARGET.
3292
9c8dbfa9
AC
32932004-08-05 Andrew Cagney <cagney@gnu.org>
3294
c8f3ca46
AC
3295 * config/xm-sysv4.h: Delete file.
3296 * config/mips/xm-irix5.h: Delete file.
3297 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
3298 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
3299 * config/ia64/xm-aix.h: Delete file.
3300 * config/ia64/aix.mh (XM_FILE): Delete.
3301 * config/pa/xm-hppah.h: Delete file.
3302 * config/pa/hpux11w.mh (XM_FILE): Delete.
3303 * config/pa/hpux11.mh (XM_FILE): Delete.
3304 * config/pa/hpux1020.mh (XM_FILE): Delete.
3305 * config/pa/hppahpux.mh (XM_FILE): Delete.
3306
5f7daaff
AC
3307 * config/alpha/xm-alphalinux.h: Delete file.
3308 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
3309 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
3310 * config/alpha/xm-alphaosf.h: Delete file.
3311 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
3312 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
3313 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
3314 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
3315
69babf95
AC
3316 * config/i386/xm-i386v.h: Delete file.
3317 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
3318 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
3319 * config/i386/xm-i386sco.h: Delete file.
3320 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
3321 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
3322 * config/i386/xm-i386v4.h: Delete file.
3323 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
3324 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
3325 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
3326 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
3327
6f009c8a
AC
3328 * config/vax/xm-vax.h: Delete file.
3329 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
3330 * config/vax/xm-vaxult2.h: Delete file.
3331 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
3332 * config/vax/vaxult2.mh (XM_FILE): Delete.
3333 * config/vax/xm-vaxult.h: Delete file.
3334 * config/vax/vaxult.mh (XM_FILE): Delete.
3335 * config/vax/xm-vaxbsd.h: Delete file.
3336 * config/vax/vaxbsd.mh (XM_FILE): Delete.
3337
9c8dbfa9
AC
3338 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
3339 * gdbarch.h, gdbarch.c: Re-generate.
3340 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
3341 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
3342 * frame.h: Delete deprecated_read_fp from comments.
3343 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
3344 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
3345
84367a3e
MK
33462004-08-04 Mark Kettenis <kettenis@gnu.org>
3347
9c8e3411
MK
3348 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
3349 trampoline in OpenBSD 3.5-current.
3350
b87bc0d8
MK
3351 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
3352 SSE registers.
3353
84367a3e
MK
3354 * Makefile.in: Remove embedded page breaks.
3355
a44bddec
JB
33562004-08-04 Jim Blandy <jimb@redhat.com>
3357
7ab3286f
JB
3358 * regcache.c (regcache_raw_read): Assert that, after calling
3359 target_fetch_registers, the register we're reading is cached.
3360
a44bddec
JB
3361 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
3362 a call to 'internal_error', with a more helpful error message.
3363 * rs6000-tdep.c (e500_pseudo_register_read,
870d65d5 3364 e500_pseudo_register_write, rs6000_store_return_value): Same.
a44bddec 3365
35124113
AC
33662004-08-04 Andrew Cagney <cagney@gnu.org>
3367
3368 * Makefile.in: Update dependencies.
3369
9f643768
JB
33702004-08-04 Jim Blandy <jimb@redhat.com>
3371
6ced10dd
JB
3372 Change the layout of the PowerPC E500 raw register cache to allow
3373 the lower 32-bit halves of the GPRS to be their own raw registers,
3374 not pseudoregisters.
3375 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
3376 add ppc_ev0_upper_regnum flag.
3377 * rs6000-tdep.c: #include "reggroups.h".
3378 (spe_register_p): Recognize the ev upper half registers as SPE
3379 registers.
3380 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
3381 registers.
3382 (e500_move_ev_register): New function.
3383 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
3384 vector registers are the pseudo-registers now, formed by splicing
3385 together the gprs and the upper-half registers.
3386 (e500_register_reggroup_p): New function.
3387 (P): Macro deleted.
3388 (P8, A4): New macro.
3389 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
3390 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
3391 macros.
3392 (registers_e500): Rearrange register set so that the raw register
3393 set contains 32-bit GPRs and upper-half registers, and the SPE
3394 vector registers become pseudo-registers.
3395 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
3396 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
3397 register numbers are now the same for the E500 as they are for
3398 other PowerPC variants. Register e500_register_reggroup_p as the
3399 register group function for the E500.
3400 * Makefile.in (rs6000-tdep.o): Update dependencies.
3401
3402 Adapt PPC E500 native support to the new raw regcache layout.
3403 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
3404 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
3405 (fetch_spe_register, store_spe_register): Handle fetching/storing
3406 all the SPE registers at once, if regno == -1. These now take
3407 over the job of fetch_spe_registers and store_spe_registers.
3408 (fetch_spe_registers, store_spe_registers): Deleted.
3409 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
3410 unconditionally; they're always raw. Fetch/store SPE upper half
3411 registers, if present, instead of ev registers.
3412 (fetch_register, store_register): Remove sanity checks: gprs are
3413 never pseudo-registers now, so we never need to even mention any
3414 registers that are ever pseudoregisters.
3415
9f643768
JB
3416 Use a fixed register numbering when communicating with the PowerPC
3417 simulator.
3418 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
3419 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
3420 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
3421 New functions.
3422 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
3423 init_sim_regno_table.
3424 * Makefile.in (gdb_sim_ppc_h): New variable.
3425 (rs6000-tdep.o): Update dependencies.
3426
1e2279c8
AC
34272004-08-02 Andrew Cagney <cagney@gnu.org>
3428
1d94326f
AC
3429 * cris-tdep.c (cris_register_size): Restore function, still used
3430 locally.
3431
331ae7ed
AC
3432 * gdbarch.sh (deprecated_target_read_fp)
3433 (deprecated_frame_locals_address, deprecated_frame_args_address)
3434 (deprecated_frame_chain_valid, deprecated_frame_chain)
3435 (deprecated_init_extra_frame_info, deprecated_pop_frame)
3436 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
3437 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
3438 * gdbarch.h, gdbarch.c: Re-generate.
3439 * regcache.c (deprecated_read_fp): Do not call
3440 DEPRECATED_TARGET_READ_FP_P.
3441 * infcmd.c (default_print_registers_info): Do not call
3442 DEPRECATED_DO_REGISTERS_INFO.
3443 * frame-base.c (default_frame_locals_address): Do not call
3444 DEPRECATED_FRAME_LOCALS_ADDRESS.
3445 (default_frame_args_address): Do not call
3446 DEPRECATED_FRAME_ARGS_ADDRESS.
3447
1e2279c8
AC
3448 * gdbarch.sh (deprecated_register_raw_size)
3449 (deprecated_register_virtual_size:int): Delete.
3450 * gdbarch.h, gdbarch.c: Re-generate.
3451 * cris-tdep.c (cris_register_size): Delete.
3452 (cris_gdbarch_init): Update.
3453 * alpha-tdep.c (alpha_register_raw_size)
3454 (alpha_register_virtual_size): Delete.
3455 (alpha_gdbarch_init): Update.
3456
a90c06b4
AC
3457 * gdbarch.sh (deprecated_register_virtual_type)
3458 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
3459 (deprecated_dummy_write_sp): Delete.
3460 * gdbarch.h, gdbarch.c: Re-generate.
3461
f42accbe
AC
3462 * gdbarch.sh (deprecated_register_bytes): Delete.
3463 * gdbarch.h, gdbarch.c: Re-generate.
3464 * regcache.c (deprecated_register_bytes): New function.
3465 * regcache.h (deprecated_register_bytes): Declare.
3466 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3467 * v850-tdep.c (v850_gdbarch_init): Update.
3468 * sh64-tdep.c (sh64_gdbarch_init): Update.
3469 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
3470 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3471 * mcore-tdep.c (mcore_gdbarch_init): Update.
3472 * cris-tdep.c (cris_gdbarch_init): Update.
3473 * arm-tdep.c (arm_gdbarch_init): Update.
3474 * remote.c (init_remote_state): Update.
3475 * remote-vx.c (vx_prepare_to_store): Update.
3476 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
3477 * irix5-nat.c (fetch_core_registers): Update.
3478 * cris-tdep.c (cris_register_bytes_ok): Update.
3479 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
3480
45c9dd44
AC
3481 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
3482 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
3483 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
3484 (mips_insn16_frame_base_address, mips_insn16_frame_base)
3485 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
3486 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
3487 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
3488 (mips_insn32_frame_base_address, mips_insn32_frame_base)
3489 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
3490 with mips_insn16 and mips_insn32.
3491
3acba339
AC
3492 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
3493 * rs6000-tdep.c (rs6000_push_dummy_call)
3494 (rs6000_extract_return_value): Use register_size.
3495 * xstormy16-tdep.c (xstormy16_get_saved_register)
3496 (xstormy16_extract_return_value): Ditto.
3497 * valops.c (value_assign): Ditto.
3498 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
3499 * v850-tdep.c (v850_extract_return_value): Ditto.
3500 * tracepoint.c (collect_symbol): Ditto.
3501 * target.c (debug_print_register): Ditto.
3502 * stack.c (frame_info): Ditto.
3503 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
3504 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
3505 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
3506 (store_register_using_P): Ditto.
3507 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
3508 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
3509 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
3510 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
3511 * regcache.c (deprecated_read_register_bytes)
3512 (deprecated_write_register_bytes, read_register)
3513 (write_register): Ditto.
3514 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
3515 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
3516 * monitor.c (monitor_supply_register, monitor_fetch_register)
3517 (monitor_store_register): Ditto.
3518 * mn10300-tdep.c (mn10300_pop_frame_regular)
3519 (mn10300_print_register): Ditto.
3520 * mipsv4-nat.c (fill_fpregset): Ditto.
3521 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
3522 (mips64_fill_fpregset): Ditto.
3523 * mi/mi-main.c (register_changed_p, get_register)
3524 (mi_cmd_data_write_register_values): Ditto.
3525 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
3526 * irix5-nat.c (fill_gregset, fetch_core_registers):
3527 * infrun.c (write_inferior_status_register): Ditto.
3528 * infptrace.c (fetch_register, store_register): Ditto.
3529 * infcmd.c (default_print_registers_info): Ditto.
3530 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
3531 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
3532 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
3533 * hpux-thread.c (hpux_thread_fetch_registers)
3534 (hpux_thread_store_registers): Ditto.
3535 * hppah-nat.c (store_inferior_registers, fetch_register):
3536 * findvar.c (value_from_register): Ditto.
3537 * dve3900-rom.c (fetch_bitmapped_register):
3538 * cris-tdep.c (cris_gdbarch_init): Ditto.
3539 * alpha-tdep.h: Ditto.
3540 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
3541
01e1877c
AC
3542 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
3543 DEPRECATED_REGISTER_RAW_SIZE from comments.
3544 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
3545 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
3546 DEPRECATED_REGISTER_RAW_SIZE.
3547 * findvar.c (value_of_register): Simplify by assuming that the
3548 registers raw and virtual sizes are identical.
3549 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
3550 comment.
3551 * arch-utils.c (generic_register_size): Simplify by assuming
3552 register_type.
3553
73f458fb
AC
3554 * regcache.c (legacy_read_register_gen, real_register)
3555 (legacy_write_register_gen): Delete, not used.
3556
336a3131
AC
3557 * regcache.c (struct regcache_descr): Delete legacy_p.
3558 (init_legacy_regcache_descr): Delete function.
3559 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
3560 Do not use deprecated register functions.
3561 (regcache_raw_read, deprecated_write_register_gen):
3562 (deprecated_read_register_gen, regcache_raw_write): Delete code
3563 predicated on legacy_p.
3564 (register_size): Delete check against register raw size.
3565
c1d546cd
AC
3566 * cris-tdep.c (cris_register_type): Replace
3567 cris_register_virtual_type.
3568 (cris_gdbarch_init): Update, set register_type.
3569
48c2c0a6
AC
3570 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
3571 * gdbarch.h, gdbarch.c: Re-generate.
3572 * arm-tdep.c (arm_frameless_function_invocation): Delete.
3573 (arm_gdbarch_init) Do not set frameless function invocation.
3574 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
3575 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
3576 * frv-tdep.c (frv_frameless_function_invocation): Delete.
3577 (frv_gdbarch_init): Do not set frameless function invocation.
3578 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
3579 * sh-tdep.c (sh_gdbarch_init): Ditto.
3580 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
3581 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3582 * avr-tdep.c (avr_gdbarch_init): Ditto.
3583
474093a6
AC
3584 * blockframe.c (legacy_frame_chain_valid): Delete function.
3585
3c109c8b
AC
3586 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
3587 and pc. Update comments.
3588 (pc_in_dummy_frame): Delete function.
3589 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
3590 use the "id".
3591 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
3592 call_hi, top and pc, use the id.
3593 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
3594
96860204
AC
3595 * dummy-frame.c: Include "gdb_string.h".
3596 (generic_save_call_dummy_addr, generic_push_dummy_frame)
3597 (generic_save_dummy_frame_tos): Delete.
3598 (dummy_frame_push): New function, replaces above.
3599 * dummy-frame.h: Update copyright.
3600 (dummy_frame_push): Declare.
3601 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
3602 (generic_save_call_dummy_addr): Delete declarations.
3603 * infcall.c: Include "dummy-frame.h".
3604 (call_function_by_hand): Add locals caller_regcache,
3605 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
3606 with call to frame_save_as_regcache plus cleanup. Delete calls to
3607 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
3608 Move clear_proceed_status to just before the resume, add call to
3609 dummy_frame_push (discard cleanup).
3610 * Makefile.in (infcall.o): Add $(dummy_frame_h).
3611 (dummy-frame.o): Add $(gdb_string_h).
3612
d67ec5db
AC
36132004-08-01 Andrew Cagney <cagney@gnu.org>
3614
3615 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
3616 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
3617 * dummy-frame.c (find_dummy_frame): Delete.
3618 (struct dummy_frame_cache, dummy_frame_sniffer)
3619 (dummy_frame_prev_register, dummy_frame_this_id)
3620 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
3621 frame unwinder using a dummy_frame_cache.
3622
a81dcb05
AC
36232004-08-01 Andrew Cagney <cagney@gnu.org>
3624
3625 * frame.h (frame_save_as_regcache): Declare.
3626 * frame.c (frame_save_as_regcache): New function.
3627 (do_frame_read_register): Replace do_frame_unwind_register.
3628 (frame_pop): Use frame_save_as_regcache.
3629 * dummy-frame.c (generic_push_dummy_frame): Use
3630 frame_save_as_regcache.
3631
aa495d11
JB
36322004-08-01 Joel Brobecker <brobecker@gnat.com>
3633
3634 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
3635 file as included until we record the first line in the linetable.
3636
ff65ac78
AC
36372004-08-01 Andrew Cagney <cagney@gnu.org>
3638
3639 * frame.h (deprecated_pop_dummy_frame)
3640 (deprecated_read_register_dummy)
3641 (deprecated_generic_find_dummy_frame): Delete.
3642 * dummy-frame.c (deprecated_generic_find_dummy_frame)
3643 (deprecated_read_register_dummy)
3644 (deprecated_find_dummy_frame_regcache)
3645 (discard_innermost_dummy)
3646 (deprecated_pop_dummy_frame): Delete.
3647 (dummy_frame_this_id): Simplify.
3648 (struct dummy_frame): Delete "fp" and "sp".
3649 (find_dummy_frame): Simplify.
3650 (generic_push_dummy_frame): Do not set "fp" or "sp".
3651 (fprint_dummy_frames): Do not print "fp" and "sp"
3652
37bdc87e
MK
36532004-08-01 Mark Kettenis <kettenis@gnu.org>
3654
3655 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
3656 (struct i386_insn): New structure.
3657 (i386_match_insn): New function.
3658 (i386_frame_setup_skip_insns): New variable.
3659 (i386_analyze_frame_setup): Change to use i386_match_insn and the
3660 array i386_frame_setup_insns of instructions that should be
3661 skipped inside the frame setup sequence.
3662
8241eaa6
AC
36632004-08-01 Andrew Cagney <cagney@gnu.org>
3664
5bc602c7
AC
3665 * frame.h (deprecated_frame_xmalloc_with_cleanup)
3666 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
3667 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
3668 * stack.c (frame_info): Delete references to
3669 DEPRECATED_FRAME_INIT_SAVED_REGS and
3670 deprecated_get_frame_saved_regs.
3671 * frame.c (struct frame_info): Delete saved_regs and extra_info.
3672 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
3673 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
3674 (frame_unwind_register_signed)
3675 (frame_unwind_register_unsigned)
3676 (frame_unwind_unsigned_register): Use register_size.
3677 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
3678 (deprecated_frame_xmalloc_with_cleanup)
3679 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
3680 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
3681
03d363a1
AC
3682 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
3683 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
3684 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
3685 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
3686
8241eaa6
AC
3687 * infcall.c (call_function_by_hand): Do not use
3688 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
3689 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
3690 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
3691 DEPRECATED_STACK_ALIGN.
3692
f00df8b7
AC
36932004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
3694
3695 Committed by Andrew Cagney.
3696 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
3697
eec63939
AC
36982004-08-01 Andrew Cagney <cagney@gnu.org>
3699
3700 * mips-tdep.c (mips16_frame_cache)
3701 (mips16_frame_this_id, mips16_frame_prev_register)
3702 (mips16_frame_unwind, mips16_frame_sniffer)
3703 (mips16_frame_base_address, mips16_frame_base)
3704 (mips16_frame_base_sniffer, mips32_frame_cache)
3705 (mips32_frame_this_id, mips32_frame_prev_register)
3706 (mips32_frame_unwind, mips32_frame_sniffer)
3707 (mips32_frame_base_address, mips32_frame_base)
3708 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
3709 separate heuristic mips16 and mips32 unwinders.
3710 (mips_stub_frame_cache, mips_stub_frame_this_id)
3711 (mips_stub_frame_prev_register)
3712 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
3713 (mips_stub_frame_base_address, mips_stub_frame_base)
3714 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
3715 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
3716 match true mdebug frames.
3717 (non_heuristic_proc_desc): Add forward declaration.
3718
e66299b3
AC
37192004-08-01 Andrew Cagney <cagney@gnu.org>
3720
83cbbf3e
AC
3721 * config/mips/tm-irix6.h: Delete file.
3722 * config/mips/tm-irix5.h: Delete file.
3723 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
3724 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
3725
22d41b37
AC
3726 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
3727 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
3728 * config/nm-gnu.h (NO_CORE_OPS): Delete.
3729 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
3730 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
3731 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
3732 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
3733 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
3734 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
3735 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
3736 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
3737 (TARGET_SIGNAL_RAW_VALUES): Delete.
3738 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
3739 Delete.
3740 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
3741 (TARGET_HW_WATCH_LIMIT): Delete.
3742 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
3743 * minimon.h: Delete file.
3744
e66299b3
AC
3745 * trad-frame.c (trad_frame_get_this_base)
3746 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
3747 functions.
3748 * trad-frame.h (trad_frame_set_this_base)
3749 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
3750
1f67027d
AC
37512004-07-31 Andrew Cagney <cagney@gnu.org>
3752
3753 * trad-frame.c (trad_frame_get_prev_register): Rename
3754 trad_frame_get_prev_register.
3755 * vax-tdep.c (vax_frame_prev_register): Update.
3756 * trad-frame.h: Update.
3757 * trad-frame.c (trad_frame_get_register): Update.
3758 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
3759 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
3760 Update.
3761 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
3762 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
3763 Update.
3764 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
3765 Update.
3766 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
3767 Update.
3768 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
3769 Update.
3770 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
3771 Update.
3772 * s390-tdep.c (s390_frame_prev_register)
3773 (s390_stub_frame_prev_register)
3774 (s390_sigtramp_frame_prev_register): Update.
3775 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
3776 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
3777 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
3778 * m88k-tdep.c (m88k_frame_prev_register)
3779 * m68hc11-tdep.c (m68hc11_frame_prev_register)
3780 * m32r-tdep.c (m32r_frame_prev_register): Update.
3781 * hppa-tdep.c (hppa_frame_prev_register_helper)
3782 * frv-tdep.c (frv_frame_prev_register): Update.
3783 * d10v-tdep.c (d10v_frame_prev_register): Update.
3784 * cris-tdep.c (cris_frame_prev_register): Update.
3785 * avr-tdep.c (avr_frame_prev_register): Update.
3786 * arm-tdep.c (arm_prologue_prev_register)
3787 (arm_sigtramp_prev_register): Update.
3788
c1bf6f65
AC
37892004-07-31 Andrew Cagney <cagney@gnu.org>
3790
3791 * frame.h (legacy_saved_regs_unwind)
3792 (legacy_frame_chain_valid, legacy_frame_p)
3793 (enum frame_type): Delete UNKNOWN_FRAME.
01fbbd97
AC
3794 * dummy-frame.c (dummy_frame_this_id): Simplify.
3795 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
c1bf6f65
AC
3796 * frame.c (struct frame_info): Delete the field "type".
3797 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
3798 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
3799 (legacy_saved_regs_unwind, legacy_frame_p)
3800 (frame_type_from_pc): Delete.
3801 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
3802 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
3803
dc856692
MK
38042004-07-31 Mark Kettenis <kettenis@gnu.org>
3805
5a5effe1
MK
3806 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
3807 indentation.
3808
d4fd50a6
MK
3809 * mips-nat.c: Remove file.
3810 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
3811 (mips-nat.o): Remove dependency.
3812
2689df5a
MK
3813 * infptrace.c: Update copyright year.
3814 (fetch_register): Pass NULL in regcache_raw_supply call instead of
3815 explicitly setting the buffer to all zeroes.
3816
dc856692
MK
3817 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
3818 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
3819
763910e0
AC
38202004-07-30 Andrew Cagney <cagney@gnu.org>
3821
3822 * GDB 6.2 released from gdb_6_2-branch.
3823
0b66e38c
EZ
38242004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
3825
3826 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
3827
3828 * exec.c (exec_file_attach):
3829 * nto-tdep.c (nto_find_and_open_solib):
3830 * pa64solib.c (pa64_solib_sizeof_symbol_table):
3831 * solib.c (solib_open):
3832 * somsolib.c (som_solib_sizeof_symbol_table):
3833 * source.c (is_regular_file, openp, open_source_file):
3834 * symfile.c (symfile_bfd_open):
3835 * wince.c (upload_to_device): Differentiate between the search for
3836 binary and source files.
3837
be7d7357
AC
38382004-07-30 Andrew Cagney <cagney@gnu.org>
3839
3840 * complaints.c (_initialize_complaints): Pass NULL to
3841 add_setshow_zinteger_cmd for help_doc.
3842 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
3843
ddc9cd0f
AC
38442004-07-30 Andrew Cagney <cagney@gnu.org>
3845
3846 Fix PR i18n/761.
3847 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
3848 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
3849 $(PACKAGE).pot and update-po.
3850 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
3851 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
3852 (update-po): New rules.
3853 (localedir): Define using autoconf.
3854 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
3855 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
3856 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
3857 * configure.in: Generate CATALOGS and LINGUAS from contents of
3858 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
3859 * configure: Re-generate.
3860 * po/gdbtext: New file
3861
e92f3704
JG
38622004-07-30 Jerome Guitton <guitton@gnat.com>
3863
3864 * MAINTAINERS: Reorder Write After Approval list in alphabetical
3865 order.
3866
b0f35d58
DL
38672004-07-30 David Lecomber <dsl@sources.redhat.com>
3868
3869 * dwarf2read.c (read_file_scope): Set producer if attribute
3870 present.
3871 (struct dwarf2_cu): Added new member producer.
3872
ce7d4522
JG
38732004-07-30 Jerome Guitton <guitton@gnat.com>
3874
3875 * inflow.c (kill_command): release file handles in BFD.
3876 * exec.c (exec_file_attach): Ditto.
3877 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
3878
05ee07c7
AC
38792004-07-29 Andrew Cagney <cagney@gnu.org>
3880
3881 * PROBLEMS (mips-irix): Note that it is broken.
3882
62eceb47
AC
38832004-07-29 Andrew Cagney <cagney@gnu.org>
3884
e57b8d41
AC
3885 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
3886 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
3887
d334389b
AC
3888 * config/xm-nbsd.h: Delete file.
3889 * config/arm/xm-nbsd.h: Delete file.
3890 * config/i386/xm-nbsd.h: Delete file.
3891 * config/ns32k/xm-nbsd.h: Delete file.
3892 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
3893 * config/i386/nbsdelf.mh (XM_FILE): Delete.
3894 * config/i386/nbsdaout.mh (XM_FILE): Delete.
3895 * config/arm/nbsdelf.mh (XM_FILE): Delete.
3896 * config/arm/nbsdaout.mh (XM_FILE): Delete.
3897
e910f676
AC
3898 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
3899 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
3900 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
3901 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
3902 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
3903 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
3904
6fa856b9
AC
3905 * config/powerpc/xm-linux.h: Delete empty file.
3906 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
3907 * config/powerpc/linux.mh (XM_FILE): Delete.
3908 * config/m68k/xm-linux.h: Delete empty file.
3909 * config/m68k/linux.mh (XM_FILE): Delete.
3910 * config/ia64/xm-linux.h: Delete empty file.
3911 * config/ia64/linux.mh (XM_FILE): Delete.
3912 * config/arm/xm-linux.h: Delete empty file.
3913 * config/arm/linux.mh (XM_FILE): Delete.
3914
471ae5ae
AC
3915 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3916 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
3917 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3918 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
3919 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3920 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
3921 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3922 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
3923
62eceb47
AC
3924 * config/m68k/xm-m68k.h: Delete file.
3925 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
3926 copyright.
3927 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
3928 * config/pa/xm-linux.h: Delete empty file.
3929 * config/pa/linux.mh (XM_FILE): Delete.
3930 * config/i386/xm-i386.h: Delete empty file.
3931 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
3932 "i386/xm-i386.h".
3933 * config/i386/obsdaout.mh (XM_FILE): Delete.
3934 * config/i386/obsd64.mh (XM_FILE): Delete.
3935 * config/i386/fbsd64.mh (XM_FILE): Delete.
3936 * config/i386/nto.mh (XM_FILE): Delete.
3937 * config/i386/obsd.mh (XM_FILE): Delete.
3938 * config/i386/linux64.mh (XM_FILE): Delete.
3939 * config/i386/linux.mh (XM_FILE): Delete.
3940 * config/i386/i386sol2.mh (XM_FILE): Delete.
3941 * config/i386/i386gnu.mh (XM_FILE): Delete.
3942 * config/i386/fbsd.mh (XM_FILE): Delete.
3943 * config/i386/nbsd64.mh (XM_FILE): Delete.
3944
c35f4ffc
AC
39452004-07-29 Andrew Cagney <cagney@gnu.org>
3946
3947 * config/pa/xm-linux.h: Do not include "floatformat.h".
3948 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3949 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
3950 * config/i386/xm-i386.h: Do not include "floatformat.h".
3951 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3952 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
3953 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3954 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
3955 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
3956 GDB_HOST_LONG_DOUBLE_FORMAT instead.
3957 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
3958 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
3959 * configure, config.in: Regenerate.
3960 * configure.host (gdb_host_float_format, gdb_host_double_format)
3961 (gdb_host_long_double_format): Set according to the host.
3962
624a44a3
AC
39632004-07-29 Andrew Cagney <cagney@gnu.org>
3964
3965 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
3966
0dea2468
AC
39672004-07-28 Andrew Cagney <cagney@gnu.org>
3968
3969 * PROBLEMS: Mention threads/1650.
3970 * NEWS: Mention the NPTL fix.
3971
b3f42336
AC
39722004-07-28 Andrew Cagney <cagney@gnu.org>
3973
3974 * cli/cli-decode.c (add_setshow_cmd): Delete function.
3975 (add_setshow_cmd_full): Make static.
3976 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
3977 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
3978 * cli/cli-decode.c (add_setshow_filename_cmd)
3979 (add_setshow_string_cmd): New functions.
3980 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
3981 * mips-tdep.c (_initialize_mips_tdep): Update.
3982 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
3983 * cli/cli-logging.c (_initialize_cli_logging): Update.
3984 * complaints.c (_initialize_complaints): Update.
3985 * remote.c (_initialize_remote): Update.
3986
3b64bf98
AC
39872004-07-28 Andrew Cagney <cagney@gnu.org>
3988
3989 * cli/cli-decode.c (add_setshow_zinteger_cmd)
3990 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
3991 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
3992 print parameters. Make string parameters constant.
3993 * command.h: Update. Update copyright.
3994 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
3995 * observer.c (_initialize_observer): Ditto.
3996 * frame.c (_initialize_frame): Ditto.
3997 * complaints.c (_initialize_complaints): Ditto.
3998 * maint.c (_initialize_maint_cmds): Ditto.
3999 * target.c (initialize_targets): Ditto.
4000 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
4001 * infcall.c (_initialize_infcall): Ditto.
4002 * arm-tdep.c (_initialize_arm_tdep): Ditto.
4003 * m32r-rom.c (_initialize_m32r_rom): Ditto.
4004 * remote-rdi.c (_initialize_remote_rdi): Ditto.
4005 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
4006 * mips-tdep.c (_initialize_mips_tdep): Ditto.
4007
e9667a65
AC
40082004-07-28 Andrew Cagney <cagney@gnu.org>
4009
54a5b07d
AC
4010 * gdbtypes.c (lookup_primitive_typename): Delete function.
4011 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
4012 * ada-lex.l: Use language_lookup_primitive_type_by_name.
4013 * gdbtypes.c (lookup_typename): Ditto.
4014 * f-exp.y (yylex): Ditto.
4015 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
4016
e9667a65
AC
4017 * scm-lang.c (c_builtin_types): Delete extern declaration.
4018 (scm_language_defn): Replace
4019 string_char_type and primitive_type_vector with
4020 la_language_arch_info.
4021 * jv-lang.c (java_language_defn): Replace
4022 string_char_type and primitive_type_vector with
4023 la_language_arch_info.
4024 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
4025 c_builtin_types in comment.
4026 * c-lang.h (struct language_arch_info): Declare opaque.
4027 (c_language_arch_info): Declare.
4028 (c_builtin_types): Delete declaration.
4029 * c-lang.c (c_language_arch_info): Set string_char_type to
4030 builtin_char, not builtin_true_char. Make global.
4031 (c_builtin_types): Delete array.
4032 (asm_language_defn, minimal_language_defn): Replace
4033 string_char_type and primitive_type_vector with
4034 la_language_arch_info.
4035
685419e2
AC
40362004-07-28 Andrew Cagney <cagney@gnu.org>
4037
4038 * gdbtypes.h (struct builtin_type): Rename true_char to
4039 builtin_true_char.
4040 * gdbtypes.c (gdbtypes_post_init): Update.
4041 * c-lang.c (arch_info): New function.
4042 (enum c_primitive_types): New enum.
4043 (c_language_defn): Instead of string_char_type and
4044 primitive_type_vector set la_language_arch_info.
4045
5a44ea29
AC
40462004-07-28 Andrew Cagney <cagney@gnu.org>
4047
4048 * language.h (struct language_arch_info): Fix typo
4049 s/primative/primitive/.
4050 * gdbtypes.c (lookup_primitive_typename): Ditto.
4051 * language.c (language_lookup_primitive_type_by_name)
4052 (unknown_language_arch_info): Ditto.
4053
f290d38e
AC
40542004-07-27 Andrew Cagney <cagney@gnu.org>
4055
4056 * defs.h (enum language): Add nr_languages.
4057 * language.h (struct language_arch_info): Define.
4058 (struct language_defn): Add la_language_arch_info.
4059 (language_lookup_primative_type_by_name): Declare.
4060 (language_string_char_type): Declare.
4061 * language.c (_initialize_language, language_gdbarch_post_init)
4062 (struct language_gdbarch, language_gdbarch_data): Implement
4063 per-architecture language information.
4064 (unknown_language_arch_info, language_string_char_type)
4065 (language_lookup_primative_type_by_name): New functions.
4066 (unknown_language_defn, auto_language_defn)
4067 (local_language_defn): Set la_language_arch_info to
4068 unknown_language_arch_info.
4069 (unknown_builtin_types): Delete.
4070 * gdbtypes.c (lookup_primitive_typename): Use
4071 language_lookup_primative_type_by_name.
4072 (create_string_type): Use language_string_char_type.
4073 * values.c (value_from_string): Use language_string_char_type.
4074 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
4075 * p-lang.c (pascal_language_defn): Ditto.
4076 * m2-lang.c (m2_language_defn): Ditto.
4077 * jv-lang.c (java_language_defn): Ditto.
4078 * objc-lang.c (objc_language_defn): Ditto.
4079 * f-lang.c (f_language_defn): Ditto.
4080 * c-lang.c (c_language_defn, cplus_language_defn)
4081 (asm_language_defn, minimal_language_defn): Ditto.
4082
000177f0
AC
40832004-07-27 Andrew Cagney <cagney@gnu.org>
4084
4085 * gdbtypes.h (struct builtin_type): Declare.
4086 (builtin_type): Declare.
4087 * d10v-tdep.c (d10v_register_type): Use builtin_type.
4088 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
4089 (gdbtypes_post_init): New function.
4090 (builtin_type): New function.
4091
e22f895c
KI
40922004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
4093
4094 * remote-m32r-sdi.c: Fix breakpoint bug.
4095 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
4096 recv_char_data, recv_long_data): New functions to replace communication
4097 sequences.
4098
536517dd
MC
40992004-07-26 Michael Chastain <mec.gnu@mindspring.com>
4100
4101 Document PR threads/1650.
4102 * PROBLEMS (Threads): Document problem with many threads
4103
a0a44d18
AC
41042004-07-26 Andrew Cagney <cagney@gnu.org>
4105
4106 * gdb-mi.el: Move from here ...
4107 * mi/gdb-mi.el: ... to here.
4108
7ac4ac06
AC
41092004-07-26 Andrew Cagney <cagney@gnu.org>
4110
4111 Problem reported by Ashley Pittman <ashley@quadrics.com>.
4112 * main.c (captured_main): When in batch mode always detach.
4113
a1b461bf
AC
41142004-07-26 Andrew Cagney <cagney@gnu.org>
4115
4116 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
4117 and h8300 as broken.
4118 * NEWS: END-OF-LIFE frame compatibility module.
4119 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
4120 specific comments.
4121
cb1a6d5f
AC
41222004-07-26 Andrew Cagney <cagney@gnu.org>
4123
4124 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
4125 * xcoffsolib.c (_initialize_xcoffsolib): Update.
4126 * wince.c (_initialize_wince): Update.
4127 * win32-nat.c (_initialize_win32_nat): Update.
4128 * varobj.c (_initialize_varobj): Update.
4129 * valops.c (_initialize_valops): Update.
4130 * utils.c (initialize_utils, initialize_utils): Update.
4131 * tui/tui-win.c (_initialize_tui_win): Update.
4132 * top.c (init_main): Update.
4133 * symfile.c (_initialize_symfile): Update.
4134 * source.c (_initialize_source): Update.
4135 * somsolib.c (_initialize_som_solib): Update.
4136 * solib.c (_initialize_solib): Update.
4137 * solib-frv.c (_initialize_frv_solib): Update.
4138 * serial.c (_initialize_serial): Update.
4139 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
4140 * remote.c (_initialize_remote, _initialize_remote): Update.
4141 * remote-vx.c (_initialize_vx): Update.
4142 * remote-utils.c (_initialize_sr_support): Update.
4143 * remote-sds.c (_initialize_remote_sds): Update.
4144 * remote-mips.c (_initialize_remote_mips): Update.
4145 * remote-e7000.c (_initialize_remote_e7000): Update.
4146 * proc-api.c (_initialize_proc_api): Update.
4147 * printcmd.c: Update.
4148 * parse.c (_initialize_parse): Update.
4149 * pa64solib.c (_initialize_pa64_solib): Update.
4150 * p-valprint.c (_initialize_pascal_valprint): Update.
4151 * monitor.c (_initialize_remote_monitors): Update.
4152 * mips-tdep.c (_initialize_mips_tdep): Update.
4153 * mcore-tdep.c (_initialize_mcore_tdep): Update.
4154 * maint.c (_initialize_maint_cmds): Update.
4155 * lin-lwp.c (_initialize_lin_lwp): Update.
4156 * language.c (_initialize_language): Update.
4157 * kod.c (_initialize_kod): Update.
4158 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
4159 * i386-tdep.c (_initialize_i386_tdep): Update.
4160 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
4161 * gdbarch.sh: Update.
4162 * gdbarch.c: Re-generate.
4163 * gdb-events.sh: Update.
4164 * gdb-events.c: Re-generate.
4165 * frame.c (_initialize_frame): Update.
4166 * exec.c: Update.
4167 * demangle.c (_initialize_demangler): Update.
4168 * dcache.c (_initialize_dcache): Update.
4169 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
4170 * cp-valprint.c (_initialize_cp_valprint): Update.
4171 * corefile.c (_initialize_core): Update.
4172 * command.h: Update.
4173 * cli/cli-decode.h: Update.
4174 * cli/cli-cmds.c (init_cli_cmds): Update.
4175 * charset.c (_initialize_charset): Update.
4176 * breakpoint.c (_initialize_breakpoint): Update.
4177 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
4178 * alpha-tdep.c (_initialize_alpha_tdep): Update.
4179 * aix-thread.c (_initialize_aix_thread): Update.
4180
b4632131
MK
41812004-07-24 Mark Kettenis <kettenis@gnu.org>
4182
4183 Partial fix for PR backtrace/1718.
4184 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
4185 that GCC migrates into the prolugue. Don't handle any
4186 instructions that clobber %ebx.
4187
822c9732
AC
41882004-07-23 Andrew Cagney <cagney@gnu.org>
4189
4190 Use regcache_raw_collect instead of regcache_collect.
4191 * regcache.h (regcache_collect): Delete declaration.
4192 * regcache.c (regcache_colect): Delete function.
4193 * win32-nat.c (do_child_store_inferior_registers): Update.
4194 * sol-thread.c (sol_thread_store_registers): Update.
4195 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
4196 * rs6000-nat.c (store_register): Update.
4197 * remote.c (store_register_using_P, remote_store_registers): Update.
4198 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
4199 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
4200 (fill_vrregset, store_spe_registers, fill_gregset)
4201 (fill_gregset): Update.
4202 * nto-procfs.c (procfs_store_registers): Update.
4203 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
4204 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
4205 * m68klinux-nat.c (store_register, fill_gregset): Update.
4206 * m68k-tdep.c (fill_gregset): Update.
4207 * infptrace.c (store_register): Update.
4208 * i386-nto-tdep.c (i386nto_regset_fill): Update.
4209 * i386-linux-nat.c (store_register, fill_gregset): Update.
4210 * hppa-linux-nat.c (fill_gregset): Update.
4211 * go32-nat.c (store_register): Update.
4212 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
4213 (store_fp_regs): Update.
4214 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
4215 (store_nwfpe_extended, store_fpregister, store_fpregs)
4216 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
4217 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
4218 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
4219 (store_regs_user_thread, store_regs_kernel_thread): Update.
4220
32b05c07
MK
42212004-07-24 Mark Kettenis <kettenis@gnu.org>
4222
4223 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
4224 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
4225 encoding.
4226 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
4227 member of `struct comp_unit'.
4228
8567c30f
AC
42292004-07-23 Andrew Cagney <cagney@gnu.org>
4230
4231 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
4232 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
4233
f6da8dd8
MH
42342004-07-23 Martin Hunt <hunt@redhat.com>
4235 Kevin Buettner <kevinb@redhat.com>
4236
4237 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
4238 alignment was being added to the offset instead of multiplied.
4239
bd921882
MK
42402004-07-23 Mark Kettenis <kettenis@gnu.org>
4241
24f033e8
MK
4242 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
4243 changed signal trampoline in OpenBSD 3.5-current.
4244
90f3cecd
MK
4245 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
4246 <machine/pcb.h> and "bsd-kvm.h".
4247 (sparc64nbsd_supply_pcb): New function.
4248 (_initialize_sparc64nbsd_nat): Renamed from
4249 _initialize_sparcnbsd_nat. Enable libkvm interface.
4250 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
4251 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
4252 (LOADLIBES): New variable.
4253
a4954a62
MK
4254 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
4255
bd921882
MK
4256 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
4257
23a6d369
AC
42582004-07-21 Andrew Cagney <cagney@gnu.org>
4259
4260 Use regcache_raw_supply instead of supply_register.
4261 * regcache.h (supply_register): Delete declaration.
4262 * regcache.c (supply_register): Delete function.
4263 * wince.c (do_child_fetch_inferior_registers): Update.
4264 * win32-nat.c (do_child_fetch_inferior_registers)
4265 (fetch_elf_core_registers): Update.
4266 * v850ice.c (v850ice_fetch_registers): Update.
4267 * thread-db.c (thread_db_store_registers): Update.
4268 * sol-thread.c (sol_thread_store_registers): Update.
4269 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
4270 * rs6000-nat.c (fetch_register): Update.
4271 * rom68k-rom.c (rom68k_supply_one_register): Update.
4272 * remote.c (remote_wait, remote_async_wait): Update.
4273 * remote-st.c (get_hex_regs): Update.
4274 * remote-sim.c (gdbsim_fetch_register): Update.
4275 * remote-sds.c (sds_fetch_registers): Update.
4276 * remote-rdp.c (remote_rdp_fetch_register): Update.
4277 * remote-rdi.c (arm_rdi_fetch_registers): Update.
4278 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
4279 * remote-m32r-sdi.c (m32r_fetch_register): Update.
4280 * remote-hms.c (init_hms_cmds): Update.
4281 * remote-est.c (init_est_cmds): Update.
4282 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
4283 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
4284 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
4285 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
4286 (fetch_register, supply_vrregset, supply_vrregset)
4287 (fetch_spe_registers): Update.
4288 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
4289 * monitor.c (monitor_supply_register): Update.
4290 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
4291 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
4292 (mipsnbsd_supply_fpreg): Update.
4293 * mips-nat.c (fetch_inferior_registers)
4294 (fetch_core_registers): Update.
4295 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
4296 (supply_fpregset, mips64_supply_gregset)
4297 (mips64_supply_fpregset): Update.
4298 * m68klinux-nat.c (fetch_register, supply_gregset)
4299 (supply_fpregset): Update.
4300 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
4301 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
4302 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
4303 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
4304 * infptrace.c (fetch_register): Update.
4305 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
4306 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
4307 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
4308 (gnu_fetch_registers, gnu_store_registers): Update.
4309 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
4310 * i386-linux-nat.c (fetch_register, supply_gregset)
4311 (dummy_sse_values): Update.
4312 * hpux-thread.c (hpux_thread_fetch_registers): Update.
4313 * hppah-nat.c (fetch_register): Update.
4314 * hppa-linux-nat.c (fetch_register, supply_gregset)
4315 (supply_fpregset): Update.
4316 * go32-nat.c (fetch_register): Update.
4317 * dve3900-rom.c (fetch_bitmapped_register)
4318 (_initialize_r3900_rom): Update.
4319 * cris-tdep.c (supply_gregset): Update.
4320 * abug-rom.c (init_abug_cmds): Update.
4321 * core-aout.c (fetch_core_registers): Update.
4322 * armnbsd-nat.c (supply_gregset, supply_fparegset)
4323 (fetch_register, fetch_fp_register): Update.
4324 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
4325 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
4326 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
4327 * alphanbsd-tdep.c (fetch_core_registers): Update.
4328 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
4329 * alpha-nat.c (fetch_osf_core_registers)
4330 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
4331 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
4332 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
4333
73cc75f3
AC
43342004-07-21 Andrew Cagney <cagney@gnu.org>
4335
4336 * PROBLEMS: Mention breakpoints/1702.
4337 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
4338 that is known to work.
4339
a53c66de
AC
43402004-07-21 Andrew Cagney <cagney@gnu.org>
4341
4342 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
4343 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
4344 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
4345 (handle_inferior_event): Wrap call to deprecated
4346 IGNORE_HELPER_CALL in #ifdef.
4347 * config/mips/tm-nbsd.h: Update.
4348
708ff411
JB
43492004-07-20 Jim Blandy <jimb@redhat.com>
4350
412b3060
JB
4351 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
4352 bfd_mach_ppc has no segment registers.
4353
13ac140c
JB
4354 Include PowerPC SPR numbers for special-purpose registers.
4355 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
4356 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
4357 new member in initializer.
4358 (S, S4, SN4, S64): New macros for defining special-purpose
4359 registers.
4360 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
4361 registers_403, registers_403GC, registers_505, registers_860,
4362 registers_601, registers_602, registers_603, registers_604,
4363 registers_750, registers_e500): Use them.
4364
708ff411
JB
4365 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
4366 replace references with expression used to initialize variable.
4367
1f602b35
AC
43682004-07-20 Andrew Cagney <cagney@gnu.org>
4369
4370 * breakpoint.c (deprecated_read_memory_nobpt): Rename
4371 read_memory_nobpt.
4372 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
4373 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
4374 (s390_sigtramp_frame_sniffer): Update.
4375 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
4376 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
4377 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
4378 (mips32_fetch_instruction): Update.
4379 * mcore-tdep.c (get_insn): Update.
4380 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
4381 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
4382 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
4383 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4384 (i386_linux_rt_sigtramp_start): Update.
4385 * i386-linux-nat.c (child_resume): Update.
4386 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
4387 * hppa-linux-tdep.c (insns_match_pattern): Update.
4388 * gdbcore.h: Update.
4389 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
4390 * frame.c (safe_frame_unwind_memory): Update.
4391 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
4392 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
4393 * alpha-tdep.c (alpha_read_insn): Update.
4394
2cd8546d
AC
43952004-07-20 Andrew Cagney <cagney@gnu.org>
4396
4397 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
4398 containing both bytes and mask. Add "frame_type".
4399 * tramp-frame.c (tramp_frame_start): Update.
4400 (tramp_frame_prepend_unwinder): Update.
4401 * mips-linux-tdep.c (mips_linux_o32_sigframe)
4402 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
4403 (mips_linux_n64_rt_sigframe): Update. Make "static const".
4404 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
4405
f928dd62
EZ
44062004-07-19 Eli Zaretskii <eliz@gnu.org>
4407
4408 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
4409 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
4410 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
4411 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
4412
d5c560f7
AC
44132004-07-17 Andrew Cagney <cagney@gnu.org>
4414
860660cb
AC
4415 * NEWS, PROBLEMS: Update for 6.2.
4416
8c266f54
AC
4417 * README: Update to 6.2.
4418
a552edd9
AC
4419 * utils.c (xvasprintf): Call xstrvprintf.
4420
c4a172b5
AC
4421 * parse.c: Update copyright.
4422 (null_post_parser): Eliminate ARGSUSED.
4423
da745b36
AC
4424 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
4425 * tui/tui-win.c (tui_get_cmd_list): Ditto.
4426 * symfile-mem.c (_initialize_symfile_mem): Ditto.
4427
9cbc6ef0
AC
4428 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
4429 * ppc-linux-nat.c: Use "Linux kernel".
4430 * hppa-linux-tdep.c: Use GNU/Linux.
4431 * hppa-linux-nat.c: Use GNU/Linux.
4432 * dwarfread.c: Add [sic] to use of Linux.
4433
1b89295f
AC
4434 * hppa-linux-nat.c: Do not include <string.h>.
4435 (supply_fpregset): Remove "register" attribute.
4436
d5c560f7
AC
4437 * solib-frv.c (fetch_loadmap): Use xfree, not free.
4438
7ddd7709
MK
44392004-07-17 Mark Kettenis <kettenis@gnu.org>
4440
b1d19a62
MK
4441 * configure.in: Define _MSE_INT_H on Solaris 9 too.
4442 * configure, config.in: Regenerated.
4443
7ddd7709
MK
4444 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
4445 "bsd-kvm.h".
4446 (vaxbsd_supply_pcb): New function.
4447 (_initialize_vaxbsd_nat): New prototype and function.
4448 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
4449 solib-sunos.o.
4450 (LOADLIBES): New variable.
4451 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4452 (LOADLIBES): New variable.
4453 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
4454 (LOADLIBES): New variable.
4455 * Makefile.in (vaxbsd-nat.o): Update dependencies.
4456
2c07db7a
AC
44572004-07-16 Andrew Cagney <cagney@gnu.org>
4458
4459 * defs.h (event_loop_p): Replace variable declaration with macro,
4460 always 1.
4461 * main.c (captured_main): Delete options "-async" and "-noasync".
4462 (event_loop_p): Delete variable.
4463 * NEWS: Mention that "-async" and "-noasync" were removed.
4464
717eb1cf
AC
44652004-07-16 Andrew Cagney <cagney@gnu.org>
4466
4467 * remote-m32r-sdi.c: Re-indent.
4468
c101bc14
JB
44692004-07-16 Jim Blandy <jimb@redhat.com>
4470
5109a438
JB
4471 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
4472 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
4473 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
4474 missing MPC823 SPRs.
4475 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
4476 incorrect. (This was corrected in GDB's register name tables on
4477 2004-07-14.)
4478
c101bc14
JB
4479 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
4480 should be "esasrr" ("ESA Save and Restore Register").
4481
7ce450bd
AC
44822004-07-16 Andrew Cagney <cagney@gnu.org>
4483
4484 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
4485 calls, no longer applicable. Update comments and rename parameter
4486 "step_frame" to "return_frame".
4487
ca73dd9d
AC
44882004-07-16 Andrew Cagney <cagney@gnu.org>
4489
4490 * frame.c (fprint_field): New function.
4491 (fprint_frame_id): Use fprint_field.
4492
31941f6d
JB
44932004-07-15 Joel Brobecker <brobecker@gnat.com>
4494
4495 * ada-lang.c (ada_language_defn): Remove commented out code.
4496
f86a7158
JB
44972004-07-15 Jim Blandy <jimb@redhat.com>
4498
4499 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
4500 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
4501
c24791ec
JB
45022004-07-14 Jim Blandy <jimb@redhat.com>
4503
29bb1356
JB
4504 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
4505
cc98b5cc
JB
4506 * ppc-tdep.h (ppc_num_vrs): New enum constant.
4507
8f088af7
JB
4508 * ppc-tdep.h (ppc_num_srs): New enum constant.
4509
0ea0ec5f
JB
4510 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
4511 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
4512 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
4513 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
4514 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
4515 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
4516 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
4517 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
4518 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
4519 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
4520 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
4521 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
4522 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
4523 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
4524 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
4525 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
4526 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
4527 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
4528 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
4529 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
4530 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
4531 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
4532 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
4533 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
4534 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
4535 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
4536 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
4537 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
4538 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
4539 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
4540 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
4541 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
4542 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
4543 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
4544 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
4545 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
4546 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
4547 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
4548 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
4549 special-purpose register numbers.
4550
c24791ec
JB
4551 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
4552 manual mentions 'md_twb', but many mention 'm_twb', and at that
4553 point in the register list.)
4554
d833db3b
AC
45552004-07-14 Andrew Cagney <cagney@gnu.org>
4556
4557 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
4558 instead of "internal-error".
4559
080228b2
JB
45602004-07-10 Joel Brobecker <brobecker@gnat.com>
4561
4562 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
4563 that was inserted inside a comment.
4564
c268433a
RC
45652004-07-10 Randolph Chung <tausq@debian.org>
4566
4567 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
4568 function.
4569 (hppa_hpux_push_dummy_code): New function.
4570 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
4571 Set find_global_pointer method.
4572
71009278
MK
45732004-07-10 Mark Kettenis <kettenis@gnu.org>
4574
4575 * NEWS: Mention BSD libkvm interface.
4576
b2fa5097
MS
45772004-07-10 Michael Snyder <msnyder@redhat.com>
4578
4579 * symfile.c (generic_load): Comment typo.
4580 * stack.c (get_selected_block): Ditto.
4581 * regcache.c (regcache_cooked_read): Ditto.
4582 * monitor.c (monitor_debug): Ditto.
4583 * mips-tdep.c (mips_read_pc): Ditto.
4584 * i386-linux-nat.c (ps_get_thread_area): Ditto.
4585 * gdb_mbuild.sh: Ditto.
4586 * gdbarch.sh: Ditto.
4587 * gdbarch.h: Ditto.
4588
c3e5cd34
PH
45892004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
4590
8a2225b2
PH
4591 * ada-tasks.c: Remove file.
4592
c3e5cd34
PH
4593 Remove ARI problems:
4594
4595 * ada-exp.y (write_var_from_sym): Reformat to put operator at
4596 beginning of line.
4597
4598 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
4599 Add comment.
4600 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
4601 (MIN_OF_SIZE): Rename min_of_size. Add comment.
4602 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
4603 (UMIN_OF_SIZE): Remove.
4604 (max_of_type): New function to replace orphan macro in gdbtypes.h
4605 (min_of_type): Ditto.
4606 (discrete_type_high_bound): Use max_of_type.
4607 (discrete_type_low_bound): Use min_of_type.
4608 (possible_user_operator_p): Move operator to beginning of line.
4609 (ada_is_variant_part): Ditto.
4610 (ensure_lval): Rewrite to avoid deprecated operations.
4611 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
4612 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
4613 (ada_enum_name): Remove assignments in 'if' statements.
4614 (build_ada_types): Add gdbarch parameter.
4615 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
4616 with gdbarch_data_register_post_init.
4617 Use add_setshow_uinteger_cmd rather than add_set_cmd and
4618 add_show_from_set.
4619
4620 * ada-valprint.c (inspect_it): Remove declaration.
4621 (repeat_count_threshold): Remove declaration.
4622 (ada_print_floating): Remove assignments in 'if' statements.
4623 (print_str): Move operator to beginning of line.
4624
61ce229a
JB
46252004-07-08 Jim Blandy <jimb@redhat.com>
4626
4627 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
4628
09bcec80
BR
46292004-07-08 Bob Rossi <bob@brasko.net>
4630
4631 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
4632
31c27f77
JJ
46332004-07-06 Jeff Johnston <jjohnstn@redhat.com>
4634
4635 * language.h (struct_language_defn): Add new function pointer:
4636 la_class_name_from_physname. Also add new prototype for
4637 language_class_name_from_physname.
4638 * language.c (language_class_name_from_physname): New function.
4639 (unk_lang_class_name): Ditto.
4640 (unknown_language_defn, auto_language_defn): Change
4641 to add unk_lang_class_name function pointer for
4642 la_class_name_from_physname.
4643 (local_language_defn): Ditto.
4644 * dwarf2read.c (guess_structure_name): Change to call
4645 language_class_name_from_physname.
4646 (determine_class_name): Ditto.
4647 * cp-support.c (class_name_from_physname): Renamed.
4648 (cp_class_name_from_physname): New name of function.
4649 * cp-support.h: Ditto.
4650 * c-lang.c (c_language_defn): Change to add NULL
4651 for class_name_from_physname function pointer.
4652 (cplus_language_defn): Change to add cp_class_name_from_physname.
4653 * jv-lang.c (java_class_name_physname): New function.
4654 (java_find_last_component): New static routine.
4655 (java_language_defn): Add java_class_name_from_physname pointer.
4656 * ada-lang.c (ada_language_defn): Change to add NULL
4657 for class_name_from_physname function pointer.
4658 * f-lang.c (f_language_defn): Ditto.
4659 * m2-lang.c (m2_language_defn): Ditto.
4660 * objc-lang.c (objc_language_defn): Ditto.
4661 * p-lang.c (pascal_language_defn): Ditto.
4662 * scm-lang.c (scm_language_defn): Ditto.
4663
ee28ca0f
AC
46642004-07-06 Andrew Cagney <cagney@gnu.org>
4665
4666 Patch from Bart Robinson.
4667 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
4668 (O_LARGEFILE): Define to 0, if not defined.
4669
fdb1bf9d
MK
46702004-07-03 Mark Kettenis <kettenis@gnu.org>
4671
cb162ff6
MK
4672 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
4673 <machine/pcb.h> and "bsd-kvm.h".
4674 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
4675 (m68kbsd_supply_pcb): New function.
4676 (_initialize_m68kbsd_nat): New prototype and function.
4677 * Makefile.in (m68kbsd-nat.o): Update dependencies.
4678 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4679 (LOADLIBES): New variable.
4680 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
4681 (LOADLIBES): New variable.
4682
fdb1bf9d
MK
4683 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
4684
963c4174
MK
46852004-07-03 Mark Kettenis <kettenis@gnu.org>
4686
4687 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
4688 <sys/proc.h>.
4689 (bsd_kvm_cmdlist): New variable.
4690 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
4691 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
4692 command and "kvm proc" command.
4693 * Makefile.in (bsd-kvm.o): Update dependencies.
4694
533f1d8f
MK
46952004-07-02 Mark Kettenis <kettenis@gnu.org>
4696
4697 * osabi.c: Update copyright year.
4698 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
4699 notes if EI_OSABI is set to ELFOSABI_HPUX.
4700
6780dcde
MS
47012004-07-01 Michael Snyder <msnyder@redhat.com>
4702
4703 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
4704 that seems to have gotten whacked out of line.
4705
67bebe79
MK
47062004-07-01 Mark Kettenis <kettenis@gnu.org>
4707
4708 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
4709 code.
4710
0b5d8877
PH
47112004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
4712
4713 * ada-lang.c (decode_packed_array): Minor change to comment.
4714 (ada_value_slice_ptr): New function.
4715 (ada_value_slice): New function.
4716 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
4717 test. Don't know why it is there.
4718 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
4719 to avoid dereferencing huge arrays from which one is slicing.
4720 (empty_array): Correct to return an array rather than
4721 a subrange value.
4722 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
4723 on empty arrays (let'em use 'FIRST instead).
4724
19c1ef65
PH
47252004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
4726
4727 Address complaints from gdb_ari.sh:
4728
4729 * ada-exp.y: Include gdb_string.h rather than string.h.
4730 (convert_char_literal): Reformat declaration.
4731 * ada-lang.h: Include opaque struct declaration for struct frame_info.
4732 * ada-lex.l: Change use of free to xfree (the macro would do so
4733 anyway, but this is harmless).
4734 Include gdb_string.h rather than string.h.
4735 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
4736
4737 * ada-lang.c (parse): Remove K&Rism in parameter list.
4738 (is_name_suffix): Correct Linux => GNU/Linux in comment.
4739
d81cbc94
MK
47402004-06-30 Mark Kettenis <kettenis@gnu.org>
4741
4742 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
4743 dead code.
4744
07681759
MK
47452004-06-30 Mark Kettenis <kettenis@gnu.org>
4746
4747 * alphabsd-nat.c: Update copyright year.
4748 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
4749
f7948b5f
JB
47502004-06-29 Joel Brobecker <brobecker@gnat.com>
4751
6e0cdd28 4752 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
f7948b5f
JB
4753 (i386_cygwin_in_solib_call_trampoline): New function.
4754 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
4755 and skip_trampoline_code gdbarch methods.
4756
8f113c9a
JB
47572004-06-29 Jim Blandy <jimb@redhat.com>
4758
4759 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
4760 name actually used in the dependency lists.
4761
97dc871c
RC
47622004-06-29 Randolph Chung <tausq@debian.org>
4763
4764 * NEWS (New native configurations): Mention GNU/Linux/hppa.
4765
47216e51
CV
47662004-06-29 Corinna Vinschen <vinschen@redhat.com>
4767
4768 * win32-nat.c (child_pid_to_exec_file): New function.
6780dcde 4769 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
47216e51
CV
4770 functionality.
4771
e623b504
AC
47722004-06-28 Andrew Cagney <cagney@gnu.org>
4773
4774 * defs.h (xstrvprintf): Declare.
4775 * utils.c (xstrvprintf): New function.
4776 (internal_vproblem, xstrprintf, xasprintf)
4777 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
4778 * serial.c (serial_printf): Ditto.
4779 * complaints.c (vcomplaint): Ditto.
4780
79acc9b3
CV
47812004-06-29 Corinna Vinschen <vinschen@redhat.com>
4782
4783 * infcmd.c (attach_command): Move call to target_terminal_inferior
4784 behind loading symbol table.
4785
1daf35d9
AC
47862004-06-28 Andrew Cagney <cagney@gnu.org>
4787
4788 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
4789 change - add back extern deprecated_ui_loop_hook declaration.
4790
b435e160
AC
47912004-06-28 Andrew Cagney <cagney@gnu.org>
4792
4793 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
4794 xstrprintf.
4795 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
4796 (c_value_of_variable): Ditto.
4797 * utils.c (internal_vproblem): Ditto.
4798 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
4799 * remote.c (add_packet_config_cmd): Ditto.
4800 * remote-rdp.c (rdp_set_command_line): Ditto.
4801 * regcache.c (regcache_dump): Ditto.
4802 * frv-tdep.c (new_variant, new_variant): Ditto.
4803 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
4804 (fbsd_find_memory_regions): Ditto.
4805 * breakpoint.c (create_thread_event_breakpoint)
4806 (create_breakpoints): Ditto.
4807 * aix-thread.c (aix_thread_pid_to_str): Ditto.
4808 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
4809
06d5cf63
JB
48102004-06-28 Joel Brobecker <brobecker@gnat.com>
4811
4812 * ada-lang.c: Re-indent file, with some massaging to help indent
4813 a bit when the result is otherwise really too ugly.
4814
35809fad
UW
48152004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
4816
4817 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
4818 code_addr_p and special_addr_p to 'unsigned int'.
4819
40e20472
MK
48202004-06-27 Mark Kettenis <kettenis@gnu.org>
4821
4822 * i386v4-nat.c: Update copyright year and tweak comment.
4823 (regmap): Remove trailing comma.
4824 (supply_gregset): Rename local variable i to regnum. Call
4825 regcache_raw_supply instead of supply_register.
4826 (fill_gregset): Rename argument regno to regnum. Call
4827 regcache_raw_collect instead of regcache_collect.
4828
12b0b6de
UW
48292004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
4830
4831 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
4832 and special_addr_p.
4833 (frame_id_build, frame_id_build_special): Update comments.
4834 (frame_id_build_wild): New prototype.
4835 * frame.c (frame_id_build, frame_id_build_special): Fill in new
4836 struct frame_id fields.
4837 (frame_id_build_wild): New function.
4838 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
4839
47b42a3e
MK
48402004-06-27 Mark Kettenis <kettenis@gnu.org>
4841
4842 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
4843 hppabsd-tdep.c.
4844
1265e4aa
JB
48452004-06-27 Joel Brobecker <brobecker@gnat.com>
4846
4847 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
4848
76a01679
JB
48492004-06-27 Joel Brobecker <brobecker@gnat.com>
4850
4851 * ada-lang.c: Re-indent file.
4852
7aca490a
JB
48532004-06-27 Joel Brobecker <brobecker@gnat.com>
4854
4855 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
4856 (no_symtab_msg): Likewise.
4857
5e987968
AS
48582004-06-27 Andreas Schwab <schwab@suse.de>
4859
4860 * source.c: Fix whitespace.
4861
315c4276
MK
48622004-06-27 Mark Kettenis <kettenis@gnu.org>
4863
d15be926
MK
4864 * configure.in: Include <sys/param.h> for td_pcb test.
4865 * configure: Regenerated.
4866
9062529b
MK
4867 * i386nbsd-nat.c: New file.
4868 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
4869 i386obsd-nat.c and i386obsd-tdep.c.
4870 (i386nbsd-nat.o): New dependency.
4871 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
4872 bsd-kvm.o.
4873 (LOADLIBES): New variable.
4874 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
4875 bsd-kvm.o.
4876 (LOADLIBES): New variable.
4877
8010310e
MK
4878 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
4879 (LOADLIBES): New variable.
4880
efe1d7b9
MK
4881 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
4882 fetching from BSD_KVM_PADDR. Correctly lookup address for
4883 "_thread0".
4884
315c4276
MK
4885 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
4886 "bsd-kvm.h".
4887 (amd64fbsd_supply_pcb): New funcion.
4888 (_initialize_amd64fbsd_nat): Enable libkvm interface.
4889
399cfac6
DL
48902004-06-27 <david@streamline-computing.com>
4891
4892 Partial fix for PR cli/1056.
4893 * valarith.c: Check for zero in division and remainder
4894 evaluation.
4895
6235f9c8
MK
48962004-06-27 Mark Kettenis <kettenis@gnu.org>
4897
4898 * i387-tdep.c: Remove excessive whitespace.
4899
2726dafc
AC
49002004-06-26 Andrew Cagney <cagney@gnu.org>
4901
4902 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
4903 * gdb-events.h, gdb-events.c: Re-generate.
4904 * tui/tui-hooks.c (tui_install_hooks): Update.
4905 (tui_remove_hooks): Update.
4906 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
4907
0e56aeaf
MK
49082004-06-26 Mark Kettenis <kettenis@gnu.org>
4909
cb461069
MK
4910 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
4911 (gregset_t, fpregset_t): Remove typedefs.
4912 (REG_OFFSET): Rename argument.
4913 (amd64bsd_r_reg_offset): Rename from reg_offset.
4914 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
4915 Remove functions.
4916 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
4917 of reg_offset.
4918 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
4919
ecba89de
MK
4920 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
4921
4cd80476
MK
4922 * vax-tdep.c: Tweak comment.
4923
0e56aeaf
MK
4924 Add OpenBSD/hppa support.
4925 * NEWS (New native configurations): Mention OpenBSD/hppa.
4926 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
4927 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
4928 files.
4929 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
4930 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
4931 * configure.host: Add hppa*-*-openbsd*.
4932 * configure.tgt: Add hppa*-*-openbsd*.
4933
98bbd631
AC
49342004-06-25 Andrew Cagney <cagney@gnu.org>
4935
4936 * defs.h (deprecated_ui_loop_hook): Deprecated.
4937 * wince.c (child_wait): Update.
4938 * win32-nat.c (child_wait): Update.
4939 * v850ice.c (v850ice_wait): Update.
4940 * top.c (deprecated_ui_loop_hook): Update.
4941 * serial.h: Update.
4942 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
4943 (do_unix_readchar): Update.
4944 * ser-tcp.c (net_open): Update.
4945 * remote-sim.c (gdb_os_poll_quit): Update.
4946 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
4947
769d7dc4
AC
49482004-06-24 Andrew Cagney <cagney@gnu.org>
4949
4950 * defs.h (deprecated_pre_add_symbol_hook)
4951 (deprecated_post_add_symbol_hook): Deprecated.
4952 * symfile.c (symbol_file_add_with_addrs_or_offsets)
4953 (symbol_file_add_with_addrs_or_offsets): Update references.
4954
11c949aa
AC
49552004-06-24 Andrew Cagney <cagney@gnu.org>
4956
4957 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
4958 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
4959 * wince.c (ui_loop_hook): Delete extern declaration.
4960 * win32-nat.c (ui_loop_hook): Delete extern declaration..
4961 * v850ice.c (ui_loop_hook): Delete extern declaration..
4962 * ser-unix.c (ui_loop_hook): Delete extern declaration..
4963 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
4964 * remote-sim.c (ui_loop_hook): Delete extern declaration..
4965 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
4966 ui_loop_hook declaration.
4967
eedc19af
AC
49682004-06-24 Andrew Cagney <cagney@gnu.org>
4969
4970 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
4971 entry_func_highpc fields.
4972 * objfiles.c (init_entry_point_info): Do not clear
4973 entry_func_lowpc and entry_func_highpc.
4974 (objfile_relocate): Do not relocate entry_func_lowpc and
4975 entry_func_highpc.
4976 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
4977 entry_func_highpc.
4978 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
4979 entry_func_highpc.
4980 * blockframe.c (legacy_frame_chain_valid): Replace tests against
4981 entry_func_lowpc and entry_func_highpc with call to
4982 inside_entry_func.
4983
d47079be
MK
49842004-06-24 Mark Kettenis <kettenis@gnu.org>
4985
4986 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
4987 quad-precision floating point arguments in registers.
4988
2107e348
MK
49892004-06-24 Mark Kettenis <kettenis@gnu.org>
4990
4991 From Michael Mueller <m.mueller99@kay-mueller.de>:
4992 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
4993 account.
4994
46587c42
JJ
49952004-06-22 Jeff Johnston <jjohnstn@redhat.com>
4996
4997 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
4998 to -1.
4999 * breakpoint.c (bpstat_stop_status): Move check for ignoring
5000 untriggered watchpoints to a separate if clause. Update function
5001 comment regarding STOPPED_BY_WATCHPOINT argument.
5002
226f5cf4
JB
50032004-06-22 Jim Blandy <jimb@redhat.com>
5004
5005 * gdbarch.sh: Doc fix.
5006
f10683bb
MH
50072004-06-21 Martin Hunt <hunt@redhat.com>
5008 Kevin Buettner <kevinb@redhat.com>
5009
5010 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
5011 * mips-tdep.h (MIPS_SP_REGNUM): Define.
5012 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
5013 to set_gdbarch_sp_regnum(). Use cooked register number.
5014 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
5015
412d5987
AC
50162004-06-21 Andrew Cagney <cagney@gnu.org>
5017
5018 * gdbarch.sh: When the macro field is empty, do not generate a
5019 macro definition. When the macro field is "=", generate the macro
5020 name from the upper-case function name.
5021 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
5022 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
5023 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
5024 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
5025 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
5026 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
5027 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
5028 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
5029 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
5030 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
5031 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
5032 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
5033 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
5034 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
5035 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
5036 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
5037 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
5038 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
5039 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
5040 (DEPRECATED_USE_STRUCT_CONVENTION)
5041 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5042 (DEPRECATED_FRAME_INIT_SAVED_REGS)
5043 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
5044 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
5045 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
5046 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
5047 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
5048 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
5049 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
5050 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
5051 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
5052 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
5053 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
5054 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
5055 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
5056 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
5057 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
5058 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
5059
68908a3e
AC
50602004-06-21 Andrew Cagney <cagney@gnu.org>
5061
48f7351b
AC
5062 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
5063 macro name, and the function rather than macro value. Only wrap
5064 macro print statements in #ifdef. Move format logic to where it
5065 is needed.
5066 * gdbarch.c: Re-generate.
5067
283354d8
AC
5068 * gdbarch.sh (read): Delete "print_p" and "description", add
5069 "garbage_at_eol". Check for non-empty garbage at end-of-line.
5070 Delete references to print_p.
5071 (TARGET_ARCHITECTURE): Delete print predicate.
5072 * gdbarch.c: Re-generate.
5073
68908a3e
AC
5074 * gdbarch.sh: Check that multi-arch methods do not provide a
5075 macro.
5076 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
5077 (print_registers_info, print_float_info, print_vector_info)
5078 (adjust_breakpoint_address, remote_translate_xfer_address)
5079 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
5080 (address_class_type_flags_to_name, unwind_sp): Remove the macro
5081 name from the multi-arch definition.
5082
a2428dbe
AC
50832004-06-20 Andrew Cagney <cagney@gnu.org>
5084
5085 * gdbarch.sh: Sort by the function, instead of macro name.
5086 * gdbarch.c: Re-generate.
5087
750eb019
AC
50882004-06-20 Andrew Cagney <cagney@gnu.org>
5089
66d659b1
AC
5090 * gdbarch.sh: Use the function, instead of macro name in
5091 errors and the log file.
5092 (return_value): Remove stray ":" in spec.
5093
750eb019
AC
5094 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
5095 * gdbarch.h, gdbarch.c: Re-generate.
5096 * Makefile.in (arch-utils.o): Update dependencies.
5097 * values.c (using_struct_return): Move code calling
5098 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
5099 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
5100 to legacy_return_value, simplify.
5101 * infcmd.c (print_return_value): Move code calling
5102 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
5103 to legacy_return_value, simplify.
5104 * infcall.c (call_function_by_hand): Move code calling
5105 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
5106 * arch-utils.c: Update copyright. Include "gdbcore.h".
5107 (legacy_return_value): New function.
5108 * arch-utils.h: Update copyright.
5109 (legacy_return_value): Declare.
5110
b5622e8d
AC
51112004-06-20 Andrew Cagney <cagney@gnu.org>
5112
5113 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
5114 * gdbarch.h, gdbarch.c: Re-generate.
5115 * values.c (using_struct_return): Update call.
5116 * mcore-tdep.c: Update comment.
5117 * infcall.c (call_function_by_hand): Update comment.
5118 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5119 * arch-utils.h (always_use_struct_convention): Update.
5120 * v850-tdep.c (v850_gdbarch_init): Update.
5121 * sh64-tdep.c (sh64_gdbarch_init): Update.
5122 * sh-tdep.c (sh_gdbarch_init): Update.
5123 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5124 * mips-tdep.c (mips_gdbarch_init): Update.
5125 * mcore-tdep.c (mcore_gdbarch_init): Update.
5126 * m32r-tdep.c (m32r_gdbarch_init): Update.
5127 * ia64-tdep.c (ia64_gdbarch_init): Update.
5128 * h8300-tdep.c (h8300_gdbarch_init): Update.
5129 * frv-tdep.c (frv_gdbarch_init): Update.
5130 * cris-tdep.c (cris_gdbarch_init): Update.
5131 * arm-tdep.c (arm_gdbarch_init): Update.
5132 * alpha-tdep.c (alpha_gdbarch_init): Update.
5133
5191de37
MC
51342004-06-18 Michael Chastain <mec.gnu@mindspring.com>
5135
5136 * PROBLEMS: Add more specific information, and a work-around,
5137 for PR gdb/1458.
5138
782263ab
AC
51392004-06-18 Andrew Cagney <cagney@gnu.org>
5140
5141 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
5142 * gdbarch.h, gdbarch.c: Re-generate.
5143 * ada-lang.c (ada_finish_decode_line_1): Update.
5144 * infrun.c (handle_inferior_event): Update.
5145 * infcall.c (find_function_addr): Update.
5146 * linespec.c (minsym_found): Update.
5147 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
5148 Update.
5149 * blockframe.c (legacy_frameless_look_for_prologue): Update.
5150 * cli/cli-cmds.c (disassemble_command): Update.
5151 * vax-tdep.c (vax_gdbarch_init): Update.
5152
2f305df1
MK
51532004-06-18 Mark Kettenis <kettenis@gnu.org>
5154
5155 * i386-tdep.c (i386_collect_fpregset): Fix comment.
5156
e5fe55f7
AC
51572004-06-17 Andrew Cagney <cagney@gnu.org>
5158
5159 GDB 6.1.1 released from the GDB 6.1 branch.
5160 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
5161 * PROBLEMS: Ditto.
5162
473b7be6
DJ
51632004-06-16 Daniel Jacobowitz <dan@debian.org>
5164
5165 PR gdb/1658
5166 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
5167 operation as a uleb128. Found by Michael Coulter.
5168
96d887e8
PH
51692004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
5170
5171 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
5172 make it non-static.
5173 * ada-lang.h (task_control_block): declaration moved from ada-task.c
5174 to ada-lang.h; this is needed to be able to implement the kill command
5175 in multi-task mode.
5176 (task_ptid): Ditto.
5177 (task_entry): Ditto.
5178 (task_list): Ditto.
5179 (ada_build_task_list): Ditto.
5180
5181 * ada-lang.c: Conditionalize routines and data structures related
5182 to breakpoints, exceptions, completion, and symbol caching on
5183 GNAT_GDB, since these are not yet used in the submitted public sources.
5184 (ada_main_name): Editorial: Move definition out of exception-related
5185 code.
5186
31eef181
AC
51872004-06-15 Andrew Cagney <cagney@gnu.org>
5188
5189 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
5190 deprecated_pc_in_call_dummy.
5191
2c500098
AM
51922004-06-15 Alan Modra <amodra@bigpond.net.au>
5193
5194 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
5195 bfd_get_section_size_before_reloc or _raw_size.
5196 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
5197 * dwarf2read.c (dwarf2_locate_sections): Likewise.
5198 (dwarf2_read_section): Likewise.
5199 * elfread.c (elf_locate_sections): Likewise.
5200 * gcore.c (derive_heap_segment): Likewise.
5201 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
5202 * remote-e7000.c (e7000_load): Likewise.
5203 * remote-m32r-sdi.c (m32r_load): Likewise.
5204 * remote-mips.c (mips_load_srec): Likewise.
5205 (pmon_load_fast): Likewise.
5206 * remote.c (compare_sections_command): Likewise.
5207 * symfile.c (add_section_size_callback): Likewise.
5208 (load_section_callback): Likewise.
5209 (pc_in_unmapped_range): Likewise.
5210 (pc_in_mapped_range): Likewise.
5211 (sections_overlap): Likewise.
5212 (list_overlays_command): Likewise.
5213 (simple_overlay_update_1): Likewise.
5214 (simple_overlay_update): Likewise.
5215 * tracepoint.c (remote_set_transparent_ranges): Likewise.
5216 * win32-nat.c (core_section_load_dll_symbols): Likewise.
5217
90f943f1
RC
52182004-06-14 Randolph Chung <tausq@debian.org>
5219
5220 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
5221 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
5222 static.
5223 (hppa_hpux_inferior_created): New function.
5224 (hppa_hpux_init_abi): Register observer.
5225 * symfile.c (hp_cxx_exception_support_initialized)
5226 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
5227 (symbol_file_add_main_1, symbol_file_clear): Likewise.
5228
700c15aa
RC
52292004-06-14 Randolph Chung <tausq@debian.org>
5230
3973a7d3
AC
5231 * MAINTAINERS (Write After Approval): Alphabetize my entry
5232 correctly.
700c15aa 5233
cea4838c
AC
52342004-06-14 Andrew Cagney <cagney@gnu.org>
5235
5236 * MAINTAINERS (testsuite): List Michael Chastain as the lead
5237 testsuite maintainer.
5238
97092415
AC
52392004-06-13 Andrew Cagney <cagney@gnu.org>
5240
e8c3165b
AC
5241 * infcmd.c (print_return_value): Fix logic, allow
5242 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
5243
bceabdd8
AC
5244 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
5245 defining any macros.
5246 * gdbarch.h: Re-generate.
5247
57010b1c
AC
5248 * gdbarch.sh: Delete "level" attribute. Only check for a macro
5249 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
5250 * gdbarch.h: Re-generate.
5251
bc87dfa0
AC
5252 * values.c (generic_use_struct_convention): Don't check gcc_p.
5253
15ac804d
AC
5254 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
5255 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
5256 * gdbarch.h, gdbarch.c: Regenerate.
5257 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
5258 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
5259 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5260 deprecated_max_register_raw_size and
5261 deprecated_max_register_virtual_size.
5262 * v850-tdep.c (v850_gdbarch_init): Ditto.
5263 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5264 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5265 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5266 * cris-tdep.c (cris_gdbarch_init): Ditto.
5267
97092415
AC
5268 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
5269 * gdbarch.h, gdbarch.c: Re-generate.
5270 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
5271 (m68hc11_use_struct_convention): Delete function.
5272 (m68hc11_extract_struct_value_address): Delete function.
5273 (m68hc11_return_value): New function.
5274 (m68hc11_gdbarch_init): Instead of store_return_value,
5275 extract_return_value, return_value_on_stack,
5276 deprecated_extract_struct_value_address and use_struct_convention,
5277 set return_value.
5278 * values.c (using_struct_return): Do not call
5279 RETURN_VALUE_ON_STACK.
5280 * arch-utils.h (generic_return_value_on_stack_not): Delete
5281 declaration.
5282 * arch-utils.c (generic_return_value_on_stack_not): Delete
5283 function.
5284
44e5158b
AC
52852004-06-12 Andrew Cagney <cagney@gnu.org>
5286
5287 * values.c (register_value_being_returned): Delete function.
5288 * infcmd.c (legacy_return_value): Delete function.
5289 * infcall.c (call_function_by_hand): Inline
5290 "register_value_being_returned", simplify.
5291 * values.c (using_struct_return): Update comment, refer to
5292 print_return_value instead of register_value_being_returned.
5293 * infcmd.c (print_return_value): Inline calls to
5294 register_value_being_returned and legacy_return_value. Simplify.
5295
b887c273
RC
52962004-06-11 Randolph Chung <tausq@debian.org>
5297
5298 * somread.c (som_symtab_read): Exclude gcc local symbols.
5299
1b2bfbb9
RC
53002004-06-11 Randolph Chung <tausq@debian.org>
5301
3973a7d3
AC
5302 * infrun.c (handle_inferior_event): Handle the case when a
5303 trampoline ends up in the runtime resolver, and if the trampoline
5304 has no name. Rearrange the code so that all the trampoline
5305 processing happens before other step-out-of-range handling.
1b2bfbb9 5306
a9d61c86
MH
53072004-06-11 Martin Hunt <hunt@redhat.com>
5308
5309 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
5310 has no fpu.
5311
2c87cf5a
AC
53122004-06-10 Andrew Cagney <cagney@gnu.org>
5313
5314 * blockframe.c (legacy_inside_entry_func): Delete.
5315 (legacy_frame_chain_valid): Inline call to
5316 legacy_inside_entry_func, simplify.
5317
0b67b468 53182004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
5319
5320 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
5321 * dwarf2read.c (partial_die_info): Add dirname field.
5322 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
5323 (read_partial_die): Save away DW_AT_comp_dir.
5324 * defs.h (symtab_to_filename): Removed.
5325 * source.c (find_and_open_source): Added.
57c22c6c 5326 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
5327 (symtab_to_filename): Removed.
5328 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
5329 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
5330 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
5331 symtab_to_filename.
5332 * symtab.h (partial_symtab): Add dirname field.
5333 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
5334 (mi_cmd_file_list_exec_source_file): Call new function
5335 symtab_to_fullname to find fullname.
57c22c6c 5336 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 5337 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
5338 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
5339
9a1dd1ad
AC
53402004-06-10 Andrew Cagney <cagney@gnu.org>
5341
239ae8c7
AC
5342 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
5343 to generic_use_struct_convention, the default value.
5344
fc720350
AC
5345 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
5346 of abort.
5347
9a1dd1ad
AC
5348 * ns32k-tdep.c (ns32k_push_arguments): New function.
5349 (ns32k_gdbarch_init): Set deprecated_push_arguments.
5350 * infcall.c (call_function_by_hand): Call error instead of
5351 legacy_push_arguments.
5352 * value.h (legacy_push_arguments): Delete declaration.
5353 * valops.c (legacy_push_arguments): Delete function.
5354 (value_push): Delete function.
5355
fea25152
BF
53562004-06-10 Brian Ford <ford@vss.fsi.com>
5357
5358 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
5359 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
5360 info.
5361 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
5362
30a4a8e0
AC
53632004-06-10 Andrew Cagney <cagney@gnu.org>
5364
5365 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
5366 * gdbarch.h, gdbarch.c: Re-generate.
5367 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
5368 parameters.
5369 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
5370 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
5371 deprecated_pc_in_call_dummy instead of
5372 DEPRECATED_PC_IN_CALL_DUMMY.
5373 (arm_skip_prologue): Ditto.
5374 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
5375 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
5376 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
5377 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
5378 Ditto.
5379 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
5380 (sh64_init_extra_frame_info, sh64_get_saved_register)
5381 (sh64_pop_frame): Ditto.
5382 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
5383 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
5384 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
5385 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
5386 (h8300_pop_frame): Ditto.
5387 * blockframe.c (legacy_inside_entry_func)
5388 (legacy_frame_chain_valid): Ditto.
5389 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
5390 to deprecated_pc_in_call_dummy.
5391
81cfbe54
AC
53922004-06-09 Andrew Cagney <cagney@gnu.org>
5393
a1f4a1b6
AC
5394 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
5395 provide a default value.
5396 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
5397 * gdbarch.h, gdbarch.c: Re-generate.
5398 * arch-utils.c (generic_convert_register_p): Rename
5399 legacy_convert_register_p
5400 (legacy_register_to_value, legacy_value_to_register): Delete
5401 functions.
5402 * arch-utils.h (generic_convert_register_p): Rename
5403 legacy_convert_register_p.
5404 (legacy_register_to_value, legacy_value_to_register): Delete
5405 declarations.
5406
9730f241
AC
5407 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
5408 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
5409 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
5410 * gdbarch.h, gdbarch.c: Re-generate.
5411 * infcmd.c (default_print_registers_info): Simplify.
5412 * findvar.c (value_of_register): Simplify.
5413 * mi/mi-main.c (get_register): Simplify.
5414 * arch-utils.c (legacy_convert_register_p): Always return 0.
5415 (legacy_register_to_value, legacy_value_to_register): Always call
5416 internal_error.
5417
8a1bf479
AC
5418 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
5419 #ifdef CLEAR_INSN_CACHE code.
5420 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
5421 Delete #ifdef CLEAR_DEFERRED_STORES code.
5422
4b38d6f1
AC
5423 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
5424
2d62ecc7
AC
5425 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
5426 copyright.
5427 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
5428
be4f7469
AC
5429 * config/mips/mipsv4.mh: Delete file.
5430
81cfbe54
AC
5431 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
5432 unreferenced macro.
5433 (hpread_adjust_stack_address): Delete declaration.
5434
d966f0cb
AC
54352004-06-08 Andrew Cagney <cagney@gnu.org>
5436
5437 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5438 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
5439 PTRACE_ATTACH / PTRACE_DETACH available call error.
5440 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
5441 * infttrace.c (update_thread_state_after_attach, attach, detach):
5442 Remove #ifdef wrappers.
5443 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
5444 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5445 * config/nm-bsd.h (ATTACH_DETACH): Delete.
5446 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
5447 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
5448 * config/nm-linux.h (ATTACH_DETACH): Delete.
5449 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
5450 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
5451 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
5452 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
5453 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
5454
d91670b9
CV
54552004-06-08 Corinna Vinschen <vinschen@redhat.com>
5456
5457 * configure.in: Set $configdir to the right OS specific value.
5458 Use value when setting $tcldir and $tkdir.
5459 * configure: Regenerate.
5460
28ba0b33
PB
54612004-06-06 Paul Brook <paul@codesourcery.com>
5462
5463 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
5464 records.
5465
f26caa11
PH
54662004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
5467
5468 * ada-lang.c (lookup_symbol_in_language): New function to allow
5469 re-use of another language's symbol lookup code. (Placed here
5470 temporarily while Ada support is being integrated into the public
5471 tree).
5472 (restore_language): New auxiliary function for
5473 lookup_symbol_in_language.
5474 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
5475 temporarily while Ada support is being integrated into the public
5476 tree).
5477
d560a54b
AO
54782004-06-08 Alexandre Oliva <aoliva@redhat.com>
5479
e75d110c
AO
5480 * Makefile.in (check//%): New.
5481
d560a54b
AO
5482 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
5483 (mn10300_store_return_value): Rewrite.
5484 (mn10300_type_align): New.
5485 (mn10300_use_struct_convention): Rewrite.
5486 (mn10300_return_value): New, using all of the above.
5487 (mn10300_pop_frame_regular): Add saved_regs_size.
5488 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
5489
a72fbdb7
AO
5490 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
5491 regs if PC is on movm.
5492
01904826
JB
54932004-06-07 Jim Blandy <jimb@redhat.com>
5494
5495 Add native Linux support for the PowerPC E500.
5496 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
5497 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
5498 all architectures except the E500.
5499 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
5500 #definitions.
5501 (struct gdb_evrregset_t): New type.
5502 (have_ptrace_getsetevrregs): New variable.
5503 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
5504 fetch_spe_registers): New functions.
5505 (fetch_register): Call fetch_spe_register as appropriate.
5506 Assert that we're only passed raw register numbers.
5507 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
5508 Don't fetch gprs if they're pseudoregisters.
5509 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
5510 store_spe_registers): New functions.
5511 (store_register): Call store_spe_register as appropriate.
5512 Assert that we're only passed raw register numbers.
5513 (store_ppc_registers): Call store_spe_registers as appropriate.
5514 Don't store gprs if they're pseudoregisters.
5515
f90ef764
JJ
55162004-06-07 Jeff Johnston <jjohnstn@redhat.com>
5517
5518 * thread-db.c (thread_get_info_callback): Fill in the thread_info
5519 struct if one exists, even if we are dealing with a zombie thread.
5520
45b75230
AC
55212004-06-07 Andrew Cagney <cagney@gnu.org>
5522
5523 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
5524 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
5525 Rename PC_REQUIRES_RUN_BEFORE_USE.
5526 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
5527 #ifdef.
5528
1658da49
RC
55292004-06-07 Randolph Chung <tausq@debian.org>
5530
5531 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
5532 unwinding after sp has been saved to the stack but before the end
5533 of the prologue, and after the fp has been modified but before it has
5534 been saved to the stack.
5535 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
5536 Remove superfluous definitions.
5537 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
5538
9a727a3c
RC
55392004-06-07 Guy Martin <gmsoft@gentoo.org>
5540
5541 Committed by Randolph Chung.
5542 * hppa-linux-nat.c: Include the correct version of the header file
5543 depending on the kernel version.
5544
9e500012
RC
55452004-06-06 Randolph Chung <tausq@debian.org>
5546
5547 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
5548 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
5549
3388d7ff
RC
55502004-06-06 Randolph Chung <tausq@debian.org>
5551
5552 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
5553 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
5554 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
5555 * hppa-tdep.c (hppa_symbol_address): New function definition.
5556 * hppa-tdep.h (hppa_symbol_address): New function declaration.
5557
d49771ef
RC
55582004-06-06 Randolph Chung <tausq@debian.org>
5559
5560 * hppa-tdep.h (struct value): Forward declaration.
5561 (gdbarch_tdep): Define tdep find_global_pointer method.
5562 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
5563 associated with the function we are trying to call, and write it
5564 to the gp register.
5565 (hppa32_convert_from_funct_ptr_addr): New function.
5566 (hppa_find_global_pointer): New function.
5567 (hppa_gdbarch_init): Set default find_global_pointer method; set
5568 convert_from_func_ptr_addr method.
5569 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
5570 (hppa_linux_init_abi): Set find_global_pointer method.
5571 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
5572
7d9b040b
RC
55732004-06-06 Randolph Chung <tausq@debian.org>
5574
5575 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
5576 to struct value *function.
5577 * gdbarch.c: Regenerate.
5578 * gdbarch.h: Likewise.
5579 * infcall.c (call_function_by_hand): Pass entire function value
5580 to push_dummy_call.
5581
5582 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
5583 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
5584 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
5585 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
5586 * arm-tdep.c (arm_push_dummy_call): Likewise.
5587 * avr-tdep.c (avr_push_dummy_call): Likewise.
5588 * cris-tdep.c (cris_push_dummy_call): Likewise.
5589 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
5590 * frv-tdep.c (frv_push_dummy_call): Likewise.
5591 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
5592 * hppa-tdep.c (hppa32_push_dummy_call)
5593 (hppa64_push_dummy_call): Likewise.
5594 * i386-tdep.c (i386_push_dummy_call): Likewise.
5595 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
5596 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
5597 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
5598 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
5599 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
5600 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
5601 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
5602 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
5603 (ppc64_sysv_abi_push_dummy_call): Likewise.
5604 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
5605 (ppc64_sysv_abi_push_dummy_call): Likewise.
5606 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
5607 * s390-tdep.c (s390_push_dummy_call): Likewise.
5608 * sh-tdep.c (sh_push_dummy_call_fpu)
5609 (sh_push_dummy_call_nofpu): Likewise.
5610 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
5611 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
5612 * vax-tdep.c (vax_push_dummy_call): Likewise.
5613
4a19ea35
JB
56142004-06-04 Jim Blandy <jimb@redhat.com>
5615
8327ccee
JB
5616 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
5617 gdbarch argument to register_size.
5618
a3c001ce
JB
5619 * rs6000-tdep.c (rs6000_store_return_value): Use
5620 regcache_cooked_write_part instead of
5621 deprecated_write_register_bytes.
5622 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
5623 not gdbarch_deprecated_store_return_value.
5624
4a19ea35
JB
5625 * ppc-linux-nat.c (store_register, fetch_register): Remove
5626 incorrect assertions. Simplify and generalize handling of
5627 transfers whose sizes are not multiples of, or less than, sizeof
5628 (PTRACE_XFER_TYPE).
5629
b9b5d7ea
JJ
56302004-06-04 Jeff Johnston <jjohnstn@redhat.com>
5631
5632 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
5633 as a new thread event.
720c7d64 5634 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 5635 zombie, return TD_THR_ZOMBIE.
720c7d64 5636 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
5637 TD_THR_ZOMBIE, check if the thread is still on the thread list
5638 and return a -1 ptid if not found.
5639 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
5640 change the status to TARGET_WAITKIND_SPURIOUS.
5641
c8a3b559
CV
56422004-06-03 Corinna Vinschen <vinschen@redhat.com>
5643
5644 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
5645 double values in little endian mode.
5646
20605361
AC
56472004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
5648
5649 Committed by Andrew Cagney.
5650 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
5651 after last enum constant to avoid error from IBM C
5652 compiler.
5653
bc97b3ba
JB
56542004-06-02 Jim Blandy <jimb@redhat.com>
5655
5656 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
5657 to 'message', and make it local to the lone block that uses it.
5658
1da28ab0
JB
5659 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
5660
4c4b4cd2
PH
56612004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
5662
8a2225b2
PH
5663 * ada-exp.y: Update copyright notice.
5664 Include block.h.
5665
5666 Replace REGNAME, LAST, INTERNAL_VARIABLE with
5667 SPECIAL_VARIABLE and unify the treatment of these cases.
5668
5669 (write_attribute_call0): Remove.
5670 (write_attribute_call1): Remove.
5671 (write_attribute_calln): Remove.
5672 (save_qualifier): Add missing semicolon.
5673
5674 (simple_exp,exp): Decomment (i.e., reactivate) code that was
5675 temporarily disabled to allow compilation with FSF head version.
5676
5677 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
5678 use individual operators (OP_*) for all attributes.
5679 (exp syntax): Use write_int.
5680 Handle STRING literals with OP_STRING.
5681 (variable syntax): Add limit parameter to calls to
5682 write_object_renaming.
5683
5684 (temp_parse_space): New definition to hold entities that need
5685 only live until the next call to ada_parse.
5686 (string_to_operator): Rename fields of ada_opname_table entries.
5687
5688 (write_var_from_sym): Record block.
5689 (write_var_from_name): Minor reformatting.
5690 Make sure saved name is properly encoded in the case of multiple
5691 matches, and set its language to Ada.
5692 Update comment.
5693 Modify to indicate unresolved name as symbol in the UNRESOLVED
5694 namespace, allocated in temp_parse_space.
5695 (write_int): New function.
5696
5697 (write_object_renaming): Add max_depth parameter to limit
5698 chains of object renamings.
5699 Handle case where root of renaming expression is itself a renaming.
5700 Use temp_parse_space for temporary name buffer.
5701 Handle renamings to dereferenced pointers (___XEXA suffices).
5702
5703 (ada_parse, yyerror, string_to_operator,
5704 write_var_from_sym, write_var_from_name, write_attribute_call0,
5705 write_attribute_call1, write_attribute_calln,
5706 write_object_renaming): Protoize.
5707
5708 (_initialize_ada_exp): New function.
5709
5710 * ada-lang.c: Update copyright notice.
5711 General terminology change to conform to GNAT compiler usage:
5712 mangle => encode, demangle => decode
5713 Include gdb_obstack.h.
5714 Include gdb_regex.h
5715 Include frame.h
5716 Include hashtab.h
5717 Include completer.h
5718 Include gdb_stat.h
5719 Include block.h
5720 Include infcall.h
5721
5722 (ADA_RETAIN_DOTS): Make sure this is defined.
5723 (TRUNCATION_TOWARDS_ZERO): Define.
5724 (struct string_vector): Define.
5725 (unresolved_names): Remove definition.
5726 (xnew_string_vector): New function.
5727 (string_vector_append): New function.
5728 (extract_string): Make static.
5729 (ada_unqualified_name): New function.
5730 (add_angle_brackets): New function.
5731 (function_name_from_pc): New function.
5732 (place_on_stack): Rename to ensure_lval.
5733
5734 (ensure_lval): Renamed from place_on_stack.
5735 Make identity on lvals.
5736 Update comment.
5737 (is_nonfunction): New interface.
5738 Only symbols in LOC_CONST class can be enumerals.
5739 (fill_in_ada_prototype): Remove; now independent of language.
5740 (add_defn_to_vec): Add obstack and symtab arguments.
5741 Use obstack to hold collected definitions.
5742 (num_defns_collected): New function.
5743 (defns_collected): New function.
5744 (ada_resolve_subexp): Rename to resolve_subexp.
5745 (resolve_subexp): Renamed from ada_resolve_subexp.
5746 (ada_op_name): Return non-const result.
5747 (ada_decoded_op_name): Renamed from ada_op_name, now used for
5748 other purposes.
5749
5750 (to_fixed_array_type): Add declaration.
5751 (coerce_unspec_val_to_type): Remove offset parameter.
5752 (find_sal_from_funcs_and_line): New interface.
5753 (find_line_in_linetable): Ditto.
5754
5755 (all_sals_for_line): Rename to ada_sals_for_line and make
5756 global.
5757 Add new parameter. When set, do not ask the user to choose the
5758 instance, but use the first one found instead.
5759 Use given line number in returned sals.
5760 Fix comment.
5761 Skip the prologue if funfirstline is set.
5762 Correct for memory leak when 0 lines found.
5763
5764 (value_pos_atr): Use pos_atr.
5765 (pos_atr): New function.
5766 (standard_lookup): Add block parameter.
5767
5768 (makeTimeStart): Remove declaration and uses.
5769 (makeTimeStop): Remove declaration and uses.
5770
5771 (ada_completer_word_break_characters): Allow for VMS.
5772 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
5773 (raise_sym_name): New constant.
5774 (raise_unhandled_sym_name): New constant.
5775 (raise_assert_sym_name): New constant.
5776 (process_raise_exception_name): New constant.
5777 (longest_exception_template): New constant.
5778 (warning_limit): New variable to limit warnings during expression
5779 evaluation.
5780 (warnings_issued): New variable to keep track of warnings issued.
5781 (known_runtime_file_name_patterns): New constant.
5782 (known_auxiliary_function_name_patterns): New constant.
5783 (symbol_list_obstack): New variable.
5784
5785 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
5786 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
5787 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
5788 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
5789 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
5790 ada_variant_discrim_name, field_alignment, dynamic_template_type,
5791 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
5792 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
5793 and strcmp.
5794
5795 (ada_get_field_index): New function.
5796 (lim_warning): New function.
5797 (ada_translate_error_message): New function.
5798 (MAX_OF_SIZE): New function.
5799 (MIN_OF_SIZE): New function.
5800 (UMAX_OF_SIZE): New function.
5801 (UMIN_OF_SIZE): New function.
5802 (discrete_type_high_bound): New function.
5803 (discrete_type_low_bound): New function.
5804 (base_type): New function.
5805 (do_command): Remove.
5806
5807 (ada_update_initial_language): Use language_ada, not language_unknown.
5808 (ada_encode): Renamed from ada_mangle.
5809 Obey ADA_RETAIN_DOTS.
5810 (ada_decode): Renamed from ada_demangle.
5811 Update coding conventions.
5812 (decoded_names_store): New hash table.
5813 (ada_decode_symbol): New function.
5814 (ada_la_decode): New function.
5815
5816 (modify_general_field): Correct computations of offset and bit
5817 position.
5818 (desc_base_type): Handle ref types, too.
5819 (ada_is_direct_array_type): New function.
5820
5821 (ada_is_simple_array): Rename to ada_is_simple_array_type.
5822 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
5823 (ada_is_bogus_array_descriptor,ada_type_of_array,
5824 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
5825 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
5826 ada_is_array_descriptor_type.
5827
5828 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
5829 (ada_is_packed_array_type): Handle pointers or
5830 references to packed arrays as well.
5831 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
5832 (decode_packed_array_type): Search for the packed array type
5833 symbol in the currently selected block and associated
5834 superblocks too.
5835 Use lookup_symbol again.
5836
5837 (decode_packed_array): Handle pointers and references.
5838 Update call to coerce_unspec_val_to_type.
5839 (decode_packed_array_type,value_subscript_packed): Limit warnings.
5840 (ada_value_primitive_packed_val): Improve comment.
5841
5842 (ada_index_type): Substitute int type for "undefined".
5843 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
5844 ada_array_langth, ada_is_string_type): Use renamed
5845 ada_is_simple_array_type.
5846 (empty_array): New function.
5847
5848 (ada_resolve): Rename to resolve.
5849 (resolve): Make static.
5850 Call renamed resolve_subexp.
5851 Update comment.
5852 (ada_resolve_subexp): Rename to resolve_subexp.
5853 (resolve_subexp): Update comment.
5854 Decomment disabled code.
5855 Add LOC_COMPUTED* cases.
5856 Modify to use temporary struct symbols (marked as being in
5857 UNDEF_NAMESPACE) to indicate unresolved names, instead of
5858 OP_UNRESOLVED_VALUE.
5859 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
5860 Add OP_STRING case.
5861 Remove OP_ARRAY.
5862 Use SYMBOL_PRINT_NAME instead of ada_demangle.
5863 Use new ada_lookup_symbol_list interface.
5864 Use new ada_resolve_function interface.
5865 Remove OP_TYPE case.
5866
5867 (ada_args_match): Idiot proof against null actuals.
5868 Use intermediate variables to clarify.
5869 (ada_resolve_function): Update comment and interface.
5870 (mangled_ordered_before): Rename to encoded_ordered_before and
5871 update comment.
5872 (sort_choices): Update comment and interface.
5873 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
5874 (user_select_syms): New interface.
5875 Use new sort_choices interface.
5876 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
5877 (possible_user_operator_p): Idiot-proof against null values.
5878 (ada_simple_renamed_entity): Don't make cleanup; rely on
5879 caller to free result string.
5880 Remove const from return type.
5881 (make_array_descriptor): Rename uses of place_on_stack to
5882 ensure_lval.
5883 Make sure that arrays are on stack.
5884
5885 (HASH_SIZE): Define.
5886 (struct cache_entry): Define.
5887 (cache_space): Define.
5888 (cache): Define.
5889 (clear_ada_sym_cache): New function.
5890 (find_entry): New function.
5891 (lookup_cached_symbol): New function.
5892 (defn_vector_size): Define.
5893 (cache_symbol): New function.
5894 (defn_symbols): Remove.
5895
5896 (standard_lookup): Use lookup_symbol_in_language to get effect of
5897 C lookup.
5898 Cache results.
5899
5900 (symbol_completion_match): New function.
5901 (symbol_completion_add): New function.
5902 (ada_make_symbol_completion_list): New function.
5903
5904 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
5905 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
5906 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
5907 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
5908
5909 (ada_lookup_simple_minsym): New function.
5910 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
5911
5912 (add_symbols_from_enclosing_procs): New interface.
5913 Conditionalize more helpfully.
5914 Don't bother if program isn't running.
5915 Use new interface to get_frame_block.
5916 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
5917
5918 (remove_extra_symbols): New interface.
5919 (xget_renaming_scope): New function.
5920 (is_package_name): New function.
5921 (renaming_is_visible): New function.
5922 (remove_out_of_scope_renamings): New function.
5923
5924 (ada_lookup_symbol_list): New interface.
5925 Properly reinitialize the symbol list obstack.
5926 Don't call add_symbols_from_enclosing_procs if we start from a
5927 static or global block.
5928 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
5929 add_symbols_from_enclosing_procs.
5930 Add symtab data to cached entries.
5931 Handle symbols prefixed with
5932 "standard__" specially; strip prefix and don't look in local symbols.
5933 Do not include out of scope renaming symbols in list of
5934 symbols returned.
5935 Add const to block parameter.
5936 Move check for non-local, non-global symbols earlier.
5937 Remove timing stuff.
5938 (ada_lookup_symbol): New interface.
5939 Find symtab as well.
5940 (ada_lookup_symbol_nonlocal): New function.
5941
5942 (is_name_suffix): Enhance suffix detection to recognize
5943 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
5944 (is_dot_digits_suffix): New function.
5945 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
5946
5947 (ada_add_block_symbols): New interface. Use obstack to return results
5948 in a vector of struct ada_symbol_infos. Add symtab argument.
5949 Use new interface to add_defn_to_vec.
5950 Remove calls to fill_in_ada_prototype.
5951 Use BLOCK_BUCKETS, BLOCK_BUCKET.
5952
5953 (ada_finish_decode_line_1): Add const qualification to local to fix
5954 warning.
5955 Start looking in static block for functions to avoid attempts
5956 to search frame chain for up-level variables.
5957 Adapt to new ada_sals_for_line interface.
5958 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
5959 Handle quoting of the function name inside the spec string.
5960 Skip prologue when funfirstline is set and update the
5961 function documentation to that effect.
5962
5963 (debug_print_lines, debug_print_block, debug_print_blocks,
5964 debug_print_symtab): Remove.
5965
5966 (ada_main_name): New function.
5967 (ada_exception_breakpoint_type): New function.
5968 (is_known_support_routine): New function.
5969 (ada_find_printable_frame): Renamed from find_printable_frame and made
5970 global.
5971 Remove level parameter.
5972 Use new interface to select_frame.
5973
5974 (begin_command): Remove.
5975 (ada_adjust_exception_stop): New function.
5976 (ada_print_exception_stop): New function.
5977 (exception_name_from_cond): New function.
5978 (ada_report_exception_break): Replace disabled code with
5979 conditionalization on GNAT_GDB.
5980 Get the exception name from the condition string.
5981 Remove and move functionality into new functions
5982 ada_print_exception_breakpoint_task and
5983 ada_print_exception_breakpoint_nontask.
5984 (error_breakpoint_runtime_sym_not_found): New function.
5985 (is_runtime_sym_defined): New function.
5986 (ada_breakpoint_rewrite): Uncomment suppressed code.
5987 Use symbolic error-message and runtime-symbol names.
5988 Surround runtime symbol names in quotes.
5989 Allow non-specific breakpoints on exceptions and assertions before
5990 program starts.
5991
5992 (ada_is_tagged_type): Add parameter.
5993 (ada_is_tag_type): New function.
5994 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
5995 (ada_variant_discrim_type): Ditto.
5996 (value_tag_from_contents_and_address): New function.
5997 (type_from_tag): New function.
5998 (struct tag_args): New structure used to communicate with
5999 ada_tag_name_1.
6000 (ada_tag_name_1): New function.
6001 (ada_tag_name): New function.
6002
6003 (ada_scan_number): Update comment.
6004 (find_struct_field): New function.
6005 (ada_search_struct_field): Make static.
6006 (ada_value_struct_elt): New version that returns references when
6007 given pointers or references to structs.
6008 (ada_lookup_struct_elt_type): Add 'refok' parameter.
6009 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
6010 interface.
6011 (ada_value_ind): Use new ada_to_fixed_value interface.
6012 (ada_coerce_ref): Ditto.
6013 (field_offset): Remove.
6014
6015 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
6016 (ada_find_renaming_symbol): New function.
6017 (ada_prefer_type): Prefer named types over unnamed ones.
6018 (variant_field_index): New function.
6019 (contains_variant_part): Removed: subsumed by variant_field_index.
6020 (ada_template_to_fixed_record_type): New function, mostly from
6021 template_to_fixed_record_type.
6022 (template_to_fixed_record_type):
6023 Do not scan the type fields beyond the last one; prevents a
6024 potential SEGV.
6025 Handle case where variant field is listed BEFORE discriminant it
6026 depends on.
6027 Fix calculation of record length when bit length is
6028 not evenly divisible by char length.
6029 Move code to ada_template_to_fixed_record_type and call it.
6030
6031 (template_to_static_fixed_type): Revise comment.
6032 Modify to work on ordinary record types as well as templates,
6033 so as to handle fields that use ___XVE or ___XVU encodings.
6034 (to_record_with_fixed_variant_part): Fill out comment.
6035 Initialize C++ stuff in right type.
6036 Allow case where DVAL is null.
6037 Handle case where variant field is not last.
6038 Fix typo concerning record length.
6039 (to_fixed_record_type): Decomment disabled code.
6040 (to_fixed_record_type): Use variant_field_index instead of
6041 contains_variant_part.
6042 (to_fixed_variant_branch_type): Ditto.
6043 (to_fixed_array_type): Decomment disabled code.
6044 (ada_to_fixed_type): Convert tagged types to the specific type.
6045 Deactivate the size-check for array types in order to avoid
6046 some false size alarms.
6047 (to_static_fixed_type): Decomment disabled code.
6048 Modify to call template_to_static_fixed_type
6049 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
6050 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
6051 Remove valaddr argument, as it is never really used.
6052 (ada_to_fixed_value): Change interface to act on single struct value*
6053 operand.
6054 (adjust_pc_past_prologue): New function.
6055 (ada_attribute_name): Modify to take enum exp_opcode argument.
6056
6057 (ada_enum_name): Recognize new homonym-distinguishing convention.
6058 Adjust local variable's type to remove compiler warning.
6059 Fix a small problem in the part that unqualifies the enumeration name.
6060 (ada_value_binop): New function.
6061 (ada_value_equal): New function.
6062
6063 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
6064 Don't give error message when not doing normal evaluation
6065 and a tagged type doesn't seem to contain a structure member.
6066 Give error message for packed arrays.
6067 For indexing arrays, handle pointers to packed arrays correctly.
6068 Handle case of 'first and 'last attributes of bare integral type
6069 without encoded subtype info.
6070 Remove some unnecessary casts.
6071 Fix uninitialized value of type in computing 'first, 'last, or 'length
6072 of array object.
6073 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
6074 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
6075 calls.
6076 Attributes are now exp_opcode values.
6077 Correct treatment of 'modulus.
6078 Better error message for taking 'length of wrong kind of type;
6079 improve comment.
6080 Change EVAL_NORMAL to noside for consistency.
6081 Use ada_value_binop for DIV, MOD, REM.
6082 Make special case out of array of length 0, since an argument
6083 of 0 upsets some platforms' malloc.
6084 Use OP_STRING instead of OP_ARRAY.
6085 For slice, add check that we have an array type before extracting
6086 a slice out of it. Avoids a SEGV.
6087 When evaluating an array slice, if the array type is a reference to
6088 an aligner type, then replace the aligner type by the actual type.
6089 Decomment disabled code.
6090 Remove some dead code.
6091 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
6092 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
6093 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
6094 and UNOP_MBR to UNOP_IN_RANGE.
6095 If an array type has a parallel ___XVE type, then use it.
6096 Turn arrays into pointers for lvalue arrays.
6097 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
6098 bounds error and handle 0-length slices.
6099 Use lim_warning.
6100 When selecting fields, apply ada_to_fixed_value (because the fields
6101 might have ___XVU or ___XVE encodings even if not dynamic.)
6102 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
6103 (ada_is_system_address_type): New function.
6104
6105 (get_var_value): Use new interface to ada_lookup_symbol_list.
6106 (get_int_var_value): New interface.
6107 (to_fixed_range_type): Allow unknown bound, with warning.
6108 (ada_is_modular_type): Decomment disabled code.
6109 (ADA_OPERATORS): New definition.
6110 (ada_operator_length): New function.
6111 (ada_expr_op_name): New function.
6112 (ada_forward_operator_length): New function.
6113 (ada_dump_subexp_body): New function.
6114 (ada_print_subexp): New function.
6115 (ada_exp_descriptor): New constant.
6116 (ada_op_print_tab): Add 'size. Remove FIXMEs.
6117 (ada_language_defn): Add ada_exp_descriptor entry.
6118 Change ada_parse => parse.
6119 Add post-parser entry.
6120 Use ada-specific non-local symbol lookup.
6121 Don't use C-style arrays.
6122 String lower-bound is 1.
6123 Decomment disabled code.
6124 (parse): New function.
6125 New fields ada_translate_error_message, ada_lookup_symbol,
6126 ada_lookup_minimal_symbol.
6127
6128 * ada-lang.h: Update copyright dates.
6129 Replace the mangle/demangle terminology throughout by the
6130 more appropriate encode/decode one.
6131 Include breakpoint.h.
6132 Forward declare struct partial_symbol, struct block.
6133 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
6134 (EXTRACT_ADDRESS): Remove.
6135 (EXTRACT_INT): Remove.
6136 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
6137 (MAX_ENCLOSING_FRAME_LEVELS): Define.
6138 (MAX_RENAMING_CHAIN_LENGTH): Define.
6139 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
6140
6141 (enum task_states): Remove.
6142 ada_task_states: Remove.
6143 (fat_string): Remove.
6144 (struct entry_call): Remove.
6145 (struct task_fields): Remove.
6146 (struct task_entry): Remove.
6147
6148 (struct ada_symbol_info): Define.
6149 (enum ada_attribute): Remove.
6150 (enum ada_operator): Define.
6151
6152 (ada_get_field_index): Declare.
6153 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
6154 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6155 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6156 (ada_lookup_symbol_list): New interface.
6157 (ada_decode_symbol): Declare.
6158 (ada_decode): Declare.
6159 (ada_lookup_symbol): New interface.
6160 (ada_update_initial_language): Declare.
6161 (ada_lookup_simple_minsym): Declare.
6162 (user_select_syms): New interface.
6163 (ada_sals_for_line): Declare.
6164 (ada_is_tagged_type): New interface.
6165 (ada_tag_name): Declare.
6166 (ada_lookup_struct_elt_type): Remove declaration.
6167 (ada_search_struct_field): Remove declaration.
6168 (ada_attribute_name): New interface.
6169 (ada_is_system_address_type): Declare.
6170 (ada_to_fixed_value): Remove declaration.
6171 (ada_template_to_fixed_record_type_1): Declare.
6172 (get_int_var_value): New interface.
6173 (ada_find_any_symbol): Declare.
6174 (ada_find_renaming_symbol): Declare.
6175 (ada_mangle): Rename to ada_encode.
6176 (ada_simple_renamed_entity): Remove const.
6177 (ada_main_name): Declare.
6178 (get_current_task): Rename to ada_get_current_task.
6179 (get_entry_number): Remove declaration.
6180 (ada_report_exception_break): Remove declaration.
6181 (ada_print_exception_breakpoint_nontask): Declare.
6182 (ada_print_exception_breakpoint_task): Declare.
6183 (ada_find_printable_frame): Declare.
6184
6185 * ada-lex.l: Update copyright notices.
6186 Use xmalloc and xfree instead of malloc and free.
6187 Use new interface to name_lookup.
6188 Use new interface to
6189 ada_mangle=>ada_encode.
6190 Redo handling of '$...' variable to parallel current treatment
6191 in c-exp.y.
6192 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
6193 digit_to_int, strtoulst, processInt, processReal, processId,
6194 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
6195 yywrap): Protoize.
6196
6197 (processInt): Use cast to remove harmless warning.
6198 (processReal): Modify to get rid of compiler warning on scan formats.
6199
6200 (processId): Replace xmalloc with obstack_alloc for name and remove
6201 call to ada_name_string_cleanup.
6202 Remove obsolete disabled code.
6203 (name_lookup): Ditto.
6204 New interface.
6205 Use obsavestring on temp_parse_space instead of savestring
6206 on name, and remove call to ada_name_string_cleanup.
6207 Free string returned from ada_simple_renamed_entity.
6208 Use new interface to ada_lookup_symbol_list.
6209 Decomment disabled code.
6210 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
6211 not types.
6212 When a type name lookup succeeds as a result of
6213 lookup_primitive_typename, check for regular type entry that has not
6214 yet been read in.
6215 Limit length of chain of renamed symbols we are willing to follow.
6216 Do not break names beginning with "standard__" into segments.
6217 (block_lookup): Use new interface to ada_lookup_symbol_list.
6218
6219 * ada-typeprint.c: Update copyright notice.
6220 (demangled_type_name): Rename to decoded_type_name.
6221 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
6222 (print_range_bound): Correct handling of negative
6223 bounds that make the index type looked unsigned under STABS.
6224 (print_dynamic_range_bound): Use new interface to get_int_var_value.
6225 (print_range_type_named): Use the builtin int type if no type
6226 corresponding to the given type name could be found.
6227 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
6228 Add some bullet-proofing.
6229 (print_variant_clauses): Allow for variant branches with ___XVU
6230 encodings that are not dynamic fields.
6231 Use new interface to ada_is_tagged_type.
6232 (print_record_type): Allow for fields with ___XVE encodings that
6233 are not dynamic fields.
6234 Use new interface to ada_is_tagged_type.
6235 (ada_print_type): ada_is_array_descriptor =>
6236 ada_is_array_descriptor_type.
6237
6238 * ada-valprint.c: Update copyright notice.
6239 Include gdb_string.h
6240 Include infcall.h
6241 (ui_memcpy): New function.
6242 (ada_print_floating): New function.
6243 (ada_print_str): Order arguments correctly.
6244 Correct handling of empty arrays and arrays of 0-length items.
6245 ada_is_array_descriptor => ada_is_array_descriptor_type
6246 Print values of type System.Address in hexadecimal format.
6247 Use ada_print_floating to print floating-point numbers in Ada format.
6248 Print class tag values with type names.
6249 No longer print the address of reference values. Avoids
6250 a potential confusion.
6251 (ada_value_print): Stop printing the object type for reference
6252 values, but preserve that behavior for access types. Avoids
6253 a potential confusion.
6254 Simplify one conditional expression, as the first part is now
6255 necessarily true.
6256 ada_is_array_descriptor => ada_is_array_descriptor_type
6257 Add check for arrays for null records, and print them by hand.
4c4b4cd2 6258
f65f91b5
JB
62592004-06-01 Jim Blandy <jimb@redhat.com>
6260
6261 * ppc-tdep.h: Delete unused 'regoff' member.
6262 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
6263
d4687fa0
MC
62642004-06-01 Michael Chastain <mec.gnu@mindspring.com>
6265
6266 Fix PR symtab/1661.
6267 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
6268 (hpread_read_struct_type): Likewise.
6269
de169ec9
AC
62702004-06-01 Andrew Cagney <cagney@gnu.org>
6271
c6902d46
AC
6272 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
6273 instead of xasprintf.
6274 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
6275 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
6276 (mi_cmd_data_list_register_names)
6277 (mi_cmd_data_list_changed_registers)
6278 (mi_cmd_data_list_register_values)
6279 (get_register, mi_cmd_data_write_register_values)
6280 (mi_cmd_data_write_register_values)
6281 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
6282 (mi_cmd_target_download, mi_cmd_target_select)
6283 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
6284 (mi_execute_cli_command, mi_execute_async_cli_command)
6285 (mi_execute_async_cli_command): Ditto.
6286 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
6287 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
6288
6085fc2d
AC
6289 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
6290 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
6291 error_last_message instead of mi_error_last_message.
6292 * mi/mi-main.c (mi_error_last_message): Delete function.
6293
de169ec9
AC
6294 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
6295 "invalid number of columns" error. Delete redundant "out of
6296 memory" check.
6297
1fc7d519
MK
62982004-05-31 Mark Kettenis <kettenis@gnu.org>
6299
6cfb2041
MK
6300 * i386bsd-nat.c: Don't include <sys/procfs.h>.
6301 (gregset_t, fpregset_t): Remove typedefs.
6302 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
6303 (REG_OFFSET): Rename argument.
6304 (i386bsd_r_reg_offset): Rename from reg_offset.
6305 (REG_ADDR): Remove macro.
6306 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
6307 functions.
6308 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
6309 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
6310 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
6311 instead of supply_gregset.
6312 (store_inferior_registers): Use `struct reg' and `struct fpreg'
6313 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
6314 instead of fill_gregset.
6315 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
6316
1fc7d519
MK
6317 * i386bsd-nat.c: Don't include "gregset.h".
6318 (supply_gregset, fill_gregset): Make static.
6319 (supply_fpregset, fill_fpregset): Remove.
6320 * Makefile.in (i386bsd-nat.o): Update dependencies.
6321
2c34abbe
MK
63222004-05-30 Mark Kettenis <kettenis@gnu.org>
6323
448724fb
MK
6324 * fbsd-proc.c: Include "regcache.h", "regset.h" and
6325 "gdb_assert.h". Con't include "gregset.h".
6326 (fbsd_make_corefile_notes): Use regset-based core file support
6327 instead off fill_gregset and fill_fpregset.
6328 * Makefile.in (fbsd-proc.o): Update dependencies.
6329
5ca8ca7c
MK
6330 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
6331 instructions.
6332 (m88k_frame_prev_register): Simplify code a bit.
6333
593adc23
MK
6334 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
6335 (amd64_collect_fpregset): New function.
6336 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
6337
8d1b517b
MK
6338 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
6339
7fdafb5a
MK
6340 * i386-tdep.c (i386_supply_gregset): Adjust comment.
6341 (i386_collect_gregset): New function.
6342 (i386_supply_fpregset): Adjust comment.
6343 (i386_collect_fpregset): New function.
6344 (i386_regset_from_core_section): Use i386_collect_gregset and
6345 i386_collect_fpregset.
6346
8693c419
MK
6347 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
6348 handle VALUEP being null.
6349
2c34abbe
MK
6350 * regset.h (collect_regset_ftype): Unconstify fourth argument.
6351
45d134d8
MK
63522004-05-29 Mark Kettenis <kettenis@gnu.org>
6353
1698f4e7
MK
6354 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
6355
45d134d8
MK
6356 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
6357 assembler in OpenBSD 3.5-current.
6358 (amd64obsd_sigcontext_addr): Likewise.
6359
691d145a
JB
63602004-05-28 Jim Blandy <jimb@redhat.com>
6361
6362 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
6363 register set, so our regcache isn't declared "legacy" and our E500
6364 pseudoregister read and write functions aren't ignored.
6365 (rs6000_register_byte, rs6000_register_raw_size,
6366 rs6000_register_virtual_type, rs6000_register_convertible,
6367 rs6000_register_convert_to_virtual,
6368 rs6000_register_convert_to_raw): Deleted.
6369 (rs6000_register_type, rs6000_convert_register_p,
6370 rs6000_register_to_value, rs6000_value_to_register): New
6371 functions.
6372 (rs6000_gdbarch_init): Don't register
6373 gdbarch_deprecated_register_size,
6374 gdbarch_deprecated_register_bytes,
6375 gdbarch_deprecated_register_byte,
6376 gdbarch_deprecated_register_raw_size,
6377 gdbarch_deprecated_register_virtual_type,
6378 gdbarch_deprecated_register_convertible,
6379 gdbarch_deprecated_register_convert_to_virtual, or
6380 gdbarch_deprecated_register_convert_to_raw methods. Instead,
6381 register gdbarch_register_type, gdbarch_convert_register_p,
6382 gdbarch_register_to_value, and gdbarch_value_to_register methods.
6383
18ed0c4e
JB
63842004-05-26 Jim Blandy <jimb@redhat.com>
6385
6386 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
6387 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
6388 functions, updated to match the register numberings used in GCC.
6389 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
6390 rs6000_dwarf2_reg_to_regnum as register number conversions
6391 functions for STABS and Dwarf2.
6392
779af9e3
RC
63932004-05-26 Randolph Chung <tausq@debian.org>
6394
6395 * infttrace.h (target_waitkind): Forward declare type instead of pulling
6396 in header file.
6397
c23968a2
JB
63982004-05-25 Joel Brobecker <brobecker@gnat.com>
6399
6400 * NEWS: Document new "start" command.
6401
3a7d1c27
RC
64022004-05-25 Randolph Chung <tausq@debian.org>
6403
6404 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
6405 hppa-linux.
6406
43613416
RC
64072004-05-25 Randolph Chung <tausq@debian.org>
6408
6409 * hppa-hpux-tdep.c (offsetof): Define.
6410 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
6411 (hppa32_hpux_frame_base_before_sigtramp)
6412 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
6413 (hppa64_hpux_frame_saved_pc_in_sigtramp)
6414 (hppa64_hpux_frame_base_before_sigtramp)
6415 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
6416 functions.
6417 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
6418 (hppa_hpux_sigtramp_frame_unwind_cache)
6419 (hppa_hpux_sigtramp_frame_this_id)
6420 (hppa_hpux_sigtramp_frame_prev_register)
6421 (hppa_hpux_sigtramp_frame_unwind)
6422 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
6423 (hppa_hpux_init_abi): Register sigtramp unwinder.
6424 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
6425
6d1be3f1
RC
64262004-05-25 Randolph Chung <tausq@debian.org>
6427
6428 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
6429 and multiple stack unwinds.
6430 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
6431
97c34f65
AC
64322004-05-25 Andrew Cagney <cagney@gnu.org>
6433
6434 * symfile.h (symbol_file_add_from_memory): Delete declaration.
6435 * symfile-mem.h: Delete file.
6436 * symfile-mem.c: Do not include "symfile-mem.h".
6437 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
6438 "struct bfd_section". When an error do not bother returning NULL.
6439 (add_symbol_file_from_memory_command): Use "struct bfd" and
6440 "struct bfd_section".
6441 * Makefile.in (symfile_mem_h): Delete.
6442 (symfile-mem.o): Update dependencies.
6443
e23cbd82
NR
64442004-05-25 Nick Roberts <nickrob@gnu.org>
6445
6446 * gdb-mi.el: New file.
6447
20d2ca3e
AC
64482004-05-25 Andrew Cagney <cagney@gnu.org>
6449
6450 * inftarg.c: Include "observer.h".
6451 (child_attach, child_create_inferior): Notify inferior_created.
6452 * corelow.c: Include "observer.h".
6453 (core_open): Notify inferior_created.
6454 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
6455
c27cda74
AC
64562004-05-25 Andrew Cagney <cagney@gnu.org>
6457
6458 * target.h (struct target_ops): Add from_tty to
6459 to_create_inferior.
6460 (target_create_inferior, find_default_create_inferior): Update.
6461 * infcmd.c (run_command): Update.
6462 * wince.c (child_create_inferior): Update.
6463 * win32-nat.c (child_create_inferior): Update.
6464 * uw-thread.c (uw_thread_create_inferior): Update.
6465 * thread-db.c (thread_db_create_inferior): Update.
6466 * target.c (debug_to_create_inferior)
6467 (find_default_create_inferior): Update.
6468 (maybe_kill_then_create_inferior): Update.
6469 * sol-thread.c (sol_thread_create_inferior): Update.
6470 * remote.c (extended_remote_async_create_inferior)
6471 (extended_remote_create_inferior): Update.
6472 * remote-vx.c (vx_create_inferior): Update.
6473 * remote-st.c (st2000_create_inferior): Update.
6474 * remote-sim.c (gdbsim_create_inferior): Update.
6475 * remote-sds.c (sds_create_inferior): Update.
6476 * remote-rdp.c (remote_rdp_create_inferior): Update.
6477 * remote-rdi.c (arm_rdi_create_inferior): Update.
6478 * remote-m32r-sdi.c (m32r_create_inferior): Update.
6479 * remote-e7000.c (e7000_create_inferior): Update.
6480 * procfs.c (procfs_create_inferior): Update.
6481 * ocd.c (ocd_create_inferior): Update.
6482 * ocd.h (ocd_create_inferior): Update.
6483 * nto-procfs.c (procfs_create_inferior): Update.
6484 * monitor.c (monitor_create_inferior): Update.
6485 * lin-lwp.c (lin_lwp_create_inferior): Update.
6486 * inftarg.c (child_create_inferior): Update.
6487 * hpux-thread.c (hpux_thread_create_inferior): Update.
6488 * gnu-nat.c (gnu_create_inferior): Update.
6489
1db2a798
AC
64902004-05-25 Andrew Cagney <cagney@gnu.com>
6491
6492 * MAINTAINERS: Update e-mail address.
6493
007d08bb
RC
64942004-05-24 Randolph Chung <tausq@debian.org>
6495
6496 * thread.c (info_threads_command, thread_apply_all_command)
6497 (thread_apply_command, thread_command, do_captured_thread_select):
6498 Remove HPUXHPPA-specific code.
6499
69e7b95e
RC
65002004-05-24 Randolph Chung <tausq@debian.org>
6501
6502 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
6503 unused symbols.
6504 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
6505 references.
6506
a4d5f2e0
JB
65072004-05-24 Joel Brobecker <brobecker@gnat.com>
6508
6509 * infcmd.c (kill_if_already_running): New function, extracted
6510 from run_command().
6511 (run_command): Replace extracted code by call to
6512 kill_if_already_running().
6513 (start_command): New function.
6514 (_initialize_infcmd): Add "start" command.
6515
bf2ca189
MK
65162004-05-24 Mark Kettenis <kettenis@gnu.org>
6517
6518 Add OpenBSD/m88k support.
6519 * NEWS (New native configurations): Mention OpenBSD/m88k.
6520 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
6521 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
6522 * Makefile.in (m88k_tdep_h): New variable.
6523 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
6524 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
6525 * configure.host: Add m88*-*-openbsd*.
6526 * configure.tgt: Add m88*-*-openbsd*.
6527
80fadb11
JB
65282004-05-24 Jim Blandy <jimb@redhat.com>
6529
6530 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
6531 to approve changes.
6532
19e2d14b
KB
65332004-05-24 Kevin Buettner <kevinb@redhat.com>
6534
6535 * symtab.c (fixup_section): Search section table when lookup by
6536 name fails.
6537
1b07b470
RC
65382004-05-24 Randolph Chung <tausq@debian.org>
6539
6540 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
6541 be "small_struct".
6542
368702b1
MK
65432004-05-24 Mark Kettenis <kettenis@gnu.org>
6544
5df97fde
MK
6545 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
6546 register number in regcache_raw_collect call.
6547 (m68kbsd_collect_fpregset): Likewise.
6548 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
6549
368702b1
MK
6550 * regset.h (struct regset): Add back `regset' member.
6551
a770d4ec
MK
65522004-05-23 Mark Kettenis <kettenis@gnu.org>
6553
70f9f479
MK
6554 * configure.in: Check for td_pcb in `struct thread'.
6555 * configure, config.in: Regenerated.
6556
2e16d79e
MK
6557 * dpx2-nat.c: Remove file.
6558 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
6559 (dpx2-nat.o): Remove dependencies.
6560
492cf391
MK
6561 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
6562 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
6563 (amd64obsd_supply_pcb): New function.
6564 (_initialize_amd64obsd_nat): Enable libkvm interface.
6565 * Makefile.in (amd64obsd-nat.o): Update dependencies.
6566 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
6567 (LOADLIBES): New variable.
6568
a770d4ec
MK
6569 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
6570 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
6571 (sparc32nbsd_supply_pcb): New function.
6572 (_initialize_sparcnbsd_nat): Enable libkvm interface.
6573 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
6574 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
6575 (LOADLIBES): New variable.
6576
9ea75c57
MK
65772004-05-22 Mark Kettenis <kettenis@gnu.org>
6578
2e0c3539
MK
6579 * bsd-kvm.c, bsd-kvm.h: New files.
6580 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
6581 "bsd-kvm.h".
6582 (i386fbsd_supply_pcb): New function.
6583 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
6584 (i386fbsd-nat.o): Update dependencies.
6585 (bsd_kvm_h): New variable.
6586 (bsd-kvm.o): New dependency.
6587 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
6588 (LOADLIBES): New variable.
6589
9ea75c57
MK
6590 * regset.c: Tweak comment.
6591 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
6592 macro.
6593 * regset.h: Update copyright year.
6594 (struct regset): Remove `descr' member, add `gdbarch' member.
6595 (regset_alloc): Adjust prototype and comment.
6596 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
6597 (i386_supply_fpregset): Likewise.
6598 (i386_regset_from_core_section): Update call to regset_alloc.
6599 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
6600 REGSET->arch.
6601 (i386obsd_aout_regset_from_core_section): Update call to
6602 regset_alloc.
6603 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
6604 REGSET->arch.
6605 (i386nbsd_aout_regset_from_core_section): Update call to
6606 regset_alloc.
6607 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
6608 REGSET->arch.
6609 (amd64_regset_from_core_section): Update call to regset_alloc.
6610 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
6611 REGSET->arch.
6612 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
6613 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
6614 &sparc32nbsd_gregset in sparc32_supply_gregset call.
6615 (sparc32nbsd_init_abi): Update call to regset_alloc.
6616 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
6617 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
6618 (sparc64obsd_init_abi): Update call to regset_alloc.
6619 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
6620 &sparc64nbsd_gregset in sparc64_supply_gregset call.
6621 (sparc64nbsd_init_abi): Update call to regset_alloc.
6622 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
6623 &sparc64fbsd_gregset in sparc64_supply_gregset call.
6624 (sparc64fbsd_init_abi): Update call to regset_alloc.
6625
867e2dc5
JB
66262004-05-22 Jim Blandy <jimb@redhat.com>
6627
6628 * ppc-tdep.h (spe_register_p): New declaration.
6629 (struct gdbarch_tdep): New members: ppc_acc_regnum and
6630 ppc_spefscr_regnum.
6631 * rs6000-tdep.c (spe_register_p): New function.
6632 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
6633 spefscr.
6634 (rs6000_gdbarch_init): Initialize the new members of the tdep
6635 structure.
6636
617a4cba
JB
66372004-05-21 Jim Blandy <jimb@redhat.com>
6638
0397dee1
JB
6639 * ppc-linux-nat.c (fetch_register): Move code back to be next
6640 to the comment that describes it. (Moved code, instead of
6641 comment, for symmetry with store_register.)
6642
617a4cba
JB
6643 Allocate regset structures in the gdbarch's obstack, not using
6644 xmalloc.
6645 * regset.c (regset_alloc): Renamed from regset_xmalloc.
6646 Add 'arch' argument. Allocate the regset on arch's obstack, not
6647 using xmalloc.
6648 * regset.h (regset_alloc): Update declaration.
6649 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
6650 gdbarch argument.
6651 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
6652 * i386-tdep.c (i386_regset_from_core_section): Same.
6653 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
6654 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
6655 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
6656 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
6657 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
6658 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
6659
9aa3914d
JB
66602004-05-21 Joel Brobecker <brobecker@gnat.com>
6661
6662 * config/djgpp/fnchange.lst: Undo previous change, was useless.
6663
99c87dab
JB
66642004-05-21 Jim Blandy <jimb@redhat.com>
6665
6666 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
6667 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
6668
c2b6b4aa
JB
66692004-05-20 Jim Blandy <jimb@redhat.com>
6670
6671 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
6672
144529d0
MK
66732004-05-20 Mark Kettenis <kettenis@gnu.org>
6674
6675 * regset.h: Make prototype const-correct.
6676 * regset.c (regset_xmalloc): Make const-correct.
6677
4725b721
PH
66782004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
6679
6680 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
6681 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
6682 (symbol_search_name): Declare.
6683
6684 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
6685 (iter_name_next_hashed): Ditto.
6686 (iter_name_next_linear): Ditto.
6687 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
6688
6689 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
6690 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
6691 (symbol_search_name): New function.
6692
6693 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
6694
6695 * minsyms.c (build_minimal_symbol_hash_tables): Change
6696 test for adding to demangled hash table to check for difference
6697 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
6698
be07a590
JB
66992004-05-19 Jim Blandy <jimb@redhat.com>
6700
6701 Use a constructor function to create regset structures.
6702 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
6703 (struct regset): Use supply_regset_ftype. Add new
6704 'collect_regset' member.
6705 (regset_xmalloc): New declaration.
6706 * regset.c: New file.
6707 * am64-tdep.c (amd64_regset_from_core_section): Use
6708 regset_xmalloc to construct regset structures.
6709 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
6710 * i386-tdep.c (i386_regset_from_core_section): Same.
6711 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
6712 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
6713 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
6714 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
6715 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
6716 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
6717 * Makefile.in (COMMON_OBS): Add regset.o.
6718 (regset.o): New rule.
6719
604368f5
JB
67202004-05-19 Joel Brobecker <brobecker@gnat.com>
6721
6722 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
6723 and pthread_cond_wait.c.
6724
82d69f8b
JB
67252004-05-18 Jim Blandy <jimb@redhat.com>
6726
6727 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
6728 before the mach-specific switch, and then let the individual cases
6729 override the defaults, rather than leaving them uninitialized
6730 until the switch and then setting them in each case.
6731
5859efe5
RC
67322004-05-18 Randolph Chung <tausq@debian.org>
6733
6734 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
6735 millicode functions.
6736
9ca80cf8
RC
67372004-05-18 Randolph Chung <tausq@debian.org>
6738
6739 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
6740 references to dld_flags_buffer consistent.
6741
ed70ba00
RC
67422004-05-18 Randolph Chung <tausq@debian.org>
6743
6744 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
6745 it for unwinding the stack.
6746
63100632
RC
67472004-05-18 Randolph Chung <tausq@debian.org>
6748
6749 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
6750 Undefine these so we can overide them using gdbarch.
6751
090ccbb7
RC
67522004-05-18 Randolph Chung <tausq@debian.org>
6753
6754 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
6755 handling for 64-bit HPUX (elf).
6756
594706e6
DJ
67572004-05-18 Daniel Jacobowitz <dan@debian.org>
6758
6759 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
6760 constants.
6761 * amd64-tdep.c (amd64_skip_prologue): Likewise.
6762 * ia64-tdep.c (examine_prologue): Likewise.
6763 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
6764 * v850-tdep.c (v850_fix_call_dummy): Likewise.
6765
e5483145
MK
67662004-05-18 Mark Kettenis <kettenis@gnu.org>
6767
6768 * vax-tdep.c (vax_return_value): Implement
6769 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6770
caed1a45
MK
67712004-05-17 Mark Kettenis <kettenis@gnu.org>
6772
6773 * vax-tdep.c (vax_return_value): Fix typo.
6774
3c0b7db2
AC
67752004-05-17 Andrew Cagney <cagney@redhat.com>
6776
5aae53e5
AC
6777 * MAINTAINERS: Mark Salter was also responsible for
6778 testsuite/config/
6779
3c0b7db2
AC
6780 * NEWS: Mention signal fixes.
6781
22b0923d
RC
67822004-05-17 Randolph Chung <tausq@debian.org>
6783
6784 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
6785 check to see if we are unwinding an export stub. Export stubs clobber
6786 the %rp in the call path and stores the original rp in a stack slot.
6787
22f2b2f3
JB
67882004-05-17 Jim Blandy <jimb@redhat.com>
6789
6790 * MAINTAINERS: Update address for J.T. Conklin.
6791
cea96d64
RC
67922004-05-17 Randolph Chung <tausq@debian.org>
6793
6794 * hppa-tdep.c: Remove superfluous #include's.
6795 * Makefile.in (hppa-tdep.o): Update dependencies.
6796
f08f6a4a
RC
67972004-05-17 Randolph Chung <tausq@debian.org>
6798
6799 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
6800 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
6801 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
6802 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
6803 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
6804 Remove static function declarations.
6805
51da707a
MK
68062004-05-17 Mark Kettenis <kettenis@gnu.org>
6807
caed1a45
MK
6808 * alphabsd-nat.c: Update copyright year.
6809 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
6810
c0c2b0db
MK
6811 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
6812 and M68K_A2_REGNUM.
6813
51da707a
MK
6814 * m68k-tdep.c (m68k_svr4_return_value): Implement
6815 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6816
8d027a04
MK
68172004-05-16 Mark Kettenis <kettenis@gnu.org>
6818
6819 * sol-thread.c Update copyright year. Fix various coding
6820 standards violations. Tweak a few comments.
6821 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
6822 Delete prototypes.
6823
0d99fdb9
RC
68242004-05-15 Randolph Chung <tausq@debian.org>
6825
6826 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
6827 as pointer instead of array reference since HPUX compiler does
6828 not accept unsized array arguments.
6829 * somsolib.c (dld_flags_buffer): Use constant array size.
6830
f7e3843a
MK
68312004-05-15 Mark Kettenis <kettenis@gnu.org>
6832
0fe85704
MK
6833 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
6834 offset with decimal offset.
6835 (amd64obsd_sigcontext_addr): Return correct address for entire
6836 signal trampoline.
6837
a54f9a00
MK
6838 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
6839 instead of get_frame_base.
6840
feae6502
MK
6841 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
6842 (fill_gregset): Use regcache_raw_collect.
6843
0382d099
MK
6844 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
6845 ppcobsd-tdep.c.
6846
f7e3843a
MK
6847 * config/sparc/tm-nbsd64.h: Remove file.
6848 * config/tm-sunos.h: Remove file.
6849
773df3e5
JB
68502004-05-15 Joel Brobecker <brobecker@gnat.com>
6851
6852 * rs6000-tdep.c (store_param_on_stack_p): New function,
6853 an improved version of some code extracted from skip_prologue().
6854 (skip_prologue): Use store_param_on_stack_p() to detect
6855 instructions saving a parameter on the stack. Detect when r0
6856 is used to save a parameter.
6857 Do not mark "li rx, SIMM" instructions as part of the prologue,
6858 unless the following instruction is also part of the prologue.
6859
95918acb
AC
68602004-05-14 Andrew Cagney <cagney@redhat.com>
6861
06f32659
AC
6862 * infrun.c (handle_inferior_event): Simplify
6863 STEP_OVER_UNDEBUGGABLE.
6864
95918acb
AC
6865 * infrun.c (handle_step_into_function): Delete function.
6866 (handle_inferior_event): Inline calls to
6867 handle_step_into_function.
6868
40711ff1 68692004-05-14 Jerome Guitton <guitton@gnat.com>
42203e46
JG
6870
6871 * rs6000-nat.c: Fix a comment.
6872
02f60eae
JB
68732004-05-12 David Anderson <davea@sgi.com>
6874
6875 Committed by Jim Blandy <jimb@redhat.com>:
6876 * regcache.c (struct regcache_descr): fix comment spelling.
6877
552e377b
JB
68782004-05-13 J. Brobecker <brobecker@gnat.com>
6879
6880 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
6881 Fixes a link link failure.
6882
349766b2
JB
68832004-05-13 J. Brobecker <brobecker@gnat.com>
6884
6885 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
6886 error that was causing the build to fail.
6887
0d4d5484
JB
68882004-05-13 J. Brobecker <brobecker@gnat.com>
6889
6890 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
6891 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
6892
0b30808c
AC
68932004-05-13 Andrew Cagney <cagney@redhat.com>
6894
6895 * infrun.c (handle_inferior_event): Check for
6896 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
6897 calls. Update comments.
6898
cdf2c5f5
JB
68992004-05-13 Jim Blandy <jimb@redhat.com>
6900
063715bf
JB
6901 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
6902 (fetch_regs_user_thread, fetch_regs_kernel_thread)
6903 (store_regs_user_thread, store_regs_kernel_thread): Use
6904 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
6905 * ppc-linux-nat.c (fill_gregset): Same.
6906 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
6907 (ppc_linux_sigtramp_cache): Same.
6908 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
6909 (ppcnbsd_sigtramp_cache_init): Same.
6910 * rs6000-nat.c (fetch_core_registers): Same.
6911 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
6912 (rs6000_frame_cache): Same.
6913
cdf2c5f5
JB
6914 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
6915 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
6916 of assuming that the gprs are numbered starting with zero.
6917 * ppc-linux-nat.c (fill_gregset): Same.
6918 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
6919 * ppcnbsd-nat.c (getregs_supplies): Same.
6920 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
6921 * rs6000-nat.c (fetch_core_registers): Same.
6922 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
6923
450bd37b
MS
69242004-05-07 Michael Snyder <msnyder@redhat.com>
6925
6926 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
6927 LOC_COMPUTED_ARG, and LOC_INDIRECT.
6928
4a72a2a6
AC
69292004-05-13 Andrew Cagney <cagney@redhat.com>
6930
6931 * infrun.c (handle_inferior_event): Use frame_unwind_id.
6932
8edfa926
BM
69332004-05-13 Bryce McKinlay <mckinlay@redhat.com>
6934
6935 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
6936 base_address for shared libraries.
6937
723e0e3d
BM
69382004-05-13 Bryce McKinlay <mckinlay@redhat.com>
6939
6940 * MAINTAINERS (write after approval): Add myself.
6941
00d4360e
UW
69422004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6943
6944 * breakpoint.c (bpstat_stop_status): Add new argument
6945 STOPPED_BY_WATCHPOINT. Use it instead of testing
6946 target_stopped_data_address agaist 0 to check whether
6947 or not we stopped due to a hardware watchpoint.
6948 * breakpoint.h (bpstat_stop_status): Adapt prototype.
6949 * infrun.c (handle_inferior_event): Call bpstat_stop_status
6950 with new argument.
6951
ec76baa5
JB
69522004-05-12 Jim Blandy <jimb@redhat.com>
6953
6954 * configure.in: When checking whether we should use the -bbigtoc
6955 option, don't forget to restore the original value of LDFLAGS.
6956 * configure: Regenerated.
6957
f2c9ca08
AC
69582004-05-12 Andrew Cagney <cagney@redhat.com>
6959
6960 * thread.c (load_infrun_state): Delete step_sp.
6961 * infrun.c (context_switch): Ditto.
6962 * inferior.h (step_sp): Ditto.
6963 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
6964 * gdbthread.h (struct thread_info, save_infrun_state)
6965 (restore_infrun_state): Ditto.
6966
090ddb2a
UW
69672004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
6968
6969 * MAINTAINERS (write after approval): Add myself.
6970
8aad930b
AC
69712004-05-12 Andrew Cagney <cagney@redhat.com>
6972
6973 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
6974 eliminate reference to step_sp.
6975 (struct execution_control_state, init_execution_control_state)
6976 (handle_inferior_event, keep_going): Delete update_step_sp and
6977 step_sp.
6978 * infcmd.c (step_sp): Note that variable is unused.
6979
922d5ae0
AC
69802004-05-11 Andrew Cagney <cagney@redhat.com>
6981
6982 * infrun.c (step_over_function): Delete function.
6983 (handle_step_into_function): Use insert_step_resume_breakpoint.
6984 (insert_step_resume_breakpoint): Fix assertion.
6985
017c5ca5
NR
69862004-05-11 Nick Roberts <nickrob@gnu.org>
6987
6988 * utils.c (defaulted_query): Just use the normal query input type
6989 when printing the annotations.
6990
42edda50
AC
69912004-05-11 Andrew Cagney <cagney@redhat.com>
6992
6993 * infrun.c (handle_inferior_event): Simplify code handling
6994 step-into or return-from a signal trampoline.
6995
d28b44a7
AC
69962004-05-11 Andrew Cagney <cagney@redhat.com>
6997
6998 * ppcnbsd-tdep.c: Include "gdb_assert.h".
6999 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
7000
383f0f5b
JB
70012004-05-10 Jim Blandy <jimb@redhat.com>
7002
d0b57c3a
JB
7003 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
7004 with a call to internal_error.
7005
383f0f5b
JB
7006 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
7007 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
7008 processor variant lacks those registers.
7009 (ppc_floating_point_unit_p): Change description to make it clear
7010 that this returns info about the ISA, not the ABI.
7011 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
7012 return true or false by checking tdep->ppc_fp0_regnum and
7013 tdep->ppc_fpscr_regnum. The original code replicated the BFD
7014 arch/mach switching done in rs6000_gdbarch_init; it's better to
7015 keep that logic there, and just check the results here.
7016 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
7017 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
7018 floating-point registers.
7019 (ppc_supply_fpregset, ppc_collect_fpregset)
7020 (rs6000_push_dummy_call, rs6000_extract_return_value)
7021 (rs6000_store_return_value): Assert that we have floating-point
7022 registers.
7023 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
7024 (rs6000_frame_cache): Don't note the locations at which
7025 floating-point registers were saved if we have no fprs.
7026 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
7027 registers.
7028 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7029 (store_regs_user_thread, store_regs_kernel_thread): Only call
7030 supply_fprs / fill_fprs if we actually have floating-point
7031 registers.
7032 (special_register_p): Check ppc_fpscr_regnum before matching
7033 against it.
7034 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
7035 supply / collect fpscr if we don't have it.
7036 * ppc-bdm.c: #include "gdb_assert.h".
7037 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
7038 have floating-point registers, since I can't test this code on
7039 FP-free systems to adapt it.
7040 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
7041 fpscr and floating point register numbers if they don't exist.
7042 (fetch_register): Assert that we have floating-point registers
7043 before we reach the code that handles them.
7044 (store_register): Same. And use tdep instead of calling
7045 gdbarch_tdep again.
7046 (fill_fpregset): Don't try to collect FP registers and fpscr if we
7047 don't have them.
7048 (ppc_linux_sigtramp_cache): Don't record the saved locations of
7049 fprs and fpscr if we don't have them.
7050 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
7051 don't have them.
7052 * ppcnbsd-nat.c: #include "gdb_assert.h".
7053 (getfpregs_supplies): Assert that we have floating-point registers.
7054 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
7055 * ppcobsd-tdep.c: #include "gdb_assert.h".
7056 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
7057 have floating-point registers.
7058 * rs6000-nat.c (regmap): Don't match against the fpscr and
7059 floating point register numbers if they don't exist.
7060 (fetch_inferior_registers, store_inferior_registers,
7061 fetch_core_registers): Only fetch / store / supply the
7062 floating-point registers and the fpscr if we have them.
7063 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
7064 (ppcobsd-tdep.o): Update dependencies.
7065
15960608
AC
70662004-05-10 Andrew Cagney <cagney@redhat.com>
7067
7068 * infrun.c (through_sigtramp_breakpoint): Delete variable.
7069 (context_switch): Do not switch through_sigtramp_breakpoint.
7070 * gdbthread.h (save_infrun_state, load_infrun_state)
7071 (struct thread_info): Delete through_sigtramp_breakpoint parameter
7072 and structure member.
7073 * thread.c (load_infrun_state, save_infrun_state): Update.
7074
5ab5aa0f
MK
70752004-05-10 Mark Kettenis <kettenis@gnu.org>
7076
7077 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
7078
da78b0e7
DJ
70792004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
7080
7081 * acinclude.m4: Quote macro names being defined by AC_DEFUN
7082 throughout.
7083 * aclocal.m4: Regenerate.
7084
cca0d3b0
NW
70852004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
7086
7087 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
7088
d303a6c7
AC
70892004-05-10 Andrew Cagney <cagney@redhat.com>
7090
7091 * infrun.c (check_sigtramp2): Delete function.
7092 (handle_inferior_event): When single stepping, and taking a
7093 signal, set a breakpoint at the signal return address. Delete
7094 redundant calls to check_sigtramp2.
7095 (insert_step_resume_breakpoint): New function.
7096 (through_sigtramp_breakpoint, handle_inferior_event)
7097 (follow_exec, wait_for_inferior, fetch_inferior_event)
7098 (currently_stepping, keep_going): Delete most uses of
7099 through_sigtramp_breakpoint, not that it should be deleted.
7100 (delete_breakpoint_current_contents): Delete function.
7101
03f4cc20
RC
71022004-05-10 Randolph Chung <tausq@debian.org>
7103
7104 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
7105 target.
7106 * config/pa/tm-linux.h: New file.
7107
37fc812e
DJ
71082004-05-10 Daniel Jacobowitz <drow@mvista.com>
7109
7110 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
7111 of prefixes. Don't print the prefix twice in the CLI.
7112
26c0b942
JB
71132004-05-10 Jim Blandy <jimb@redhat.com>
7114
2e56e9c1
JB
7115 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
7116 collect all the gprs.
7117
26c0b942
JB
7118 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
7119 loop collecting gprs.
7120
dc497459
AC
71212004-05-09 Andrew Cagney <cagney@redhat.com>
7122
7123 * remote-vx.c (net_step): Delete step-range code.
7124 * remote.c (remote_resume, init_all_packet_configs)
7125 (set_remote_protocol_E_packet_cmd)
7126 (show_remote_protocol_E_packet_cmd)
7127 (remote_protocol_E, show_remote_cmd, _initialize_remote)
7128 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
7129 (show_remote_protocol_e_packet_cmd): Ditto.
7130
0543f387
MK
71312004-05-09 Mark Kettenis <kettenis@gnu.org>
7132
c481d1ca
MK
7133 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
7134
f626a069
MK
7135 * hppa-tdep.h: Update copyright year.
7136 (struct trad_frame_saved_reg): Add opaque declaration.
7137
6fa57a7d
MK
7138 * amd64-tdep.c (amd64_return_value): Implement
7139 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7140
e47577ab
MK
7141 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
7142 (m68k_value_to_register): New functions.
7143 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
7144 value_to_register.
7145
31db7b6c
MK
7146 * defs.h (enum return_value_convention): Add
7147 RETURN_VALUE_ABI_RETURNS_ADDRESS and
7148 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
7149 * infcmd.c (legacy_return_value): New function.
7150 (print_return_value): Rwerite to implement
7151 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7152 * values.c (using_struct_return): Check for inequality to
7153 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
7154 RETURN_VALUE_STRUCT_CONVENTION.
7155 * i386-tdep.c (i386_return_value): Implement
7156 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7157
0543f387
MK
7158 * vax-tdep.c: Tweak comments. Reorder include files. Don't
7159 include "symtab.h", "opcode/vax.h" and "inferior.h".
7160 (vax_skip_prologue): Replace calls to read_memory_integer by calls
7161 to read_memory_unsigned_integer.
7162 (vax_gdbarch_init): Reorder.
7163 (_initialize_vax_tdep): Spell out prototype.
7164 * Makefile.in (vax-tdep.o): Update dependencies.
7165
0c93b7b6
AC
71662004-05-08 Andrew Cagney <cagney@redhat.com>
7167
e6b55ae2
AC
7168 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
7169 * target.c (target_detach, target_disconnect): Ditto.
7170
1ac839b8
AC
7171 * infcall.c (call_function_by_hand): When no
7172 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
7173 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
7174 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
7175 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7176 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7177
28954179
AC
7178 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
7179 * gdbarch.h, gdbarch.c: Re-generate.
7180 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7181 deprecated_fix_call_dummy.
7182 * v850-tdep.c (v850_gdbarch_init): Ditto.
7183 * infcall.c (call_function_by_hand): Do not call
7184 DEPRECATED_FIX_CALL_DUMMY.
7185
434b87dd
AC
7186 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
7187 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
7188 * gdbarch.h, gdbarch.c: Re-generate.
7189 * arm-linux-tdep.c (arm_linux_call_dummy_words)
7190 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
7191 deprecated_sizeof_call_dummy_words.
7192 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
7193 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7194 * v850-tdep.c (v850_gdbarch_init): Ditto.
7195 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
7196 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
7197 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7198 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7199 * arch-utils.h (legacy_call_dummy_words)
7200 (legacy_sizeof_call_dummy_words): Delete declarations.
7201 * arch-utils.c (legacy_call_dummy_words)
7202 (legacy_sizeof_call_dummy_words): Delete variables.
7203
58d28df8
AC
7204 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
7205 * gdbarch.h, gdbarch.c: Re-generate.
7206 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
7207 * infcall.c (call_function_by_hand): Eliminate call to
7208 DEPRECATED_PUSH_DUMMY_FRAME.
7209 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7210 push_dummy_frame.
7211 (ns32k_push_dummy_frame): Delete function.
7212
e4a2df64
AC
7213 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7214 deprecated_call_dummy_breakpoint_offset or
7215 deprecated_call_dummy_start_offset.
7216 * dummy-frame.c, arm-tdep.c: Update comments.
7217 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
7218 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
7219 * gdbarch.h, gdbarch.c: Re-generate.
7220
d3712828
AC
7221 * infcall.c (legacy_push_dummy_code): Delete function.
7222 (push_dummy_code): Delete call.
7223
7a882905
AC
7224 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
7225 * gdbarch.h, gdbarch.c: Re-generate.
7226 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
7227 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
7228 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
7229 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
7230
0ec5872b
AC
7231 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
7232 (struct frame_info): Delete opaque declaration.
7233 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
7234 * frame.c (get_frame_type): Delete call.
7235
0c93b7b6
AC
7236 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7237 pc_in_call_dummy.
7238 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
7239 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
7240
75536971
MK
72412004-05-08 Mark Kettenis <kettenis@gnu.org>
7242
527ca6bb
MK
7243 * alphanbsd-tdep.c: Include "gdb_string.h".
7244 * armnbsd-tdep.c: Update copyright year.
7245 Include "gdb_string.h".
7246 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
7247 dependencies.
7248
d39fdc61
MK
7249 * delta68-nat.c: Remove file.
7250 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
7251 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
7252 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
7253 (delta68-nat.o): Remove dependency.
7254
75536971
MK
7255 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
7256 function.
7257 (m68k_gdbarch_init): Don't set
7258 deprecated_frameless_function_invocation.
7259
f4ca1d1f
RC
72602004-05-07 Randolph Chung <tausq@debian.org>
7261
7262 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
7263 read_memory_nobpt for code reading when doing frame unwinding.
7264 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
7265
2f0e8c7a
RC
72662004-05-07 Randolph Chung <tausq@debian.org>
7267
7268 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
7269 instead of sp, handle sigaltstack case.
7270 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
7271 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
7272 signal handler and not that of the caller.
7273 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
7274 hppa_linux_sigtramp_find_sigcontext.
7275
959464ff
RC
72762004-05-07 Randolph Chung <tausq@debian.org>
7277
7278 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
7279 hppa-linux-nat.c.
7280 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
7281 * hppa-linux-nat.c (fetch_register, store_register): Define.
7282 (fetch_inferior_registers, store_inferior_registers): Define.
7283 (supply_gregset): Add comment and clean up some unneeded code.
7284 (fill_gregset): Add comment and fix so that it saves registers in
7285 the right place in the gregset.
7286 (fill_fpregset): Fix buffer overrun problem.
7287 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
7288
0da28f8a
RC
72892004-05-07 Randolph Chung <tausq@debian.org>
7290
7291 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
7292 do common handling of the pcoqt register.
7293 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
7294 to use helper function.
7295 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
7296 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
7297 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
7298 generic fallback unwinder when all else fails.
7299 (hppa_gdbarch_init): Add fallback sniffer.
7300 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
7301 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
7302 to use helper function.
7303
b9ec757a
JB
73042004-05-08 Joel Brobecker <brobecker@gnat.com>
7305
7306 * config/djgpp/fnchange.lst: Add translation rules for
7307 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
7308
756e95f1
MK
73092004-05-08 Mark Kettenis <kettenis@gnu.org>
7310
7311 * frame.c (get_prev_frame_1): Work around GCC bug.
7312 * frame.h: Add comment about GCC bug.
7313
2b4855ab
AC
73142004-05-07 Andrew Cagney <cagney@redhat.com>
7315
7316 * observer.c: Include "commands.h" and "gdbcmd.h".
7317 (observer_debug, _initialize_observer): Add the
7318 command "set/show debug observer".
7319 * observer.sh: When observer debugging, log notify calls.
7320 * Makefile.in (observer.o): Update dependencies.
7321
ba3e8e46
JM
73222004-05-07 Jason Molenda (jmolenda@apple.com)
7323
7324 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
7325
16796152
JB
73262004-05-07 Jim Blandy <jimb@redhat.com>
7327
daf6dc85
JB
7328 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
7329 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
7330 to recognize gpr regnums, instead of assuming that
7331 tdep->ppc_fp0_regnum marks the end of the general-purpose
7332 registers.
7333
16796152
JB
7334 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
7335 the given architecture has floating-point registers.
7336
c69b8bfc
AC
73372004-05-07 Andrew Cagney <cagney@redhat.com>
7338
7339 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
7340 macro defined to 1.
7341 * gdbarch.h, gdbarch.c: Re-generate.
7342 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7343 deprecated_use_generic_dummy_frames.
7344
7243600a
BF
73452004-05-07 Brian Ford <ford@vss.fsi.com>
7346
7347 * NEWS: Mention Cygwin DWARF 2 support.
7348
73c1e0a1
AC
73492004-05-07 Andrew Cagney <cagney@redhat.com>
7350
7351 * objfiles.h (struct entry_info): Delete unused fields
7352 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
7353 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
7354 * mipsread.c (mipscoff_symfile_read): Update.
7355 * mdebugread.c (parse_partial_symbols): Update.
7356 * dwarfread.c (read_file_scope): Update.
7357 * dwarf2read.c (read_file_scope): Update.
7358 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
7359 * coffread.c (complete_symtab): Update.
7360
1d3056ac
MK
73612004-05-07 Mark Kettenis <kettenis@gnu.org>
7362
7363 * infcall.c (_initialize_infcall): Fix typo.
7364
15170568
AC
73652004-05-07 Andrew Cagney <cagney@redhat.com>
7366
7367 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
7368 * command.h (add_setshow_zinteger_cmd): Declare.
7369
34f75cc1
RC
73702004-05-06 Randolph Chung <tausq@debian.org>
7371
7372 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
7373 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
7374 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
7375 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
7376 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
7377 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
7378 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
7379 definitions ...
7380 * hppa-tdep.h: ... to here, with HPPA_ prefix.
7381 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
7382 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
7383 (hppa64_hpux_frame_find_saved_regs_in_sig)
7384 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
7385 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
7386 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
7387 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
7388 (hppa_linux_sigtramp_frame_prev_register): Likewise.
7389 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
7390 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
7391 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
7392 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
7393 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
7394 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
7395 (hppa32_register_type, hppa_cannot_store_register)
7396 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
7397 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
7398 * hpread.c (hpread_process_one_debug_symbol): Likewise.
7399 * pa64solib.c (pa64_solib_have_load_event)
7400 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
7401 (pa64_solib_unloaded_library_pathname): Likewise.
7402 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
7403 (som_solib_library_pathname): Likewise.
7404
0a5e7efe
JI
74052004-05-05 Jim Ingham <jingham@apple.com>
7406
7407 * breakpoint.c (create_breakpoints): Copy the ignore count and
7408 thread id over from the pended breakpoint to the actual
7409 breakpoint.
7410
10a4b113
AC
74112004-05-05 Andrew Cagney <cagney@redhat.com>
7412
7413 * gdbarch.sh (PARM_BOUNDARY): Delete.
7414 gdbarch.h, gdbarch.c: Re-generate.
7415 * valops.c (PARM_BOUNDARY): Delete macro.
7416 (value_push): Delete PARM_BOUNDARY code.
7417 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
7418
366f009f
JB
74192004-05-04 Jim Blandy <jimb@redhat.com>
7420
32b99774
JB
7421 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
7422 Don't assume that the gprs, fprs, and UISA sprs are
7423 contiguous, start at register number zero, and end with fpscr.
7424 Instead, use the numbers from the tdep structure.
7425
366f009f
JB
7426 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
7427 should no longer be used in code specific to the RS6000 and its
7428 derivatives.
7429 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
7430 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
7431 tdep->ppc_fp0_regnum.
7432 (ppc_supply_fpregset, ppc_collect_fpregset)
7433 (rs6000_push_dummy_call, rs6000_extract_return_value)
7434 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
7435 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
7436 FP0_REGNUM.
7437 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
7438 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
7439 Same.
7440 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
7441 bdm_ppc_store_registers): Same.
7442 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
7443 (store_register, fill_fpregset): Same.
7444 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
7445 (ppc_linux_supply_fpregset): Same.
7446 * ppcnbsd-nat.c (getfpregs_supplies): Same.
7447 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
7448 Same.
7449 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
7450 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
7451 ppc64_sysv_abi_return_value): Same.
7452 * rs6000-nat.c (regmap, fetch_inferior_registers)
7453 (store_inferior_registers, fetch_core_registers): Same.
7454
827f338d
MK
74552004-05-01 Mark Kettenis <kettenis@gnu.org>
7456
7457 * m68knbsd-nat.c: Remove file.
7458 * m68knbsd-tdep.c: Remove file.
7459 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
7460 dependencies.
7461 * configure.host: Add m68k-*-netbsdelf*.
7462 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
7463 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
7464 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
7465 (XM_FILE): Remove.
7466 * config/m68k/nbsdelf.mh: New file.
7467 * config/m68k/nbsd.mt: New file.
7468 * config/m68k/nbsdaout.mt: Remove file.
7469 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
7470 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
7471 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
7472 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
7473 (use_struct_convention): Remove prototype.
7474 (USE_STRUCT_CONVENTION): Remove define.
7475 * config/m68k/xm-nbsd.h: Remove file.
7476
66894781
MS
74772004-05-04 Michael Snyder <msnyder@redhat.com>
7478
7479 * m68k-tdep.c (m68k_gdbarch_init): Default to using
7480 reg_struct_return method (as gcc usually does for cross targets).
7481
f0f63663
AC
74822004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7483
7484 Committed by Andrew Cagney.
7485 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
7486 alignment padding when accessing ucontext struct members.
7487
edf61169
JB
74882004-05-04 Jim Blandy <jimb@redhat.com>
7489
8bf659e8
JB
7490 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
7491 'ppc_gplast_regnum' member.
7492 (ppc_num_gprs): New enum constant.
7493 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
7494 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
7495 * rs6000-nat.c (regmap, fetch_inferior_registers,
7496 store_inferior_registers): Same.
7497 * rs6000-tdep.c (e500_pseudo_register_read)
7498 (e500_pseudo_register_write): Same.
7499 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
7500
b967e06f
JB
7501 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
7502 * ppc-tdep.h (ppc_num_fprs): New enum constant.
7503 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
7504 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
7505 FPLAST_REGNUM.
7506 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7507 Same.
7508 * ppc-linux-nat.c (ppc_register_u_addr): Same.
7509 * rs6000-nat.c (regmap, fetch_inferior_registers)
7510 (store_inferior_registers): Same.
7511
edf61169
JB
7512 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
7513 with FPLAST_REGNUM.
7514
58a9656e
JB
75152004-05-03 Joel Brobecker <brobecker@gnat.com>
7516
7517 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
7518 failure detected by recent versions of GCC.
7519 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
7520 to be consistent with the usage in dwarf2_create_include_psymtab.
7521
dc305454
MS
75222004-05-03 Michael Snyder <msnyder@redhat.com>
7523
7524 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
7525 (heuristic_proc_start): Whitespace cleanup.
7526
29972665
MK
75272004-05-04 Mark Kettenis <kettenis@gnu.org>
7528
6b57680d
MK
7529 * sun3-nat.c: Remove file.
7530 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
7531 dependencies.
7532 (ALLDEPFILES): Remove sun3-nat.c.
7533 (sun3-nat.o): Remove dependencies.
7534
29972665
MK
7535 * i386-interix-nat.c, i386-interix-tdep.c,
7536 config/i386/nm-interix.h, config/i386/interix.mh,
7537 config/i386/interix.mt: Remove files.
7538 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
7539 dependencies.
7540
f595cb19
MK
75412004-05-03 Mark Kettenis <kettenis@gnu.org>
7542
7543 * m68k-tdep.h (struct gdbarch_tdep): Add member
7544 struct_value_regnum.
7545 (m68k_svr4_init_abi): New prototype.
7546 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
7547 different calling conventions.
7548 (m68k_extract_return_value): Remove code dealing with single-field
7549 structs.
7550 (m68k_store_return_value): Remove code dealing with single-field
7551 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
7552 (m68k_extract_struct_value_address): Remove function.
7553 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
7554 (m68k_reg_struct_return_p, m68k_return_value)
7555 (m68k_svr4_return_value): New functions.
7556 (m68k_use_struct_convention): Remove function.
7557 (m68k_push_dummy_call): Use new struct_value_regnum member of
7558 `struct gdbarch_tdep' instead of hardcoded register number to
7559 store STRUCT_ADDR.
7560 (m68k_svr4_init_abi): New function.
7561 (m68k_gdbarch_init): Don't set extract_return_value,
7562 store_return_values, deprecated_extract_struct_value_address and
7563 use_struct_convention. Set return_value instead. Initialize new
7564 struct_value_regnum member of `struct gdbarch_tdep'.
7565 * m68klinux-tdep.c: Update copyright year.
7566 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
7567 (m68k_linux_extract_struct_value_address): Remove function.
7568 (m68k_linux_init_abi): Don't set extract_return_value,
7569 store_return_values, deprecated_extract_struct_value_address and
7570 use_struct_convention. Call m68k_svr4_init_abi but override the
7571 new struct_value_regnum member of `struct gdbarch_tdep'.
7572 * Makefile.in (m68k-tdep.o): Update dependencies.
7573
aaa75496
JB
75742004-05-03 J. Brobecker <brobecker@gnat.com>
7575
7576 * dwarf2read.c (line_header): Add new included_p field in
7577 field file_names.
7578 (partial_die_info): New field has_stmt_list. New field line_offset.
7579 (dwarf2_create_include_psymtab): New function.
7580 (dwarf2_build_include_psymtabs): New function.
7581 (add_file_name): Add forward declaration. Initialize new field.
7582 (dwarf_decode_lines): Add new parameter. Enhance this procedure
7583 to be able to determine the list of files included by the
7584 given unit, and build their associated psymtabs.
7585 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
7586 files as well.
7587 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
7588 (read_file_scope): Update call to dwarf_decode_lines.
7589 (read_partial_die): Handle DW_AT_stmt_list attributes.
7590
c848556f
MC
75912004-05-02 Michael Chastain <mec.gnu@mindspring.com>
7592
7593 Unfix PR gdb/1626.
7594 * configure.in: Revert special case for osf5.*.
7595 * configure: Regenerate.
7596
eb4556d7
JB
75972004-05-02 Jim Blandy <jimb@redhat.com>
7598
7599 Move the symbol-file-from-memory functions into their own file.
7600 * symfile-mem.c, symfile-mem.h: New files.
7601 * symfile.c (symbol_file_add_from_bfd): New function.
7602 (symbol_file_add): Call symbol_file_add_from_bfd.
7603 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
7604 Moved to symfile-mem.c.
7605 (_initialize_symfile): Move definition of
7606 add-symbol-file-from-memory command to symfile-mem.c.
7607 * symfile.h (symbol_file_add_from_bfd): New declaration.
7608 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
7609 * config/powerpc/linux.mt (TDEPFILES): Same.
7610 * Makefile.in (SFILES): Add symfile-mem.c.
7611 (symfile_mem_h): New variable.
7612 (HFILES_NO_SRCDIR): Add symfile-mem.h.
7613 (symfile-mem.o): New rule.
7614
80bb239e
AC
76152004-05-01 Andrew Cagney <cagney@redhat.com>
7616
7789d0fa
AC
7617 * breakpoint.c (insert_bp_location): Use get_frame_id, and
7618 frame_find_by_id instead of frame_relative_level.
7619 (do_enable_breakpoint): Ditto.
7620 * thread.c: Update copyright.
7621 (info_threads_command): Ditto, simplify.
7622
80bb239e
AC
7623 * frame.c (deprecated_generic_get_saved_register): Delete
7624 function, moved to "xstormy16-tdep.c".
7625 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
7626 deprecated_generic_get_saved_register from "frame.c".
7627 (xstormy16_frame_saved_register): Call
7628 xstormy16_get_saved_register.
7629 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
7630 static.
7631 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
7632 * frame.h (deprecated_generic_get_saved_register): Delete.
7633
b2a871dd
MC
76342004-05-01 Michael Chastain <mec.gnu@mindspring.com>
7635
7636 * dwarfread.c: Update documentation on the state of dwarf-1.
7637
0e100dab
AC
76382004-05-01 Andrew Cagney <cagney@redhat.com>
7639
acd8056e
AC
7640 * stack.c (select_frame_command): Delete call to
7641 frame_relative_level.
7642 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
7643 Delete #if0 code.
7644 (frame_info): Do not print FRAMELESS.
7645 (print_block_frame_labels): Replace DEPRECATED_STREQ.
7646 (catch_info): Delete #if0 code.
7647
0e100dab
AC
7648 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
7649 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
7650 of frame_relative_level.
7651 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
7652 to SENTINEL_FRAME.
7653 * frame.h (enum frame_type): Add SENTINEL_FRAME.
7654 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
7655 frame_relative_level.
7656
55699d59
AC
7657 * frame.h (deprecated_set_frame_type): Delete declaration.
7658 * frame.c (deprecated_set_frame_type): Delete function, update
7659 comments.
7660
fcf70625
AC
7661 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
7662 * gdbarch.h, gdbarch.c: Re-generate.
7663 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
7664 (shnbsd_pc_in_sigtramp): Delete.
7665 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
7666 pc_in_sigtramp.
7667 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
7668 pc_in_sigtramp.
7669 * frame.h: Update comments.
7670 * ppc-linux-tdep.c: Update comments.
7671 * breakpoint.c (bpstat_what): Update comments.
7672
ac5eccb7
AC
7673 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
7674 m68klinux-tdep.o's dependencies, were previously added to
7675 m68klinux-nat.o.
7676
f2524b93
AC
7677 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
7678 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
7679 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
7680 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
7681 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
7682
17e20bce
AC
7683 * Makefile.in (m68klinux-nat.o): Update dependencies.
7684 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
7685 (m68k_linux_sigtramp_frame_cache)
7686 (m68k_linux_sigtramp_frame_this_id)
7687 (m68k_linux_sigtramp_frame_prev_register)
7688 (m68k_linux_sigtramp_frame_unwind)
7689 (m68k_linux_sigtramp_frame_sniffer)
7690 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
7691 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
7692 names, use trad-frame.h.
7693 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
7694 (struct m68k_sigtramp_info): Delete.
7695 * m68k-tdep.c (m68k_sigtramp_frame_cache)
7696 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
7697 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
7698 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
7699 "m68klinux-tdep.c".
7700
c8864fa2
AC
7701 * infrun.c (check_sigtramp2): Delete check for
7702 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
7703
511dd2cd
MK
77042004-05-01 Mark Kettenis <kettenis@gnu.org>
7705
7706 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
7707
8c6b0e06
AC
77082004-05-01 Andrew Cagney <cagney@redhat.com>
7709
9df0bb3f
AC
7710 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
7711 (frv_linux_sigtramp_frame_cache)
7712 (frv_linux_sigtramp_frame_this_id)
7713 (frv_linux_sigtramp_frame_prev_register)
7714 (frv_linux_sigtramp_frame_unwind)
7715 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
7716 include "linux" in function and variable names, directly call
7717 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
7718 the latest trad-frame code.
7719 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
7720 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
7721 * Makefile.in (frv-linux-tdep.o): Update dependencies.
7722 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
7723 * frv-tdep.c (frv_sigtramp_frame_cache)
7724 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
7725 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
7726 frv-linux-tdep.c.
7727 (frv_gdbarch_init): Do not append a sigtramp sniffer.
7728 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
7729 (frv_set_sigcontext_reg_addr): Delete function.
7730
8c6b0e06
AC
7731 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
7732 (DEPRECATED_SIGTRAMP_END): Delete.
7733 * gdbarch.h, gdbarch.c: Re-generate.
7734 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
7735 * config/vax/tm-vaxbsd.h: Update copyright.
7736 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
7737 (DEPRECATED_IN_SIGTRAMP): Define.
7738 * config/m68k/tm-nbsd.h: Update copyright.
7739 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
7740 (DEPRECATED_IN_SIGTRAMP): Define.
7741
50ea7769
MK
77422004-05-01 Mark Kettenis <kettenis@gnu.org>
7743
03ac2a74
MK
7744 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
7745 encondings. Fixes PR gdb/1628.
7746
50ea7769
MK
7747 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
7748 DW_CFA_restore state without a matching DW_CFA_remember_state
7749 instead of aborting. Fixes PR backtrace/1589.
7750
9a5d7be1
JB
77512004-04-30 Joel Brobecker <brobecker@gnat.com>
7752
7753 * MAINTAINERS: Add self as AIX maintainer.
7754 Update my e-mail address in write-after-approval section.
7755
2593d1cd
AC
77562004-04-30 Andrew Cagney <cagney@redhat.com>
7757
ce12bbf9
AC
7758 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
7759 (legacy_get_prev_frame): Ditto.
7760
36710c63
AC
7761 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
7762 (mips_gdbarch_init): Do not set pc_in_sigtramp.
7763 * mipsread.c (sigtramp_address): Delete extern variable.
7764 (mipscoff_new_init): Delete reference.
7765 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
7766 (fixup_sigtramp): Delete function.
7767 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
7768 (fixup_sigtramp): Delete declarations.
7769
2593d1cd
AC
7770 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
7771 deprecated_pc_in_sigtramp.
7772 (ppcnbsd_pc_in_sigtramp): Delete function.
7773
2a25f91c
MK
77742004-05-01 Mark Kettenis <kettenis@gnu.org>
7775
7776 * config/m68k/nm-nbsd.h: Tweak comments.
7777 * config/m68k/nm-nbsdaout.h: Likewise.
7778
0b281939
AC
77792004-04-30 Andrew Cagney <cagney@redhat.com>
7780
7781 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
7782 legacy_pc_in_sigtramp.
7783 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
7784
8f2d3ea0
MK
77852004-05-01 Mark Kettenis <kettenis@gnu.org>
7786
7787 Add OpenBSD/m68k support.
7788 * NEWS (New native configurations): Mention OpenBSD/m68k.
7789 * m68kbsd-tdep.c: New file.
7790 * m68kbsd-nat.c: New file.
7791 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
7792 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
7793 * configure.host: Add m68k-*-openbsd.
7794 * configure.tgt: Add m68k-*-openbsd.
7795 * config/m68k/tm-obsd.h: New file.
7796 * config/m68k/obsd.mt: New file.
7797 * config/m68k/obsd.mh: New file.
7798 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
7799 m68kbsd-tdep.c.
7800
c40f49a4
AC
78012004-04-30 Andrew Cagney <cagney@redhat.com>
7802
7803 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
7804 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
7805
e81554cd
MK
78062004-04-30 Mark Kettenis <kettenis@gnu.org>
7807
7808 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
7809 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
7810
d4dc1a91
BF
78112004-04-30 Brian Ford <ford@vss.fsi.com>
7812
7813 Revert 2004-04-16 change.
7814 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
7815 (i386_coff_init_abi): Remove.
7816 * i386-tdep.h (i386_coff_init_abi): Remove.
7817 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
7818
2f72f850
AC
78192004-04-30 Andrew Cagney <cagney@redhat.com>
7820
e492f9d6
AC
7821 * blockframe.c (find_pc_partial_function): Delete use of
7822 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
7823 DEPRECATED_SIGTRAMP_END.
7824
7b7adad0
AC
7825 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
7826 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
7827 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
7828 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
7829 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
7830
2f72f850
AC
7831 * defs.h (deprecated_inside_entry_file): Delete declaration.
7832 * blockframe.c (deprecated_inside_entry_file): Delete function.
7833 (legacy_frame_chain_valid): Delete call.
7834 * sh64-tdep.c (sh64_frame_chain): Delete call.
7835 * objfiles.h: Update comments.
7836 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
7837 call.
7838 * frame.c (get_prev_frame): Delete call, update comments.
7839
283f90a7
BF
78402004-04-30 Brian Ford <ford@vss.fsi.com>
7841
7842 * MAINTAINERS (Write After Approval): Add myself.
7843
8ee56bcf
AC
78442004-04-30 Andrew Cagney <cagney@redhat.com>
7845
7846 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
7847 * gdbarch.h, gdbarch.c: Re-generate.
7848 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
7849 code.
7850
ee27e1b6
AC
78512004-04-30 Andrew Cagney <cagney@redhat.com>
7852
7853 * gdb-events.sh (selected_thread_changed)
7854 (selected_frame_level_changed, target_changed): Delete.
7855 * gdb-events.h, gdb-events.c: Re-generate.
7856 * valops.c (value_assign): Update.
7857 * stack.c (select_frame_command, up_silently_base)
7858 (down_silently_base): Update.
7859
d5ac5a39
AC
78602004-04-29 Andrew Cagney <cagney@redhat.com>
7861
7862 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
7863 registers correctly.
7864 (print_gp_register_row, mips32_heuristic_proc_desc)
7865 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
7866 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
7867 references to mips_isa_regsize.
7868
ceae6e75
AC
78692004-04-29 Andrew Cagney <cagney@redhat.com>
7870
7871 * mips-tdep.c (struct gdbarch_tdep): Delete
7872 mips_fp_register_double.
7873 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
7874 mips_abi_regsize.
7875 (mips_gdbarch_init): Do not set mips_fp_register_double.
7876 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
7877
a587af0b
AC
78782004-04-29 Joel Brobecker <brobecker@gnat.com>
7879
7880 Committed by Andrew Cagney.
7881 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
7882 function calls.
7883
13326b4e
AC
78842004-04-29 Andrew Cagney <cagney@redhat.com>
7885
7886 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
7887 gdbarch, use mips_abi, update callers.
7888 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
7889 mips_abi_regsize, update callers.
7890 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
7891 mips_default_abi_regsize.
7892 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
7893 mips_default_abi_regsize.
7894
711cc5cd
AC
78952004-04-29 Andrew Cagney <cagney@redhat.com>
7896
1b13c4f6
AC
7897 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
7898 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
7899 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
7900 mips_default_abi_regsize.
7901 (mips_isa_regsize): Rename mips_regisze.
7902 * mipsnbsd-tdep.c: Update.
7903 * mips-linux-tdep.c: Update.
7904 * irix5-nat.c: Update.
7905 * mips-tdep.h (mips_isa_regsize): Update.
7906
711cc5cd
AC
7907 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
7908 Delete all disabled code.
7909 * gdb-events.h, gdb-events.c: Re-generate.
7910
e63bbc88
MK
79112004-04-19 Jerome Guitton <guitton@gnat.com>
7912 Mark Kettenis <kettenis@gnu.org>
7913
7914 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
7915 the function begins with a branch instruction.
7916
fd35795f
MK
79172004-04-29 Mark Kettenis <kettenis@gnu.org>
7918
7919 * i386-tdep.c: Fix spelling mistakes.
7920
c960c18f
AC
79212004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7922 Andrew Cagney <cagney@redhat.com>
7923
7924 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
7925 <sys/proc.h>.
7926 * acconfig.h: Provide default _KMEMUSER value.
7927 * config.in, configure: Re-generate.
7928 * NEWS: Mention fix.
7929
50306a9d
RC
79302004-04-24 Randolph Chung <tausq@debian.org>
7931
7932 * configure.host (hppa*-*-linux*): New target.
7933 * configure.tgt (hppa*-*-linux*): Likewise.
7934 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
7935 gdbarch_init_osabi() call earlier so that osabi-specific frame
7936 unwinders can be registered first.
7937 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
7938 hppa-linux-nat.c.
7939 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
7940 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
7941 * config/pa/linux.mh: New file.
7942 * config/pa/linux.mt: New file.
7943 * config/pa/nm-linux.h: New file.
7944 * config/pa/xm-linux.h: New file.
7945 * hppa-linux-nat.c: New file.
7946 * hppa-linux-tdep.c: New file.
7947
2a6228ef
RC
79482004-04-28 Randolph Chung <tausq@debian.org>
7949
7950 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
7951 return values.
7952 (hppa32_push_dummy_call): Fix small struct and floating point argument
7953 passing, and make sure the stack frame is properly aligned.
7954
82c10df6
AC
79552004-04-28 Andrew Cagney <cagney@redhat.com>
7956
d762c46a
AC
7957 * stack.c (print_stack_frame): Fix description.
7958
82c10df6
AC
7959 * NEWS: Mention gdb/gdbserver/configure execute permission
7960 changed. PR server/519.
7961
0faf0076
AC
79622004-04-28 Andrew Cagney <cagney@redhat.com>
7963
7964 * stack.c (print_stack_frame_stub): Delete declaration.
7965 (struct print_stack_frame_args, print_stack_frame)
7966 (print_frame_info, print_frame): Replace "source" with print what.
7967 Replace "print" with "print_level". Replace "args" with
7968 "print_args".
7969 * frame.h (show_and_print_stack_frame, print_stack_frame)
7970 (print_frame_info): Update declarations.
7971 * stack.c (select_and_print_frame, frame_command)
7972 (current_frame_command, up_command, down_command): Update calls -
7973 use get_selected_frame, pass "enum print_what" for source, do not
7974 call frame_relative_level.
7975 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
7976 * remote-rdp.c (remote_rdp_open): Ditto.
7977 * remote-mips.c (common_open): Ditto.
7978 * remote-e7000.c (e7000_start_remote): Ditto.
7979 * ocd.c (ocd_start_remote): Ditto.
7980 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
7981 * infrun.c (normal_stop): Ditto.
7982 * inflow.c (kill_command): Ditto.
7983 * infcmd.c (finish_command): Ditto.
7984 * corelow.c (core_open): Ditto.
7985 * tracepoint.c (finish_tfind_command): Ditto.
7986 * thread.c (info_threads_command, info_threads_command)
7987 (restore_current_thread, do_captured_thread_select): Ditto.
7988 * ada-tasks.c (task_command): Ditto.
7989
f4c5303c
OF
79902004-04-26 Orjan Friberg <orjanf@axis.com>
7991
7992 * frame.c: Include "observer.h".
7993 (frame_observer_target_changed): New function.
7994 (_initialize_frame): Attach target_changed observer.
7995 * regcache.c: Include "observer.h".
7996 (regcache_observer_target_changed): New function.
7997 (_initialize_regcache): Attach target_changed observer.
7998 * valops.c: Include "observer.h".
7999 (value_assign): Notify target_changed event when modifying register.
8000 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
8001
7270d8f2
OF
80022004-04-26 Orjan Friberg <orjanf@axis.com>
8003
8004 From Paul Koning <pkoning@equallogic.com>:
8005 * breakpoint.c (free_valchain): New function.
8006 (insert_bp_location, delete_breakpoint): Use free_valchain.
8007 (remove_breakpoint): Do not remove the valchain.
8008 (bpstat_stop_status): If not stopped by watchpoint, skip
8009 watchpoints when generating stop status list.
8010 * infrun.c (handle_inferior_event): Make
8011 stepped_after_stopped_by_watchpoint a global variable.
8012 * remote.c (remote_stopped_data_address): Return watch data
8013 address rather than zero if stepped_after_stopped_by_watchpoint is
8014 set.
8015
02d62932
MC
80162004-04-25 Michael Chastain <mec.gnu@mindspring.com>
8017
8018 Fix PR gdb/1626.
8019 * configure.in: Check for curses after termcap.
8020 On osf5.*, do not check for ncurses.
8021 * configure: Regenerate.
8022
3e9a183c
MK
80232004-04-25 Mark Kettenis <kettenis@gnu.org>
8024
c79ac407
MK
8025 * ppcobsd-nat.c: Include "ppc-tdep.h".
8026 * Makefile.in (ppcobsd-nat.o): Update dependencies.
8027
3e9a183c
MK
8028 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
8029 Fixes PR tdep/1623 and PR tdep/1624.
8030
38cc9c28
MC
80312004-04-24 Michael Chastain <mec.gnu@mindspring.com>
8032
8033 * xmodem.h, xmodem.c: Remove files.
8034 * Makefile.in: Remove references to xmodem.h, xmodem.c.
8035
7f07c5b6
RC
80362004-04-23 Randolph Chung <tausq@debian.org>
8037
8038 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
8039 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
8040 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
8041 for handling stackless frames.
8042 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
8043
9f7194c3
RC
80442004-04-23 Randolph Chung <tausq@debian.org>
8045
8046 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
8047 starts at a pc before the frame is created.
8048
dcff6009
JB
80492004-04-23 Joel Brobecker <brobecker@gnat.com>
8050
8051 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
8052
40711ff1 80532004-04-23 Jerome Guitton <guitton@gnat.com>
65951cd9
JG
8054
8055 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
8056 use convert_typed_floating to get the appropriate format.
8057
abc485a1
RC
80582004-04-22 Randolph Chung <tausq@debian.org>
8059
8060 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
8061 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
8062 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
8063 (hppa_sign_extend): Add prototype.
8064 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
8065 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
8066 (sign_extend): Rename with hppa_ prefix and make non-static. Other
8067 hppa targets will also use these functions.
8068 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
8069 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
8070 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
8071 (hppa_gdbarch_init): Remove gdbarch setting of
8072 skip_trampoline_code, in_solib_call_trampoline and
8073 in_solib_return_trampoline.
8074 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
8075 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
8076 hppa_in_solib_call_trampoline.
8077 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
8078 Moved from hppa-tdep.c.
8079 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
8080 in_solib_call_trampoline and in_solib_return_trampoline.
8081
369aa520
RC
80822004-04-22 Randolph Chung <tausq@debian.org>
8083
8084 * hppa-tdep.c (hppa_debug): New variable.
8085 (find_unwind_entry, hppa_frame_cache): Add debug output.
8086 (_initialize_hppa_tdep): Add command to set debug flag.
8087
476be15e
AC
80882004-04-22 Andrew Cagney <cagney@redhat.com>
8089
8090 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
8091 "trad-frame.h".
8092 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
8093 signal trampoline unwinder.
8094 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
8095
d195bc9f
MK
80962004-04-22 Mark Kettenis <kettenis@gnu.org>
8097
8098 Add OpenBSD/powerpc support.
8099 * NEWS (New native configurations): Mention OpenBSD/powerpc.
8100 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
8101 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
8102 (ppc_collect_fpregset): New prototypes.
8103 * ppcobsd-nat.c: New file.
8104 * ppcobsd-tdep.c: New file.
8105 * ppcobsd-tdep.h: New file.
8106 * rs6000-tdep.c: Include "regset.h".
8107 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
8108 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
8109 New functions.
8110 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
8111 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
8112 (rs6000-tdep.o): Update dependencies.
8113 * configure.host: Add powerpc-*-openbsd.
8114 * configure.tgt: Add powerpc-*-openbsd.
8115 * config/powerpc/obsd.mh: New file.
8116 * config/powerpc/nm-obsd.h: New file.
8117 * config/powerpc/obsd.mt: New file.
8118
6f14cc33
AC
81192004-04-22 Andrew Cagney <cagney@redhat.com>
8120
fcf29e5f
AC
8121 * frame.h (show_frame_info): Delete declaration.
8122
6f14cc33
AC
8123 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
8124 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
8125 * m32r-tdep.c (m32r_frame_this_id): Ditto.
8126 * frv-tdep.c (frv_frame_this_id): Ditto.
8127 * avr-tdep.c (avr_frame_this_id): Ditto.
8128
e5786a5c
EZ
81292004-04-22 Elena Zannoni <ezannoni@redhat.com>
8130
8131 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
8132
26e75e5c
JB
81332004-04-22 Jim Blandy <jimb@redhat.com>
8134
8135 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
8136 register number zero.
8137
d8d65dd3
MS
81382004-04-21 Michael Snyder <msnyder@redhat.com>
8139
8140 * mips-tdep.c (heuristic_proc_start):
8141 Warning() already prefixes "Warning: ".
8142
9a4105ab
AC
81432004-04-21 Andrew Cagney <cagney@redhat.com>
8144
8145 * annotate.h (deprecated_annotate_starting_hook)
8146 (deprecated_annotate_stopped_hook)
8147 (deprecated_annotate_exited_hook)
8148 (deprecated_annotate_signal_hook)
8149 (deprecated_annotate_signalled_hook): Deprecate.
8150 * tracepoint.h (deprecated_create_tracepoint_hook)
8151 (deprecated_delete_tracepoint_hook)
8152 (deprecated_modify_tracepoint_hook)
8153 (deprecated_trace_find_hook)
8154 (deprecated_trace_start_stop_hook): Deprecate.
8155 * target.h (deprecated_target_new_objfile_hook): Deprecate.
8156 * remote.h (deprecated_target_resume_hook)
8157 (deprecated_target_wait_loop_hook): Deprecate.
8158 * gdbcore.h (deprecated_exec_file_display_hook)
8159 (deprecated_file_changed_hook): Deprecate.
8160 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
8161 * defs.h (deprecated_modify_breakpoint_hook)
8162 (deprecated_command_loop_hook, deprecated_show_load_progress)
8163 (deprecated_print_frame_info_listing_hook)
8164 (deprecated_query_hook, deprecated_warning_hook)
8165 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
8166 (deprecated_delete_breakpoint_hook)
8167 (deprecated_interactive_hook, deprecated_registers_changed_hook)
8168 (deprecated_readline_begin_hook, deprecated_readline_hook)
8169 (deprecated_readline_end_hook, deprecated_register_changed_hook)
8170 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
8171 (deprecated_context_hook, deprecated_target_wait_hook)
8172 (deprecated_attach_hook, deprecated_detach_hook)
8173 (deprecated_call_command_hook, deprecated_set_hook)
8174 (deprecated_error_hook, deprecated_error_begin_hook)
8175 (deprecated_ui_load_progress_hook): Deprecate.
8176 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
8177 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
8178 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
8179 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
8180 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
8181 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
8182 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
8183 * annotate.c, aix-thread.c: Update.
8184
62cf13cc
AC
81852004-04-21 Andrew Cagney <cagney@redhat.com>
8186
b2e31a62
AC
8187 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
8188 * vaxnbsd-tdep.c: Include "gdb_string.h".
8189
62cf13cc
AC
8190 * symfile.c (symbol_file_add_from_memory): #if 0 function.
8191 (add_symbol_file_from_memory_command): #if 0 function body, call
8192 error instead.
8193
00e32a35
AC
81942004-04-21 Andrew Cagney <cagney@redhat.com>
8195
8196 * gdbcore.h: Update copyright.
8197 (deprecated_add_core_fns): Rename add_core_fns.
8198 * win32-nat.c (_initialize_core_win32): Update.
8199 * sun3-nat.c (_initialize_core_sun3): Update.
8200 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
8201 * rs6000-nat.c (_initialize_core_rs6000): Update.
8202 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
8203 * nto-tdep.c (_initialize_nto_tdep): Update.
8204 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
8205 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
8206 * mips-nat.c (_initialize_core_mips): Update.
8207 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8208 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
8209 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
8210 * lynx-nat.c (_initialize_core_lynx): Update.
8211 * irix5-nat.c (_initialize_core_irix5): Update.
8212 * i386-interix-nat.c (_initialize_core_interix): Update.
8213 * cris-tdep.c (_initialize_cris_tdep): Update.
8214 * corelow.c (deprecated_add_core_fns): Update.
8215 * core-regset.c (_initialize_core_regset): Update.
8216 * core-aout.c (_initialize_core_aout): Update.
8217 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
8218 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
8219 * alpha-nat.c (_initialize_core_alpha): Update.
8220
13c7b1ca
JB
82212004-04-21 Jim Blandy <jimb@redhat.com>
8222
8223 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
8224
7b5a2f43
DJ
82252004-04-19 Daniel Jacobowitz <drow@mvista.com>
8226
8227 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
8228 Delete.
8229 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
8230 (read_attribute_value): Update calls to dwarf_alloc_block.
8231 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
8232 dwarf2_tmp_obstack.
8233 (psymtab_to_symtab_1): Likewise. Clean up using
8234 free_stack_comp_unit.
8235 (add_to_cu_func_list): Use the comp_unit_obstack.
8236
05cf31d1
JB
82372004-04-19 Joel Brobecker <brobecker@gnat.com>
8238
8239 * dwarf2read.c (dwarf2_flag_true_p): New function.
8240 (die_is_declaration): Use the function above. Add some comments.
8241
adf93a2f
MK
82422004-04-19 Mark Kettenis <kettenis@gnu.org>
8243
8244 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
8245 architecture when registering sparcnbsd_core_osabi_sniffer.
8246 Adjust comment.
8247
748894bf
MK
82482004-04-18 Mark Kettenis <kettenis@gnu.org>
8249
f622ad42
MK
8250 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
8251 return value.
8252
c4fc7f1b
MK
8253 Based on a patch from Brian Ford <ford@vss.fsi.com>:
8254 * i386-tdep.c: Correct register numbering scheme comments
8255 throughout.
8256 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
8257 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
8258 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
8259 (i386_gdb_arch_init): Likewise.
8260
b4ead1bd
MK
8261 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
8262 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
8263 ppcnbsd-tdep.o.
8264
748894bf
MK
8265 * m68k-tdep.h: Tweak comments.
8266 * m68k-tdep.c: Tweak comment.
8267
fdd72f95
RC
82682004-04-17 Randolph Chung <tausq@debian.org>
8269
8270 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
8271 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
8272 (hppa_hpux_som_init_abi): Set is_elf to 0.
8273 (hppa_hpux_elf_init_abi): Set is_elf to 1.
8274 * hppa-tdep.c (low_text_segment_address): Remove global.
8275 (record_text_segment_lowaddr): Pass in low address as parameter. Use
8276 section offset to calculate segment address.
8277 (internalize_unwinds): Define low_text_segment_address as local and
8278 pass to record_text_segment_lowaddr for ELF targets.
8279 (hppa_gdbarch_init): Zero fill tdep structure.
8280 (hppa_dump_tdep): Print tdep structure.
8281 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
8282
0f8d9d59
RC
82832004-04-17 Randolph Chung <tausq@debian.org>
8284
8285 * hppa-tdep.c (hppa_pseudo_register_read): Define.
8286 (hppa_gdbarch_init): Set pseudo_register_read.
8287 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
8288 * regcache.c (supply_register): Remove check for
8289 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
8290
7c46b9fb
RC
82912004-04-17 Randolph Chung <tausq@debian.org>
8292
8293 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
8294 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
8295 (hpread_adjust_stack_address): Move to hpread.c.
8296 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8297 obj_private_struct): Move from tm-hppa.h.
8298 * hpread.c (hppa-tdep.h): Include.
8299 (hpread_adjust_stack_address): Move from hppa-tdep.c.
8300 (hpread_read_function_type, hpread_read_doc_function_type)
8301 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
8302 directly.
8303 * pa64solib.c (hppa-tdep.h): Include.
8304 * somsolib.c (hppa-tdep.h): Include.
8305 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
8306 inferior_status): Remove unused forward declarations.
8307 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
8308 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8309 obj_private_struct): Move to hppa-tdep.h.
8310 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
8311
8d153463
RC
83122004-04-17 Randolph Chung <tausq@debian.org>
8313
8314 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
8315 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
8316 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
8317 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
8318 Remove forward declaration and make static.
8319 (hppa_reg_struct_has_addr): Remove.
8320
350c2e5b
JB
83212004-04-16 Joel Brobecker <brobecker@gnat.com>
8322
8323 * observer.sh: Move comments in sed command to first column.
8324
bbde78fa
JM
83252004-04-16 Jason Molenda (jmolenda@apple.com)
8326
8327 * frame.c: Minor typeo corrections in comments.
8328
e0270fd9
JB
83292004-04-16 Joel Brobecker <brobecker@gnat.com>
8330
8331 * observer.c (observer_test_first_notification_function): Update
8332 function profile.
8333 (observer_test_second_notification_function): Likewise.
8334 (observer_test_third_notification_function): Likewise.
8335
3d049254
MK
83362004-04-16 Mark Kettenis <kettenis@gnu.org>
8337
8338 From Brian Ford <ford@vss.fsi.com>:
8339 * i386-tdep.c (i386_coff_init_abi): New function.
8340 * i386-tdep.h (i386_coff_init_abi): New prototype.
8341 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
8342 register number translation functions for DWARF and DWARF 2.
8343
7867684d
JB
83442004-04-16 Joel Brobecker <brobecker@gnat.com>
8345
8346 * dwarf2read.c: Back out my previous change, it was incorrect.
8347
72bf9492
DJ
83482004-04-16 Daniel Jacobowitz <drow@mvista.com>
8349
8350 * dwarf2read.c: Include "hashtab.h".
8351 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
8352 has_namespace_info.
8353 (struct partial_die_info): Add comments. Use bitfields to reduce
8354 memory footprint. Add scope, scope_set, has_specification,
8355 spec_offset, die_parent, die_child, and die_sibling.
8356 (peek_die_abbrev): Add prototype.
8357 (partial_read_comp_unit_head): New function, broken out from
8358 dwarf2_build_psymtabs_hard.
8359 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
8360 Use partial_read_comp_unit_head. Initialize the CU and
8361 comp_unit_obstack. Update calls to read_partial_die and
8362 scan_partial_symbols. Use free_stack_comp_unit and
8363 load_partial_dies.
8364 (scan_partial_symbols): Change PDI to a pointer. Use the child and
8365 sibling pointers to walk partial DIEs. Call fixup_partial_die.
8366 Update calls to helper functions. Remove NAMESPACE argument.
8367 Update comments.
8368 (partial_die_parent_scope, partial_die_full_name): New functions.
8369 (add_partial_symbol): Remove namespace argument. Update call to
8370 pdi_needs_namespace. Use partial_die_full_name. Handle
8371 DW_TAG_namespace. Check has_namespace_info flag.
8372 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
8373 tag. Handle namespaces.
8374 (add_partial_namespace, add_partial_enumeration): Simplify.
8375 (guess_structure_name): New function, derived from
8376 add_partial_structure.
8377 (add_partial_structure): Remove.
8378 (determine_class_name): Update comment.
8379 (dwarf2_read_abbrevs): Set has_namespace_info flag.
8380 (is_type_tag_for_partial, load_partial_dies): New functions.
8381 (read_partial_die): Pass abbrev and abbrev_len as arguments.
8382 Record specifications instead of following them immediately.
8383 (find_partial_die_in_comp_unit, find_partial_die)
8384 (fixup_partial_die, free_stack_comp_unit)
8385 (hashtab_obstack_allocate, dummy_obstack_deallocate)
8386 (partial_die_hash, partial_die_eq): New functions.
8387 * Makefile.in (hashtab_h): Define.
8388 (dwarf2read.o): Update dependencies.
8389 (observer_inc, observer_h): Move to the correct section.
8390
fdc860a3
JB
83912004-04-15 Joel Brobecker <brobecker@gnat.com>
8392
8393 * dwarf2read.c (dwarf2_attribute_true_p): New function.
8394 (die_is_declaration): Use the function above. Add comment.
8395
dc718098
JB
83962004-04-15 Joel Brobecker <brobecker@gnat.com>
8397
8398 * dwarf2read.c (read_structure_scope): Identify stub types
8399 using die_is_declaration() only.
8400
8718a420
RM
84012004-04-15 Roland McGrath <roland@redhat.com>
8402
8403 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
8404 argument instead of NAME.
8405 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
8406 in call to symbol_file_add_with_addrs_or_offsets.
8407 (build_addr_info): New function, helper for ...
8408 (symbol_file_add_from_memory): New function.
8409 (add_symbol_file_from_memory_command): New function using that.
8410 (_initialize_symfile): Register it for add-symbol-file-from-memory.
8411 (pre_add_symbol_hook): Add const to argument type.
8412 * symfile.h (symbol_file_add_from_memory): Declare it.
8413
8b910bab
MK
84142004-04-15 Mark Kettenis <kettenis@gnu.org>
8415
9f076e7a
MK
8416 * NEWS (New native configurations): Mention OpenBSD/vax.
8417 * configure.host: Add vax-*-openbsd*.
8418 * config/vax/obsd.mh: New file.
8419 * config/vax/nm-obsd.h: New file.
8420
8b910bab
MK
8421 * vax-tdep.c: Include "regset.h".
8422 (vax_supply_gregset): New function.
8423 (vax_gregset): New variable.
8424 (vax_regset_from_core_section): New function.
8425 (vax_gdbarch_init): Set regset_from_core_section.
8426 * Makefile.in (vax-tdep.o): Update dependencies.
8427
7a464420
AC
84282004-04-15 Andrew Cagney <cagney@redhat.com>
8429
8430 * observer.c (normal_stop_subject, observer_notify_normal_stop)
8431 (observer_normal_stop_notification_stub)
8432 (observer_attach_normal_stop, observer_detach_normal_stop):
8433 Delete, replaced by #include "observer.inc".
8434 * infrun.c (normal_stop): Pass "stop_bpstat" to
8435 observer_notify_normal_stop.
8436 * Makefile.in (observer_inc): Define.
8437 (observer.o): Update dependencies.
8438 (observer.h, observer.inc): New rules.
8439 * observer.h: Delete file.
8440 * observer.sh: New file.
8441
e36ad527
MK
84422004-04-15 Mark Kettenis <kettenis@gnu.org>
8443
8444 * vax-tdep.c (vax_frame_cache): Fix typo.
8445
67b441e1
MK
84462004-04-14 Mark Kettenis <kettenis@gnu.org>
8447
6f606e1c
MK
8448 * NEWS (New native configurations): Mention NetBSD/vax.
8449 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
8450 * config/vax/nbsdelf.mh: New file.
8451 * config/vax/nbsdaout.mh: New file.
8452 * config/vax/nm-nbsd.h: New file.
8453 * config/vax/nm-nbsdaout.h: New file.
8454
9c5519a5
MK
8455 * vaxnbsd-tdep.c: New file.
8456 * Makefile.in (vaxnbsd-tdep.o): New dependency.
8457 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
8458 * config/vax/nbsd.mt: New file.
8459 * config/vax/tm-nbsd.h: New file.
8460
4844a614
MK
8461 * Makefile.in (vaxbsd-nat.o): New dependency.
8462
67b441e1
MK
8463 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
8464 * vax-tdep.c (vax_store_arguments): Remove struct_return and
8465 struct_addr arguments. Don't push return value address.
8466 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
8467 arguments to vax_store_arguments. Store return value address in
8468 R1.
8469 (vax_store_struct_return, vax_extract_return_value)
8470 (vax_store_return_value): Remove functions.
8471 (vax_return_value): New function.
8472 (vax_gdbarch_init): Set return value. Don't set
8473 deprecated_store_struct_return, deprecated_extract_struct_return
8474 and deprecated_store_return_value.
8475
6672f2ae
AS
84762004-04-14 Andreas Schwab <schwab@suse.de>
8477
8478 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
8479 value buffer.
8480 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
8481
7346c184
MK
84822004-04-14 Mark Kettenis <kettenis@gnu.org>
8483
8484 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
8485 (vax_unwind_dummy_id): New functions.
8486 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
8487 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
8488 variables.
8489 (vax_fix_call_dummy): Remove function.
8490 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
8491 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
8492 call_dummy_location, deprecated_call_dummy_words,
8493 deprecated_sizeof_call_dummy_words,
8494 deprecated_call_dummy_breakpoint_offset,
8495 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
8496 and deprecated_dummy_write_sp.
8497
58e23df4
DC
84982004-04-13 David Carlton <carlton@kealia.com>
8499
8500 * MAINTAINERS: Move myself to "paper trail" section.
8501
5e6b39ff
MK
85022004-04-12 Mark Kettenis <kettenis@gnu.org>
8503
7def7fef
MK
8504 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
8505 "trad-frame.h".
8506 (vax_frame_init_saved_regs): Remove function.
8507 (vax_sigtramp_saved_pc): Remove function.
8508 (vax_frame_saved_pc): Remove function.
8509 (vax_frame_args_address): Remove function.
8510 (vax_frame_num_args): Rewrite.
8511 (vax_frame_chain): Remove function.
8512 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
8513 VAX_FP_REGNUM.
8514 (vax_pop_frame): Likewise.
8515 (vax_saved_pc_after_call): Remove function.
8516 (struct vax_frame_cache): New structure.
8517 (vax_frame_cache): New function.
8518 (vax_frame_this_id): New function.
8519 (vax_frame_prev_register): New function.
8520 (vax_frame_unwind): New variable.
8521 (vax_frame_sniffer): New function.
8522 (vax_frame_base_address): New function.
8523 (vax_frame_args_address): New function.
8524 (vax_frame_base): New variable.
8525 (vax_unwind_pc): New function.
8526 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
8527 deprecated_fp_regnum, deprecated_saved_pc_after_call,
8528 deprecated_frame_chain, deprecated_frame_saved_pc,
8529 deprecated_frame_args_address and
8530 deprecated_frame_init_saved_regs.
8531 * Makefile.in (vax-tdep.o): Update dependencies.
8532
53284fc1
MK
8533 * vaxbsd-nat.c: New file.
8534
5e6b39ff
MK
8535 * vax-tdep.h: Update copyright year. Adjust comments.
8536 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
8537 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
8538 (vax_regnum): New enum. Replacing...
8539 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
8540 (VAX_PS_REGNUM): ... these removed macros.
8541 * vax-tdep.c (vax_register_name): Remove prototype.
8542 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
8543 (vax_register_byte, vax_register_raw_size,
8544 vax_register_virtual_size, vax_register_virtual_type): Remove
8545 functions.
8546 (vax_register_type): New function.
8547 (vax_breakpoint_from_pc): Reorganize.
8548 (vax_gdbarch_init): Set register_type. Don't set
8549 deprecated_register_size, deprecated_register_bytes,
8550 deprecated_register_byte, deprecated_register_raw_size,
8551 deprecated_max_register_raw_size,
8552 deprecated_register_virtual_size,
8553 deprecated_max_register_virtual_size and
8554 deprecated_register_virtual_type. Add comment on stack direction.
8555
e9c71e9f
MK
85562004-04-11 Mark Kettenis <kettenis@gnu.org>
8557
8558 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
8559 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 8560 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 8561
d46f1176 85622004-04-10 Randolph Chung <tausq@debian.org>
8718a420 8563
d46f1176
RC
8564 * MAINTAINERS (write after approval): Add myself.
8565
a2a84a72
RC
85662004-04-07 Randolph Chung <tausq@debian.org>
8567
8568 * hppa-tdep.c (hppa_inner_than): Remove.
8569 (is_pa_2): Remove unused static variable.
8718a420 8570 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 8571
e85c3284
PH
85722004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
8573
8574 * language.h (language_defn): Add new la_post_parser field.
8575 * parser-defs.h (null_post_parser): New declaration (default for
8576 la_post_parser).
8718a420 8577
e85c3284
PH
8578 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
8579 insert call to that function.
8580 (parse_exp_in_context): New function, including code formerly in
8718a420 8581 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
8582 prefixification.
8583 (parse_expression_in_context): New exported function.
8584 (null_post_parser): New definition.
8585 * expression.h (parse_expression_in_context): Add declaration.
8718a420 8586
e85c3284
PH
8587 * p-lang.c (pascal_language_defn): Add trivial post-parser.
8588 * c-lang.c (c_language_defn): Ditto.
8589 (cplus_language_defn): Ditto.
8590 (asm_language_defn): Ditto.
8591 (minimal_language_defn): Ditto.
8592 * f-lang.c (f_language_defn): Ditto.
8593 * jv-lang.c (java_language_defn): Ditto.
8594 * language.c (unknown_language_defn): Ditto.
8595 (auto_language_defn): Ditto.
8596 (local_language_defn): Ditto.
8597 * m2-lang.c (m2_language_defn): Ditto.
8598 * scm-lang.c (scm_language_defn): Ditto.
8599 * obj-lang.c (objc_language_defn): Ditto.
8718a420 8600
d9f8c85b
MK
86012004-04-10 Mark Kettenis <kettenis@gnu.org>
8602
fa34704a
MK
8603 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
8604 (amd64nbsd_mcontext_addr): New function.
8605 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
8606 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
8607 with amd64nbsd_r_reg_offset, instead of building it on the fly.
8608
403e1656
MK
8609 * corelow.c (core_xfer_partial): Fix coding standards violation.
8610 Add support for TARGET_OBJECT_WCOOKIE.
8611
a57e5a95
MK
8612 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
8613 deprecated_pc_in_sigtramp.
8614 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
8615 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
8616 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
8617 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8618 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
8619 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8620 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
8621
377d9ebd
MK
8622 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
8623 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
8624 Fix typo.
8625
f0ef85a5
MK
8626 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
8627 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
8628 (amd64_collect_fxsave): Likewise.
8629
d9f8c85b
MK
8630 * i386-sol2-tdep.c: Include "gdb_string.h".
8631 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
8632 name.
8633 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
8634
75f501b5
MK
86352004-04-10 Mark Kettenis <kettenis@gnu.org>
8636
8637 * i386-sol2-tdep.c: Include "solib-svr4.h".
8638 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8639 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
8640 * config/i386/tm-i386sol2.h: Include :solib.h".
8641 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
8642 solib-svr4.o and solib-legacy.o.
8643 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
8644 solib-svr4.o.
8645
b31bc724
MK
86462004-04-09 Mark Kettenis <kettenis@gnu.org>
8647
18bbbd9e
MK
8648 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
8649 whether a register is supplied by PTRACE_GETFPREGS.
8650 (store_inferior_registers): Likewise.
8651 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
8652 whether a register is supplied by PT_GETFPREGS.
8653 (store_inferior_registers): Likewise.
8654
3c30bf1b
MK
8655 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
8656 * config/i386/linux64.mt (TDEPFILES): Likewise.
8657
a4194092
MK
8658 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
8659
911bc6ee
MK
8660 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
8661 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
8662 the program counter is in the range specified by `struct
8663 gdbarch_tdep'.
8664 * amd64-linux-tdep.c: Include "symtab.h".
8665 (amd64_linux_pc_in_sigtramp): Remove function.
8666 (amd64_linux_sigtramp_p): New function.
8667 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
8668 deprecated_pc_in_sigtramp.
8669 * amd64nbsd-tdep.c: Include "symtab.h".
8670 (amd64nbsd_sigtramp_p): New function.
8671 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
8672 deprecated_pc_in_sigtramp.
8673 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
8674 few comments.
8675 (amd64obsd_pc_in_sigtramp): Remove function.
8676 (amd64obsd_sigtramp_p): New function.
8677 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
8678 deprecated_pc_in_sigtramp.
8679 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
8680 (i386bsd_pc_ins_sigtramp): Remove prototype.
8681 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
8682 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
8683 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
8684 the program counter is in the range specified by `struct
8685 gdbarch_tdep'.
8686 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
8687 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
8688 (i386_go32_pc_in_sigtramp): Remove function.
8689 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
8690 Initialize TDEP->sigtramp_p.
8691 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
8692 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
8693 deprecated_pc_in_sigtramp.
8694 * i386-linux-tdep.c: Adjust comments.
8695 (i386_linux_pc_in_sigtramp): Remove function.
8696 (i386_linux_sigtramp_p): New function.
8697 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
8698 deprecated_pc_in_sigtramp.
8699 * i386-nto-tdep.c: Update copyright year.
8700 (i386nto_pc_in_sigtramp): Remove function.
8701 (i386nto_sigtramp_p): New function.
8702 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
8703 SP_REGNUM.
8704 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
8705 deprecated_pc_in_sigtramp.
8706 * i386-sol2-tdep.c: Update copyright year.
8707 (i386_sol2_pc_in_sigtramp): Remove function.
8708 (i386_sol2_sigtramp_p): New function.
8709 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
8710 deprecated_pc_in_sigtramp.
8711 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
8712 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
8713 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8714 deprecated_sigtramp_start and deprecated_sigtramp_end.
8715 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
8716 (i386nbsd_pc_in_sigtramp): Remove function.
8717 (i386nbsd_sigtramp_p): New function.
8718 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8719 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
8720 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
8721 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
8722 (i386obsd_pc_in_sigtramp): Remove function.
8723 (i386obsd_sigtramp_p): New function.
8724 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
8725 functions.
8726 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8727 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
8728 TDEP->sigtramp_p.
8729 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
8730 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
8731 dependencies.
8732
e083e6ec
MK
8733 * config/i386/i386aout.mt: Remove file.
8734
bd153b94
MK
8735 * configure.tgt: Remove i[34567]86-*-go32*,
8736 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
8737 and i[34567]86-*-isc*. Set gdb_target to i386 for
8738 i[34567]86-*-netware* and i[34567]86-*-*.
8739 * config/i386/i386.mt: New file.
8740 * config/i386/embed.mt: Remove file.
8741 * config/i386/go32.mt: Remove file.
8742 * config/i386/i386nw.mt: Remove file.
8743 * config/i386/i386v.mt: Remove file.
8744 * config/i386/tm-go32.h: Remove file.
8745
4a1bcc8c
MK
8746 * tui/tui-hooks.c: Include "readline/readline.h" after
8747 "gdb_curses.h" instead of before.
8748 * tui/tui-io.c: Likewise.
8749
f9a79064
MK
8750 * tui/tui.c: Fix typo in comment.
8751
b31bc724
MK
8752 * sparc64-tdep.c (sparc_address_from_register): Remove function.
8753
f83f82bc
AC
87542004-04-08 Andrew Cagney <cagney@redhat.com>
8755
8756 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
8757 (deprecated_exception_support_initialized): Declare.
8718a420 8758 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
8759 (initialize_hp_cxx_exception_support)
8760 (child_enable_exception_callback): Update.
8761 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
8762 (deprecated_exception_support_initialized): Rename
8763 deprecated_exception_catchpoints_are_fragile and
8764 deprecated_exception_support_initialized.
8765 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
8766
8767 * symtab.c (deprecated_hp_som_som_object_present): Rename
8768 hp_som_som_object_present.
8769 * symtab.h (deprecated_hp_som_som_object_present): Declare.
8770 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
8771 Update. Delete extern declaration.
8772 * valops.c (hp_som_som_object_present): Ditto.
8718a420 8773 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
8774 (parse_nested_classes_for_hpacc): Ditto.
8775 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 8776 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
8777 (initialize_hp_cxx_exception_support): Ditto.
8778 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 8779 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 8780 (cp_print_class_method): Ditto.
8718a420 8781 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
8782 (c_type_print_base): Ditto.
8783 * c-exp.y (hp_som_som_object_present): Ditto.
8784
fb2be677
AC
87852004-04-08 Andrew Cagney <cagney@redhat.com>
8786
8787 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
8788 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
8789 (frame_unwind_find_by_frame): Re-implement the unwind code so
8790 that it can both prepend and append sniffers. Replace
8791 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
8792 * tramp-frame.c (tramp_frame_append): Use
8793 frame_unwind_prepend_unwinder.
8794 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
8795 frame_unwind_register_unwinder.
8796 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
8797 tramp_frame_append.
8798 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 8799 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
8800 (mips_linux_init_abi): Update.
8801
67faf007
KB
88022004-04-08 Kevin Buettner <kevinb@redhat.com>
8803
8804 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
8805 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
8806 file support.
8807
8973ff21
KB
88082004-04-07 Kevin Buettner <kevinb@redhat.com>
8809
8810 * ia64-tdep.c (elf.h): Don't include.
8811 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
8812
4a0e2f88
JM
88132004-04-07 Jason Molenda (jmolenda@apple.com)
8814
8815 * frame.h: Typeo corrections in comments.
8816
9872ad24
JB
88172004-04-07 Jim Blandy <jimb@redhat.com>
8818
8819 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
8820 %esp and %ebp
8821
70b216c8
MK
88222004-04-07 Mark Kettenis <kettenis@gnu.org>
8823
11d5789c
MK
8824 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
8825 * config/sparc/linux64.mt (TDEPFILES): Likewise.
8826 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
8827 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
8828 and solib-legacy.o.
8829 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
8830 solib-svr4.o.
8831 * config/sparc/tm-sol2.h: Update copyright year. Include
8832 "solib.h".
8833
70b216c8
MK
8834 * sparc-sol2-tdep.c: Update copyright year. Include
8835 "solib-svr4.h".
8836 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8837 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
8838 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 8839 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
8840 dependencies.
8841
6339dc9e
AC
88422004-04-06 Andrew Cagney <cagney@redhat.com>
8843
8844 * infttrace.c: Include "infttrace.h".
8845 * infttrace.h: Include "target.h".
8846 * Makefile.in (infttrace_h): Update.
8847 (infttrace.o): Update.
8718a420 8848
93449403
AC
88492004-04-06 Andrew Cagney <cagney@redhat.com>
8850
6d518969
AC
8851 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
8852 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
8853 move extern declarations from here ...
8854 * infttrace.h: ... to here.
8855 * Makefile.in (hppah-nat.o): Update dependencies.
8856
85f4f2d8
AC
8857 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
8858 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 8859 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
8860 (hppa_breakpoint_from_pc): Delete.
8861
93449403
AC
8862 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
8863
71456ec6
AC
88642004-04-05 Andrew Cagney <cagney@redhat.com>
8865
8866 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
8867 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
8868 <sys/file.h>.
8718a420 8869
4c02c60c
AC
88702004-04-06 Randolph Chung <tausq@debian.org>
8871
8872 Committed by Andrew Cagney (mechanical change).
8873 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
8874 exception_catchpoints_are_fragile, find_stub_with_shl_get,
8875 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
8876 child_enable_exception_callback, current_ex_event,
8877 null_symtab_and_line, child_get_current_exception_event,
8878 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
8879 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
8880 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
8881 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
8882 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
8883 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
8884 Move hpux-specific definitions ...
8885 * hppa-hpux-tdep.c: ... to here.
8886
3a515653
AC
88872004-04-05 Andrew Cagney <cagney@redhat.com>
8888
8889 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
8890 skip_prologue_using_sal.
8891
c1730d02
AC
88922004-04-05 Andrew Cagney <cagney@redhat.com>
8893
8894 * config/i386/tm-i386.h: Delete file.
8895 * config/i386/tm-vxworks.h: Update copyright, do not include
8896 "tm-i386.h".
8897 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
8898 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
8899 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
8900 * config/i386/ncr3000.mt (TM_FILE): Delete.
8901 * config/i386/interix.mt (TM_FILE): Delete.
8902 * config/i386/i386v.mt (TM_FILE): Delete.
8903 * config/i386/i386nw.mt (TM_FILE): Delete.
8904 * config/i386/i386gnu.mt (TM_FILE): Delete.
8905 * config/i386/i386aout.mt (TM_FILE): Delete.
8906 * config/i386/embed.mt (TM_FILE): Delete.
8907
8b67aa36
KB
89082004-04-05 Kevin Buettner <kevinb@redhat.com>
8909
8910 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
8911 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
8912 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
8913 (accg7_regnum): New constants.
8914 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
8915 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
8916 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
8917 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
8918 for accg registers.
8919 (frv_register_sim_regno): Update spr_map[].
8920
3c7012f5
AC
89212004-04-04 Andrew Cagney <cagney@redhat.com>
8922
8923 * config/mips/xm-riscos.h: Delete.
8924 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
8925 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
8926 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
8927 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
8928 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
8929 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
8930 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
8931 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
8932 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
8933 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
8934 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
8935 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
8936 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
8937 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
8938 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
8939 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
8940 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
8941 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
8942 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
8943 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
8944 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
8945 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
8946 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
8947 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
8948 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
8949 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 8950
3c7012f5
AC
8951 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
8952 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
8953 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
8954 * configure.host: Remove m680[01]0-sun-sunos3*,
8955 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
8956 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
8957 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
8958 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
8959 mips-*-riscos*.
8960 * NEWS: Mention removed systems.
8961
99d16a21
AC
89622004-04-04 Andrew Cagney <cagney@redhat.com>
8963
8964 GDB 6.1 release created from 6.1 branch.
8965
6cdf9d98
AC
89662004-04-04 Andrew Cagney <cagney@redhat.com>
8967
98d346c3
AC
8968 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
8969 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
8970 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
8971
6cdf9d98
AC
8972 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
8973 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
8974 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
8975
859a326d
JB
89762004-04-03 Jim Blandy <jimb@redhat.com>
8977
8978 * MAINTAINERS: Chris Faylor has changed employers; add him to
8979 "paper trail" section, and update his E-mail address.
8980
b87178c3
AC
89812004-04-03 Andrew Cagney <cagney@redhat.com>
8982
4ea2acf0
AC
8983 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
8984 generic dummy frames.
8985 * dummy-frame.c: Update copyright.
8986 (dummy_frame_sniffer): Delete check for generic dummy frames.
8987
d0bd2d18 8988 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 8989 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
8990 (REG_PARM_STACK_SPACE): Delete.
8991 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
8992 Inline reference to REG_PARM_STACK_SPACE.
8993
b87178c3
AC
8994 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
8995 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
8996 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
8997 (FRAME_BASE_BEFORE_SIGTRAMP)
8998 (hppa32_hpux_frame_base_before_sigtramp)
8999 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
9000 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
9001 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
9002 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9003 (FRAME_BASE_BEFORE_SIGTRAMP)
9004 (hppa64_hpux_frame_base_before_sigtramp)
9005 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
9006
43e2e1a0
AC
90072004-04-03 Andrew Cagney <cagney@redhat.com>
9008
9009 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
9010
ddc135a4
AC
90112004-04-02 Andrew Cagney <cagney@redhat.com>
9012
9013 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
9014 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
9015 * dummy-frame.h: Delete out-of-date comments.
9016 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
9017 * gdbarch.h, gdbarch.c: Re-generate.
9018
d15bfd3a 90192004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 9020
d15bfd3a
AC
9021 Committed by Andrew Cagney <cagney@redhat.com>.
9022 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
9023 into account an instruction saving a register if we have already
9024 seen an earlier instruction saving that same register.
9025
f04ceafa
AC
90262004-04-02 Andrew Cagney <cagney@redhat.com>
9027
08be3abd
AC
9028 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
9029 * gdbarch.h, gdbarch.c: Re-generate.
9030 * frame.c (legacy_get_prev_frame): Delete references to
9031 DEPRECATED_INIT_FRAME_PC_FIRST.
9032
f04ceafa
AC
9033 * infrun.c (pc_in_sigtramp): Delete function.
9034 (check_sigtramp2): Inline call to pc_in_sigtramp, use
9035 get_frame_type.
9036
08e69816
AC
90372004-04-02 Andrew Cagney <cagney@redhat.com>
9038
9039 * infrun.c (handle_step_into_function): Delete code conditional on
9040 legacy_frame_p.
9041 (handle_inferior_event, step_over_function): Ditto.
9042
adb54772
AC
90432004-04-02 Andrew Cagney <cagney@redhat.com>
9044
9045 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
9046 "previous frame inner to this frame" test.
9047
304396fb
AC
90482004-04-02 Andrew Cagney <cagney@redhat.com>
9049
9050 * frame.c (safe_frame_unwind_memory): New function.
9051 * frame.h (safe_frame_unwind_memory): Declare. Update description
9052 of /safe_/ methods.
9053 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
9054 "next_frame". Use safe_frame_unwind_memory.
9055 (tramp_frame_sniffer): Update call to tramp_frame_start.
9056
6502dd73
DJ
90572004-04-01 Daniel Jacobowitz <drow@mvista.com>
9058
9059 * dwarf2read.c (dwarf2_objfile_data_key): New.
9060 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
9061 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
9062 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
9063 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
9064 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
9065 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
9066 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
9067 Remove variables.
9068 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
9069 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
9070 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
9071 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
9072 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
9073 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
9074 Remove macros.
9075 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
9076 data.
9077 (dwarf2_locate_sections, dwarf2_build_psymtabs)
9078 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
9079 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
9080 (read_partial_die, read_full_die, read_indirect_string)
9081 (dwarf_decode_line_header, dwarf_decode_macros)
9082 (dwarf2_symbol_mark_computed): Remove use of removed macros.
9083 Update uses of removed variables.
9084 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
9085 of removed macros.
9086 (_initialize_dwarf2_read): New function.
9087 * symfile.h (dwarf2_has_info): Update prototype.
9088 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
9089 * elfread.c (elf_symfile_read): Likewise.
9090
408752b0
JB
90912004-04-01 Jim Blandy <jimb@redhat.com>
9092
9f744501
JB
9093 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
9094 function for register numbers on all the rs6000-derived targets.
9095 (rs6000_gdbarch_init): Don't register a separate
9096 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
9097 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
9098 variants.
9099
408752b0
JB
9100 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
9101 numbering.
9102
2de41bce
PH
91032004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
9104
9105 * valarith.c: Update copyright notice.
9106 (value_add): Handle range types.
9107 (value_sub): Ditto.
9108 (value_equal): Ditto.
9109 (value_less): Ditto.
9110 (value_neg): Ditto.
9111 (value_complement): Ditto.
8718a420 9112 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 9113 eliminiating unnecessary COERCE_ENUMs.
8718a420 9114
5613d8d3
AC
91152004-03-31 Andrew Cagney <cagney@redhat.com>
9116
9117 * frame.h (frame_unwind_id): Declare.
9118 * frame.c (frame_unwind_id): New function.
9119 (get_prev_frame_1): New function.
9120 (frame_debug_got_null_frame): New function.
9121 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
9122 code proper to prev_frame, update description.
9123 * infrun.c (step_over_function): Use frame_unwind_id.
9124
c4557624
JB
91252004-04-31 J. Brobecker <brobecker@gnat.com>
9126
9127 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
9128 (hppa64_push_dummy_call): Likewise.
9129
3e6bb910
JB
91302004-03-30 Jim Blandy <jimb@redhat.com>
9131
9132 From Ulrich Weigand:
9133 * utils.c (query): Do not use a va_list variable multiple times.
9134
a2f23071
DJ
91352004-03-29 Daniel Jacobowitz <drow@mvista.com>
9136
9137 * Makefile.in (linux_nat_h): Update dependencies.
9138 * configure.in: Check for <gnu/libc-version.h>.
9139 * configure: Regenerate.
9140 * config.in: Regenerate.
9141 * linux-nat.h: Include "target.h". Add waitstatus field to
9142 struct lwp_info.
9143 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
9144 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
9145 to.
9146 (lin_lwp_handle_extended): New function. Handle clone events.
9147 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
9148 thread exit events.
9149 (child_wait): Handle clone events.
9150 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
9151 * linux-nat.c (linux_enable_event_reporting): Turn on
9152 PTRACE_O_TRACECLONE.
9153 (linux_handle_extended_wait): Handle clone events.
9154 * thread-db.c: Include <gnu/libc-version.h>.
9155 (struct private_thread_info): Add dying flag.
9156 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
9157 higher.
9158 (attach_thread): Update comments. Handle dying threads.
9159 (detach_thread): Set the dying flag.
9160 (check_event): Always call attach_thread.
9161
8d5f9dcb
DJ
91622004-03-29 Daniel Jacobowitz <drow@mvista.com>
9163
9164 * mips-tdep.c (mips_pdr_data): New.
9165 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
9166 (_initialize_mips_tdep): Initialize mips_pdr_data.
9167
66337bb1
CV
91682004-03-29 Corinna Vinschen <vinschen@redhat.com>
9169
9170 * minsyms.c (install_minimal_symbols): Move dropping leading
9171 char from linkage name from here...
9172 (prim_record_minimal_symbol_and_info): ...to here. Simplify
9173 test for "__gnu_compiled*" symbols.
9174
e802b915
JB
91752004-03-28 Jim Blandy <jimb@redhat.com>
9176
9177 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
9178 registers to temp register r0 and byte stores as prologue
9179 instructions.
9180
72b56458
AC
91812004-03-28 Andrew Cagney <cagney@redhat.com>
9182
9183 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
9184 arm*-*-*.
9185
0bfbda3b
SC
91862004-03-28 Stephane Carrez <stcarrez@nerim.fr>
9187
9188 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
9189 and switch the layout to force a display of register window.
9190
5a7225ed
JB
91912004-02-26 J. Brobecker <brobecker@gnat.com>
9192
9193 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
9194 of the INTEGER class.
9195
81a07a45
JB
91962004-03-26 Jim Blandy <jimb@redhat.com>
9197
9198 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
9199 bytes long on PPC GNU/Linux.
9200
8c691c7a
DC
92012004-03-26 David Carlton <carlton@kealia.com>
9202
9203 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
9204
103a0089
AC
92052004-03-25 Andrew Cagney <cagney@redhat.com>
9206
9207 * PROBLEMS: Add general section titles, remove references to
9208 specific releases.
9209
7a5ea0d4
DJ
92102004-03-25 Daniel Jacobowitz <drow@mvista.com>
9211
9212 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
9213 INT_REGISTER_SIZE.
9214 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
9215 FP_REGISTER_VIRTUAL_SIZE.
9216 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
9217 of DEPRECATED_REGISTER_RAW_SIZE.
9218 (arm_register_type): Add gdbarch argument.
9219 (arm_register_raw_size, arm_register_virtual_size): Delete.
9220 (arm_register_byte, arm_extract_return_value)
9221 (arm_store_return_value, arm_get_longjmp_target): Update references
9222 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
9223 (arm_gdbarch_init): Likewise. Don't set
9224 deprecated_register_raw_size, deprecated_register_virtual_size,
9225 deprecated_max_register_raw_size,
9226 deprecated_max_register_virtual_size, or
9227 deprecated_max_register_virtual_type. Do set register_type.
9228 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
9229 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
9230 (FP_REGISTER_VIRTUAL_SIZE): Delete.
9231 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
9232 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
9233 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
9234 INT_REGISTER_SIZE.
9235 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
9236 (remote_rdp_store_register): Likewise.
9237
5792a79b
DJ
92382004-03-24 Daniel Jacobowitz <drow@mvista.com>
9239
9240 * Makefile.in (mips-linux-tdep.o): Update dependencies.
9241 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
9242 to after osabi initialization.
9243 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
9244 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
9245 functions.
9246 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
9247 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
9248 variables.
9249 (mips_linux_init_abi): Append signal trampoline unwinders.
9250
1196bfda
AC
92512004-03-24 Andrew Cagney <cagney@redhat.com>
9252
9253 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
9254 * tramp-frame.c: Include "gdb_assert.h".
9255 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
9256 correct sizeof.
9257 (tramp_frame_append): Validate the tramp frame's instructions.
9258 * Makefile.in (tramp-frame.o): Update dependencies.
9259
4be282b4
AC
92602004-03-23 Andrew Cagney <cagney@redhat.com>
9261
9262 * trad-frame.h (trad_frame_set_reg_addr): Declare.
9263
69aec09b
AC
92642004-03-23 Andrew Cagney <cagney@redhat.com>
9265
9266 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
9267 Nasser as past testsuite/lib/ (and other) maintainers.
9268
63ed89b4
DJ
92692004-03-23 Daniel Jacobowitz <drow@mvista.com>
9270
9271 * infcmd.c (attach_command): Reread symbols if we already have
9272 an exec file.
9273
f3b36427
AC
92742004-03-23 Andrew Cagney <cagney@redhat.com>
9275
9276 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
9277
aa2a3f87
AC
92782004-03-23 Andrew Cagney <cagney@redhat.com>
9279
9280 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
9281 * gdbarch.h, gdbarch.c: Re-generate.
9282 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9283 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9284 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 9285 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 9286 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 9287 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
9288 (DEPRECATED_SIGTRAMP_START): Update.
9289 * blockframe.c (find_pc_sect_partial_function): Update.
9290 * arch-utils.c (legacy_pc_in_sigtramp): Update.
9291
00cac895
DJ
92922004-03-23 Daniel Jacobowitz <drow@mvista.com>
9293
9294 * remote.c (remote_open_1): Reopen the exec file and reread symbols
9295 if necessary.
9296
f561f026
AC
92972004-03-23 Andrew Cagney <cagney@redhat.com>
9298
9299 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
9300 predicate, deprecate.
9301 * gdbarch.h, gdbarch.c: Re-generate.
9302 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
9303 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
9304 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
9305 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
9306 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
9307 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
9308 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
9309 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
9310 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
9311 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
9312 * blockframe.c (find_pc_partial_function): Update.
9313 * breakpoint.c (bpstat_what): Update.
9314 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
9315 * frv-linux-tdep.c (frv_linux_init_abi): Update.
9316 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
9317 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
9318 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9319 * i386-linux-tdep.c (i386_linux_init_abi): Update.
9320 * i386-nto-tdep.c (i386nto_init_abi): Update.
9321 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
9322 * i386-tdep.c (i386_sigtramp_frame_sniffer)
9323 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
9324 * i386bsd-tdep.c (i386bsd_init_abi): Update.
9325 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9326 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9327 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
9328 * infrun.c (pc_in_sigtramp): Update.
9329 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
9330 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
9331 * mips-tdep.c (mips_gdbarch_init): Update.
9332 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
9333 * ppc-linux-tdep.c: Update comment.
9334 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
9335 * shnbsd-tdep.c (shnbsd_init_abi): Update.
9336 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
9337 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
9338 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
9339 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
9340 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
9341 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
9342 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
9343 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 9344
8050c72f
AC
93452004-03-23 Andrew Cagney <cagney@redhat.com>
9346
d2259dd3
AC
9347 * tramp-frame.h, tramp-frame.h: New files.
9348 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
9349 Update rules to include "tramp-frame.h" and "tramp-frame.c".
9350
8050c72f
AC
9351 * Makefile.in: Update all dependencies.
9352
0db9b4b7
AC
93532004-03-23 Andrew Cagney <cagney@redhat.com>
9354
9355 * Makefile.in (trad_frame_h): Add $(frame_h).
9356 * trad-frame.h: Update copyright. Include "frame.h".
9357 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
9358 (trad_frame_set_id, trad_frame_get_id): Declare.
9359 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
9360 * trad-frame.c: Update copyright.
9361 (struct trad_frame_cache): Define.
9362 (trad_frame_cache_zalloc): New function.
9363 (trad_frame_set_id, trad_frame_get_id): New functions.
9364 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 9365
8e645ae7
AC
93662004-03-22 Andrew Cagney <cagney@redhat.com>
9367
9368 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
9369 s390_pltstub_unwind_cache.
9370 (s390_stub_frame_unwind_cache): Rename
9371 s390_pltstub_frame_unwind_cache.
9372 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
9373 (s390_stub_frame_prev_register): Rename
9374 s390_pltstub_frame_prev_register.
9375 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
9376 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
9377
9378 From Ulrich Weigand:
9379 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
9380 pointer calls like PLT calls.
9381
34fcf120
DJ
93822004-03-22 Daniel Jacobowitz <drow@mvista.com>
9383
9384 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
9385 PC rather than the partial function start address. Use the start
9386 address to sanity check the found PDR.
9387
5b917078
DJ
93882004-03-22 Daniel Jacobowitz <drow@mvista.com>
9389
9390 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
9391 linux_handle_extended_wait.
9392
8adf9e78
AC
93932004-03-22 Andrew Cagney <cagney@redhat.com>
9394
c3122434
AC
9395 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
9396 function.
9397
8adf9e78
AC
9398 * frame.h (generic_pop_current_frame): Delete declaration.
9399 (deprecate_pop_dummy_frame): Deprecate
9400 generic_pop_dummy_frame.
9401 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
9402 (generic_pop_current_frame): Delete function.
9403 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
9404 generic_pop_current_frame.
9405 * v850-tdep.c (v850_pop_frame): Update.
9406 * mcore-tdep.c (mcore_pop_frame): Update.
9407 * sh64-tdep.c (sh64_pop_frame): Update.
9408 * h8300-tdep.c (h8300_pop_frame): Update.
9409
90ba813f
AC
94102004-03-22 Andrew Cagney <cagney@redhat.com>
9411
9412 * frame.h (deprecated_pc_in_call_dummy): Rename
9413 generic_pc_in_call_dummy.
9414 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
9415 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
9416 generic_pc_in_call_dummy.
9417 (pc_in_dummy_frame): Make static.
9418 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
9419 * gdbarch.h, gdbarch.c: Re-generate.
9420 * dummy-frame.c (dummy_frame_sniffer): Simplify.
9421 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
9422 (legacy_get_prev_frame): Ditto.
9423 * inferior.h: Delete reference to generic_pc_in_call_dummy in
9424 comment.
8718a420 9425
ca4bb888
AC
94262004-03-21 Andrew Cagney <cagney@redhat.com>
9427
244675f9
AC
9428 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
9429 declaration and out-of-date comment.
9430 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
9431 Delete function.
9432 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
9433 deprecated_pc_in_call_dummy.
9434
ca4bb888
AC
9435 * infrun.c (handle_inferior_event): For non legacy frames, use the
9436 frame ID and frame type to identify a signal trampoline. Update
9437 comments.
9438
1777c7b4
NW
94392004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
9440
9441 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
9442 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
9443
82417da5
AC
94442004-03-21 Andrew Cagney <cagney@redhat.com>
9445
9446 * frame-unwind.h: Update copyright.
9447 (struct frame_data): Add opaque declaration.
9448 (frame_sniffer_ftype): Declare.
9449 (struct frame_unwind): Add "unwind_data" and "sniffer".
9450 (frame_unwind_register_unwinder): Declare.
9451 (frame_unwind_find_by_frame): Add parameter "this_cache".
9452 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
9453 (legacy_get_prev_frame, legacy_get_prev_frame)
9454 (get_frame_type): Pass the prologue_cache to
9455 frame_unwind_find_by_frame.
9456 * frame-unwind.c (struct frame_unwind_table_entry): Add field
9457 "unwinder".
9458 (frame_unwind_register_unwinder): New function.
9459 (frame_unwind_find_by_frame): Handle an unwind sniffer.
9460
b2ba182e
PH
94612004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
9462
9463 * bcache.c (print_percentage): Use floating point to avoid
9464 incorrect results when portion*100 overflows.
9465
81332287
KB
94662004-03-19 Kevin Buettner <kevinb@redhat.com>
9467
9468 * ppc_tdep.h (ppc_linux_frame_saved_pc)
9469 (ppc_linux_init_extra_frame_info)
9470 (ppc_linux_frameless_function_invocation)
9471 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
9472 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
9473 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
9474 (rs6000_frame_chain): Delete declarations.
9475 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
9476 (ppc_linux_init_extra_frame_info)
9477 (ppc_linux_frameless_function_invocation)
9478 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
9479 (ppc_linux_init_abi): Remove registration of above deleted functions.
9480 * rs6000-tdep.c (rs6000_init_extra_frame_info)
9481 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
9482 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
9483 (rs6000_pop_frame, rs6000_frameless_function_invocation)
9484 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
9485 (rs6000_gdbarch_init): Remove registration of above deleted functions.
9486 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
9487 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
9488 frame management for all OSABIs.
9489
61a65099
KB
94902004-03-19 Andrew Cagney <cagney@redhat.com>
9491
9492 Committed by Kevin Buettner <kevinb@redhat.com>.
9493
9494 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
9495 Update copyright.
9496 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
9497 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
9498 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
9499 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
9500 unwinders. #ifdef legacy frame code.
9501 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
9502 "frame-base.h".
9503 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
9504 (struct rs6000_frame_cache, rs6000_frame_cache)
9505 (rs6000_frame_this_id, rs6000_frame_prev_register)
9506 (rs6000_frame_sniffer, rs6000_frame_unwind)
9507 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
9508 (rs6000_frame_base): Implement a traditional frame unwinder.
9509 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
9510 frame unwinder.
9511
88f7da05
KB
95122004-03-19 Kevin Buettner <kevinb@redhat.com>
9513
9514 * breakpoint.c (adjust_breakpoint_address): Don't adjust
9515 breakpoint address for watchpoints or the catch eventpoints.
9516 Add new paramter ``bptype''. Adjust all callers.
9517
f826dce1
AC
95182004-03-19 Andrew Cagney <cagney@redhat.com>
9519
33cb8b0f
AC
9520 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
9521
f826dce1
AC
9522 * PROBLEMS: Delete note that ARM does not use frame code, problem
9523 fixed.
9524
43b1ab88
AC
95252004-03-18 Andrew Cagney <cagney@redhat.com>
9526
292ab034
AC
9527 * stack.c (return_command): Delete code wrapped in #ifdef
9528 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
9529
43b1ab88
AC
9530 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
9531
dbfe4626
AC
95322004-03-18 Andrew Cagney <cagney@redhat.com>
9533
9534 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
9535 DEPRECATED_IN_SIGTRAMP.
9536 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9537 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
9538 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9539 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9540 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9541 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9542 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9543 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9544 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
9545 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
9546
0cad6aec
AC
95472004-03-18 Andrew Cagney <cagney@redhat.com>
9548
9549 * frame-base.c: Update copyright. Include "gdb_obstack.h".
9550 (struct frame_base_table_entry): Define.
9551 (struct frame_base_table): Re-implement as a linked list.
9552 (frame_base_init): Re-implement.
9553 (frame_base_table): Delete function.
9554 (append_predicate): Delete function.
9555 (frame_base_append_sniffer): Update.
9556 (frame_base_set_default): Update.
9557 (frame_base_find_by_frame): Update.
9558 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
9559 * Makefile.in (frame-base.o): Update dependencies.
9560
9982c2e7
AC
95612004-03-17 Andrew Cagney <cagney@redhat.com>
9562
9563 * frame.c (legacy_get_prev_frame): Pass correct frame to
9564 frame_unwind_find_by_frame.
9565
8dfe8985
DC
95662004-03-17 David Carlton <carlton@kealia.com>
9567
9568 * NEWS: Mention C++ nested types and namespaces
9569
ed47347a
MC
95702004-03-16 Michael Chastain <mec.gnu@mindspring.com>
9571
9572 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
9573 and "Regressions since gdb 5.3.". Add known regressions since
9574 gdb 6.0.
9575
90aeadfc
DC
95762004-03-16 David Carlton <carlton@kealia.com>
9577
9578 * dwarf2read.c (process_structure_scope): Process children even
9579 when we're a declaration.
9580
73912b9b
AC
95812004-03-16 Andrew Cagney <cagney@redhat.com>
9582
9583 * symtab.h (find_pc_sect_partial_function): Delete declaration.
9584 * blockframe.c (find_pc_partial_function)
9585 (find_pc_sect_partial_function): Merge into a single
9586 find_pc_partial_function.
9587
283accbc
MK
95882004-03-16 Mark Kettenis <kettenis@gnu.org>
9589
9590 * i386bsd-nat.c: s/regno/regnum/g.
9591 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
9592 FP0_REGNUM.
9593 (store_inferior_registers): Likewise.
9594
f5b1afdf
MK
95952004-03-16 Mark Kettenis <kettenis@gnu.org>
9596
9597 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
9598 of i387_fill_fsave.
9599 (store_inferior_registers): Call i387_collect_fsave and
9600 i387_collect_fxsave instead of i387_fill_fsave and
9601 i387_fill_fxsave.
9602
41fe5eb3
AC
96032004-03-15 Andrew Cagney <cagney@redhat.com>
9604
9605 * Makefile.in (frame-unwind.o): Update dependencies.
9606 * frame-unwind.c: Include "gdb_obstack.h".
9607 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
9608 parameter.
9609 (append_predicate): Delete function.
9610 (struct frame_unwind_table_entry): New structure.
9611 (struct frame_unwind_table): Replace "sniffer" with "head" and
9612 "tail".
9613 (frame_unwind_append_sniffer): Update.
9614 (frame_unwind_find_by_frame): Update.
9615 (_initialize_frame_unwind): Registe frame_unwind_init using
9616 gdbarch_data_register_pre_init.
9617
3f63813d
MK
96182004-03-15 Mark Kettenis <kettenis@gnu.org>
9619
9620 * i386bsd-nat.c: Update copyright year.
9621 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
9622 define unconditionally.
9623
3248c325 96242004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
9625
9626 * i387-tdep.h (i387_collect_fsave): New prototype.
9627 * i387-tdep.c (i387_collect_fsave): New function containing most
9628 of the code from i387_fill_fsave.
3248c325 9629 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 9630
871fbe6a
MK
96312004-03-15 Mark Kettenis <kettenis@gnu.org>
9632
9633 * i386-linux-tdep.c: Update copyright year.
9634 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
9635 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
9636 svr4_ilp32_link_map_offsets instead of
9637 i386_linux_svr4_fetch_link_map_offsets.
9638
8176b9b8
DC
96392004-03-15 David Carlton <carlton@kealia.com>
9640
9641 Fix for PR c++/1553:
9642 * dwarf2read.c (read_structure_type): Determine type name by
9643 calling determine_class_name.
9644 (determine_class_name): New.
9645 (determine_prefix): Look at TYPE_TAG_NAME and call
9646 determine_class_name when appropriate.
9647 (determine_prefix_aux, class_name): Delete.
9d58e29d 9648 (read_namespace): Set die->type.
8176b9b8 9649
fe8bf7d7
KB
96502004-03-15 Kevin Buettner <kevinb@redhat.com>
9651
9652 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
9653 unused macro definition. The definition in target.h (or perhaps
9654 elsewhere) takes precedence.
9655
ed6edd9b
AC
96562004-03-15 Andrew Cagney <cagney@redhat.com>
9657
f9be684a
AC
9658 * ppc-tdep.h: Update copyright.
9659 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
9660 function signatures to match "regsets.h".
9661 * ppc-linux-tdep.c: Include "regset.h".
9662 (ELF_GREGSET_SIZE): Delete.
9663 (right_supply_register): New function.
9664 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
9665 using right_supply_register.
9666 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
9667 functions.
9668 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
9669 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
9670 (_initialize_ppc_linux_tdep): Do not register
9671 ppc_linux_regset_core_fns.
9672 (ppc_linux_regset_from_core_section): Replace
9673 fetch_core_registers.
9674 (ppc_linux_regset_core_fns): Delete.
9675 * ppc-linux-nat.c: (right_fill_reg): New function.
9676 (supply_gregset): Update call to ppc_linux_supply_gregset.
9677 (fill_gregset): Clear the register set, use right_fill_reg.
9678 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
9679 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
9680
ed6edd9b
AC
9681 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
9682 unsigned.
9683
030f20e1
AC
96842004-03-15 Andrew Cagney <cagney@redhat.com>
9685
9686 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
9687 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
9688 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
9689 and register_gdbarch_data.
9690 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
9691 (struct gdbarch_data): Replace "init" by "pre_init" and
9692 "post_init".
9693 * gdbarch.h, gdbarch.c: Re-generate.
9694 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
9695 with"obstack", use OBSTACK_ZALLOC.
9696 (dwarf2_frame_ops): Delete.
9697 (dwarf2_frame_set_init_reg): Use gdbarch_data.
9698 (dwarf2_frame_init_reg): Use gdbarch_data.
9699 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 9700 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
9701 (_initialize_svr4_solib): Update.
9702 * user-regs.c (_initialize_user_regs): Update.
9703 * reggroups.c (_initialize_reggroup): Update.
9704 * regcache.c (_initialize_regcache): Update.
9705 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
9706 * libunwind-frame.c (_initialize_libunwind_frame): Update.
9707 * gnu-v3-abi.c (init_gnuv3_ops): Update.
9708 * frame-unwind.c (_initialize_frame_unwind): Update.
9709 * frame-base.c (_initialize_frame_base): Update.
9710 * user-regs.c (user_reg_add): Update.
9711 * reggroups.c (reggroup_add): Update.
9712 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
9713 * libunwind-frame.c (libunwind_frame_set_descr): Update.
9714 * frame-unwind.c (frame_unwind_append_sniffer): Update.
9715 * frame-base.c (frame_base_table): Update.
9716 * remote.c (_initialize_remote): Update.
9717 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 9718
3111a3fc
AC
97192004-03-15 Andrew Cagney <cagney@redhat.com>
9720
9721 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
9722
5ecb7103
KB
97232004-03-15 Kevin Buettner <kevinb@redhat.com>
9724
9725 * Makefile.in (frv-linux-tdep.o): Add dependencies.
9726 * frv-linux-tdep.c: New file.
9727 * frv-tdep.c (struct gdbarch_tdep): Add new field
9728 ``sigcontext_reg_addr''.
9729 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
9730 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
9731 (frv_sigramp_frame_sniffer): New functions.
9732 (frv_sigtramp_frame_unwind): New static global.
9733 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
9734 sniffers.
9735 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
9736 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
9737
1ccda5e9
KB
97382004-03-15 Kevin Buettner <kevinb@redhat.com>
9739
9740 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
9741 but not via a call to error(), when unable to read memory.
9742
b375a0a5
KB
97432004-03-15 Kevin Buettner <kevinb@redhat.com>
9744
9745 * frv-tdep.c (frv_call_dummy_words): Delete.
9746 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
9747
4fdf6121
AC
97482004-03-15 Andrew Cagney <cagney@redhat.com>
9749
9750 * infrun.c (handle_step_into_function, step_over_function): Only
9751 update and use STEP_FRAME_ID when the system is using legacy
9752 frames. Update comments.
9753
34021503
MK
97542004-03-14 Mark Kettenis <kettenis@gnu.org>
9755
187e21d1
MK
9756 * amd64-linux-tdep.h: Remove file.
9757 * amd64-linux-tdep.c: Don't include "inferior.h" and
9758 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
9759 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
9760 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
9761 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
9762 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
9763 macros.
9764 (user_to_gdb_regmap): Remove variable.
9765 (amd64_linux_gregset_reg_offset): New variable.
9766 (amd64_core_fns): Remove variable.
9767 (fetch_core_registers): Remove function.
9768 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
9769 functions.
9770 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
9771 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
9772 * Makefile.in (amd64_linux_tdep_h): Remove.
9773 (amd64-linux-nat.o): Update dependencies.
9774 (amd64-linux-tdep.o): Update dependencies.
9775
99679982
MK
9776 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
9777 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
9778 functions.
9779 (fetch_inferior_registers, store_inferior_registers): Rewrite.
9780
34021503
MK
9781 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
9782 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
9783
134d01f1
DJ
97842004-03-14 Daniel Jacobowitz <drow@mvista.com>
9785
9786 * dwarf2read.c (read_structure_type): Rename from
8718a420 9787 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
9788 Return immediately if die->type is set. Call read_type_die before
9789 dwarf2_add_member_fn.
9790 (process_structure_scope): New function.
9791 (read_enumeration_type, process_enumeration_scope): New functions,
9792 broken out from read_enumeration. Don't create the enumeration
9793 type if it has already been created.
9794 (read_enumeration): Removed.
9795 (process_die): Call read_structure_type, process_structure_scope,
9796 read_enumeration_type, and process_enumeration_scope. Just call
9797 new_symbol for base and subrange types. Add a comment about other
9798 type dies.
9799 (read_type_die): Call read_enumeration_type.
9800 (add_partial_structure, new_symbol): Update comments.
9801
65760afb
SC
98022004-03-13 Stephane Carrez <stcarrez@nerim.fr>
9803
9804 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
9805
10f59415
SC
98062004-03-13 Stephane Carrez <stcarrez@nerim.fr>
9807
9808 * tui/tui-win.h (tui_get_cmd_list): Declare.
9809 * tui/tui-win.c (tui_command): New function.
9810 (tui_get_cmd_list): New function.
9811 (_initialize_tui_win): Moved initialization of tui command in
9812 tui_get_cmd_list.
9813
9814 * tui/tui-data.c (init_content_element): Setup new data members.
9815 (init_win_info): Likewise.
9816 (free_content_elements): Free it.
9817 * tui/tui-data.h (struct tui_data_element): Store the register
9818 content to print.
9819 (struct tui_data_info): Keep the current register group.
9820
9821 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
9822
9823 * tui/tui-regs.h (tui_show_registers): Update prototype.
9824 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
9825 (tui_resize_all): No need to calculate anything for register window.
9826 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
9827 (tui_set_register_element, tui_set_general_regs_content): Remove.
9828 (tui_set_special_regs_content): Remove.
9829 (tui_set_general_and_special_regs_content): Remove.
9830 (tui_set_float_regs_content): Remove.
9831 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
9832 (tui_set_regs_content): Remove.
9833 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
9834 (tui_v_show_registers_command_support): Remove.
9835 (tui_show_registers): Use a reggroup to specify the registers to show.
9836 (tui_show_register_group): New function.
9837 (tui_display_registers_from): Compute the layout of register window
9838 and refresh with new API; be sure to delete old register windows.
9839 (tui_check_register_values): Update to use tui_get_register and
9840 tui_display_data.
9841 (tui_display_register): Just refresh the register window part.
9842 (tui_register_format): Format registers and save in tui_data_element.
9843 (tui_get_register): New to combine tui_reg_value_has_changed and
9844 tui_get_register_raw_value; fix to use the new gdb API.
9845 (tui_show_float_command): Renamed tui_reg_float_command.
9846 (tui_show_general_command): Renamed tui_reg_general_command.
9847 (tui_show_special_command): Renamed tui_reg_system_command.
9848 (_initialize_tui_regs): Remove unused commands.
9849
c3364ea4
MK
98502004-03-13 Mark Kettenis <kettenis@gnu.org>
9851
27d1e716
MK
9852 * NEWS (New native configurations): Mention OpenBSD/amd64.
9853
c3364ea4
MK
9854 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
9855 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
9856 Remove defines.
9857 * config/i386/nm-fbsd64.h: Likewise.
9858 * config/i386/nm-obsd.h: Likewise.
9859 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
9860 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
9861
b2d6d697
KB
98622004-03-12 Kevin Buettner <kevinb@redhat.com>
9863
9864 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
9865 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
9866 New constants.
9867
76e43199
KB
9868 From Richard Sandiford <rsandifo@redhat.com>:
9869 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
9870
34ce532e
KB
98712004-03-12 Kevin Buettner <kevinb@redhat.com>
9872
9873 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
9874 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
9875 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
9876 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
9877 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
9878 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
9879 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
9880 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
9881 definitions from frv-tdep.c to frv-tdep.h.
9882
c4d10515
KB
98832004-03-12 Kevin Buettner <kevinb@redhat.com>
9884
9885 Add shared library support for FR-V FDPIC ABI:
9886 * Makefile.in (solib-frv.o): Add dependencies.
9887 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
9888 New functions.
9889 (frv_push_dummy_call): Add support for FDPIC ABI.
9890 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
9891 for FDPIC ABI.
9892 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
9893 (frv_fdpic_find_canonical_descriptor): Declare.
9894 * solib-frv.c: New file.
9895 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
9896 * config/frv/tm-frv.h (solib.h): Include.
9897
ed1bd989
KB
98982004-03-12 Kevin Buettner <kevinb@redhat.com>
9899
9900 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
9901 (frv-tdep.o): Update dependencies.
9902 * frv-tdep.h: New file.
9903 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
9904 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
9905 constants.
9906 (struct gdbarch_tdep): Add new member ``frv_abi''.
9907 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
9908 functions.
9909 (new_variant): Set ``frv_abi'' field.
9910 (gdb_arch_init): Detect FDPIC executables.
9911
82b38f72
MK
99122004-03-12 Mark Kettenis <kettenis@gnu.org>
9913
9914 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
9915 wrapper.
9916
db1ea9ba
AC
99172004-03-11 Andrew Cagney <cagney@redhat.com>
9918
9919 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
9920
f8766ec1
KB
99212004-03-11 Kevin Buettner <kevinb@redhat.com>
9922
9923 * solist.h (master_so_list): New function.
9924 * solib.c (master_so_list): Likewise.
9925 * solib-svr4.c (enable_break): Iterate over so_list entries
9926 obtained from master list instead of entries obtained directly
9927 via svr4_current_sos().
9928
523f6a27
BE
99292004-03-10 Ben Elliston <bje@gnu.org>
9930
9931 * MAINTAINERS: Update my mail address.
9932
37814c18
KI
99332004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
9934
9935 * remote-m32r-sdi.c: Support hardware watchpoint.
9936
8b9740d8
DJ
99372004-03-09 Daniel Jacobowitz <drow@mvista.com>
9938
9939 * user-regs.c: Update copyright years.
9940 (struct user_regs): Rename to gdb_user_regs.
9941 (append_user_reg, builtin_user_regs, user_regs_init)
9942 (user_reg_add, user_reg_map_name_to_regnum)
9943 (usernum_to_user_reg): Update.
9944
4bb7a0a7
DJ
99452004-03-09 Daniel Jacobowitz <drow@mvista.com>
9946
9947 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
9948 (skip_children): New functions.
9949 (locate_pdi_sibling): Call skip_children.
9950
44e1a9eb
DJ
99512004-03-09 Daniel Jacobowitz <drow@mvista.com>
9952
9953 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
9954 * gdbtypes.c (check_typedef): Update comments.
9955
f3dd6933
DJ
99562004-03-09 Daniel Jacobowitz <drow@mvista.com>
9957
9958 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
9959 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
9960 pointer. Update comment about comp_unit_head.
9961 (struct abbrev_info): Shorten two int flags.
9962 (dwarf_alloc_abbrev): Take a CU argument.
9963 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
9964 each time through the loop. Update cleanup argument.
9965 (psymtab_to_symtab_1): Update cleanup call.
9966 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
9967 abbrev_obstack.
9968 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
9969 Just call obstack_free and clear the pointer.
9970
b40c7d58
DJ
99712004-03-09 Daniel Jacobowitz <drow@mvista.com>
9972
9973 * infrun.c (handle_inferior_event): Remove short-circuit code for
9974 events in a different thread.
9975
333dabeb
DJ
99762004-03-09 Daniel Jacobowitz <drow@mvista.com>
9977
9978 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
9979 print the whole transfer.
9980 (initialize_targets): Update description of "set debug target".
9981
aa17d93e
DJ
99822004-03-09 Daniel Jacobowitz <drow@mvista.com>
9983
9984 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
9985
0b71f08f
NW
99862004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
9987
9988 * MAINTAINERS (write after approval): Add myself.
9989
3930f270
CV
99902004-03-08 Corinna Vinschen <vinschen@redhat.com>
9991
9992 * sh-tdep.c (sh_print_registers_info): Use for loop.
9993 Don't skip multiple registers when a float register is encountered.
9994
a2b4a96c
CV
99952004-03-08 Corinna Vinschen <vinschen@redhat.com>
9996
9997 Fix PR tdep/1291.
9998 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
9999 to official SH documentation.
10000
f15a4bc0
AC
100012004-03-07 Andrew Cagney <cagney@redhat.com>
10002
10003 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
10004 unused function.
10005
9498281f
DJ
100062004-03-07 Daniel Jacobowitz <drow@mvista.com>
10007
10008 * arm-tdep.c (thumb_get_next_pc): Handle BX.
10009 (arm_get_next_pc): Handle BX and BLX.
10010
449e1137
AC
100112004-03-07 Andrew Cagney <cagney@redhat.com>
10012
eded0a31
AC
10013 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
10014 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
10015 HPPA_SP_REGNUM.
10016 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
10017 (hppa_target_read_fp): Delete.
10018 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
10019 register_virtual_size, max_register_raw_size,
10020 max_register_virtual_size, register_byte, register_size,
10021 target_read_fp, fp_regnum, and register_bytes. Set register_type
10022 instead of register_virtual_type.
10023 (hppa32_register_type, hppa64_register_type): Replace
10024 hppa32_register_virtual_type and hppa64_register_virtual_type.
10025 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
10026 (HPPA_FP_REGNUM): Define.
10027
f5f907e2
AC
10028 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
10029
69b4bbe4
AC
10030 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
10031 (pa_do_registers_info): Delete.
10032 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 10033 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 10034 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 10035
78161e48
AC
10036 * infcall.c (legacy_push_dummy_code): Delete #ifdef
10037 GDB_TARGET_IS_HPPA code.
10038 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 10039 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
10040 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
10041 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
10042 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
10043 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
10044 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 10045 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
10046 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
10047 (hppa_frameless_function_invocation, hppa64_store_return_value)
10048 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 10049 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 10050 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 10051 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
10052 (find_proc_framesize, deposit_21, restore_pc_queue)
10053 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 10054 (rp_saved, pc_in_linker_stub): Delete.
78161e48 10055
782eae8b
AC
10056 Unconditionally enable 64-bit frame and ABI code.
10057 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
10058 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
10059 push_dummy_frame, fix_call_dummy, push_arguments,
10060 call_dummy_location, extract_return_value, use_struct_convention,
10061 store_return_value, store_struct_return, saved_pc_after_call,
10062 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
10063 frame_chain, frame_chain_valid, frameless_function_invocation,
10064 frame_saved_pc, and pop_frame.
78161e48 10065
449e1137
AC
10066 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
10067 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
10068 (hppa_gdbarch_init): Do not set PC_REGNUM.
10069
12507572
MK
100702004-03-06 Mark Kettenis <kettenis@gnu.org>
10071
10072 * config/alpha/tm-fbsd.h: Remove file.
10073 * config/alpha/fbsd.mt: Tweak comment.
10074 (TM_FILE): Set to tm-alpha.h.
10075
c107cc1b
AC
100762004-03-05 Andrew Cagney <cagney@redhat.com>
10077
10078 * infrun.c (step_over_function): When non-legacy code, and no
10079 step_frame_id, use the unwinder to get the caller's frame ID.
10080
f2e7c15d
MK
100812004-03-05 Mark Kettenis <kettenis@gnu.org>
10082
8b0c3633
MK
10083 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
10084 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
10085 bfd_arch_unknown. Adjust comment.
10086
f2e7c15d
MK
10087 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
10088 * i386obsd-tdep.c: Correct spelling in comment.
10089 * i386nbsd-tdep.c: Correct spelling in comment.
10090 * sparc-tdep.c: Correct spelling in comments.
10091
1198ecbe
DC
100922004-03-05 David Carlton <carlton@kealia.com>
10093
10094 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
10095 bug.
10096
9eb42ed1
MK
100972004-03-05 Mark Kettenis <kettenis@gnu.org>
10098
10099 * sparc-tdep.c: Fix typo in comment.
10100
52b5e991
JB
101012004-03-04 J. Brobecker <brobecker@gnat.com>
10102
10103 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
10104
d8151005
DJ
101052004-03-04 Daniel Jacobowitz <drow@mvista.com>
10106
10107 * dwarf2read.c: Add comment describing memory lifetimes.
10108 (struct dwarf2_pinfo): Update comment.
10109 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
10110 (read_enumeration, new_symbol): Don't use obsavestring.
10111
cbeae229
MK
101122004-03-04 Mark Kettenis <kettenis@gnu.org>
10113
722d18c2
MK
10114 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
10115 instead of amd64_fill_fxsave.
10116 * amd64bsd-nat.c (store_inferior_registers): Likewise.
10117 * amd64fbsd-nat.c (fill_fpregset): Likewise.
10118
cbeae229
MK
10119 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
10120 Reorganize code a bit.
10121
b4206d25
OF
101222004-03-04 Orjan Friberg <orjanf@axis.com>
10123
10124 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
10125 when the frame pointer is pushed. Don't set the frame pointer's
10126 address on the stack unless it's actually located there.
b4206d25
OF
10127 Set the SRP's address on the stack correctly when the PC is still in
10128 the prologue.
10129 (cris_return_value): New function.
10130 (cris_gdbarch_init): Clear deprecated store_return_value,
10131 extract_return_value.
10132
49b0b195
JB
101332004-03-02 Jim Blandy <jimb@redhat.com>
10134
10135 * stabsread.c (reg_value_complaint): The maximum register number
10136 is one less than the number of registers.
10137
e9ff708b
AC
101382004-03-02 Andrew Cagney <cagney@redhat.com>
10139
10140 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
10141 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
10142 trailing comma and redundant assignment of I386_ST0_REGNUM.
10143 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
10144 32-bit segment registers.
10145
d4715e41
AC
101462004-03-01 Andrew Cagney <cagney@redhat.com>
10147
10148 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
10149 use frame_relative_level and get_next_frame.
10150
3ce2bf18
AC
101512004-02-29 Andrew Cagney <cagney@redhat.com>
10152
10153 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
10154 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
10155 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
10156 Delete macro.
10157
2da6aac3
DJ
101582004-02-29 Daniel Jacobowitz <drow@mvista.com>
10159
10160 * inflow.c (terminal_inferior): Don't give up the terminal if we
10161 previously couldn't get the inferior's terminal state.
10162
6ba34a8d
DJ
101632004-02-29 Daniel Jacobowitz <drow@mvista.com>
10164
10165 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
10166 PC_REGNUM.
10167
faae5abe
AC
101682004-02-28 Andrew Cagney <cagney@redhat.com>
10169
10170 * NEWS: Refer to GDB 6.1.
10171 * README: Refer to GDB 6.1.
10172 * PROBLEMS: Refer to GDB 6.1.
10173
2227a3c5
DJ
101742004-02-28 Daniel Jacobowitz <drow@mvista.com>
10175
10176 * thread-db.c (disable_thread_signals): Remove unused function.
10177
80571bff
MK
101782004-02-28 Mark Kettenis <kettenis@gnu.org>
10179
041bd74b
MK
10180 * amd64-nat.c: Include "gdb_string.h".
10181 (amd64_collect_native_gregset): Zero-extend the 32-bit
10182 general-purpose registers and %eip.
10183
3c017e40
MK
10184 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
10185 * amd64-tdep.c (amd64_collect_fxsave): New function.
10186 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
10187
80571bff
MK
10188 * i387-tdep.h: Update copyright year.
10189 (i387_collect_fxsave): New prototype.
10190 * i387-tdep.c: Update copyright year.
10191 (i387_collect_fxsave): New function containing most of the code
10192 from i387_fill_fxsave.
10193 (i387_fill_fxsave): Call i387_collect_fxsave.
10194
50d71875
AC
101952004-02-28 Andrew Cagney <cagney@redhat.com>
10196
10197 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
10198 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
10199
4a28816e
MK
102002004-02-28 Mark Kettenis <kettenis@gnu.org>
10201
10202 * amd64-tdep.c (amd64_frame_cache): Fix comment.
10203
dbda9972
AC
102042004-02-28 Andrew Cagney <cagney@redhat.com>
10205
10206 * utils.c: Use "", instead of <>, to include readline.
10207 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
10208 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
10209 * source.c, solib.c, exec.c, event-top.c: Ditto.
10210 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
10211 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
10212 * Makefile.in: Update all dependencies.
10213 (readline_tilde_h, readline_history_h): Define.
10214 (readline_headers): Delete.
10215
83277a99
MK
102162004-02-28 Mark Kettenis <kettenis@gnu.org>
10217
91ae4303
MK
10218 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
10219 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
10220 "config/i386/tm-lx64.h".
10221
83277a99
MK
10222 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
10223 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
10224 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
10225
6e1d7d6c
AC
102262004-02-28 Andrew Cagney <cagney@redhat.com>
10227
ecc9ac84
AC
10228 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
10229
6e1d7d6c
AC
10230 * breakpoint.c (_initialize_breakpoint): Use
10231 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
10232 Add help to show command.
10233
9671aeef
MK
102342004-02-28 Mark Kettenis <kettenis@gnu.org>
10235
7fa2737c
MK
10236 * i386-nat.c: Reformat to be closer to coding standards.
10237 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
10238 `retval'. Make variables `align' and `size' local to while-loop.
10239 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
10240 (_initialize_i386_nat): New prototype.
10241
9671aeef
MK
10242 * tui/tui.c: Include <readline/readline.h> instead of
10243 "readline/readline.h". Include it after <term.h> and
10244 "gdb_curses.h".
10245
fca7aa43
AC
102462004-02-27 Andrew Cagney <cagney@redhat.com>
10247
412275d5
AC
10248 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
10249 the new frame unwind code.
10250 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
10251 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
10252 PCOQ_HEAD_REGNUM.
10253
fca7aa43
AC
10254 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
10255 "return_value" and "push_dummy_call".
10256 (hppa32_use_struct_convention): Delete unused function.
10257 (hppa32_store_return_value): Delete unused function.
10258 (hppa32_extract_return_value): Delete unused function.
10259 (hppa32_stack_align): Delete function.
10260
e6a8a7d2
EZ
102612004-02-27 Eli Zaretskii <eliz@elta.co.il>
10262
10263 * coffread.c (enter_linenos): Don't let rawptr reference memory
10264 outside linetab[]'s limits.
10265
1797a8f6
AC
102662004-02-27 Andrew Cagney <cagney@redhat.com>
10267
10268 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
10269 inferior stack space - the stack needs to grow upwards.
10270 (hppa32_frame_align): New function.
10271 (hppa64_frame_align): Replace hppa_frame_align.
10272 (hppa_gdbarch_init): Update.
10273
2e4b5889
OF
102742004-02-26 Orjan Friberg <orjanf@axis.com>
10275
10276 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
10277 (dwarf2-frame.h): Include.
10278 (enum cris_regnums): New enum CRIS_FP_REGNUM.
10279 Remove static variables related to ABI setting.
10280 (struct gdbarch_tdep): Remove cris_abi member.
10281 (struct frame_extra_info): Remove.
10282 (cris_unwind_cache, stack_item): New structs.
10283 (cris_frame_unwind, cris_frame_base): New variables.
10284 (push_stack_item, pop_stack_item)
10285 (cris_frame_unwind_cache, cris_frame_this_id)
10286 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
10287 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
10288 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
10289 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
10290 (cris_reg_struct_has_addr): New functions.
10291 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 10292 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
10293 (cris_store_struct_return, cris_frameless_function_invocation)
10294 (cris_pop_frame, cris_skip_prologue_main)
10295 (cris_abi_original_store_return_value)
10296 (cris_abi_v2_store_return_value)
10297 (cris_abi_original_extract_return_value)
10298 (cris_abi_v2_extract_return_value)
10299 (cris_abi_original_reg_struct_has_addr)
10300 (cris_abi_v2_reg_struct_has_addr)
10301 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
10302 (cris_push_return_address, cris_abi_update): Remove.
10303 (_initialize_cris_tdep): Remove ABI command.
10304 (cris_dump_tdep): Ditto.
8718a420 10305 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
10306 Set store_return_value, extract_return_value, push_dummy_code,
10307 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
10308 frame_unwind_append_sniffer, frame_base_set_default.
10309 Clear deprecated init_frame_pc, push_arguments, store_return_value,
10310 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
10311 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 10312 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
10313 init_extra_frame_info, frameless_function_invocation, frame_chain,
10314 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
10315 dummy_write_sp.
8718a420 10316
6b9acc27
JJ
103172004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10318
10319 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
10320 * valprint.c (print_hex_chars): Change from static to external.
10321 (print_char_chars): New function.
10322 * printcmd.c (print_scalar_formatted): For integer and enum types
10323 that are longer than LONGEST, perform processing via appropriate
10324 print_*_chars routines.
10325
a431654a
AC
103262004-02-26 Andrew Cagney <cagney@redhat.com>
10327
10328 * Makefile.in: Update dependencies.
10329 Changes from Ulrich Weigand,
10330 * s390-tdep.c: Include "dwarf2-frame.h".
10331 (s390_dwarf2_frame_init_reg): New function.
10332 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
10333 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
10334
fa8d40ab
JJ
103352004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10336
10337 * breakpoint.c (pending_break_support): New setting variable.
10338 (break_command_1): Account for pending_break_support setting
10339 when creating pending breakpoints.
10340 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
10341 (_initialize_breakpoint): Add "set breakpoint pending" and
10342 "show breakpoint pending" commands.
10343
0dcd613f
AC
103442004-02-26 Andrew Cagney <cagney@redhat.com>
10345
10346 Fix PR i18n/1570.
10347 * charset.c (backslashable, backslashed, represented): Remove 'e'
10348 from list of escaped characters, not part of ISO-C.
10349
479272a3
JB
103502004-02-25 J. Brobecker <brobecker@gnat.com>
10351
10352 From Peter Schauer <schauer@pdf.de>:
10353 * tui/tui.c: Move system header includes after local includes.
10354 Fixes a build failure on solaris systems.
10355
7613d933
JB
103562004-02-25 J. Brobecker <brobecker@gnat.com>
10357
10358 * configure.in: Refine the previous change.
10359 * configure: Regenerate.
10360
9c1488cb
MK
103612004-02-25 Mark Kettenis <kettenis@gnu.org>
10362
10363 * amd64-tdep.h: Renamed from x86-64-tdep.h.
10364 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
10365 "amd64-tdep.h" instead of "x86-64-tdep.h".
10366 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10367 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
10368 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
10369 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10370 and "x86-64-tdep.c".
10371 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
10372 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10373 and "x86-64-tdep.c".
10374 * amd64bsd-nat.c: Update copyright year.
10375 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10376 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
10377 "x86-64-tdep.h".
10378 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
10379 "x86-64-tdep.h".
10380 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
10381 "x86-64-tdep.h".
10382 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
10383 "x86-64-tdep.h".
10384 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
10385 "x86-64-tdep.h".
10386 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
10387 "x86-64-tdep.h".
8718a420 10388 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
10389 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
10390 * Makefile.in (amd64_linux_tdep_h): Renamed from
10391 x86_64_linux_tdep_h.
10392 (amd64_tdep_h): Renamed from x86_64_tdep_h.
10393 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
10394 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
10395 (amd64obsd-tdep.o): Update dependencies.
10396 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
10397 dependencies.
10398 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
10399 dependencies.
10400 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
10401 amd64-linux-nat.c amd64-linux-tdep.c.
10402 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
10403 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
10404 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
10405 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
10406 amd64-tdep.o and amd64-linux-tdep.o.
10407 (TM_FILE): Set to tm-linux64.h.
10408 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
10409 (NAT_FILE): Set to nm-linux64.h.
10410 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
10411 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10412 amd64-tdep.o.
10413 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10414 amd64-tdep.o.
10415 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10416 amd64-tdep.o.
10417
4b8dad4a
RM
104182004-02-25 Roland McGrath <roland@redhat.com>
10419
10420 * remote.c (remote_protocol_qPart_auxv): New variable.
10421 (init_all_packet_configs): Initialize it.
10422 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
10423 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
10424 (show_remote_cmd): Call it.
10425 (_initialize_remote): Initialize commands.
10426 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
10427 service TARGET_OBJECT_AUXV requests.
10428
66745969
JB
104292004-02-25 J. Brobecker <brobecker@gnat.com>
10430
10431 * configure.in: Make sure that the wborder function is available.
10432 Otherwise, search for it in the cur_colr library.
10433 * configure: Regenerate.
10434
79508e1e
AC
104352004-02-25 Andrew Cagney <cagney@redhat.com>
10436
10437 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
10438
571ee600
MK
104392004-02-25 Mark Kettenis <kettenis@gnu.org>
10440
10441 * config/i386/tm-x86-64linux.h: Tweak comments.
10442
2b1b322f 104432004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
10444
10445 * MAINTAINERS: Add self to write-after-approval list.
10446
4d2acc65
AC
104472004-02-25 Andrew Cagney <cagney@redhat.com>
10448
4b8dad4a 10449 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
10450 * cli/cli-script.c (execute_control_command): Unconditionally
10451 install a cleanup. Default "ret" to "invalid_control". Use
10452 "break" instead of "return" to escape from the switch.
10453
4cfcaf21
JB
104542004-02-24 J. Brobecker <brobecker@gnat.com>
10455
10456 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
10457 with the lines macro defined in term.h on AiX.
10458 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
10459 a collision with the label_width macro defined in term.h on AiX.
10460
54a5c8d8
KB
104612004-02-23 David Mosberger <davidm@hpl.hp.com>
10462
10463 Committed by Kevin Buettner <kevinb@redhat.com>.
10464
10465 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
10466 * ia64-tdep.c (ia64_write_pc): Make it a global function.
10467 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
10468 instead of ia64_write_pc().
10469 * ia64-linux-tdep.c (regcache.h): Include.
10470 (ia64_linux_write_pc): New function.
4b8dad4a 10471
8a1dac83
RM
104722004-02-23 Roland McGrath <roland@redhat.com>
10473
10474 * auxv.c (info_auxv_command): Fix typos in error messages.
10475
90f90721
MK
104762004-02-23 Mark Kettenis <kettenis@gnu.org>
10477
8a1dac83 10478 * x86-64-tdep.h: Tweak comment.
90f90721
MK
10479 (enum amd64_regnum): New.
10480 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
10481 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
10482 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
10483 (X86_64_XMM1_REGNUM): Removed.
10484 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
10485 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
10486 prototypes for renamed functions.
10487 * x86-64-tdep.c: Fix typo.
10488 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
10489 register numbers.
10490 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
10491 Use constants from `enum amd64_regnum' for register numbers.
10492 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
10493 (amd64_analyze_prologue, amd64_frame_cache,
10494 amd64_sigtramp_frame_cache): Use constants from `enum
10495 amd64_regnum' for register numbers.
10496 (amd64_supply_fpregset): Adjust for renamed functions.
10497 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
10498 `enum amd64_regnum' for register numbers.
10499 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
10500 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
10501 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
10502 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
10503 (amd64_linux_fill_gregset): Adjust for renamed macros.
10504 (fetch_core_registers): Adjust for renamed functions.
10505 (amd64_linux_init_abi): Adjust for renamed functions.
10506 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
10507 renamed functions.
10508 * amd64-nat.c: Adjust for renamed macros.
10509 * amd64bsd-nat.c (fetch_inferior_registers)
10510 (store_inferior_registers): Use constants from `enum amd64_regnum'
10511 for register numbers. Adjust for renamed variables.
10512 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
10513 renamed variables.
10514 (_initialize_amd64fbsd_nat): Use constants from `enum
10515 amd64_regnum' for register numbers.
10516 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
10517 `enum amd64_regnum' for register numbers.
10518 (amd64fbsd_init_abi): Adjust for renamed functions.
10519 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
10520 `enum amd64_regnum' for register numbers.
10521 (amd64nbsd_init_abi): Adjust for renamed functions.
10522 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
10523 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
10524 `enum amd64_regnum' for register numbers.
10525 (amd64obsd_init_abi): Adjust for renamed functions.
10526 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
10527
d5479188
JJ
105282004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10529
10530 * breakpoint.c (print_one_breakpoint): Do not output spaces
10531 after printing <PENDING> for a pending breakpoint.
10532
81cb7cc9
JJ
105332004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10534
10535 * printcmd.c (print_scalar_formatted): Initialize val_long
10536 to remove compiler warning message.
10537
cbdeadca
JJ
105382004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10539
10540 * defs.h (nquery, yquery): New prototypes.
10541 * breakpoint.c (break_command_1): Use new nquery interface.
10542 * utils.c (defaulted_query, nquery, yquery): New functions.
10543
da6bab63
AC
105442004-02-23 Andrew Cagney <cagney@redhat.com>
10545
2f690297
AC
10546 * hppa-tdep.c (hppa_frame_align): New function.
10547 (hppa32_push_dummy_call): New function.
10548 (hppa64_push_dummy_call): New function.
10549 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
10550 disabled.
8a1dac83 10551
da6bab63
AC
10552 * infcall.c (legacy_push_dummy_code): Don't call deprecated
10553 FIX_CALL_DUMMY when push_dummy_call is available.
10554 (call_function_by_hand, push_dummy_code): Ditto.
10555
abf9b42d
AC
105562004-02-22 Andrew Cagney <cagney@redhat.com>
10557
10558 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
10559 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
10560 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
10561 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
10562 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
10563 call_dummy_location to ON_STACK.
10564
10fc94a4
MK
105652004-02-22 Mark Kettenis <kettenis@gnu.org>
10566
51433e4b
MK
10567 * x86-64-linux-tdep.c: Tweak comment.
10568 (amd64_linux_supply_gregset): Renamed from
10569 x86_64_linux_supply_gresget.
10570 (amd64_linux_fill_gregset): Renamed from
10571 x86_64_linux_fill_gregset.
10572 (fetch_core_registers): Adjust for renamed functions.
10573 (amd64_core_fns): Renamed from x86_64_core_fns.
10574 (amd64_linux_sigtramp_start): Renamed from
10575 x86_64_linux_sigtramp_start.
10576 (amd64_linux_pc_in_sigtramp): Renamed from
10577 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
10578 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
10579 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
10580 (amd64_linux_sigcontext_addr): Renamed from
10581 x86_64_linux_sigcontext_addr.
10582 (amd64_linux_sc_reg_offset): Renamed from
10583 x86_64_linux_sc_reg_offset.
10584 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
10585 Adjust for renamed functions and variables.
10586 (_initialize_amd64_linux_tdep): Renamed from
10587 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
10588 variables.
10589 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
10590 Adjust for renamed functions.
10591
430eaf2e
MK
10592 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
10593 from x86_64_linux_gregset64_reg_offset.
10594 (amd64_linux_gregset32_reg_offset): Rename from
10595 x86_64_linux_gregset64_reg_offset.
10596 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
10597 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
10598 (amd64_linux_dr_set_control): Renamed from
10599 x86_64_linux_dr_set_control. Adjust for renamed functions.
10600 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
10601 Adjust for renamed functions.
10602 (amd64_linux_dr_reset_addr): Renamed from
10603 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
10604 (amd64_linux_dr_get_status): Renamed from
10605 x86_64_linux_dr_get_status. Adjust for renamed functions.
10606 (_initialize_amd64_linux_nat): Renamed from
10607 _initialize_x86_64_linux_nat. Adjust for renamed variables and
10608 functions.
10609 * config/i386/nm-x86-64linux.h: Update copyright year.
10610 Adjust for renamed functions.
10611
10fc94a4
MK
10612 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
10613 amd64fbsd_sigtramp_start.
10614 (amd64fbsd_sigtramp_end_addr): Renamed from
10615 amd64fbsd_sigtramp_end.
10616 (amd64fbsd_init_abi): Adjust for renamed variables.
10617 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
10618 variables.
10619 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
10620 amd64fbsd_sigtramp_start.
10621 (amd64fbsd_sigtramp_end_addr): Renamed from
10622 amd64fbsd_sigtramp_end.
10623
343af405
AC
106242004-02-22 Andrew Cagney <cagney@redhat.com>
10625
537987fc
AC
10626 * hppa-tdep.c (hppa32_return_value): New function.
10627 (hppa64_return_value): New function.
10628 (hppa_gdbarch_init): Set return_value; keep disabled.
10629
fad850b2
AC
10630 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
10631 struct-return and inferior function call methods.
10632
26d08f08
AC
10633 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10634 "frame-base.h".
10635 (struct hppa_frame_cache): Define.
10636 (hppa_frame_cache, hppa_frame_this_id): New functions.
10637 (hppa_frame_prev_register): New function.
10638 (hppa_frame_unwind, hppa_frame_base): New variables.
10639 (hppa_frame_unwind_sniffer): New function.
10640 (hppa_frame_base_address, hppa_unwind_pc): New function.
10641 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
10642 sniffer, and frame base sniffer; keep disabled.
10643 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
10644 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
10645
e7d7bd65
AC
10646 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
10647 to predicates for "seriously old code".
10648
e963316f
AC
10649 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
10650 runtime if(0).
10651
56132691
AC
10652 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
10653 unsigned.
10654 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 10655
343af405
AC
10656 * config/pa/tm-hppa.h: Update copyright.
10657 (DEPRECATED_INIT_FRAME_PC): Delete macro.
10658 (deprecated_init_frame_pc_default): Delete declaration.
10659 (hppa_frame_init_saved_regs): Delete declaration.
10660 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10661 * hppa-tdep.c: Include "arch-utils.h".
10662 (hppa_gdbarch_init): Set deprecated init_frame_pc
10663 and deprecated frame_init_saved_regs.
10664 (hppa_frame_init_saved_regs): Make static.
10665
f5859b4d
MK
106662004-02-22 Mark Kettenis <kettenis@gnu.org>
10667
86f6f8e7 10668 Remove old 386BSD support.
cf7c5c23 10669 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
10670 * configure.host: Remove i[34567]86-*-bsd*.
10671 * configure.tgt: Remove i[34567]86-*-bsd*.
10672 * i386b-nat.c: Removed.
10673 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
10674 (i386b-nat.o): Remove dependencies.
10675
86f6f8e7
MK
10676 * config/i386/i386bsd.mh: Removed.
10677 * config/i386/i386bsd.mt: Removed.
10678 * config/i386/nm-i386bsd.h: Removed.
10679 * config/i386/tm-i386bsd.h: Removed.
10680 * config/i386/xm-i386bsd.h: Removed.
10681
971218cd
MK
10682 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
10683
7e654c37
MK
10684 * amd64fbsd-tdep.c: Include "solib-svr4.h".
10685 (amd64fbsd_init_abi): Set link map offsets.
10686 * amd64nbsd-tdep.c: Include "slib-svr4.h".
10687 (amd64nbsd_init_abi): Set link map offsets.
10688 * amd64obsd-tdep.c: Include "solib-svr4.h".
10689 (amd64obsd_init_abi): Set link map offsets.
10690 * i386fbsd-tdep.c: Include "solib-svr4.h".
10691 (i386fbsd_init_abi): Set link map offsets.
10692 * i386nbsd-tdep.c: Include "solib-svr4.h".
10693 (i386nbsdelf_init_abi): Set link map offsets.
10694 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
10695 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
10696 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
10697 solib-legacy.o and core-aout.o. Reformat.
10698 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
10699 solib-svr4.o, solib-legacy.o. Reformat.
10700 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
10701 * config/i386/nbsdelf.mh: Reformat.
10702 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
10703 solib-svr4.o, solib-legacy.o and corelow.o.
10704 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
10705 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
10706 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
10707 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
10708 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
10709 (TM_FILE): Set to tm-fbsd.h.
10710 * config/i386/nbsd.mt (TDEPFILES): Reformat.
10711 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
10712 solib-svr4.o.
10713 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
10714 solib-svr4.o.
10715 (TM_FILE): Set to nm-nbsd.h.
10716 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
10717 Simplify shared library support. Don't include "elf/common.h".
10718 (SVR4_SHARED_LIBS): Don't define.
10719 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
10720 "solib.h".
10721 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
10722 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
10723 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
10724 Don't include "i386/tm-i386.h". Include "solib.h".
10725 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
10726 Don't include "i386/tm-i386.h".
10727 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
10728 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
10729 Include "i386/xm-i386.h".
10730 (HOST_LONG_DOUBLE_FORMAT): Remove.
10731
5d93ae8c
MK
10732 Fix OpenBSD/i386 sigtramp recognition.
10733 * i386-tdep.h: Update copyright year.
10734 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
10735 (i386bsd_sigtramp_end): New prototypes.
10736 (i386fbsd_sigtramp_start_addr): Renamed from
10737 i386fbsd_sigtramp_start.
10738 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
10739 (i386obsd_sigtramp_start_addr): Renamed from
10740 i386obsd_sigtramp_start.
10741 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
10742 * i386bsd-tdep.c: Update copyright year.
10743 (i386bsd_pc_in_sigtramp): Make public.
10744 * i386fbsd-nat.c: Update copyright year.
10745 (_initialize_i386fbsd_nat): Adjust for renamed variables.
10746 * i386fbsd-tdep.c: Update copyright year.
10747 (i386fbsd_sigtramp_start_addr): Renamed from
10748 i386fbsd_sigtramp_start.
10749 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
10750 (i386fbsdaout_init_abi): Adjust for renamed variables.
10751 * i386obsd-nat.c: Update copyright year.
10752 (_initialize_i386obsd_nat): Adjust for renamed variables.
10753 * i386obsd-tdep.c: Include "target.h".
10754 (i386obsd_page_size): New variable.
10755 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
10756 (i386obsd_sigtramp_end): New functions.
10757 (i386obsd_sigtramp_start_addr): Renamed from
10758 i386obsd_sigtramp_start.
10759 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
10760 (i386obsd_init_abi): Adjust for renamed variables. Set
10761 pc_in_sigtramp, sigtramp_start and sigtramp_end.
10762 * Makefile.in (i386obsd-tdep.o): Update dependencies.
10763
84d04465
MK
10764 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
10765 trampoline change in OpenBSD kernel.
10766
b053aceb
MK
10767 * amd64-nat.c: Update copyright year.
10768 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
10769 architecture from REGCACHE.
10770
f5859b4d
MK
10771 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
10772 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
10773
e4bbbda8
MK
107742004-02-21 Mark Kettenis <kettenis@gnu.org>
10775
ba361932
MK
10776 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
10777 i[34567]86-*-openbsd3.[0-3].
10778 * config/i386/obsdaout.mh: New file.
10779
d3e48264
MK
10780 * config/i386/obsd.mh (MH_FLAGS): Remove.
10781
60a6eeb6
MK
10782 Fix PR build/1549.
10783 * i386obsd-tdep.c: Update copyright years. Include
10784 "solib-svr4.h".
10785 (i386obsd_init_abi): Don't set regset_from_core_section here.
10786 (i386obsd_aout_init_abi): New function. Set
10787 regset_from_core_section here.
10788 (i386obsd_elf_init_abi): New function.
10789 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
10790 * Makefile.in (i386obsd-tdep.o): Update dependecies.
10791 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
10792 (TM_FILE): Set to tm-nbsd.h.
10793
10794 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
10795 solib-sunos.o.
10796
e4bbbda8
MK
10797 * solib-svr4.h: Update copyright year.
10798 (svr4_ilp32_fetch_link_map_offsets)
10799 (svr4_lp64_fetch_link_map_offsets): New prototype.
10800 * solib-svr4.c: Update copyright year.
10801 (svr4_ilp32_fetch_link_map_offsets)
10802 (svr4_lp64_fetch_link_map_offsets): New function.
10803
f6fe98ef
DJ
108042004-02-20 Daniel Jacobowitz <drow@mvista.com>
10805
10806 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
10807 to the partial symbol table.
10808
589ca796
JB
108092004-02-20 J. brobecker <brobecker@gnat.com>
10810
10811 * PROBLEMS: Add description of problem documented under gdb/1560.
10812
2031c21a
MK
108132004-02-20 Mark Kettenis <kettenis@gnu.org>
10814
30b344b1
MK
10815 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
10816 comments.
10817 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
10818 functions.
10819 (amd64obsd_init_abi): Reorder initializations. Use
10820 amd64obsd_r_reg_offset to initialize the general-purpose register
10821 set details. Set regset_from_core_section.
10822 (_initialize_amd64obsd_tdep): Rename from
10823 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
10824 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
10825 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
10826
2031c21a
MK
10827 * NEWS (New native configurations): Mention OpenBSD/alpha.
10828 * configure.tgt: Add alpha*-*-openbsd*.
10829 * configure.host: Add alpha*-*-openbsd*.
10830 * alphanbsd-tdep.c: Update copyright year.
10831 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
10832
42471775
AC
108332004-02-20 Andrew Cagney <cagney@redhat.com>
10834
10835 Fix PR tdep/1372.
10836 * configure.tgt: Delete target "none-*-*".
10837 * configure.host: Delete host "none-*-*".
10838 * config/none/none.mh: Delete file.
10839 * config/none/none.mt: Delete file.
10840 * config/none/xm-none.h: Delete file.
10841 * config/none/tm-none.h: Delete file.
10842 * config/none/nm-none.h: Delete file.
10843
960ccd7d
FF
108442004-02-19 Fred Fish <fnf@redhat.com>
10845
10846 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
10847 cache->uses_fp prior to setting it.
10848
5f883edd
FF
108492004-02-19 Fred Fish <fnf@redhat.com>
10850
10851 Fix for PR breakpoint/1558.
10852 * sh-tdep.c (IS_JSR): New macro.
10853 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
10854
f98c22d5
JB
108552004-02-19 Jim Blandy <jimb@redhat.com>
10856
10857 * findvar.c (value_from_register): Doc fix.
10858
95051d27
JJ
108592004-02-19 Jeff Johnston <jjohnstn@redhat.com>
10860
10861 * printcmd.c (print_scalar_formatted): Do not check for sizeof
10862 type being greater than sizeof of host's LONGEST. Always use
10863 unpack_long() unless format 'f' chosen.
10864
ccefbec3
EZ
108652004-02-19 Joel Brobecker <brobecker@gnat.com>
10866
10867 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 10868
ccefbec3
EZ
10869 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
10870 contains a symbol wich is the best, non-exact match for the given
10871 pc. Update comments.
10872
108732004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 10874
2ede629f
EZ
10875 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
10876 macro, which was part of the now removed Mach 3 port.
10877 * utils.c (request_quit): Ditto.
10878
567ee972
MK
108792004-02-18 Mark Kettenis <kettenis@gnu.org>
10880
10881 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
10882 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
10883
50cca7bb
MK
108842004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10885
10886 Committed by Mark Kettenis <kettenis@gnu.org>.
10887
10888 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
10889 Define.
10890
226361c4
AC
108912004-02-18 Andrew Cagney <cagney@redhat.com>
10892
10893 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
10894 CONFIG_INSTALL and CONFIG_UNINSTALL.
10895 * configure: Re-generate.
10896 * interps.h (INTERP_TUI): Define.
10897 * Makefile.in: Update dependencies.
10898 (TUI): New macro.
10899 (tui-main.o): Specify dependencies.
10900 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
10901 * tui/tui-main.c: New file.
10902
49cfa46f
MK
109032004-02-18 Mark Kettenis <kettenis@gnu.org>
10904
e2879ccb
MK
10905 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
10906 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
10907 dependencies.
10908 * configure.host: Add x86_64-*-openbsd*.
10909 * configure.tgt: Add x86_64-*-openbsd*.
10910 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
10911
c43f4bec
MK
10912 * tui/tui.c: Don't include <malloc.h>.
10913
09ae75b6
MK
10914 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
10915 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
10916 amd64nbsd-tdep.c.
10917
49cfa46f 10918 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 10919 static. Remove extraneous whitespace.
49cfa46f
MK
10920 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
10921 static.
10922
05957fdb
JB
109232004-02-17 Jim Blandy <jimb@redhat.com>
10924
10925 * findvar.c (value_from_register): Doc fix.
10926
d0f54f9d
JB
109272004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10928
10929 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 10930
8a1dac83 10931 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
10932 CORE_ADDR as type for selectors. Correct types for GNU run time
10933 message lookup function to use double indirection.
10934 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
10935 * objc-lang.h (lookup_child_selector): Adapt prototype.
10936
9cbd5950
JB
10937 * s390-nat.c (SUBOFF): New macro.
10938 (supply_gregset, fill_gregset): Use it to handle debugging
10939 of 32-bit exectuables running under a 64-bit kernel.
10940 * s390-tdep.c: Include "solib-svr4.h".
10941 (s390_svr4_fetch_link_map_offset): New function.
10942 (s390x_svr_fetch_link_map_offset): Likewise.
10943 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
10944 * Makefile.in (s390-tdep.o): Update dependencies.
10945
a8c99f38
JB
10946 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
10947 "frame-unwind.h".
10948 (s390_readinstruction): Reformat. Use read_memory_nobpt.
10949 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
10950 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
10951 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
10952 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
10953 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 10954 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
10955 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
10956 (struct frame_extra_info): Remove.
10957 (s390_memset_extra_info): Remove.
f73b1eff
JB
10958 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
10959 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
10960 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
10961 (is_rse): Renamed to ...
10962 (is_rsy): ... this. Support long displacements.
10963 (is_rxe): Renamed to ...
10964 (is_rxy): ... this. Support long displacements.
10965 (compute_x_addr): Support long displacements.
10966 (struct s390_prologue_data): New data type.
10967 (s390_on_stack): Change API to use struct s390_prologue_data.
10968 (s390_store): Reimplement.
10969 (s390_load): New function.
10970 (s390_get_signal_frame_info): Remove.
10971 (s390_get_frame_info): Remove, replace by ...
10972 (s390_analyze_prolog): ... this new function.
10973 (s390_check_function_end): Remove.
10974 (s390_function_start): Remove.
10975 (s390_frameless_function_invokation): Remove.
10976 (s390_is_sigreturn): Remove.
10977 (s390_init_frame_pc_first): Remove.
10978 (s390_init_frame_extra_info): Remove.
10979 (s390_frame_init_saved_regs): Remove.
10980 (s390_frame_saved_pc_nofix): Remove.
10981 (s390_frame_saved_pc): Remove.
10982 (s390_frame_chain): Remove.
10983 (s390_fp_regnum, s390_read_fp): Remove.
10984 (s390_pop_frame_regular, s390_pop_frame): Remove.
10985 (s390_saved_pc_after_call): Remove.
10986 (s390_skip_prologue): Reimplement.
10987 (s390_in_function_epilogue_p): Support long displacements.
10988 (struct s390_unwind_cache): New data structure.
10989 (s390_frame_unwind_cache): New function.
10990 (s390_prologue_frame_unwind_cache): Likewise.
10991 (s390_backchain_frame_unwind_cache): Likewise.
10992 (s390_frame_this_id, s390_frame_prev_register): Likewise.
10993 (s390_frame_unwind): Define.
10994 (s390_frame_sniffer): New function.
10995 (struct s390_pltstub_unwind_cache): New data structure.
10996 (s390_pltstub_frame_unwind_cache): New function.
10997 (s390_pltstub_frame_this_id): Likewise.
10998 (s390_pltstub_frame_prev_register): Likewise.
10999 (s390_pltstub_frame_unwind): Define.
11000 (s390_pltstub_frame_sniffer): New function.
11001 (struct s390_sigtramp_unwind_cache): New data structure.
11002 (s390_sigtramp_frame_unwind_cache): New function.
11003 (s390_sigtramp_frame_this_id): Likewise.
11004 (s390_sigtramp_frame_prev_register): Likewise.
11005 (s390_sigtramp_frame_unwind): Define.
11006 (s390_sigtramp_frame_sniffer): New function.
11007 (s390_frame_base_address, s390_local_base_address): New functions.
11008 (s390_frame_base): Define.
11009 (s390_unwind_pc, s390_unwind_sp): New function.
11010 (s390_push_dummy_call): Use new frame base location.
11011 (s390_unwind_dummy_id): Likewise.
11012 (s390_gdbarch_init): Remove calls to:
11013 set_gdbarch_frameless_function_invocation,
11014 set_gdbarch_deprecated_init_frame_pc,
11015 set_gdbarch_deprecated_frame_chain,
11016 set_gdbarch_deprecated_frame_init_saved_regs,
11017 set_gdbarch_deprecated_pop_frame,
11018 set_gdbarch_deprecated_init_extra_frame_info,
11019 set_gdbarch_deprecated_init_frame_pc_first,
11020 set_gdbarch_deprecated_target_read_fp,
11021 set_gdbarch_deprecated_frame_saved_pc,
11022 set_gdbarch_deprecated_saved_pc_after_call,
11023 set_gdbarch_deprecated_fp_regnum.
11024 Add calls to:
11025 set_gdbarch_in_solib_call_trampoline,
11026 frame_unwind_append_sniffer,
11027 frame_base_set_default,
11028 set_gdbarch_unwind_pc,
11029 set_gdbarch_unwind_sp.
11030 * Makefile.in (s390-tdep.o): Update dependencies.
11031
b0cf273e
JB
11032 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
11033 (S390_STACK_FRAME_OVERHEAD): Remove.
11034 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
11035 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
11036 (s390_promote_integer_argument): Remove.
11037 (s390_cannot_extract_struct_value_address): Remove.
11038 (s390_use_struct_convention, s390_store_struct_return): Remove.
11039 (s390_extract_return_value, s390_store_return_value): Remove.
11040 (s390_return_value_convention, s390_return_value): New functions.
11041 (is_float_singleton): Handle typedefs.
8a1dac83 11042 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
11043 Remove, replace by ...
11044 (s390_function_arg_pass_by_reference, s390_function_arg_float,
11045 s390_function_arg_integer): ... these new functions.
11046 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
11047 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
11048 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
11049 Fill in tdep->abi.
11050 Remove calls to:
11051 set_gdbarch_deprecated_store_struct_return,
11052 set_gdbarch_deprecated_extract_return_value,
11053 set_gdbarch_deprecated_store_return_value,
11054 set_gdbarch_use_struct_convention,
11055 set_gdbarch_extract_struct_value_address,
11056 set_gdbarch_deprecated_pc_in_call_dummy,
11057 set_gdbarch_deprecated_push_arguments,
11058 set_gdbarch_deprecated_save_dummy_frame_tos,
11059 set_gdbarch_deprecated_push_return_address,
11060 set_gdbarch_deprecated_sizeof_call_dummy_words,
11061 set_gdbarch_deprecated_call_dummy_words,
11062 set_gdbarch_deprecated_dummy_write_sp.
11063 Add calls to:
11064 set_gdbarch_push_dummy_call,
11065 set_gdbarch_unwind_dummy_id,
11066 set_gdbarch_return_value.
8a1dac83 11067
e1457d83
JB
11068 * config/s390/nm-linux.h: Update comments.
11069 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
11070 (STOPPED_BY_WATCHPOINT): Redefine.
11071 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
11072 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
11073 (s390_stopped_by_watchpoint): Likewise.
11074 (watch_area_cnt): Remove.
11075 * s390-nat.c: Update comments.
11076 (watch_area): Remove typedef.
11077 Global replace watch_area by struct watch_area.
11078 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 11079 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
11080 use s390_inferior_tid. Add short-cut for the no watchpoint case.
11081 (s390_fix_watch_points): Remove pid argument,
11082 use s390_inferior_tid. Recompute area spanned by watchpoints.
11083 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
11084 argument. Reimplement.
11085
d0f54f9d
JB
11086 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
11087 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
11088 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 11089 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
11090 core-regset.o.
11091 * config/s390/s390x.mt: Remove.
11092 * config/s390/tm-s390.h: Remove.
11093 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
11094 (TARGET_ELF64): Remove.
11095 (SKIP_TRAMPOLINE_CODE): Do not undefine.
11096 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
11097 s390*-*-* case; always set gdb_target to s390.
11098 * regformats/reg-s390.dat: Remove control registers.
11099 * regformats/reg-s390x.dat: Likewise.
11100 * s390-tdep.h: New file.
8a1dac83 11101 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
11102 Include "inferior.h" and "s390-tdep.h".
11103 Remove private definition of offsetof.
11104 (s390_register_u_addr): Remove.
11105 (regmap_gregset, regmap_fpregset): Define.
11106 (supply_gregset, fill_gregset): Reimplement.
11107 (supply_fpregset, fill_fpregset): Likewise.
11108 (s390_inferior_tid): New function.
11109 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
11110 (fetch_inferior_registers, store_inferior_registers): Likewise.
11111 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
11112 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
11113 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
11114 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
11115 (struct gdbarch_tdep): Define.
11116 (struct s390_register_info): Define.
11117 (s390_register_info): New variable.
11118 (s390_register_name): Reimplement.
11119 (s390_register_type): New function.
11120 (s390_register_raw_size, s390x_register_raw_size): Remove.
11121 (s390_cannot_fetch_register): Remove.
11122 (s390_register_byte): Remove.
11123 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
11124 (s390_dwarf_regmap): New variable.
11125 (s390_dwarf_reg_to_regnum): New function.
11126 (s390_stab_reg_to_regnum): Remove.
11127 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
11128 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
11129 (s390_convert_register_p): Likewise.
11130 (s390_register_to_value, s390_value_to_register): Likewise.
11131 (s390_register_reggroup_p): Likewise.
11132 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
11133 s390_gregset, s390x_gregset, s390_fpregset): New variables.
11134 (s390_supply_regset, s390_regset_from_core_section): New functions.
11135 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
11136 (S390_FPR_SIZE): Likewise.
11137 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
11138 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
11139 (S390_NUM_GPRS): Move here from tm-s390.h.
11140 (S390_NUM_FPRS): Likewise.
11141 (s390_in_function_epilogue_p): New function.
11142 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
11143 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
11144 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
11145 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
11146 Replace S390_FP_REGNUM by S390_SP_REGNUM.
11147 Remove calls to:
11148 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
11149 set_gdbarch_deprecated_max_register_virtual_size,
11150 set_gdbarch_deprecated_register_byte,
d0f54f9d 11151 set_gdbarch_cannot_fetch_register,
8a1dac83 11152 set_gdbarch_cannot_store_register,
d0f54f9d
JB
11153 set_gdbarch_deprecated_register_size,
11154 set_gdbarch_deprecated_register_raw_size,
11155 set_gdbarch_deprecated_register_virtual_size,
11156 set_gdbarch_deprecated_register_virtual_type,
11157 set_gdbarch_deprecated_register_bytes.
11158 Add calls to:
11159 set_gdbarch_num_pseudo_regs,
11160 set_gdbarch_register_type,
11161 set_gdbarch_convert_register_p,
11162 set_gdbarch_register_to_value,
11163 set_gdbarch_value_to_register,
11164 set_gdbarch_register_reggroup_p,
11165 set_gdbarch_regset_from_core_section,
11166 set_gdbarch_pseudo_register_read,
11167 set_gdbarch_pseudo_register_write,
11168 set_gdbarch_in_function_epilogue_p.
11169 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
11170 (s390_tdep_h): New variable.
11171
8cfe231d
JB
111722004-02-17 Jim Blandy <jimb@redhat.com>
11173
4589a601
JB
11174 * findvar.c (value_from_register): If the type has no length, just
11175 return an acceptable value --- don't report an internal error.
11176
8cfe231d
JB
11177 * stabsread.c (read_type): If we find any type numbers that are
11178 forward references, complain if the references aren't resolved by
11179 the time we're finished reading.
11180 (cleanup_undefined_types): Make error message more appropriate for
11181 a complaint.
11182
5bf0017e
EZ
111832004-02-17 Elena Zannoni <ezannoni@redhat.com>
11184
9d62932d
EZ
11185 * Makefile.in (defs_h): Remove dependency on progress_h.
11186 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
11187 progress.h.
11188 * main.c (captured_main): Delete use of START_PROGRESS and
11189 END_PROGRESS.
11190
111912004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 11192
5bf0017e
EZ
11193 * objfiles.c (terminate_minimal_symbol_table): Add back
11194 initialization of MSYMBOL_TYPE.
11195
9fc9f5e2
AC
111962004-02-17 David Mosberger <davidm@hpl.hp.com>
11197
11198 Committed by Andrew Cagney.
11199 * Makefile.in (ia64_tdep_h): New macro.
11200 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
11201 (ia64-tdep.o): Likewise.
11202 * ia64-tdep.h: New file.
11203 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
11204 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
11205 (ia64_aix_sigcontext_register_address): Likewise.
11206 (ia64_linux_getunwind_table): Delete declaration.
11207 * ia64-linux-tdep.c: Likewise.
11208
76cd2bd9
CV
112092004-02-17 Corinna Vinschen <vinschen@redhat.com>
11210
11211 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
11212 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
11213 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
11214
634aa483
AC
112152004-02-17 Andrew Cagney <cagney@redhat.com>
11216
11217 * symtab.c (skip_prologue_using_sal): New function.
11218 * symtab.h (skip_prologue_using_sal): Declare.
11219 * frv-tdep.c: Include "symtab.h".
11220 (skip_prologue_using_sal): Delete function.
11221 * mips-tdep.c (skip_prologue_using_sal): Delete function.
11222 * rs6000-tdep.c (refine_prologue_limit): Mention
11223 skip_prologue_using_sal.
11224 * ia64-tdep.c (refine_prologue_limit): Ditto.
11225 * Makefile.in: Update dependencies.
11226
112272004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 11228
39ce7b3f
AC
11229 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
11230 START_INFERIOR_TRAPS_EXPECTED.
11231 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
11232 START_INFERIOR_TRAPS_EXPECTED.
11233 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
11234 Delete macro.
11235 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
11236 macro, moved to "nm-osf.h". Update copyright.
11237 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
11238 update copyright.
11239
19772a2c
AC
11240 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
11241 and function replacing FRAMELESS_FUNCTION_INVOCATION.
11242 * blockframe.c (legacy_frameless_look_for_prologue): Rename
11243 frameless_look_for_prologue.
11244 * frame.h (legacy_frameless_look_for_prologue): Rename
11245 frameless_look_for_prologue.
11246 * gdbarch.h, gdbarch.c: Re-generate.
11247 * sh64-tdep.c (sh64_gdbarch_init): Update.
11248 * sh-tdep.c (sh_gdbarch_init): Update.
11249 * s390-tdep.c (s390_gdbarch_init): Update.
11250 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11251 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11252 * m68k-tdep.c (m68k_gdbarch_init): Update.
11253 (delta68_frame_args_address): Update.
11254 * m32r-tdep.c (m32r_gdbarch_init): Update.
11255 * hppa-tdep.c (hppa_gdbarch_init): Update.
11256 * h8300-tdep.c (h8300_gdbarch_init): Update.
11257 * frv-tdep.c (frv_gdbarch_init): Update.
11258 (frv_frameless_function_invocation): Update.
11259 * cris-tdep.c (cris_gdbarch_init): Update.
11260 (cris_frameless_function_invocation): Update.
11261 * avr-tdep.c (avr_gdbarch_init): Update.
11262 * arm-tdep.c (arm_gdbarch_init): Update.
11263 * stack.c (frame_info): Update, call predicate.
11264 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
11265 * frame.c (legacy_get_prev_frame): Update, call predicate..
11266 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
11267 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
11268 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
11269 invocation.
11270 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11271 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11272 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
11273
11274 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
11275 function.
11276
7dcaac91
DJ
112772004-02-16 Daniel Jacobowitz <drow@mvista.com>
11278
11279 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
11280 initializations.
11281
88289b6e
AC
112822004-02-16 Andrew Cagney <cagney@redhat.com>
11283
11284 * tui/tui-windata.c: Include "gdb_string.h".
11285 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
11286 * tui/tui-layout.c, tui/tui-command.c: Ditto.
11287 * Makefile.in: Update dependencies.
11288
9f976b41
DJ
112892004-02-16 Daniel Jacobowitz <drow@mvista.com>
11290
11291 * Makefile.in (infrun.o): Add $(gdb_assert_h).
11292 * infrun.c: Include "gdb_assert.h".
11293 (singlestep_ptid, saved_singlestep_ptid)
11294 (stepping_past_singlestep_breakpoint): New variables.
11295 (resume): Set singlestep_ptid. Check for singlestep thread
11296 hop.
11297 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
11298 (handle_inferior_event): Handle singlestep thread hop.
11299
c324d747
AC
113002004-02-16 Andrew Cagney <cagney@redhat.com>
11301
f090b9b1
AC
11302 * dwarf2-frame.c (dwarf2_frame_ops): New function.
11303 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
11304 (dwarf2_frame_init_reg): Ditto.
11305
fd33e6cb
AC
11306 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
11307 suggested by Joshua Neuheisel
11308
c324d747
AC
11309 * configure.in: Always check for curses, including pdcurses.
11310 Warn, instead of error, when no curses are found. Enable TUI when
11311 curses is available.
11312 * configure: Re-generate.
11313
b66ba949
CV
113142004-02-16 Corinna Vinschen <vinschen@redhat.com>
11315
11316 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
11317 sh_sh4_register_convert_to_virtual.
11318 (sh_register_convert_to_raw): Rename from
11319 sh_sh4_register_convert_to_raw.
11320 (sh_pseudo_register_read): Accomodate above name change.
11321 (sh_pseudo_register_write): Ditto.
11322
b58cbbf2
CV
113232004-02-16 Corinna Vinschen <vinschen@redhat.com>
11324
11325 * sh-tdep.c (sh_generic_register_name): Remove.
11326 (sh_gdbarch_init): Use sh_sh_register_name in default case.
11327
5929a910
AC
113282004-02-15 Andrew Cagney <cagney@redhat.com>
11329
4566dfcf
AC
11330 * configure.in (build_warnings): Add -Wunused-function.
11331 * configure: Re-generate.
11332
db11ed55
AC
11333 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
11334 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
11335
46ac7a5d
AC
11336 * procfs.c (procfs_init_inferior): Assume that
11337 START_INFERIOR_TRAPS_EXPECTED is defined.
11338 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
11339 * config/ns32k/tm-nbsd.h: Delete file,
11340 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
11341
ba801595
AC
11342 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
11343 * config/vax/tm-vax.h: Delete file.
11344
5929a910
AC
11345 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11346 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11347 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11348 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11349 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
11350 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11351 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
11352
8f22cb90
MK
113532004-02-15 Mark Kettenis <kettenis@gnu.org>
11354
11355 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
11356 * dwarf2-frame.c (dwarf2_frame_data): New variable.
11357 (struct dwarf2_frame_ops): New.
11358 (dwarf2_frame_default_init_reg): New function, based on
11359 dwarf2_frame_init_reg.
11360 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
11361 (dwarf2_frame_init_reg): Call architecture-specific function.
11362 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
11363 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
11364 instead of dwarf2_frame_data.
11365 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
11366 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
11367
8132723e
AC
113682004-02-15 Andrew Cagney <cagney@redhat.com>
11369
046a4708
AC
11370 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
11371 register_gdbarch_swap.
11372 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
11373 * f-lang.c (_initialize_f_language): Update, use
11374 DEPRECATED_REGISTER_GDBARCH_SWAP.
11375 * remote.c (_initialize_remote): Ditto.
11376 * regcache.c (_initialize_regcache): Ditto.
11377 * parse.c (_initialize_parse): Ditto.
11378 * infrun.c (_initialize_infrun): Ditto.
11379 * mi/mi-main.c (_initialize_mi_main): Ditto.
11380 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 11381
549c1eea
AC
11382 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
11383 poking .cacheable directly.
11384 * symfile.c (symfile_bfd_open): Ditto.
11385
0c0b39de
AC
11386 * Makefile.in: Update all dependencies.
11387
8132723e
AC
11388 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
11389 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
11390 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
11391 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
11392 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 11393
b9d26eb9
AC
113942004-02-14 Andrew Cagney <cagney@redhat.com>
11395
8e1f669a
AC
11396 * arch-utils.c (legacy_convert_register_p): Check
11397 DEPRECATED_REGISTER_CONVERTIBLE_P.
11398 * findvar.c (value_of_register): Ditto.
11399
cd0bfa36
AC
11400 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
11401 * gdbarch.h, gdbarch.c: Re-generate.
11402 * arch-utils.c (deprecated_register_convertible_not): Delete.
11403 * arch-utils.h (deprecated_register_convertible_not): Delete.
11404 * mi/mi-main.c (get_register): Update. Update copyright.
11405 * infcmd.c (default_print_registers_info): Update.
11406
b9d26eb9
AC
11407 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11408 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
11409 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 11410 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
11411 * frame.c (deprecated_get_next_frame_hack): Delete function.
11412 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
11413 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
11414 Update.
11415 * infcall.c (call_function_by_hand): Update.
11416
9ab9195f
EZ
114172004-02-14 Elena Zannoni <ezannoni@redhat.com>
11418
11419 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 11420 from here...
9ab9195f
EZ
11421 * objfiles.c (init_entry_point_info, entry_point_address):..to
11422 here.
11423 * symfile.h (init_entry_point_info, entry_point_address): Remove
11424 prototypes.
11425 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 11426 prototypes.
9ab9195f
EZ
11427 * cris-tdep.c: Remove include of symfile.h. Add include of
11428 objfiles.h.
11429 * infcall.c: Ditto.
11430 * mcore-tdep.c: Ditto.
11431 * mn10300-tdep.c: Ditto.
11432 * sh64-tdep.c: Ditto.
11433 * v850-tdep.c: Ditto.
11434 * arm-tdep.c: Remove include of symfile.h.
11435 * blockframe.c: Ditto.
11436 * coffread.c: Ditto.
11437 * dbxread.c: Ditto.
11438 * dwarf2read.c: Ditto.
11439 * dwarfread.c: Ditto.
8a1dac83 11440 * frv-tdep.c: Ditto.
9ab9195f
EZ
11441 * ia64-tdep.c: Ditto.
11442 * mdebugread.c: Ditto.
11443 * mipsread.c: Ditto.
8a1dac83 11444 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
11445 * s390-tdep.c: Ditto.
11446 * sh-tdep.c: Ditto.
8a1dac83 11447 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
11448 * gdbarch.sh: Remove include of symfile.h.
11449 * gdbarch.c: Regenerate.
11450 * solib-irix.c (enable_break): Use entry_point_address().
11451 Add comment about include file.
11452 * xcoffread.c: Add comment about include file.
8a1dac83
RM
11453 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
11454 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
11455 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
11456 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
11457 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
11458
c4c5b7ba
AC
114592004-02-13 Andrew Cagney <cagney@redhat.com>
11460
11461 * corelow.c (core_xfer_partial): Use "struct bfd_section".
11462 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
11463 copyright.
11464 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
11465
3e7879de
FF
114662004-02-12 Fred Fish <fnf@redhat.com>
11467
11468 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
11469 set_gdbarch_store_return_value.
11470
6a7760b6
AC
114712004-02-12 Andrew Cagney <cagney@redhat.com>
11472
11473 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
11474 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
11475 (interrupt_query): Ditto.
11476 (ofunc): Delete unused variable.
11477 * cris-tdep.c (cris_abi): Delete unused function.
11478 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
11479 (cris_get_wide_opcode, cris_get_short_size): Ditto.
11480 (cris_get_asr_quick_shift_steps): Ditto.
11481 (cris_skip_prologue_frameless_p): Ditto.
11482 * arm-tdep.c (arm_push_return_address): Delete unused function.
11483 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
11484 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
11485 * s390-tdep.c (s390_function_start): Delete unused function.
11486
31687c3c
AC
114872004-02-12 Andrew Cagney <cagney@redhat.com>
11488
11489 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
11490 gdbarch.h, gdbarch.c: Re-generate.
11491 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
11492 to generic_prologue_frameless_p.
11493 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
11494 * arch-utils.c (generic_prologue_frameless_p): Delete function.
11495
6de918a6
DJ
114962004-02-11 Daniel Jacobowitz <drow@mvista.com>
11497
11498 * mips-linux-tdep.c: Include "frame.h".
11499 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
11500 (mips_linux_skip_resolver): New functions.
11501 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
11502 and set_gdbarch_in_solib_call_trampoline.
11503 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
11504 to after set_gdbarch_in_solib_return_trampoline. Only set the
11505 solib hooks to mips16 functions if the OS ABI is unknown.
11506 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
11507 including "config/tm-linux.h".
11508 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
11509 * Makefile.in (mips-linux-tdep.o): Update.
11510
87b3ede8
DC
115112004-02-11 David Carlton <carlton@kealia.com>
11512
11513 * linespec.c (decode_compound): Only look for a class symbol when
11514 considering all but the rightmost component.
11515
5979bc46
AC
115162004-02-11 Andrew Cagney <cagney@redhat.com>
11517
11518 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
11519 abi code are are separatly grouped.
11520
5867a2fb
AC
115212004-02-11 Andrew Cagney <cagney@redhat.com>
11522
11523 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
11524 * gdbarch.h, gdbarch.c: Re-generate.
11525 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11526 * v850-tdep.c (v850_gdbarch_init): Update.
11527 * sh64-tdep.c (sh64_gdbarch_init): Update.
11528 * sh-tdep.c (sh_gdbarch_init): Update.
11529 * s390-tdep.c (s390_gdbarch_init): Update.
11530 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11531 * mips-tdep.c (mips_gdbarch_init): Update.
11532 * mcore-tdep.c (mcore_gdbarch_init): Update.
11533 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11534 * m32r-tdep.c (m32r_gdbarch_init): Update.
11535 * ia64-tdep.c (ia64_gdbarch_init): Update.
11536 * hppa-tdep.c (hppa_gdbarch_init): Update.
11537 * h8300-tdep.c (h8300_gdbarch_init): Update.
11538 * frv-tdep.c (frv_gdbarch_init): Update.
11539 * d10v-tdep.c (d10v_gdbarch_init): Update.
11540 * cris-tdep.c (cris_gdbarch_init): Update.
11541 * avr-tdep.c (avr_gdbarch_init): Update.
11542 * arm-tdep.c (arm_gdbarch_init): Update.
11543 * alpha-tdep.c (alpha_gdbarch_init): Update.
11544
026a72f8
CV
115452004-02-11 Corinna Vinschen <vinschen@redhat.com>
11546
11547 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
11548 comma.
11549 (sh_sh4al_dsp_register_name): Ditto.
11550
3903d437
AC
115512004-02-10 Andrew Cagney <cagney@redhat.com>
11552
11553 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
11554 (mips_init_frame_pc_first): Delete function.
11555 (mips_frame_saved_pc): Delete function.
11556 (mips_frame_chain): Delete function.
11557 (mips_init_extra_frame_info): Delete function.
11558 (mips_xfer_register): Delete unused variable "reg".
11559 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
11560 (mips_n32n64_return_value): Delete unused variable "reg".
11561 (mips_n32n64_return_value): Delete unused variable "pos".
11562 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
11563 (mips_o32_return_value): Delete unused variable "pos".
11564 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
11565 (mips_print_fp_register): Delete unused variable "namelen"
11566 (mips_print_fp_register): Delete unused variable "flt2"
11567 (get_frame_pointer): Delete function.
11568 (cached_proc_desc): Delete static variable.
11569 (mips_pop_frame): Delete function.
11570 (mips_find_saved_regs): Delete function.
11571 (mips_get_saved_register): Delete function.
11572 (mips_saved_pc_after_call): Delete function.
11573 (SIGFRAME_BASE): Delete macro.
11574 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
11575 (SIGFRAME_PC_OFF): Delete macro.
11576 (SIGFRAME_REGSAVE_OFF): Delete macro.
11577 (mips_dump_tdep): Do not print deleted macro definitions.
11578
b9fb98bd
AC
115792004-02-10 Andrew Cagney <cagney@redhat.com>
11580
11581 * Makefile.in (SFILES): Remove explictly listed tui files.
11582 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
11583
78ced177 115842004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 11585
78ced177
JJ
11586 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
11587 to use paddr functions to format ia64 addresses and long values.
11588 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
11589 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
11590 (get_kernel_table, ia64_find_proc_info_x): Ditto.
11591 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
11592 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
11593
6a83354a
AC
115942004-02-10 Andrew Cagney <cagney@redhat.com>
11595
11596 * defs.h: Do not include "tui.h".
11597 * gdb_curses.h: New file.
11598 * tui/tui-hooks.h: New file.
11599 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
11600 (tui_install_hooks, tui_remove_hooks): Delete declarations.
11601 (tui_initialize_io): Delete declaration.
11602 (tui_initialize_readline: Delete redundant declaration.
11603 (struct tui_point): Delete definition.
11604 * tui/tui-data.h (struct tui_point): Define.
11605 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
11606 * utils.c: Include "tui/tui.h".
11607 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
11608 * printcmd.c [TUI]: Include "tui/tui.h".
11609 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
11610 * tui/tui-command.c: Include "gdb_curses.h".
11611 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
11612 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
11613 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
11614 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
11615 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
11616 * Makefile.in: Update all dependencies.
11617 (tui_hooks_h, gdb_curses_h): Define.
11618 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
11619
997470ef
EZ
116202004-02-10 Elena Zannoni <ezannoni@redhat.com>
11621
11622 * objfiles.h (struct objfile): Remove unused fields auxf1 and
11623 auxf2. Add comments about some other rarely used fields.
11624
4ff2cc4d
AC
116252004-02-10 Andrew Cagney <cagney@redhat.com>
11626
11627 * Makefile.in (init.c): Fix script removing duplicates. Problem
11628 reported by Peter Schauer.
11629
1ab21617
EZ
116302004-02-09 Elena Zannoni <ezannoni@redhat.com>
11631
11632 * bcache.c (bcache_xmalloc): Use obstack_init instead of
11633 obstack_specify_allocation.
11634 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 11635 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
11636 (allocate_rt_common_objfile): Ditto.
11637 * symfile.c (reread_symbols): Ditto.
11638 * gdb_obstack.h: Add comment.
11639
17763fd9
EZ
116402004-02-09 Elena Zannoni <ezannoni@redhat.com>
11641
11642 * linespec.c (decode_line_1, locate_first_half)
11643 (decode_compound, lookup_prefix_sym): Update comments. Delete old
11644 commented out code.
11645
ec5cdd75
DJ
116462004-02-09 Daniel Jacobowitz <drow@mvista.com>
11647
11648 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
11649 obstack_free.
11650
43b54b88
AC
116512004-02-09 Andrew Cagney <cagney@redhat.com>
11652
11653 * blockframe.c (find_pc_partial_function): If find_pc_overlay
11654 fails, try find_pc_section. Fix PR c++/1267.
11655 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
11656 instead of find_pc_mapped_section.
11657 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
11658 not default to the section containing PC. Fix PR symtab/1519.
11659
edfae063
AC
116602004-02-09 Andrew Cagney <cagney@redhat.com>
11661
11662 * Makefile.in (mips-tdep.o): Update dependencies.
11663 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
11664 "trad-frame.h".
11665 (mips_unwind_pc): Return the pseudo PC register.
11666 (mips_unwind_dummy_id): New function.
11667 (mips16_fetch_instruction): New function.
11668 (mips32_fetch_instruction): New function.
11669 (struct mips_frame_cache): Define.
11670 (mips_mdebug_frame_cache): New function.
11671 (mips_mdebug_frame_this_id): New function.
11672 (mips_mdebug_frame_prev_register): New function.
11673 (mips_mdebug_frame_unwind): Define.
11674 (mips_mdebug_frame_sniffer): New function.
11675 (mips_mdebug_frame_base_address): New function.
11676 (mips_mdebug_frame_base): Define.
11677 (mips_mdebug_frame_base_sniffer): New function.
11678 (mips_gdbarch_init): Append unwind and base sniffers. Set
11679 unwind_dummy_id.
11680
defc864c
AC
116812004-02-08 Andrew Cagney <cagney@redhat.com>
11682
6764ddad
AC
11683 * frame.c: Print both the register number and name.
11684
defc864c
AC
11685 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
11686 and a sed into a single sed. Make .c and .o patterns more robust.
11687 (OBS): Delete.
11688 (INIT_FILES): Replace OBS with COMMON_OBS.
11689 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
11690
645d6d10
MK
116912004-02-08 Mark Kettenis <kettenis@gnu.org>
11692
11693 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
11694 the PT_WCOOKIE request.
11695
23e3c3fc
AC
116962004-02-08 Andrew Cagney <cagney@redhat.com>
11697
58dfe9ff
AC
11698 * mips-tdep.c (mips_unwind_pc): New function.
11699 (mips_gdbarch_init): Set mips_unwind_pc.
11700
1152e35e
AC
11701 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
11702 (get_frame_id): Allow the UNKNOWN_FRAME.
11703 (frame_register_unwind, get_frame_type): Ditto.
11704
31b75dbf
AC
11705 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
11706 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
11707 unwind_dummy_id indicates a legacy frame.
11708
3483b318
AC
11709 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
11710 * configure: Re-generate.
11711
23e3c3fc
AC
11712 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
11713 methods.
11714
33f8ca73
AC
117152004-02-08 Andrew Cagney <cagney@redhat.com>
11716
11717 * configure.in (CONFIG_ALL): Set to Makefile target, and not
11718 makefile macro.
11719 * configure: Re-generate.
11720 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
11721 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
11722 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
11723 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
11724 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
11725 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
11726 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
11727 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
11728 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
11729 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
11730
6ba8e26f 117312004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 11732
20d286a5
AC
11733 * Makefile.in: Update all dependencies.
11734
d836ee13
AC
11735 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
11736 * configure: Re-generate.
11737 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
11738 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
11739 (COMMON_OBS): Add "main.o" and "annotate.o".
11740 (ANNOTATE_OBS): Delete.
11741 (OBS): Remove ANNOTATE_OBS.
11742 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
11743 CONFIG_INITS.
11744 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
11745 against CONFIG_OBS and "main.o".
11746 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
11747 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
11748
d02c80cd
AC
11749 * tui/tui-command.c: Include "gdb_string.h", delete register
11750 attribute, use ISO-C function signatures.
11751 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
11752 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
11753 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
11754 * tui/tui.c: Ditto.
6ba8e26f
AC
11755
11756 * tui/tui-command.c: Change variable and function names to lower
11757 case.
11758 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
11759 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
11760 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
11761 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11762 * tui/tui-winsource.c, tui/tui.c: Ditto.
11763
4a146b47
EZ
117642004-02-07 Elena Zannoni <ezannoni@redhat.com>
11765
11766 * buildsym.c (free_pending_blocks, finish_block)
11767 (record_pending_block, make_blockvector, end_symtab): Replace
11768 symbol_obstack with objfile_obstack.
8a1dac83 11769 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 11770 (coff_read_enum_type): Ditto.
8a1dac83 11771 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 11772 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 11773 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
11774 (dwarf2_symbol_mark_computed): Ditto.
11775 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
11776 * elfread.c (elf_symtab_read): Ditto.
11777 * hpread.c (hpread_symfile_init, hpread_symfile_init)
11778 (hpread_read_enum_type, hpread_read_function_type)
11779 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
11780 Ditto.
8a1dac83 11781 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 11782 (java_link_class_type): Ditto.
8a1dac83 11783 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
11784 (new_symbol): Ditto.
11785 * minsyms.c (install_minimal_symbols): Ditto.
11786 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
11787 (terminate_minimal_symbol_table): Replace symbol_obstack with
11788 objfile_obstack.
11789 (free_objfile): Remove freeing of symbol_obstack.
11790 * objfiles.h: Remove symbol_obstack field.
11791 * pa64solib.c (add_to_solist): Replace symbol_obstack with
11792 objfile_obstack.
11793 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
11794 symbol_obstack.
11795 (solib_add_common_symbols): Replace symbol_obstack with
11796 objfile_obstack.
11797 * somsolib.c (som_solib_add): Ditto.
11798 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
11799 (common_block_start, common_block_end): Ditto.
11800 * symfile.c (reread_symbols): Remove freeing and init of
11801 symbol_obstack.
11802 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
11803 * symfile.h: Update comment.
11804 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
11805 stats printing.
11806 * symtab.c (symbol_set_names): Replace symbol_obstack with
11807 objfile_obstack.
11808 * symtab.h (struct general_symbol_info, struct minimal_symbol):
11809 Update comments.
11810 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
11811 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
11812 objfile_obstack.
11813
6d012f14
AC
118142004-02-07 Andrew Cagney <cagney@redhat.com>
11815
11816 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
11817 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
11818 fields and variables.
11819 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
11820 (m_beInvisible): Delete macro.
11821 * tui/tui-data.h: Fix case case fields and variables.
11822 (m_genWinPtrIsNull): Delete macro.
11823 (tui_win_list): Rename winList.
11824 (TUI_SRC_WIN): Rename srcWin.
11825 (TUI_DISASM_WIN): Rename disassemWin.
11826 (TUI_DATA_WIN): Rename dataWin.
11827 (TUI_CMD_WIN): Rename cmdWin.
11828 (m_genWinPtrNotNull): Delete macro.
11829 (m_winPtrIsNull): Delete macro.
11830 (m_winPtrNotNull): Delete macro.
11831 (tui_win_is_source_type): Replace m_winIsSourceType
11832 (tui_win_is_auxillary): Replace m_winIsAuzillary.
11833 (tui_win_has_locator): Replace m_hasLocator.
11834 (tui_set_win_highlight): Replace m_setWinHighlightOn and
11835 m_setWinHighlightOff.
11836 * tui/tui-data.c: Update references.
11837 (tui_win_is_source_type, tui_set_win_highlight): New functions.
11838 (tui_win_has_locator, tui_win_is_auxillary): New functions.
11839 * tui/tui-command.c, tui/tui-disasm.c: Update references.
11840 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
11841 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
11842 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11843 * tui/tui-winsource.c, tui/tui.c: Ditto.
11844
7d34766b
MK
118452004-02-07 Mark Kettenis <kettenis@gnu.org>
11846
1c800673
MK
11847 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
11848 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
11849 StackGhost.
11850
7d34766b
MK
11851 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
11852 variable `i6' to `i7'.
11853 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
11854
22940a24
AC
118552004-02-07 Andrew Cagney <cagney@redhat.com>
11856
11857 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
11858 (TuiPoint, TuiPointPtr): Ditto.
11859 (TuiStatus, TuiStatusPtr): Ditto.
11860 (TuiWinType, TuiWinTypePtr): Ditto.
11861 (struct tui_point): Rename _TuiPoint.
11862 (tui_get_low_disassembly_address): Rename
11863 tuiGetLowDisassemblyAddress.
11864 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
11865 (tuiFree): Delete declaration.
11866 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
11867 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
11868 * tui/tui.c (tuiFree): Delete function.
11869 * cli/cli-cmds.c (disassemble_command): Update references.
11870 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
11871 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
11872 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
11873 * tui/tui-winsource.c: Ditto.
11874
8b92e4d5
EZ
118752004-02-07 Elena Zannoni <ezannoni@redhat.com>
11876
11877 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
11878 coffstab_build_psymtabs, elfstab_build_psymtabs)
11879 (stabsect_build_psymtabs): Replace psymbol_obstack with
11880 objfile_obstack.
11881 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
11882 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
11883 Ditto.
11884 * dwarfread.c (scan_compilation_units): Ditto.
11885 * elfread.c (elfstab_offset_sections): Ditto.
11886 * hppa-tdep.c (read_unwind_info): Ditto.
11887 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
11888 (hpread_end_psymtab): Ditto.
11889 * mdebugread.c (mdebug_build_psymtabs, add_pending)
11890 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
11891 Ditto.
11892 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 11893 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
11894 (build_objfile_section_table): Ditto.
11895 (allocate_objfile): Remove init of psymbol_obstack.
11896 (free_objfile): Remove freeing of psymbol_obstack.
11897 * objfiles.h (struct objfile): Remove field
11898 psymbol_obstack. Update comments.
11899 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
11900 psymbol_obstack with objfile_obstack.
11901 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
11902 psymbol_obstack.
11903 * somread.c (som_symfile_offsets, init_import_symbols)
11904 (init_export_symbols): Replace psymbol_obstack with
11905 objfile_obstack.
11906 * somsolib.c (som_solib_add_solib_objfile): Ditto.
11907 * symfile.c (default_symfile_offsets, syms_from_objfile)
11908 (reread_symbols): Remove freeing and init of psymbol_obstack.
11909 (cashier_psymtab): Update comment.
11910 * symmisc.c (print_objfile_statistics): Don't report stats for
11911 psymbol obstack.
11912 * symtab.h (struct general_symbol_info, struct partial_symtab):
11913 Update comments.
11914 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
11915 (xcoff_symfile_offsets): Replace psymbol_obstack with
11916 objfile_obstack.
11917
b99607ea
EZ
119182004-02-07 Elena Zannoni <ezannoni@redhat.com>
11919
11920 * objfiles.h (struct objfile): Add objfile_obstack field.
11921 Remove type_obstack field.
11922
11923 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
11924 read_structure_scope read_enumeration, new_symbol): Replace
11925 type_obstack with objfile_obstack.
11926 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 11927 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
11928 (lookup_fundamental_type): Ditto.
11929 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
11930 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
11931 (hpread_read_doc_function_type, hpread_read_struct_type)
11932 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 11933 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 11934 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
11935 (java_link_class_type): Ditto.
11936 * mdebugread.c (parse_type): Ditto.
11937 * objfiles.c (allocate_objfile, free_objfile): Ditto.
11938 * solib-sunos.c (solib_add_common_symbols): Ditto.
11939 * stabsread.c (define_symbol, read_type, read_member_functions,
11940 read_cpp_abbrev, read_one_struct_field): Ditto.
11941 * symfile.c (reread_symbols): Ditto.
11942 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 11943
2a8854a7
AC
119442004-02-07 Andrew Cagney <cagney@redhat.com>
11945
11946 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
11947 (tui_exec_info_content): Rename TuiExecInfoContent.
11948 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
11949 (TuiWinInfo, TuiWinInfoPtr): Ditto.
11950 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
11951 (TuiList, TuiListPtr): Ditto.
11952 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
11953 (TuiDataType, TuiDataTypePtr): Ditto.
11954 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
11955 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
11956 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
11957 (TuiSourceElement, TuiSourceElementPtr): Ditto.
11958 (TuiDataElement, TuiDataElementPtr): Ditto.
11959 (TuiWinElement, TuiWinElementPtr): Ditto.
11960 (TuiDataInfo, TuiDataInfoPtr): Ditto.
11961 (TuiCommandElement, TuiCommandElementPtr): Ditto.
11962 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
11963 (TuiWhichElement, TuiWhichElementPtr): Ditto.
11964 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
11965 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
11966 * tui/tui-command.c, tui/tui-data.c: Update references.
11967 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
11968 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
11969 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11970 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 11971
05cbe71a
MK
119722004-02-07 Mark Kettenis <kettenis@gnu.org>
11973
11974 * dwarf2-frame.h: Update copyright.
11975 (enum dwarf2_frame_reg_rule): New.
11976 (struct dwarf2_frame_state_reg): New.
11977 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
11978 * dwarf2-frame.c: Update copyright.
11979 (enum dwarf2_reg_rule): Remove.
11980 (struct dwarf2_frame_state): Remove defenition of `struct
11981 dwarf2_frame_state_reg'.
11982 (read_reg): Call get_frame_arch to get the architecture instead of
11983 using CURRENT_GDBARCH.
11984 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
11985 DWARF2_FRAME_.
11986 (dwarf2_frame_init_reg): New function.
11987 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
11988 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
11989 initialize the register state. Prefix old `enum dwarf2_reg_rule'
11990 tags with DWARF2_FRAME_.
11991 (dwarf2_frame_prev_register): Call get_frame_arch to get the
11992 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
11993 dwarf2_reg_rule' tags with DWARF2_FRAME_.
11994
ec7d9e56
AC
119952004-02-06 Andrew Cagney <cagney@redhat.com>
11996
dd1abb8c
AC
11997 * tui/tui-data.h (struct tui_list): Rename _TuiList.
11998 (enum tui_data_type): Rename _TuiDataType.
11999 (struct tui_layout_def): Rename _TuiLayoutDef.
12000 (struct tui_source_element): Rename _TuiSourceElement.
12001 (struct tui_data_element): Rename _TuiDataElement.
12002 (struct tui_command_element): Rename _TuiCommandElement.
12003 (struct tui_locator_element): Rename _TuiLocatorElement.
12004 (union tui_which_element): Define.
12005 (struct tui_win_element): Rename _TuiWinElement.
12006 (struct tui_data_info): Rename _TuiDataInfo.
12007 (struct tui_source_info): Rename _TuiSourceInfo.
12008 (struct tui_command_info): Rename _TuiCommandInfo.
12009 (tui_initialize_static_data): Rename initializeStaticData.
12010 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
12011 (tui_alloc_win_info): Rename allocWinInfo.
12012 (tui_init_generic_part): Rename initGenericPart.
12013 (tui_init_win_info): Rename initWinInfo.
12014 (tui_alloc_content): Rename allocContent.
12015 (tui_add_content_elements): Rename addContentElements.
12016 (tui_init_content_element): Rename initContentElement.
12017 (tui_free_window): Rename freeWindow.
12018 (tui_free_win_content): Rename freeWinContent.
12019 (tui_free_data_content): Rename freeDataContent.
12020 (tui_free_all_source_wins_content): Rename
12021 freeAllSourceWinsContent.
12022 (tui_del_window): Rename tuiDelWindow.
12023 (tui_del_data_windows): Rename tuiDelDataWindows.
12024 (tui_partial_win_by_name): Rename partialWinByName.
12025 (tui_win_name): Rename winName.
12026 (tui_current_layout): Rename currentLayout.
12027 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
12028 (tui_term_height): Rename termHeight.
12029 (tui_set_term_height_to): Rename setTermHeightTo.
12030 (tui_term_width): Rename termWidth.
12031 (tui_set_term_width_to): Rename setTermWidthTo.
12032 (tui_set_gen_win_origin): Rename setGenWinOrigin.
12033 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
12034 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
12035 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
12036 (tui_source_windows): Rename sourceWindows.
12037 (tui_clear_source_windows): Rename clearSourceWindows.
12038 (tui_clear_source_windows_detail): Rename
12039 clearSourceWindowsDetail.
12040 (tui_clear_win_detail): Rename clearWinDetail.
12041 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
12042 (tui_default_tab_len): Rename tuiDefaultTabLen.
12043 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
12044 (tui_win_with_focus): Rename tuiWinWithFocus.
12045 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
12046 (tui_layout_def): Rename tuiLayoutDef.
12047 (tui_win_resized): Rename tuiWinResized.
12048 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
12049 (tui_next_win): Rename tuiNextWin.
12050 (tui_prev_win): Rename tuiPrevWin.
12051 (tui_add_to_source_windows): Rename addToSourceWindows.
12052 * tui/tui-winsource.c, tui/tui-win.c: Update references.
12053 * tui/tui-layout.c, tui/tui-source.c: Ditto.
12054 * tui/tui-stack.c, tui/tui-io.c: Ditto.
12055 * tui/tui.c, tui/tui-data.c: Ditto.
12056 * tui/tui-interp.c, tui/tui-data.c: Ditto.
12057 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
12058
a358af15
AC
12059 * tui/tui-source.h: Update copyright. Include "tui-data.h".
12060 (struct symtab): Declare.
12061 (tui_set_source_content): Rename tuiSetSourceContent.
12062 (tui_show_symtab_source): Rename tuiShowSource.
12063 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
12064 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
12065 * tui/tui-source.c: Update copyright. Update references.
12066 * tui/tui-win.c, tui/tui-winsource.c: Update references.
12067 * tui/tui-stack.c: Update references.
12068
a21fcd8f
AC
12069 * tui/tui-win.h: Update copyright. Include "tui-data.h".
12070 (struct tui_win_info): Declare.
12071 (tui_scroll_forward): Rename tuiScrollForward.
12072 (tui_scroll_backward): Rename tuiScrollBackward.
12073 (tui_scroll_left): Rename tuiScrollLeft.
12074 (tui_scroll_right): Rename tuiScrollRight.
12075 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
12076 (tui_resize_all): Rename tuiResizeAll.
12077 (tui_refresh_all_win): Rename tuiRefreshAll.
12078 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
12079 * tui/tui-layout.c, * tui/tui-io.c: Update references.
12080 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
12081 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
12082
edae1ccf
AC
12083 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
12084 (tui_erase_data_content): Rename tuiEraseDataContent.
12085 (tui_display_all_data): Rename tuiDisplayAllData.
12086 (tui_check_data_values): Rename tuiCheckDataValues.
12087 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
12088 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
12089 (tui_first_data_element_no_in_line): Rename
12090 tuiFirstDataElementNoInLine.
12091 (tui_delete_data_content_windows): Rename
12092 tuiDeleteDataContentWindows.
12093 (tui_refresh_data_win): Rename tuiRefreshDataWin.
12094 (tui_display_data_from): Rename tuiDisplayDataFrom.
12095 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
12096 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
12097 * tui/tui-win.c, tui/tui-regs.c: Update references.
12098 * tui/tui-layout.c, tui/tui.c: Update references.
12099
ec7d9e56
AC
12100 * tui/tui-wingeneral.h: Update copyright.
12101 (m_allBeVisible): Delete macro.
8a1dac83 12102 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
12103 (struct tui_gen_win_info): Declare.
12104 (struct tui_win_info): Declare.
12105 (tui_unhighlight_win): Rename unhighlightWin.
12106 (tui_make_visible, tui_make_invisible): Replace makeVisible.
12107 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
12108 (tui_make_window): Rename makeWindow.
12109 (tui_copy_win): Rename copyWin.
12110 (tui_box_win): Rename boxWin.
12111 (tui_highlight_win): Rename highlightWin.
12112 (tui_check_and_display_highlight_if_needed): Rename
12113 checkAndDisplayHighlightIfNeeded.
12114 (tui_refresh_all): Rename refreshAll.
12115 (tui_delete_win): Rename tuiDelwin.
12116 (tui_refresh_win): Rename tuiRefreshWin.
12117 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
12118 (tui_make_visible, tui_make_invisible): New functions.
12119 (tui_make_all_visible, tui_make_all_invisible): New functions.
12120 (make_all_visible): Rename makeAllVisible.
12121 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
12122 * tui/tui-data.c, tui/tui-winsource.c: Update references.
12123 * tui/tui-windata.c, tui/tui-win.c: Update references.
12124 * tui/tui-regs.c, tui/tui-layout.c: Update references.
12125 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
12126
1e52e2eb
MK
121272004-02-06 Mark Kettenis <kettenis@gnu.org>
12128
12129 * proc-api.c (write_with_trace): Initialize local variable to
12130 silence compiler warning.
12131
f80bda8e
AC
121322004-02-06 Andrew Cagney <cagney@redhat.com>
12133
12134 * tui/tui-source.h: Do not include "defs.h".
12135 (struct tui_win_info): Declare.
12136 (tui_set_source_content_nil): Declare.
12137 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
12138 (union tui_line_or_address): Rename _TuiLineOrAddress.
12139 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
12140 (tui_update_source_window): Rename tuiUpdateSourceWindow.
12141 (tui_update_source_window_as_is): Rename
12142 tuiUpdateSourceWindowAsIs.
12143 (tui_update_source_windows_with_addr): Rename
12144 tuiUpdateSourceWindowsWithAddr.
12145 (tui_update_source_windows_with_line): Rename
12146 tuiUpdateSourceWindowsWithLine.
12147 (tui_clear_source_content): Rename tuiClearSourceContent.
12148 (tui_erase_source_content): Rename tuiEraseSourceContent.
12149 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
12150 (tui_show_source_content): Rename tuiShowSourceContent.
12151 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
12152 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
12153 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
12154 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
12155 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
12156 (tui_update_exec_info): Rename tuiUpdateExecInfo.
12157 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
12158 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
12159 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
12160 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
12161 (struct tui_win_info): Declare.
12162 * tui/tui-stack.c: Update references.
12163 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
12164 * tui/tui-win.c, tui/tui-source.c: Ditto.
12165 * tui/tui.c, tui/tui-disasm.c: Ditto.
12166
9fbfb822
MK
121672004-02-06 Mark Kettenis <kettenis@gnu.org>
12168
12169 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
12170 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
12171
03cebad2
MK
121722004-02-05 Mark Kettenis <kettenis@gnu.org>
12173
12174 * infrun.c (handle_inferior_event): Allow for breakpoint
12175 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
12176 and SIGEMT. Update comments.
12177 * NEWS (Revised SPARC target): Mention support for non-executable
12178 stack.
12179
290281b1
MK
121802004-02-04 Mark Kettenis <kettenis@gnu.org>
12181
12182 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
12183 * inftarg.c: Update copyright year.
12184 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
12185 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
12186 (sparc_xfer_wcookie): New function.
12187 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12188 * Makefile.in (sparc-nat.o): Update dependencies.
12189 * config/sparc/nm-nbsd.h: Include "target.h".
12190 (NATIVE_XFER_WCOOKIE): New define.
12191 (sparc_xfer_wcookie): New prototype.
12192
212161df
AC
121932004-02-04 Andrew Cagney <cagney@redhat.com>
12194
12195 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
12196 SYSCALL_TRAP function.
12197 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
12198
6e4c6c91
DJ
121992004-02-04 Andrew Cagney <cagney@redhat.com>
12200 Daniel Jacobowitz <drow@mvista.com>
12201
12202 * objfiles.h: Delete comments refering to inside_entry_func and
12203 DEPRECATED_FRAME_CHAIN_VALID.
12204 * defs.h (inside_entry_func): Update prototype..
12205 * blockframe.c (inside_entry_func): Rename to
12206 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
12207 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
12208
cae688ec
JJ
122092004-02-03 Jeff Johnston <jjohnstn@redhat.com>
12210
12211 * breakpoint.c (struct captured_parse_breakpoint_args): Move
12212 outside of #ifdef SOLIB_ADD region.
12213 (do_restore_lang_radix_cleanup): Ditto.
12214 (resolve_pending_breakpoint): Ditto.
12215
19217676
AC
122162004-02-03 Andrew Cagney <cagney@redhat.com>
12217
12218 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
12219 (process_note_abi_tag_sections): Delete unused function.
12220 (ia64_read_fp): Delete unused function.
12221 (gdbarch_extract_struct_value_address): Delete declaration.
12222
876753be
AC
122232004-02-02 Andrew Cagney <cagney@redhat.com>
12224
12225 * vax-tdep.c (vax_frame_chain): Delete call to
12226 deprecated_inside_entry_file.
12227 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
12228
d4f10bf2
MK
122292004-02-02 Mark Kettenis <kettenis@gnu.org>
12230
12231 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
12232 column that's "empty" or "same value" when eliminating REG_RA
12233 rules.
12234
cae688ec
JJ
122352004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12236
12237 * NEWS: Add information about new pending breakpoint support.
12238
0101ce28
JJ
122392004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12240
12241 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
12242 and pending fields for pending breakpoint support.
12243 * breakpoint.c (breakpoint_enabled): Add check for not pending.
12244 (condition_command): Only parse condition if not a pending
12245 breakpoint.
12246 (print_one_breakpoint): Add support for pending breakpoints.
12247 (describe_other_breakpoints): Add checks to verify we are not
12248 dealing with pending breakpoints.
12249 (check_duplicates): Don't check pending breakpoints.
12250 (set_raw_breakpoint): Initialize pending flag.
12251 (do_restore_lang_radix_cleanup): New cleanup routine.
12252 (resolve_pending_breakpoint): New function.
12253 (re_enable_breakpoints_in_shlibs): Try and resolve any
12254 pending breakpoints via resolve_pending_breakpoint.
12255 (mention): Add pending breakpoint support.
12256 (parse_breakpoint_sals): Add new parameter to pass to
12257 decode_line_1 to indicate silent errors when files or functions
12258 are not found. Change all callers.
12259 (do_captured_parse_breakpoint): New function.
12260 (break_command_1): Change prototype to return an rc value and to
12261 take an optional pending breakpoint pointer. Support creating
12262 a pending breakpoint if a "not found" form of error occurs when
12263 parsing the breakpoint. Also support resolving an existing pending
12264 breakpoint and be silent if the resolution fails.
12265 (create_breakpoints): Change prototype to take pending breakpoint
12266 pointer. When resolving a pending breakpoint, use the new pointer
12267 to provide a conditional or commands added by the end-user.
12268 (delete_breakpoint): Add appropriate check for pending.
12269 (breakpoint_re_set_one): Ditto.
12270 (do_enable_breakpoint): Ditto.
12271
8d577d32
DC
122722004-02-02 David Carlton <carlton@kealia.com>
12273
12274 * valops.c (enum oload_classification): New.
12275 (find_overload_match): Break implementation into separate
12276 functions; delete #if 0'd code; look for symbols within
12277 namespaces.
12278 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
12279 (find_oload_champ,oload_method_static,classify_oload_match): New.
12280 * cp-support.h: Add declaration for cp_func_name; update
12281 declaration for make_symbol_overload_list.
12282 * cp-support.c (cp_func_name): New.
12283 (overload_list_add_symbol): Fix comment, use
12284 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
12285 (make_symbol_overload_list): Take a function name and a namespace
12286 instead of a symbol; change implementation.
12287 (make_symbol_overload_list_using): New.
12288 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
12289
22e8e3c7
FF
122902004-02-02 Fred Fish <fnf@redhat.com>
12291
12292 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 12293 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
12294 * remote-sim.c (gdb_os_write_stderr): Write output to
12295 gdb_stdtargerr stream instead of gdb_stdtarg stream.
12296 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 12297 gdb_stderr stream and update copyright years.
22e8e3c7 12298
6b753f60
DJ
122992004-02-01 Daniel Jacobowitz <drow@mvista.com>
12300
12301 * Makefile.in (mips-linux-nat.o): Update dependencies.
12302 * mips-linux-nat.c: Include mips-tdep.h.
12303
123042004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
12305
12306 * sol-thread.c (sol_thread_xfer_partial): New function.
12307 (init_sol_thread_ops): Use that for to_xfer_partial hook.
12308 (init_sol_core_ops): Likewise.
12309
12310 * procfs.c (procfs_xfer_partial): New function.
12311 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
12312 * Makefile.in (procfs.o): Add $(auxv_h) dep.
12313
12314 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
12315 procfs_xfer_auxv function.
12316
12317 * procfs.c (procfs_make_note_section): If we can read
12318 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
12319 * linux-proc.c (linux_make_note_section): Likewise.
12320
12321 * auxv.h: New file.
12322 * auxv.c: New file.
12323 * Makefile.in (auxv_h): New variable.
12324 (COMMON_OBS): Add auxv.o here.
12325 (auxv.o): New target.
12326
12327 * corelow.c (core_xfer_partial): New function.
12328 (init_core_ops): Use it for core_ops.to_xfer_partial.
12329
12330 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
12331 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
12332 macro if that is defined.
12333
fa5281d0
DJ
123342004-02-01 Daniel Jacobowitz <drow@mvista.com>
12335
12336 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
12337 and check the specified thread for each breakpoint.
12338 * breakpoint.h (bpstat_stop_status): Update prototype.
12339 * infrun.c (handle_inferior_event): Update calls to
12340 bpstat_stop_status.
12341
26ee262d
DJ
123422004-02-01 Daniel Jacobowitz <drow@mvista.com>
12343
12344 * Makefile.in (cli-cmds.o): Add $(readline_h).
12345
d9b52655
DJ
123462004-02-01 Daniel Jacobowitz <drow@mvista.com>
12347
12348 * cli/cli-cmds.c: Include readline.h.
12349 (complete_command): Pass the start of the last word to
12350 complete_line.
12351
9709f61c
DJ
123522004-01-31 Daniel Jacobowitz <drow@mvista.com>
12353
12354 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
12355 argument, and change first argument to a CORE_ADDR.
12356 * breakpoint.h (bpstat_stop_status): Update prototype.
12357 * infrun.c (adjust_pc_after_break): Add a new comment.
12358 (handle_inferior_event): Update calls to bpstat_stop_status.
12359
4f1280bb
DJ
123602004-01-31 Daniel Jacobowitz <drow@mvista.com>
12361
12362 * breakpoint.h: Update copyright years.
12363
4fa8626c
DJ
123642004-01-31 Daniel Jacobowitz <drow@mvista.com>
12365
12366 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
12367 (bpstat_stop_status): Don't decrement PC.
12368 * breakpoint.h (software_breakpoint_inserted_here_p): Add
12369 prototype.
12370 * infrun.c (adjust_pc_after_break): New function.
12371 (handle_inferior_event): Call it, early. Remove later references
12372 to DECR_PC_AFTER_BREAK.
12373 (normal_stop): Add commentary.
12374
fad0733a
DJ
123752004-01-31 Daniel Jacobowitz <drow@mvista.com>
12376
12377 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
12378 2004-01-27 double-free fix.
12379
42cdca6c
MK
123802004-01-31 Mark Kettenis <kettenis@gnu.org>
12381
12382 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12383 (sparc32_frame_prev_register): Handle StackGhost.
12384 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12385
932d5416
RM
123862004-01-29 Roland McGrath <roland@redhat.com>
12387
12388 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
12389 * configure: Regenerated.
12390
12391 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
12392 * Makefile.in (procfs.o): Add dep.
12393
47d3492a
AC
123942004-01-28 Andrew Cagney <cagney@redhat.com>
12395
12396 * tui/tui-stack.h: Update copyright.
12397 (struct frame_info): Add opaque declaration.
12398 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
12399 (tui_show_locator_content): Rename tuiShowLocatorContent.
12400 (tui_show_frame_info): Rename tuiShowFrameInfo.
12401 * tui/tui-stack.c: Update copyright. Update references.
12402 * tui/tui-winsource.c: Update references.
12403 * tui/tui-win.c: Update references.
12404 * tui/tui-layout.c: Update references.
12405 * tui/tui-hooks.c: Update copyright, update references.
12406 * tui/tui.c: Update copyright, update references.
12407 * tui/tui-disasm.c: Update references.
12408
5d51ca54
DC
124092004-01-28 David Carlton <carlton@kealia.com>
12410
12411 * dwarf2read.c (add_partial_structure): Use demangled name if
12412 namespace equals "".
12413
086ed43d
JB
124142004-01-27 Jim Blandy <jimb@redhat.com>
12415
12416 Clean up misapplied patch:
12417 * dwarf2read.c (determine_prefix): Change one of the two forward
12418 declarations for 'determine_prefix_aux' to a declaration for this.
12419 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
12420 argument to 'die_specification'.
12421
2a35147e
JB
12422 * dwarf2read.c (read_func_scope): Re-indent comment.
12423
a355c7de 124242004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 12425
a355c7de
AC
12426 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
12427 b->exp to NULL after freeing so that error during re-parsing or
12428 evaluation of expressions associated with breakpoint don't
12429 eventually lead to re-freeing of storage.
12430 Committed by Andrew Cagney.
12431
63ff5125
AC
124322004-01-27 Andrew Cagney <cagney@redhat.com>
12433
12434 * source.c (ambiguous_line_spec): Delete undefined declaration.
12435 * m32r-rom.c (m32r_set_board_address): Delete unused function.
12436 (m32r_set_server_address, m32r_set_download_path): Ditto.
12437 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
12438
e142c38c
DJ
124392004-01-27 Daniel Jacobowitz <drow@mvista.com>
12440
12441 * dwarf2read.c: Update calls to changed and renamed functions, and
12442 references to moved variables.
12443
12444 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
12445 language, language_defn, list_in_scope, and ftypes members.
12446 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
12447 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
12448 (baseaddr): Remove globals.
12449
12450 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
12451 (set_cu_language, die_is_declaration, die_specification)
12452 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
12453 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
12454 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
12455 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
12456
12457 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
12458 cu.list_in_scope. Don't initialize cu_header_offset.
12459 (add_partial_symbol): Add local baseaddr.
12460 (psymtab_to_symtab_1): Add local baseaddr. Use
12461 objfile->section_offsets for consistency. Don't initialize
12462 cu_header_offset; do initialize cu.header.offset and
12463 cu.list_in_scope.
12464 (read_file_scope, read_func_scope, read_lexical_block_scope)
12465 (dwarf_decode_lines, new_symbol): Add local baseaddr.
12466
c6e06ede
MC
124672004-01-27 Michael Chastain <mec.gnu@mindspring.com>
12468
fb328ecc 12469 * PROBLEMS: Add gdb/1516.
c6e06ede 12470
48184fd4
AC
124712003-12-29 Robert Millan <robertmh@gnu.org>
12472
12473 Patch committed by Andrw Cagney.
12474 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
12475 * configure.tgt: Match knetbsd*-gnu.
12476
c1321b30
AC
124772004-01-26 Andrew Cagney <cagney@redhat.com>
12478
f3699be3
AC
12479 * breakpoint.c (catch_command_1): Delete #ifdef code.
12480 (catch_fork_command_1): Delete #ifdef wrapper.
12481 (catch_exec_command_1): Ditto.
12482 (catch_load_command_1): Ditto.
12483 (catch_unload_command_1): Ditto.
12484
c1321b30
AC
12485 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
12486 (catch_breakpoint): Delete #if0ed function.
12487 (disable_catch_breakpoint): Ditto.
12488 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
12489 (disable_catch, enable_catch, delete_catch): Ditto.
12490
b4501125
AC
124912004-01-26 Andrew Cagney <cagney@redhat.com>
12492
12493 * remote.c (echo_check, quit_flag): Delete variables.
12494 (cisco_kernel_mode): Delete variable.
12495 (minitelnet_return, tty_input, escape_count): Delete variables.
12496 (remote_cisco_mode): Delete variable.
12497 (remote_cisco_open, remote_cisco_close): Delete function.
12498 (remote_cisco_mourn, remote_cisco_wait): Delete function.
12499 (init_remote_cisco_ops): Delete function.
12500 (_initialize_remote): Do not install "remote cisco" code.
12501 (read_frame): Delete cisco specific code.
12502 (remote_info_process): Delete function.
12503 (remote_wait): Delete cisco specific code.
12504 (remote_cisco_section_offsets): Delete function.
12505 (remote_cisco_objfile_relocate): Delete function.
12506 (remote_async_wait): Delete cisco specific code.
12507 (minitelnet, readtty, readsocket): Delete function.
12508
74055713
AC
125092004-01-26 Andrew Cagney <cagney@redhat.com>
12510
12511 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
12512 comments mentioning extract_returned_value_address.
12513 * infcmd.c (print_return_value): Update. Add comments on
12514 extract_returned_value_address.
12515 * stack.c (return_command): Add comments on
12516 extract_returned_value_address.
12517 * values.c: Update comment.
12518 * m32r-tdep.c: Update comment.
12519 * sparc-tdep.c: Update comment.
12520 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
12521 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12522 * sh64-tdep.c (sh64_gdbarch_init): Update.
12523 * sh-tdep.c (sh_gdbarch_init): Update.
12524 * s390-tdep.c (s390_gdbarch_init): Update.
12525 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12526 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
12527 * m68k-tdep.c (m68k_gdbarch_init): Update.
12528 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12529 * m32r-tdep.c (m32r_gdbarch_init): Update.
12530 * ia64-tdep.c (ia64_gdbarch_init): Update.
12531 * h8300-tdep.c (h8300_gdbarch_init): Update.
12532 * frv-tdep.c (frv_gdbarch_init): Update.
12533 * arm-tdep.c (arm_gdbarch_init): Update.
12534 * alpha-tdep.c (alpha_gdbarch_init): Update.
12535
a67af2b9
AC
125362004-01-26 Andrew Cagney <cagney@redhat.com>
12537
12538 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
12539 SYMBOL_LOCATION_FUNCS
12540 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
12541 "struct symbol_ops".
12542 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
12543 type to "struct symbol_ops".
12544 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
12545 (struct symbol): Replace ".aux_value.loc.funcs" and
12546 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
12547 (SYMBOL_OBJFILE): Delete macro.
12548 (SYMBOL_LOCATION_FUNCS): Delete macro.
12549 (SYMBOL_LOCATION_BATON): Update.
12550 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
12551 intead of SYMBOL_LOCATION_FUNCS.
12552 * ax-gdb.c (gen_var_ref): Ditto.
12553 * printcmd.c (address_info): Ditto.
12554 * findvar.c (read_var_value): Ditto.
12555 (symbol_read_needs_frame): Ditto.
12556
c034e007
AC
125572004-01-26 Andrew Cagney <cagney@redhat.com>
12558
12559 * dwarf2read.c (read_func_scope): Document frame-base hack.
12560
bb472c1e
MK
125612004-01-25 Mark Kettenis <kettenis@gnu.org>
12562
12563 * infcmd.c (print_return_value): Plug memory leak; delete
12564 ui_stream object. Rename argument `structure_return' to
12565 `struct_return'.
12566
c8e737d5
MK
125672004-01-25 Mark Kettenis <kettenis@gnu.org>
12568
f941662f
MK
12569 * infcmd.c (print_return_value): Wrap long lines.
12570 (finish_command_continuation, finish_command): Remove unused
12571 variable `funcaddr'. Fix some coding-standards problems.
12572
c558d81a 12573 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 12574 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
12575 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
12576 TDEP->fpregset to zero.
12577
bf1e5861 12578 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
12579 floating-point registers for traditional NetBSD core files.
12580 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
12581 TDEP->sizeof_fpregset here.
12582
4c72d57a
MK
125832004-01-25 Mark Kettenis <kettenis@gnu.org>
12584
566626fa
MK
12585 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
12586 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
12587 function with code split out from
12588 sparc32nbsd_sigcontext_frame_cache.
12589 (sparc32nbsd_sigcontext_frame_cache): Use
12590 sparc32nbsd_sigcontext_saved_regs.
12591 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
12592 OpenBSD.
12593 * sparcobsd-tdep.c: New file.
12594 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
12595 (sparcobsd-tdep.o): New dependency.
12596 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
12597 * config/sparc/obsd.mt: New file.
12598
4c72d57a
MK
12599 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
12600 TDEP->fpregset to be initialized to enable core file register
12601 sets.
12602
7e5e9f88
MK
126032004-01-24 Mark Kettenis <kettenis@gnu.org>
12604
f0f207fd 12605 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
12606 Add opaque declarations.
12607 (sparc64nbsd_sigcontext_saved_regs): New prototype.
12608 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
12609 function with code split out from
12610 sparc64nbsd_sigcontext_frame_cache.
12611 (sparc64nbsd_sigcontext_frame_cache): Use
12612 sparc64nbsd_sigcontext_saved_regs.
12613 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
12614 OpenBSD.
12615 * sparc64obsd-tdep.c: New file.
12616 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
12617 (sparc64obsd-tdep.o): New dependency.
12618 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
12619 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
12620 * config/sparc/obsd64.mt: New file.
12621
690668cc
MK
12622 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
12623 read the instruction at PC.
12624
7e5e9f88
MK
12625 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
12626 value of GDB_OSABI_DEFAULT.
12627 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
12628 instead of GDB_OSABI_NETBSD_AOUT.
12629
68b6dce9
NR
126302004-01-24 Nick Roberts <nick@nick.uklinux.net>
12631
12632 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
12633 copyright.
12634
080ce8c0
AC
126352004-01-23 Andrew Cagney <cagney@redhat.com>
12636
12637 * printcmd.c (display_command): Replace tui_set_display call with
12638 tui_set_layout_for_display_command.
12639 * tui/tui.h (enum tui_win_type): Define.
12640 (tui_set_layout): Delete declaration.
12641 (tui_set_layout_for_display_command): Rename set_tui_layout.
12642 * tui/tui-data.h (enum tui_layout_type): Define.
12643 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
12644 "tui.h".
12645 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
12646 (tui_default_win_height): Rename tuiDefaultWinHeight.
12647 (tui_default_win_viewport_height): Rename
12648 tuiDefaultWinViewportHeight.
12649 (tui_set_layout): RenametuiSetLayout.
12650 * tui/tui-layout.c: Update references.
12651 * tui/tui.c: Update references.
12652 * tui/tui-disasm.c: Update references.
12653
b368761e
DC
126542004-01-23 David Carlton <carlton@kealia.com>
12655
12656 Partial workaround for PR c++/1511:
12657 * cp-namespace.c: Include frame.h.
12658 (cp_lookup_transparent_type): New
12659 (cp_lookup_transparent_type_loop): New.
12660 * cp-support.h: Declare cp_lookup_transparent_type.
12661 * symtab.c (basic_lookup_transparent_type): Renamed from
12662 lookup_transparent_type.
12663 (lookup_transparent_type): Replace old body by a call to
12664 current_language->la_lookup_transparent_type.
12665 * symtab.h: Update copyright. Declare
12666 basic_lookup_transparent_type.
12667 * language.h: Update copyright.
12668 (struct language_defn): Add la_lookup_transparent_type.
12669 * language.c: Update copyright.
12670 (unknown_language_defn): Add basic_lookup_transparent_type.
12671 (auto_language_defn): Add basic_lookup_transparent_type.
12672 (local_language_defn): Add basic_lookup_transparent_type.
12673 * ada-lang.c: Update copyright.
12674 (ada_language_defn): Add basic_lookup_transparent_type.
12675 * c-lang.c: Update copyright.
12676 (c_language_defn): Add basic_lookup_transparent_type.
12677 (cplus_language_defn): Add basic_lookup_transparent_type.
12678 (asm_language_defn): Add basic_lookup_transparent_type.
12679 (minimal_language_defn): Add basic_lookup_transparent_type.
12680 * f-lang.c: Update copyright.
12681 (f_language_defn): Add basic_lookup_transparent_type.
12682 * jv-lang.c: Update copyright.
12683 (java_language_defn): Add basic_lookup_transparent_type.
12684 * m2-lang.c: Update copyright.
12685 (m2_language_defn): Add basic_lookup_transparent_type.
12686 * objc-lang.c: Update copyright.
12687 (objc_language_defn): Add basic_lookup_transparent_type.
12688 * p-lang.c: Update copyright.
12689 (p_language_defn): Add basic_lookup_transparent_type.
12690 * scm-lang.c: Update copyright.
12691 (scm_language_defn): Add basic_lookup_transparent_type.
12692 * Makefile.in (cp-namespace.o): Depend on frame.h.
12693
fdde2d81
DC
126942004-01-23 David Carlton <carlton@kealia.com>
12695
12696 Patch for PR c++/1520:
12697 * dwarf2read.c (read_func_scope): Set processing_current_prefix
12698 properly if we have a specification die.
12699 (determine_prefix_aux): Rename from determine_prefix.
12700 (determine_prefix): Like the old determine_prefix, but never
12701 returns NULL.
12702
5b828b6b
TR
127032004-01-23 Theodore A. Roth <troth@openavr.org>
12704
12705 * avr-tdep.c: Update copyright.
12706 (avr_iaddr_p): Delete unused function.
12707 (avr_saddr_p): Delete unused function.
12708
a1b8c067
DC
127092004-01-23 David Carlton <carlton@kealia.com>
12710
12711 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
12712 Fix for PR symtab/1534.
12713
f2cab569
MK
127142004-01-23 Mark Kettenis <kettenis@gnu.org>
12715
12716 * NEWS (New native configurations): Mention OpenBSD/sparc and
12717 OpenBSD/sparc64.
12718 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
12719 * configure.host: Likewise.
12720 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
12721 handler for OpenBSD.
12722 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
12723
642d8300
MK
127242004-01-22 Mark Kettenis <kettenis@gnu.org>
12725
89aac506
MK
12726 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
12727 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
12728
36662fde
MK
12729 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
12730 * cli/cli-cmds.c (shell_escape): Likewise.
12731
642d8300
MK
12732 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
12733 OpenBSD .note.openbsd.ident sections.
12734
fae299cd
DC
127352004-01-22 David Carlton <carlton@kealia.com>
12736
12737 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
12738 get_scope_pc_bounds.
12739 (read_file_scope): Ditto.
12740 (get_scope_pc_bounds): New function, produced by extracting code
12741 from the above two functions, consolidating it, and adding support
12742 for DW_TAG_namespace.
12743
a49d618c
MK
127442004-01-22 Mark Kettenis <kettenis@gnu.org>
12745
12746 * osabi.c (MAX_NOTESZ): New define.
12747 (check_note): New function.
12748 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
12749 check_note.
12750
fe61caab
RM
127512004-01-21 Roland McGrath <roland@redhat.com>
12752
12753 * MAINTAINERS (write after approval): Add myself.
12754
ec145965
EZ
127552004-01-21 Eli Zaretskii <eliz@gnu.org>
12756
12757 * utils.c (init_page_info): Move declarations of `rows' and
12758 `cols' before the __GO32__-specific code. Move the closing brace
12759 outside the #ifdef __GO32__..#endif block.
12760 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
12761
877522db
PB
127622004-01-21 Paul Brook <paul@codesourcery.com>
12763
12764 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
12765 BPSTAT_WHAT_CHECK_SHLIBS.
12766
dbf5be1c
PB
127672004-01-21 Paul Brook <paul@codesourcery.com>
12768
12769 * MAINTAINERS: Add myself to write-after-approval.
12770
81f08b92
AC
127712004-01-20 Andrew Cagney <cagney@redhat.com>
12772
5a1efed7
AC
12773 * ax-gdb.c (print_axs_value): Delete unused function.
12774 * jv-lang.c (java_lookup_type): Delete unused function.
12775 * cli/cli-dump.c (dump_filetype): Delete unused function.
12776 * remote-mips.c (remote_mips_insert_hw_breakpoint)
12777 (remote_mips_remove_hw_breakpoint): Delete unused functions.
12778 (mips_getstring): Delete unused function.
12779 (pmon_insert_breakpoint): Delete #if0ed function.
12780 (PMON_MAX_BP): Delete #if0ed MACRO.
12781 (mips_pmon_bp_info): Delete #if0ed variable.
12782 (pmon_remove_breakpoint): Delete #if0ed function.
12783 * monitor.c (monitor_write_even_block): Delete unused function.
12784 (monitor_write_memory_block): Delete #if0ed code.
12785 * dink32-rom.c (dink32_load): Delete unused function.
12786 (_initialize_dink32_rom): Delete #if0ed code.
12787 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
12788
b0a30fce
AC
12789 * tui/tui-command.c: Update references.
12790 * tui/tui-io.c: Update references.
12791 * tui/tui-command.h: Update copyright.
12792 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
12793
81f08b92
AC
12794 * source.c (ambiguous_line_spec): Delete never-defined function.
12795 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
12796 * gdbtypes.c (add_name, add_mangled_type): Ditto.
12797 * cli/cli-cmds.c (validate_comname): Ditto.
12798
65f05602
AC
12799 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
12800 "tui-data.h".
12801 (tui_set_disassem_content): Rename tuiSetDisassemContent.
12802 (tui_show_disassem): Rename tuiShowDisassem.
12803 (tui_show_disassem_and_update_source): Rename
12804 tuiVerticalDisassemScroll.
12805 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
12806 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
12807 * tui/tui.h: Update copyright.
12808 (enum tui_status): Define.
12809 * tui/tui-data.h (enum tui_scroll_direction): Define.
12810 * tui/tui-disasm.c: Update copyright. Update references.
12811 * tui/tui-winsource.c: Update copyright. Update references.
12812 * tui/tui-win.c: Update references.
12813 * tui/tui-layout.c: Update references.
12814
6bb0384f
AC
128152004-01-20 Andrew Cagney <cagney@redhat.com>
12816
12817 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
12818 sym2 to start of block.
12819
9175c9a3
MC
128202004-01-19 Michael Chastain <mec.gnu@mindspring.com>
12821
12822 * MAINTAINERS: Delete mmalloc.
12823 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
12824 * NEWS: Mention removal of --with-malloc.
12825 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
12826 * config.in: Regenerate.
12827 * configure: Regenerate.
6bb0384f
AC
12828 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
12829 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
12830 * gdbinit.in: Remove mmalloc.
12831 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
12832 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
12833 * config/i386/go32.mh: Likewise.
12834 * config/i386/interix.mh: Likewise.
12835 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
12836
4fcef00a
JJ
128372004-01-19 Jeff Johnston <jjohnstn@redhat.com>
12838
12839 * linespec.c (decode_variable, symtab_from_filename): Call
12840 error_silent with error message instead of throwing an exception
12841 directly.
12842 * defs.h (error_silent, error_output_message): Add prototypes.
12843 (catch_exceptions_with_msg): Ditto.
12844 * utils.c (error_silent, error_output_message): New functions.
12845 * top.c (catch_exceptions_with_msg): New function.
12846
8e94b928
NR
128472004-01-20 Nick Roberts <nick@nick.uklinux.net>
12848
12849 * mi/mi-cmds.h (enum print_values): Add definition.
12850
12851 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
12852 type and value for simple data types and just the name and type
12853 for complex ones, if required.
12854
12855 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
12856 children, if required.
12857
a02d6af8
KB
128582004-01-19 Kevin Buettner <kevinb@redhat.com>
12859
12860 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
12861 unused declarations.
12862
78a4a9b9
AC
128632004-01-19 Andrew Cagney <cagney@redhat.com>
12864
12865 * top.h (mapped_symbol_files): Delete declaration.
12866 * main.c (captured_main): Delete option "m" and "mapped".
12867 * objfiles.c (mapped_symbol_files): Delete variable.
12868 * symfile.c (symbol_file_command): Delete mmap code.
12869 (symbol_file_add_with_addrs_or_offsets): Ditto.
12870 (add_symbol_file_command, reread_separate_symbols): Ditto.
12871 * objfiles.h (OBJF_MAPPED): Delete.
12872 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
12873 (free_objfile) [USE_MMALLOC]: Ditto.
12874 (open_existing_mapped_file): Delete function.
12875 (open_mapped_file): Delete function.
12876 (map_to_file): Delete function.
12877
2dbd5e30
KB
128782004-01-19 Kevin Buettner <kevinb@redhat.com>
12879
12880 * infrun.c (step_into_function): Account for possible breakpoint
12881 adjustment when computing ``stop_func_start''.
12882
437b434f
KB
128832004-01-19 Kevin Buettner <kevinb@redhat.com>
12884
12885 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
12886 the region size against the size of a pointer, not the size of
12887 a register as given by DEPRECATED_REGISTER_SIZE.
12888
55fb0713
AC
128892004-01-19 Andrew Cagney <cagney@redhat.com>
12890
12891 * tui/tui-regs.h: Include "tui-data.h".
12892 (tuiFirstRegElementNoInLine): Delete declaration.
12893 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
12894 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
12895 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
12896 (tui_calculate_regs_column_count): Rename
12897 tuiCalculateRegsColumnCount.
12898 (tui_check_register_values): Rename tuiCheckRegisterValues.
12899 (tui_show_registers): Rename tuiShowRegisters.
12900 (tui_display_registers_from_line): Rename
12901 tuiDisplayRegistersFromLine.
12902 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
12903 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
12904 (tui_first_reg_element_no_inline): Rename
12905 tuiFirstRegElementNoInLine.
12906 * tui/tui-data.h: Update copyright.
12907 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
12908 * tui/tui-windata.c: Update copyright, update references.
12909 * tui/tui-regs.c: Update copyright, update references.
12910 * tui/tui-win.c: Update copyright, update references.
12911 * tui/tui-layout.c: Update copyright, update references.
fe61caab 12912
cebe9500
AC
129132004-01-18 Andrew Cagney <cagney@redhat.com>
12914
bcdf1568
AC
12915 * tui/tui-io.c: Update copyright.
12916 (key_is_end_sequence, key_is_backspace): New functions.
12917 (key_is_command_char, key_is_start_sequence): New function.
12918 (tui_getc): Update references.
12919 * tui/tui-io.h: Update copyright.
12920 (m_tuiStartNewLine): Delete macro.
12921 (m_isBackspace, m_isDeleteChar): Delete macros.
12922 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
12923 (m_isNextPage, m_isPrevPage): Delete macros.
12924 (m_isLeftArrow, m_isRightArrow): Delete macros.
12925 (m_isXdbStyleCommandChar): Delete macro.
12926 (key_is_start_sequence): Declare, replace m_isStartSequence.
12927 (key_is_end_sequence): Declare, replace m_isEndSequence.
12928 (key_is_backspace): Declare ,replace m_isBackspace.
12929 (key_is_command_char): Declare, replace m_isCommandChar.
12930 * tui/tui-command.c: Update copyright.
12931 (tuiDispatchCtrlChar): Update references.
12932
130d87e6
AC
12933 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
12934 tuiSourceWin.h.
12935
d7b2e967
AC
12936 * tui/tui-command.c: Rename tui/tuiCommand.c.
12937 * tui/tui-command.h: Rename tui/tuiCommand.h.
12938 * tui/tui-data.c: Rename tui/tuiData.c.
12939 * tui/tui-data.h: Rename tui/tuiData.h.
12940 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
12941 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
12942 * tui/tui-io.c: Rename tui/tuiIO.c.
12943 * tui/tui-io.h: Rename tui/tuiIO.h.
12944 * tui/tui-layout.c: Rename tui/tuiLayout.c.
12945 * tui/tui-layout.h: Rename tui/tuiLayout.h.
12946 * tui/tui-regs.c: Rename tui/tuiRegs.c.
12947 * tui/tui-regs.h: Rename tui/tuiRegs.h.
12948 * tui/tui-source.c: Rename tui/tuiSource.c.
12949 * tui/tui-source.h: Rename tui/tuiSource.h.
12950 * tui/tui-stack.c: Rename tui/tuiStack.c.
12951 * tui/tui-stack.h: Rename tui/tuiStack.h.
12952 * tui/tui-win.c: Rename tui/tuiWin.c.
12953 * tui/tui-win.h: Rename tui/tuiWin.h.
12954 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
12955 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
12956 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
12957 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
12958 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
12959 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
12960 * tui/tui-file.c: Update includes.
12961 * tui/tui-hooks.c: Update includes.
12962 * tui/tui-interp.c: Update includes.
12963 * tui/tui.c: Update includes.
12964 * Makefile.in: Update all tui/ dependencies.
12965 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
12966
b2100910
AC
12967 * Makefile.in: Update copyright. Update dependencies.
12968
cebe9500
AC
12969 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
12970 problem.
12971
c6f0559b
AC
129722004-01-18 Andrew Cagney <cagney@redhat.com>
12973
43e9390b
AC
12974 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
12975 instead of register_gdbarch_init.
12976
c6f0559b
AC
12977 * remote-sds.c (tohex): Delete unused function. Update copyright.
12978 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
12979 * v850-tdep.c (v850_register_virtual_size): Ditto.
12980 * target.c (normal_target_post_startup_inferior): Ditto.
12981 * source.c (ambiguous_line_spec): Ditto.
12982 * remote.c (adapt_remote_get_threadinfo): Ditto.
12983 * mi/mi-out.c (out_field_fmt): Ditto.
12984 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
12985 (output_control_change_notification): Ditto.
12986 * m68k-tdep.c (m68k_register_byte): Ditto.
12987 (m68k_remote_breakpoint_from_pc): Ditto.
12988 * ui-out.c (init_ui_out_state): Delete unused declaration.
12989 * stabsread.c (search_value): Ditto.
12990 * mi/mi-cmd-env.c (env_cli_command): Ditto.
12991 * maint.c (print_section_table): Ditto.
12992 * infrun.c (set_follow_fork_mode_command): Ditto.
12993
a8504492
MK
129942004-01-18 Mark Kettenis <kettenis@gnu.org>
12995
12996 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
12997 DW_CFA_def_cfa_exporession. Add support for
12998 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
12999 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
13000
0bd8997e
AC
130012004-01-18 Andrew Cagney <cagney@redhat.com>
13002
13003 * ocd.c: Update copyright.
13004 (bdm_read_register_command): Delete unused function.
13005 (_initialize_remote_ocd): Delete commented out reference.
13006 (get_quoted_char, reset_packet): Delete #if0ed function.
13007 (output_packet, put_quoted_char): Delete #if0ed function.
13008 (stu_put_packet, stu_get_packet): Delete #if0ed function.
13009 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
13010 (BDM_BREAKPOINT): Delete #if0ed macro.
13011 (remote_timeout): Delete #if0ed variable.
13012
31bb40e4
MK
130132004-01-18 Mark Kettenis <kettenis@gnu.org>
13014
13015 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
13016 (core-sol2.o): Remove dependency.
13017 * core-sol2.c: Remove file.
13018
887432a5
AC
130192004-01-17 Andrew Cagney <cagney@redhat.com>
13020
13021 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
13022 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
13023 enums.
13024
29182b13
DJ
130252004-01-17 Daniel Jacobowitz <drow@mvista.com>
13026
13027 * remote.c: Update copyright years.
13028
2963ee1d
DJ
130292004-01-17 Daniel Jacobowitz <drow@mvista.com>
13030
13031 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
13032
79d45cd4
AC
130332004-01-17 Andrew Cagney <cagney@redhat.com>
13034
ee300cd4
AC
13035 * mdebugread.c: Update copyright.
13036 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
13037 (parse_type, parse_procedure): Ditto.
13038 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
13039
fcacc9c2
AC
13040 * cris-tdep.c (cris_store_struct_return): Put back accidently
13041 deleted function.
13042
79d45cd4
AC
13043 * gdbarch.sh: Update copyright year.
13044 * gdbarch.h, gdbarch.c: Re-generate.
13045
b263358a
DJ
130462004-01-17 Daniel Jacobowitz <drow@mvista.com>
13047
13048 Suggested by George Anzinger.
13049 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
13050 correct stack offset. Include unknown opcode numbers in the error
13051 message.
13052
931aecf5
AC
130532004-01-17 Andrew Cagney <cagney@redhat.com>
13054
13055 * x86-64-tdep.c (x86_64_init_abi): No need to clear
13056 extract_struct_value_address, i386 does not set it.
13057 * sparc64-tdep.c (sparc64_init_abi): Do not set
13058 extract_struct_value_address, never called.
13059 (sparc64_extract_struct_value_address): Delete function.
13060 * m68hc11-tdep.c: Update copyright.
13061 (m68hc11_gdbarch_init): Delete redundant assignment of
13062 extract_struct_value_address.
13063 * i386-tdep.c: Update copyright.
13064 (i386_gdbarch_init): Do not set extract_struct_value_address,
13065 never called.
13066 (i386_extract_struct_value_address): Delete function.
13067 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
13068 extract_struct_value_address, never called.
13069 (sparc32_extract_struct_value_address): #if 0 function. Add
13070 comments explaining its future.
13071
756fe439
DJ
130722004-01-17 Daniel Jacobowitz <drow@mvista.com>
13073
13074 * arm-tdep.c (arm_write_pc): New function.
13075 (arm_gdbarch_init): Call set_gdbarch_write_pc.
13076
e74f0f02
DJ
130772004-01-17 Daniel Jacobowitz <drow@mvista.com>
13078
13079 * breakpoint.c (must_shift_inst_regs): Delete.
13080 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
13081 and SHIFT_INST_REGS.
13082 * infcmd.c (step_1, step_1_continuation): Delete references to
13083 SHIFT_INST_REGS.
13084 * infrun.c (keep_going): Likewise.
13085 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
13086 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
13087
b6cb9035
AC
130882004-01-17 Andrew Cagney <cagney@redhat.com>
13089
444a1e2e
AC
13090 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13091 * gdbarch.h, gdbarch.c: Re-generate.
13092 * infcmd.c (print_return_value): Delete reference to
13093 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
13094
def7e6ed
AC
13095 * cris-tdep.c (cris_gdbarch_init): Do not set
13096 deprecated_extract_struct_value_address.
13097
07be497a
AC
13098 * xstormy16-tdep.c: Update copyright.
13099 (xstormy16_extract_struct_value_address): Update to current
13100 extract struct value address interface.
13101 (xstormy16_gdbarch_init): Set extract_struct_value_address.
13102 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
13103 current extract struct value address interface.
13104 (sh64_gdbarch_init): Set extract_struct_value_address.
13105
6b4d5c91
AC
13106 * cris-tdep.c: Update copyright.
13107 (cris_extract_struct_value_address): Delete function.
13108 (struct_return_address): Delete variable.
13109 (cris_store_struct_return): Do not set struct_return_address.
13110
464e0365
AC
13111 * mcore-tdep.c: Update copyright.
13112 (mcore_extract_struct_value_address): Delete function. Update
13113 comments.
13114 (mcore_gdbarch_init): Update.
13115 * mn10300-tdep.c: Update copyright.
13116 (mn10300_extract_struct_value_address): Delete function.
13117 (mn10300_gdbarch_init): Update.
13118 * v850-tdep.c: Update copyright.
13119 (v850_extract_struct_value_address): Delete.
13120 (v850_gdbarch_init): Update.
13121 * ns32k-tdep.c: Update copyright.
13122 (ns32k_extract_struct_value_address): Delete.
13123 (ns32k_gdbarch_init): Update.
13124 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
13125 (hppa_gdbarch_init): Update.
13126 * vax-tdep.c: Update copyright.
13127 (vax_extract_struct_value_address): Delete.
13128 (vax_gdbarch_init): Update.
13129
afb18d0f
AC
13130 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
13131 * gdbarch.h, gdbarch.c: Re-generate.
13132 * procfs.c (procfs_fetch_registers): Delete reference to
13133 DEPRECATED_NPC_REGNUM.
13134 (procfs_store_registers): Ditto.
13135 * regcache.c (generic_target_write_pc): Simplify.
13136 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
13137
a698f53e
AC
13138 * core-sol2.c (fetch_core_registers): Replace
13139 DEPRECATED_NPC_REGNUM with equivalent tdep value.
13140
adc11376
AC
13141 * hppa-tdep.c: Update copyright year.
13142 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
13143 NPC_REGNUM.
13144 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
13145
b6cb9035
AC
13146 * mips-tdep.c (mips_write_pc): New function.
13147 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
13148 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
13149 (mips_find_saved_regs, mips_software_single_step: Ditto.
13150 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
13151 mips_init_extra_frame_info, mips_pop_frame): Ditto.
13152
6d82d43b
AC
131532004-01-17 Andrew Cagney <cagney@redhat.com>
13154
13155 * mips-tdep.c: Re-indent. Group functions by ABI.
13156
71bd6bd4
AC
131572004-01-17 Andrew Cagney <cagney@redhat.com>
13158
13159 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
13160 * gdbarch.c: Re-generate.
13161 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13162 DECR_PC_AFTER_BREAK to zero.
13163 * vax-tdep.c (vax_gdbarch_init): Ditto.
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 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13169 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13170 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13171 * mips-tdep.c (mips_gdbarch_init): Ditto.
13172 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13173 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13174 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13175 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13176 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
13177 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13178 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13179 * frv-tdep.c (frv_gdbarch_init): Ditto.
13180 * cris-tdep.c (cris_gdbarch_init): Ditto.
13181 * avr-tdep.c (avr_gdbarch_init): Ditto.
13182 * arm-tdep.c (arm_gdbarch_init): Ditto.
13183 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
13184
a02abb62
JB
131852004-01-17 J. Brobecker <brobecker@gnat.com>
13186
13187 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
13188 Delete, no longer used.
13189 (read_subrange_type): New function, mostly extracted from
13190 read_array_type().
13191 (read_array_type): Replace extracted code by call to
13192 read_subrange_type().
13193 (dwarf2_get_attr_constant_value): New function.
13194 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
13195 (add_partial_symbol): Likewise.
13196 (process_die): Likewise.
13197 (new_symbol): Likewise.
13198 (read_type_die): Likewise.
13199
cf5b2f1b
AC
132002004-01-16 Andrew Cagney <cagney@redhat.com>
13201
13202 * symfile.c: Update copyright year.
13203 (compare_symbols): Delete unused function.
13204 * stabsread.c: Update copyright year.
13205 (lrs_general_complaint): Delete unused function.
13206 (ref_search_value): Ditto.
13207 (get_substring): Delete declaration.
13208 * sh64-tdep.c: Update copyright year.
13209 (sh64_get_gdb_regnum): Delete unused function.
13210 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
13211 Delete unused function.
13212
d33b9831
MK
132132004-01-17 Mark Kettenis <kettenis@gnu.org>
13214
13215 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
13216 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
13217
7aea86e6
AC
132182004-01-16 Andrew Cagney <cagney@redhat.com>
13219
13220 Changes from Peter Schauer.
13221 * rs6000-tdep.c: Update copyright year.
13222 (rs6000_push_dummy_call): Update the stack pointer before
13223 accessing the corresponding stack region.
13224 * rs6000-nat.c: Update copyright year.
13225 (set_host_arch): Set "info.abfd" to "exec_bfd".
13226
26b0da32
MK
132272004-01-15 Mark Kettenis <kettenis@gnu.org>
13228
13229 * blockframe.c: Update copyright year.
13230 (inside_entry_func): Don't treat a zero PC specially.
13231
86fbe6cc
EZ
132322004-01-14 Elena Zannoni <ezannoni@redhat.com>
13233
13234 * gcore.c (gcore_copy_callback): Use paddr_d to print size
13235 variable.
13236 (gcore_create_callback): Ditto. Skip any memory segment that has
13237 no permissions set.
13238
63d06c5c
DC
132392004-01-14 David Carlton <carlton@kealia.com>
13240
13241 Change symbols for C++ nested types to contain the fully qualified
13242 name, if possible. (At least in the DWARF-2 case.) Partial fix
13243 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
13244 c++/895.
13245 * c-exp.y (qualified_type): Handle types nested within classes.
13246 * cp-namespace.c: Update comments.
13247 (cp_set_block_scope): Delete #if 0.
13248 (cp_lookup_nested_type): Handle types nested within classes.
13249 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
13250 when appropriate.
13251 (add_partial_symbol): Add the name of the enclosing namespace to
13252 types.
13253 (pdi_needs_namespace): New.
13254 (add_partial_namespace): Tweak comment.
13255 (add_partial_structure): New.
13256 (psymtab_to_symtab_1): Initialize processing_current_prefix
13257 here...
13258 (process_die): instead of here.
13259 (read_structure_scope): Try to figure out the name of the class or
13260 namespace that the structure might be defined within.
13261 (read_enumeration): Generate fully-qualified names, if possible.
13262 (read_namespace): Don't set name to NULL.
13263 (die_specification): New.
13264 (new_symbol): Generate fully-qualified names for types.
13265 (read_type_die): Determine appropriate prefix.
13266 (determine_prefix): New.
13267 (typename_concat): New.
13268 (class_name): New.
13269 * valops.c (value_aggregate_elt): Pass NOSIDE to
13270 value_struct_elt_for_reference.
13271 (value_struct_elt_for_reference): Make static, add NOSIDE
13272 parameter, call value_maybe_namespace_elt as a last resort.
13273 (value_namespace_elt): Break out code into
13274 value_maybe_namespace_elt.
13275 (value_maybe_namespace_elt): New.
13276
87783b8b
AC
132772004-01-12 Andrew Cagney <cagney@redhat.com>
13278
13279 * mips-tdep.c (mips_convert_register_p): Handle both raw and
13280 cooked floating-point registers.
13281 (mips_gdbarch_init): Set convert_register_p, register_to_value,
13282 and value_to_register.
13283
6503b91e
AC
132842004-01-13 Andrew Cagney <cagney@redhat.com>
13285
13286 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
13287 * gdbarch.c: Re-generate.
13288 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13289 FUNCTION_START_OFFSET.
13290 * v850-tdep.c (v850_gdbarch_init): Ditto.
13291 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13292 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13293 * sh-tdep.c (sh_gdbarch_init): Ditto.
13294 * s390-tdep.c (s390_gdbarch_init): Ditto.
13295 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13296 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13297 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13298 * mips-tdep.c (mips_gdbarch_init): Ditto.
13299 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13300 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
13301 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13302 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13303 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13304 * i386-tdep.c (i386_gdbarch_init): Ditto.
13305 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13306 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13307 * frv-tdep.c (frv_gdbarch_init): Ditto.
13308 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
13309 * cris-tdep.c (cris_gdbarch_init): Ditto.
13310 * avr-tdep.c (avr_gdbarch_init): Ditto.
13311 * arm-tdep.c (arm_gdbarch_init): Ditto.
13312 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
13313
ea1dd7bc
DJ
133142004-01-13 Daniel Jacobowitz <drow@mvista.com>
13315
13316 * infrun.c (follow_fork_mode_ask): Remove.
13317 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
13318 (follow_fork): Simplify and remove internal error for
13319 follow_fork_mode_ask.
13320 (_initialize_infrun): Update "set follow-fork-mode" help text.
13321
0f0cffd2
AC
133222004-01-13 Andrew Cagney <cagney@redhat.com>
13323
13324 * configure.in: Update copyright year.
13325 (build_warnings): Add -Wunused-label.
13326 * configure: Re-generate.
13327
de38af99
AC
133282004-01-12 Andrew Cagney <cagney@redhat.com>
13329
954a7fba
AC
13330 * exec.h (exec_ops): Make "extern".
13331
de38af99
AC
13332 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
13333 the function is void.
13334 (mips_pseudo_register_write): Ditto.
13335
1a111ce3
AC
133362004-01-12 Andrew Cagney <cagney@redhat.com>
13337
13338 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
13339 call. Never defined.
13340 * sparc-tdep.h (struct frame_info): Add opaque declaration.
13341 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
13342 (struct sparc_gregset, struct regcache): Ditto.
13343 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
13344
48efe704
AC
133452004-01-12 Andrew Cagney <cagney@redhat.com>
13346
13347 * mi/ChangeLog: Delete file. Renamed to ...
13348 * mi/ChangeLog-1999-2003: New file.
13349 * tui/ChangeLog: Delete file. Renamed to ...
13350 * tui/ChangeLog-1998-2003: New file.
fe61caab 13351
a54124c5
MK
133522004-01-11 Mark Kettenis <kettenis@gnu.org>
13353
2ca62865
MK
13354 * sparc64nbsd-tdep.c: Include "regset.h".
13355 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
13356 Remove variables.
13357 (fetch_core_registers): Remove function.
13358 (sparc64nbsd_core_fns): Remove variable.
13359 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
13360 functions.
13361 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
13362 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
13363 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
13364
ca9d58e9
MK
13365 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
13366 sparc_extract_struct_value_address.
13367 (sparc32_gdbarch_init): Set extract_struct_value_address.
13368 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
13369 function.
13370 (sparc64_init_abi): Set extract_struct_value_address. Don't set
13371 return_value_on_stack.
13372
3cc87ec0
MK
13373 * NEWS: Mention that %cs and %ss have been added to the AMD64
13374 configurations
13375
5bf00f29
MK
13376 * frame.c: Update copyright year.
13377 (get_prev_frame): Improve comment.
13378
4f7ec84e
MK
13379 * sparc64fbsd-tdep.c: Include "regset.h".
13380 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
13381 Remove variables.
13382 (fetch_core_registers): Remove function.
13383 (sparc64fbsd_core_fns): Remove variable.
13384 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
13385 functions.
13386 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
13387 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 13388 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 13389
4e7b0cd3
MK
13390 * sparcnbsd-tdep.c: Include "regset.h".
13391 (fetch_core_registers): Remove function.
13392 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
13393 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
13394 functions.
13395 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
13396 TDEP->fpregset.
46b58ce9 13397 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 13398
a54124c5
MK
13399 * sparc-tdep.h (struct regset): Provide opaque declaration.
13400 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
13401 fpregset and sizeof_fpregset members.
13402 * sparc-tdep.c (struct regset): Provide opaque declaration.
13403 (sparc_regset_from_core_section): New function.
13404 (sparc32_gdbarch_init): Initialize TDEP->gregset,
13405 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
13406 Set regset_from_core_section when appropriate.
13407
29ff87c5
MK
134082004-01-10 Mark Kettenis <kettenis@gnu.org>
13409
79b1ab3d
MK
13410 * x86-64-tdep.c (amd64_non_pod_p): New function.
13411 (amd64_classify_aggregate): Return class memory for non-POD
13412 C++ structure types.
13413
6470d250
MK
13414 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
13415 argument. Use it to reserve a register if necessary.
13416 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
13417 amd64_push_arguments.
13418
562c50c2
MK
13419 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
13420
af233647
MK
13421 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
13422 register numbers in comments.
13423 * x86-64-tdep.h: Update copyright year.
13424 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
13425 Adjust for addition of %cs and %ss.
13426 * amd64fbsd-nat.c: Update copyright year.
13427 (reg_offset): Add register offsets for %cs and %ss.
13428 * amd64fbsd-tdep.c: Update copyright year.
13429 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
13430 (amd64fbsd_sc_reg_offset): Likewise.
13431 * x86-64-linux-nat.c: Update copyright year.
13432 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
13433 and %ss.
13434 * amd64nbsd-nat.c: Update copyright year.
13435 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
13436 * amd64nbsd-tdep.c: Update copyright year.
13437 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
13438 * x86-64-linux-tdep.c: Update copyright year.
13439 (user_to_gdb_regmap): Add mapping for %cs and %ss.
13440 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
13441 * regformats/reg-x86-64.dat: Add %cs and %ss.
13442
29ff87c5
MK
13443 * blockframe.c (inside_entry_func): Reformat. Introduce new local
13444 variables to prevent long lines. Update comments to reflect
13445 reality.
13446
38d518c9
EZ
134472004-01-09 David Carlton <carlton@kealia.com>
13448
13449 Checked in by Elena Zannoni <ezannoni@redhat.com>.
13450 * dwarf2read.c (read_namespace): Pull out name-generating code
13451 into namespace_name. Rename previous_namespace to previous_prefix
13452 and processing_current_namespace to processing_current_prefix..
13453 (namespace_name): New function.
13454 (add_partial_symbol): Substitute uses of pdi->name with
13455 actual_name.
13456 * cp-support.h: Rename processing_current_namespace to
13457 processing_current_prefix.
13458 Update copyright year.
13459 * cp-namespace.c: Rename processing_current_namespace to
13460 processing_current_prefix.
13461 Update copyright year.
fe61caab 13462
1e4728e7
AC
134632004-01-09 Andrew Cagney <cagney@redhat.com>
13464
13465 * jv-valprint.c, ser-unix.c: Add missing copyright years.
13466
c77c642a
MK
134672004-01-09 Mark Kettenis <kettenis@gnu.org>
13468
13469 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
13470 complaining.
13471 (process_one_symbol): Deal with N_PATCH stabs.
13472
b44e9041
EZ
134732004-01-09 Elena Zannoni <ezannoni@redhat.com>
13474
13475 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
13476 ifdeffed code.
13477 Update copyright year.
38d518c9 13478
eccfb640
MC
134792004-01-08 Michael Chastain <mec.gnu@mindspring.com>
13480
13481 * config/pa/tm-hppa.h: Update extern declarations for
13482 hppa32_hpux_frame_saved_pc_in_sigtramp,
13483 hppa32_hpux_frame_base_before_sigtramp, and
13484 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
13485
848c5feb
MC
134862004-01-08 Michael Chastain <mec.gnu@mindspring.com>
13487
13488 * config/pa/tm-hppah.h: Update copyright years.
13489
3cc5d663
AC
134902004-01-08 Andrew Cagney <cagney@redhat.com>
13491
13492 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
13493 (mips_o32_reg_struct_has_addr): Delete function.
13494 (mips_gdbarch_init): Update.
13495 (mips_extract_struct_value_address): Delete function.
13496
bfec0b41
JJ
134972004-01-08 David Mosberger <davidm@hpl.hp.com>
13498
13499 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
13500 reality.
13501
16e109ca
AC
135022004-01-07 Andrew Cagney <cagney@redhat.com>
13503
6214a8a1
AC
13504 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
13505 architecture's elf flags (when available).
13506
8d5838b5
AC
13507 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
13508 FPU to the start, check the MIPS FPU when looking for an old
13509 architecture.
13510 (set_mipsfpu_single_command): Update the architecture.
13511 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
13512
480d3dd2
AC
13513 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
13514 (mips_mask_address_p): Add "tdep" parameter.
13515 (show_mask_address, mips_addr_bits_remove): Update.
13516 (mips_dump_tdep): Update.
13517 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
13518 (MIPS_STACK_ARGSIZE): Delete macro.
13519 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
13520 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
13521 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
13522 (mips_dump_tdep): Update.
13523 (MIPS_SAVED_REGSIZE): Delete macro.
13524 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
13525 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
13526 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
13527 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
13528 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
13529 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
13530 (mips_pop_frame, return_value_location): Update.
13531 (mips_n32n64_return_value, mips_dump_tdep): Update.
13532
ec03c1ac
AC
13533 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
13534 MIPS ABI.
13535
16e109ca
AC
13536 * mips-tdep.c: Update copyright.
13537 (mips_gdbarch_init): Merge two code blocks handling the register
13538 name and number layout.
13539
15255275
MS
135402004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
13541
13542 * tracepoint.c (validate_actionline): Fix segv at EOF
13543
9f9057da
MC
135442004-01-07 Michael Chastain <mec.gnu@mindspring.com>
13545
13546 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
13547 properly for static fields.
13548
0127c0d3 135492004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 13550 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
13551
13552 * disasm.c: Update copyright to include 2004.
13553 (do_mixed_source_and_assembly): For uiout asm list
13554 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 13555 NULL and do so prior to loop. Only reset when we close off
0127c0d3 13556 the tuple/list. Move check for whether to close off the
fe61caab 13557 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
13558 on each loop iteration.
13559
5269965e
AC
135602004-01-05 Andrew Cagney <cagney@redhat.com>
13561
54f1137d
AC
13562 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
13563 should be a switch case and not a label.
13564 * mips-tdep.c (mips32_next_pc): Delete unused labels
13565 "greater_equal_branch" and "less_zero_branch".
13566 * jv-valprint.c (java_print_value_fields): Delete unused label
13567 "flush_it".
13568
5269965e
AC
13569 * target.c (unpush_target): Only close a target that is in the
13570 target stack.
13571
dbc22fa1
MK
135722004-01-05 Mark Kettenis <kettenis@gnu.org>
13573
9515395e
MK
13574 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
13575 address from [sp + 64] instead of %o2.
13576
dbc22fa1
MK
13577 * frame.c (get_prev_frame): Don't try to unwind the PC. This
13578 fixes PR backtrace/1476.
13579
5439edaa
AC
135802004-01-05 Andrew Cagney <cagney@redhat.com>
13581
13582 * libunwind-frame.h (struct frame_id): Add opaque declaration,
13583 move to start of file.
13584 * i386-tdep.h (struct regcache): Add opaque declaration.
13585 * config/ia64/nm-linux.h (struct target_ops): Add opaque
13586 declaration.
13587 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
13588 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
13589 * win32-nat.c (fake_create_process): Use ISO C style definition.
13590 * stabsread.c (define_symbol): Delete #ifndef
13591 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
13592 stabs_argument_has_addr call, macro never defined.
13593
19061abe
MC
135942004-01-04 Michael Chastain <mec.gnu@mindspring.com>
13595
13596 * op50-rom.c: Delete.
13597 * w89k-rom.c: Delete.
13598 * Makefile.in: Remove references.
13599
e53bef9f
MK
136002004-01-04 Mark Kettenis <kettenis@gnu.org>
13601
13602 * x86-64-tdep.c: Update copyright year.
13603 (struct amd64_register_info): Rename from x86_64_register_info.
13604 (amd64_register_info): Rename from x86_64_register_info.
13605 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
13606 (amd64_register_name): Rename from x86_64_register_name.
13607 (amd64_register_type): Rename from x86_64_register_type.
13608 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
13609 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
13610 (amd64_dwarf_reg_to_regnum): Rename from
13611 x86_64_dwarf_reg_to_regnum.
13612 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
13613 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
13614 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
13615 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
13616 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
13617 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
13618 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
13619 (amd64_frame_cache): Rename from x86_64_frame_cache.
13620 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
13621 (amd64_frame_prev_register): Rename from
13622 x86_64_frame_prev_register.
13623 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
13624 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
13625 (amd64_sigtramp_frame_cache): Rename from
13626 x86_64_sigtramp_frame_cache.
13627 (amd64_sigtramp_frame_prev_register): Rename from
13628 x86_64_sigtramp_frame_prev_register.
13629 (amd64_sigtramp_frame_unwind): Rename from
13630 x86_64_sigtramp_frame_unwind.
13631 (amd64_sigtramp_frame_sniffer): Rename from
13632 x86_64_sigtramp_frame_sniffer.
13633 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
13634 (amd64_frame_base): Rename from x86_64_frame_base.
13635 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
13636 (amd64_frame_align): Rename from x86_64_frame_align.
13637 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
13638 (amd64_regset_from_core_section): Rename from
13639 x86_64_regset_from_core_section.
13640 (x86_64_init_abi): Update comments.
13641
fca6aa58
NR
136422004-01-04 Nick Roberts <nick@nick.uklinux.net>
13643
13644 * MAINTAINERS (write after approval): Add myself.
13645
8ada74e3
MK
136462004-01-04 Mark Kettenis <kettenis@gnu.org>
13647
13648 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
13649 `float' arguments.
13650
5154b0cd
MK
136512004-01-04 Mark Kettenis <kettenis@gnu.org>
13652
13653 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
13654 such that it mentions a specific version of GCC that exhibits this
13655 bug.
13656
fb316966
MK
136572004-01-03 Mark Kettenis <kettenis@gnu.org>
13658
200cc553
MK
13659 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
13660 structure that has a single `float' member, store it in %f1 in
13661 addition to %f0.
13662
e226a4a0
MK
13663 * sparc-sol2-nat.c: Add missing '\'.
13664
b9d4c5ed
MK
13665 * sparc-tdep.c (sparc32_return_value): New function.
13666 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
13667 Remove functions.
13668 (sparc32_gdbarch_init): Set return_value, don't set
13669 extract_return_value, store_return_value, use_struct_convention
13670 and return_value_on_stack.
13671
fb316966
MK
13672 * sparc-sol2-nat.c: Add missing ')'.
13673
1af510a8
JB
136742004-01-03 J. Brobecker <brobecker@gnat.com>
13675
13676 * infrun.c (handle_step_into_function): New function.
13677 (handle_inferior_event): Extract out some code into the new
13678 function above.
13679
5cf4d23a
JB
136802004-01-03 J. Brobecker <brobecker@gnat.com>
13681
13682 * infrun.c (handle_inferior_event): Move the declaration of
13683 real_stop_pc inside the if blocks where it is used.
13684
60af1db2
MK
136852004-01-03 Mark Kettenis <kettenis@gnu.org>
13686
13687 * sparc64-tdep.c (sparc64_16_byte_align_p)
13688 (sparc64_store_floating_fields, sparc64_store_floating_fields):
13689 Use check_typedef to get subtypes of structures and unions.
13690 (sparc64_store_return_value): Fix calculation of the appropriate
13691 offset into VALBUF when storing a structure or union.
13692 (sparc64_return_value): New function.
13693 (sparc64_use_struct_convention): Remove function.
13694 (sparc64_init_abi): Set return_value, don't set
13695 extract_return_value, store_return_value and
13696 use_struct_convention.
13697
1a901d3f
EZ
136982004-01-03 Eli Zaretskii <eliz@elta.co.il>
13699
13700 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
13701 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
13702 gdb/config/alpha/xm-alphaosf.h,
13703 gdb/config/powerpc/tm-ppcle-eabi.h,
13704 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
13705 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
13706 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
13707 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
13708 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
13709 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
13710 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
13711 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
13712 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
13713 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
13714 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
13715 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
13716 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
13717 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
13718 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
13719 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
13720 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
13721 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
13722 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
13723 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
13724 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
13725 Remove lines for .cvsignore files.
13726
ef52e463
JB
137272004-01-03 J. Brobecker <brobecker@gnat.com>
13728
13729 * infrun.c: Back out the previous change.
13730
cb1bf9dc
MK
137312004-01-03 Mark Kettenis <kettenis@gnu.org>
13732
f0424ef6
MK
13733 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
13734 sparc-*-sunos4* to the list of REMOVED configurations.
13735
cb1bf9dc
MK
13736 * configure.tgt: Add back sparc-*-vxworks*.
13737 * remote-vxsparc.c: Remove all includes except for "defs.h",
13738 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
13739 Include "sparc-tdep.h".
13740 (SPARC_R_G1): New define.
13741 (vxsparc_gregset): New variable.
13742 (ext_format_sparc): Remove extern declaration.
13743 (vx_read_register): Rewrite to use sparc32_supply_gregset and
13744 sparc32_supply_fpregset.
13745 (vx_write_register): Rewrite to use sparc32_collect_gregset,
13746 sparc_collect_rwindow and sparc32_collect_fpregset.
13747 * config/sparc/tm-vxworks.h: New file, based on recently removed
13748 tm-vxsparc.h.
13749 * config/sparc/vxworks.mt: New file, based on recently removed
13750 vxworks.mt.
fe61caab 13751
5e938f9f
JB
137522004-01-03 J. Brobecker <brobecker@gnat.com>
13753
13754 * infrun.c (handle_step_into_function): New function.
13755 (handle_inferior_event): Extract out some code into the new
13756 function above.
13757
386c036b
MK
137582004-01-02 Mark Kettenis <kettenis@gnu.org>
13759
13760 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
13761 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
13762 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
13763 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
13764 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
13765 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
13766 (sparc_nat_h): New variable.
13767 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
13768 (tm-sun4os4.h): Remove dependency.
13769 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
13770 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
13771 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
13772 sparc-tdep.o): Update dependencies.
13773 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
13774 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
13775 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
13776 dependencies.
13777 * configure.host: Remove existing sparc-*-lynxos*,
13778 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
13779 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
13780 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
13781 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
13782 triplets.
13783 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
13784 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
13785 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
13786 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
13787 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
13788 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
13789 sparc64-*-solaris2* and sparc64-*-* triplets.
13790 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
13791 "symtab.h" and "objfiles.h".
13792 (BIAS): Remove define.
13793 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
13794 (X_DISP19): Remove macros.
13795 (sparc_fetch_instruction): Remove function.
13796 (struct gdbarch_tdep): Remove definition.
13797 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
13798 (sparc_breakpoint_from_pc): Remove function.
13799 (struct sparc64_frame_cache): Remove definition.
13800 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
13801 sparc64_unwind_pc): Remove functions.
13802 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
13803 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
13804 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
13805 (sparc64_frame_cache): Change return type to `struct
13806 sparc_frame_cache *'. Simply call sparc_frame_cache.
13807 (sparc64_frame_this_id, sparc64_frame_prev_register,
13808 sparc64_frame_base_address): Use `struct sparc_frame_cache'
13809 instead of `struct sparc64_frame_cache.
13810 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
13811 sparc_analyze_control_transfer, sparc_software_single_step,
13812 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
13813 _initialize_sparc64_tdep): Remove functions.
13814 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
13815 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
13816 macros.
13817 (sparc64_supply_gregset, sparc64_collect_gregset,
13818 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
13819 (sparc64_init_abi): New function.
13820 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
13821 inclusion guard. Include "sparc-tdep.h".
13822 (BIAS): Define.
13823 (r_tstate_offset, r_fprs_offset): New defines.
13824 (enum sparc_regnum): Remove defenition.
13825 (enum sparc64_regnum): Reformat.
13826 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
13827 (sparc64_init_abi, sparc64_supply_gregset,
13828 sparc64_collect_gregset, sparc64_supply_fpregset,
13829 sparc64_collect_fpregset): New prototypes.
13830 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
13831 Add extern declarations.
13832 (sparc64_sol2_init_abi): New prototype.
13833 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
13834 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
13835 prototypes.
13836 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
13837 "sparnbsd-nat.h".
13838 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
13839 functions.
13840 (_initialize_sparc64fbsd_nat): Remove initialization of
13841 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
13842 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 13843 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
13844 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
13845 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
13846 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
13847 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
13848 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
13849 (sparc64fbsd_r_y_offset): Remove variables.
13850 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
13851 Make static and const.
13852 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
13853 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
13854 functions.
13855 (sparc64fbsd_gregset): New variable.
13856 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
13857 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
13858 and sparc64_supply_fpregset.
13859 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
13860 (sparc64fbsd_sigtramp_frame_this_id)
13861 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
13862 (sparc64fbsd_sigtramp_frame_unwind): New variable.
13863 (sparc64fbsd_sigtramp_frame_sniffer): New function.
13864 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
13865 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
13866 * sparcnbsd-tdep.c: Update copyright year. Include
13867 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
13868 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
13869 "value.h" and "sparcnbsd-tdep.h".
13870 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
13871 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
13872 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
13873 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
13874 defines.
13875 (sparcnbsd_gregset): New variable.
13876 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
13877 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
13878 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
13879 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
13880 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
13881 variables.
13882 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
13883 (sparc32nbsd_sigcontext_frame_this_id)
13884 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
13885 (sparc32nbsd_sigcontext_frame_unwind): New variable.
13886 (sparc32nbsd_sigtramp_frame_sniffer): New function.
13887 (sparcnbsd_get_longjmp_target_32,
13888 sparcnbsd_get_longjmp_target_64): Remove functions.
13889 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
13890 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
13891 sparcnbsd_init_elf): Remove.
13892 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
13893 (sparcnbsd_elf_init_abi): New functions.
13894 (_initialize_sparcnbsd_tdep): New prototype.
13895 (_initialize_sparnbsd_tdep): Update.
13896 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
13897 corelow.o. Add sparc64-nat.o and sparc-nat.o.
13898 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
13899 * config/sparc/linux.mh: Update comment.
13900 (XM_FILE, HOST_IPC): Remove variables.
13901 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
13902 sparc-linux-nat.o.
13903 * config/sparc/linux.mt: Update comment.
13904 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
13905 * config/sparc/nbsd.mt: Reformat.
13906 * config/sparc/nbsd64.mh: Update comment.
13907 (NATDEPFILES): Add sparc-nat.o.
13908 * config/sparc/nbsd64.mt: Update comment.
13909 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
13910 (TM_FILE): Set to tm-nbsd.h.
13911 * config/sparc/nbsdelf.mh: Update comment.
13912 (NATDEPFILES): Add sparc-nat.o.
13913 (XM_FILE): Delete.
13914 * config/sparc/nbsdaout.mh: Update comment.
13915 (NATDEPFILES): Add sparc-nat.o
13916 (XM_FILE): Delete.
13917 * config/sparc/nm-linux.h: Update copyright year. Don't include
13918 "config/nm-svr4.h" and "solib.h". Add protection against multiple
13919 inclusion.
13920 (KERNEL_U_SIZE): Remove define.
13921 (kernel_u_size): Remove prototype.
13922 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
13923 * config/sparc/nm-nbsd.h: Update copyright. Don't include
13924 "regcache.h".
13925 (CHILD_PREPARE_TO_STORE): Remove define.
13926 * config/sparc/nm-nbsdaout.h: Tweak some comments.
13927 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
13928 sparcnbsd-nat.c: Rewrite files.
13929 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
13930 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
13931 sparcnbsd-tdep.h: Remove files.
13932 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
13933 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
13934 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
13935 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
13936 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
13937 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
13938 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
13939 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
13940 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
13941 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
13942 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
13943 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
13944 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
13945 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
13946 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
13947 * config/sparc/linux64.mh, config/sparc/linux64.mt,
13948 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
13949 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
13950 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
13951
ee84457a
AC
139522004-01-02 Andrew Cagney <cagney@redhat.com>
13953
13954 From 2003-12-18 Kazuhiro Inaoka:
13955 * configure.host: Add m32r-linux target.
13956
0bc2134e
MC
139572004-01-02 Michael Chastain <mec.gnu@mindspring.com>
13958
13959 * top.c (print_gdb_version): Update year to 2004.
13960
89a72f9c
MM
139612004-01-02 Mark Mitchell <mark@codesourcery.com>
13962
13963 * MAINTAINERS: Add myself to the write-after-approval category.
13964
86b013ed
DJ
139652004-01-02 Daniel Jacobowitz <drow@mvista.com>
13966
13967 From Bernardo Innocenti <bernie@develer.com>:
13968 * configure.tgt: Add uClinux target.
13969
e42c9534
AC
139702004-01-02 Andrew Cagney <cagney@redhat.com>
13971
13972 * utils.c (do_my_cleanups): Make static, add forward declaration.
13973 * defs.h (do_my_cleanups): Delete declaration.
13974
162467d3
EZ
139752004-01-02 Eli Zaretskii <eliz@elta.co.il>
13976
13977 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
13978 bfd/ChangeLog-0203.
13979
78434e59
MK
139802004-01-02 Mark Kettenis <kettenis@gnu.org>
13981
13982 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
13983 in <machine/reg.h>.
13984 * configure, config.in: Regenerate.
13985
48efe704
AC
13986For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
13987tui/ChangeLog-1998-2003.
c906108c
SS
13988\f
13989Local Variables:
13990mode: change-log
13991left-margin: 8
13992fill-column: 74
13993version-control: never
13994End:
This page took 1.287537 seconds and 4 git commands to generate.