2004-11-08 Andrew Cagney <cagney@gnu.org>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
3c8fa307
AC
12004-11-08 Andrew Cagney <cagney@gnu.org>
2
5c26072a
AC
3 * README: Refer to 6.3, not 6.2, update directory listing droppng
4 references to intl/ and mmalloc/.
5 * PROBLEMS: Refer to 6.3 not 6.2.
6
3c8fa307
AC
7 * PROBLEMS: Delete no-longer applicable problems.
8
12b8a2cb
DJ
92004-11-07 Andrew Cagney <cagney@redhat.com>
10 Daniel Jacobowitz <dan@debian.org>
11 Roland McGrath <roland@redhat.com>
12
13 * Makefile.in (symfile-mem.o): Update dependencies.
14 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New.
15 (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p.
16 * inf-ptrace.c (inf_ptrace_attach): Call
17 observer_notify_inferior_created.
18 * inftarg.c (child_attach): Likewise.
19 * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h".
20 (symbol_file_add_from_memory): Take NAME argument. Use it for
21 the new BFD's filename.
22 (add_symbol_file_from_memory_command): Update call to
23 symbol_file_add_from_memory.
24 (struct symbol_file_add_from_memory_args, add_vsyscall_page)
25 (symbol_file_add_from_memory_wrapper): New.
26 (_initialize_symfile_mem): Register add_vsyscall_page as an
27 inferior_created observer.
28
abbc6945
MK
292004-11-07 Mark Kettenis <kettenis@gnu.org>
30
31 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Rename from
32 fetch_inferior_registers. Make static.
33 (m68kbsd_store_inferior_registers): Rename from
34 store_inferior_registers. Make static.
35 (_initialize_m68kbsd_nat): Construct and add target vector.
36 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
37 inftarg.o. Add inf-ptrace.o.
38 (NAT_FILE): Set to tm-solib.h.
39 (LOADLIBES): New variable.
40 * config/m68k/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
41 inftarg.o. Add inf-ptrace.o.
42 (NAT_FILE): Delete variable.
43 * config/m68k/obsd.mh (NATDEPFILES): Remove infptrace.o and
44 inftarg.o. Add inf-ptrace.o.
45 (NAT_FILE): Set to tm-solib.h.
46 * config/m68k/nm-nbsdaout.h: Remove file.
47
3ed09a32
DJ
482004-11-07 Daniel Jacobowitz <dan@debian.org>
49
50 * dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
51 (dwarf2_frame_set_signal_frame_p, dwarf2_frame_signal_frame_p)
52 (dwarf2_signal_frame_unwind): New.
53 (dwarf2_frame_sniffer): Use dwarf2_frame_signal_frame_p.
54 * dwarf2-frame.h (dwarf2_frame_set_signal_frame_p): New prototype.
55
8e763687
MK
562004-11-07 Mark Kettenis <kettenis@gnu.org>
57
4fb31ed0
MK
58 * Makefile.in (mips64obsd-tdep.o): Fix typo.
59
fabe86c8
MK
60 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Renamed
61 from mipsnbsd_ilp32_solib_svr4_fetch_link_map_offsets. Trim sizes
62 to only include the structure members we actually need.
63 (mipsnbsd_lp64_fetch_link_map_offsets): Renamed from
64 mipsnbsd_lp64_solib_svr4_fetch_link_map_offsets. Trim sizes to
65 only include the structure members we actually need.
66 (mipsnbsd_init_abi): Update.
67
366e93e8
MK
68 * mips64obsd-nat.c: Include "mips-tdep.h".
69 (MIPS64OBSD_NUM_REGS): Remove define.
70 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM): New defines.
71 (mips64obsd_supply_gregset, mips64obsd_collect_gregset): Handle
72 floating-point registers correctly.
73 * Makefile.in (mips64obsd-nat.o): Update dependencies.
74
8e763687
MK
75 * mips64obsd-tdep.c: Include "trad-frame.h", "tramp-frame.h" and
76 "gdb_assert.h".
77 (mips64obsd_sigframe_init): New function.
78 (mips64obsd_sigframe): New variable.
79 (mips64obsd_init_abi): Add comments. Prepend mips64obsd_sigrame
80 unwinder.
81 * Makefile.in (mips64obsd-tdep.o): Update dependencies.
82
5f6a2351
JB
832004-11-06 Joel Brobecker <brobecker@gnat.com>
84
85 * alpha-mdebug-tdep.c: #include mdebugread.h.
86 Replace alpha_extra_func_info_t by struct mdebug_extra_func_info *.
87 * Makefile.in (alpha-mdebug-tdep.o): Add dependency on mdebugread.h.
88
f059bf6f
AC
892004-11-05 Andrew Cagney <cagney@gnu.org>
90
91 * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
92 CFI and the init_reg method leave the register unspecified.
93 Include the register name in the "Incomplete CFI data" complaint.
94 Supress leading zeros in the address.
95
1234d960
MK
962004-11-05 Mark Kettenis <kettenis@gnu.org>
97
98 * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
99 skipping a personality routine in a CIE augmentation.
100
d75e3c94
JJ
1012004-11-05 Jeff Johnston <jjohnstn@redhat.com>
102
103 * defs.h (fatal, vfatal): New function prototypes.
104 * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
105 via catch_errors.
106 (backtrace_command): Change to call backtrace_command_stub via
107 catch_errors instead of calling backtrace_command_1 directly.
108 (backtrace_full_command): Ditto.
109 * utils.c (error_stream_1): New static function.
110 (verror): Change to call error_stream_1 instead of error_stream.
111 (error_stream): Call error_stream_1 with RETURN_ERROR argument.
112 (vfatal, fatal): New functions.
113
98f276a0
AC
1142004-11-05 Andrew Cagney <cagney@gnu.org>
115
116 * stack.c (parse_frame_specification_1): Clear selected_frame_p
117 when not using selected frame.
118
f724bf08
MK
1192004-11-05 Mark Kettenis <kettenis@jive.nl>
120
121 * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
122 personality routine in a CIE augmentation.
123
c789492a
FL
1242004-11-05 Felix Lee <felix+log1@specifixinc.com>
125
126 * stack.c (set_current_sal_from_frame): New function.
127 (print_args_stub): Use it.
128 (print_frame_info): Don't set sal here.
129
a81b10ae
MK
1302004-11-04 Mark Kettenis <kettenis@gnu.org>
131
132 * dwarf2-frame.c (read_encoded_value): Change type of third
133 argument to `unsigned char *'. Add support for LEB128 encodings.
134
ad766c0a
JB
1352004-11-04 Jim Blandy <jimb@redhat.com>
136
137 * gdbtypes.c (make_qualified_type): Doc fix. Add assertion to
138 prevent cross-objfile references.
139 (make_cv_type): Doc fix. Don't create cross-objfile references,
140 even for stub types.
141 (replace_type): Add assertion to prevent cross-objfile references.
142 (check_typedef): Never resolve a stub type by copying over a type
143 from another file.
144
c46b0409 1452004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
f16d97c9 146
c46b0409
KI
147 * Makefile.in (m32r-tdep.o): Update dependencies.
148 * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
149 ABI-specific overrides.
150
9f0b0322 1512004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
f16d97c9 152
9f0b0322
KI
153 * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
154 unnecessary parallel execution bit.
155 (m32r_memory_remove_breakpoint): Ditto.
156 (m32r_breakpoint_from_pc): Update.
157
d5c27f81
RC
1582004-11-03 Randolph Chung <tausq@debian.org>
159
160 * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
9f0b0322 161 frame_func_unwind to locate the unwind entry.
d5c27f81
RC
162 (hppa_frame_this_id): Likewise.
163
4577593c
AC
1642004-11-03 Andrew Cagney <cagney@gnu.org>
165
166 * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
167 packet, obsolete configurations, end-of-life deprecated_registers.
168
b04de778
MK
1692004-11-02 Mark Kettenis <kettenis@gnu.org>
170
171 * dwarf2-frame.c (read_encoded_value): Set proper size for signed
172 encodings as well as unsigned encodings.
173
9f2feefc
AC
1742004-11-02 Andrew Cagney <cagney@gnu.org>
175
176 * value.h (COERCE_VARYING_ARRAY): Delete.
177 * valops.c (value_cast, value_slice): Delete use.
178 * valarith.c (value_subscript, value_concat): Delete use.
179
117ea3cf
PH
1802004-11-02 Paul Hilfinger <hilfingr@nile.gnat.com>
181
182 * NEWS: GDB understands GNAT Ada.
183
0bbc026e
JM
1842004-11-01 Joseph S. Myers <joseph@codesourcery.com>
185
186 * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
187 (amd64-sol2-tdep.o): Add dependencies.
188 * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
189 config/i386/sol2-64.mt: New files.
190 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
191 amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
192 (supply_gregset): Correct order of arguments to
193 amd64_supply_native_gregset.
194 (fill_gregset): Correct order of arguments to
195 amd64_collect_native_gregset.
196 * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
197 * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
198 * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
199 for definition of NEW_PROC_API.
200 * configure: Regenerate.
201
3d38a0a5
JM
2022004-11-01 Joseph S. Myers <joseph@codesourcery.com>
203
204 * MAINTAINERS (Write After Approval): Add myself.
205
f81cd1cf
AC
2062004-11-01 Andrew Cagney <cagney@gnu.org>
207
208 * configure.tgt: Mark d10v-*-* as obsolete.
209 * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
210
f4e88c8e
PH
2112004-11-01 Paul N. Hilfinger <Hilfinger@gnat.com>
212
213 * values.c (modify_field): Correct handling of bit-fields that
214 don't fit in 32 bits. Use unsigned operations throughout and
215 simplify the code a bit. Document preconditions.
216
84674fe1
AC
2172004-10-31 Andrew Cagney <cagney@gnu.org>
218
96693b3a
AC
219 * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
220 * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
221 (in_plt_section): Delete.
222
6f296f8f
AC
223 * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
224 (mips_gdbarch_init): Do not set same.
225
618501c0
AC
226 * arch-utils.c (generic_in_solib_call_trampoline): Delete.
227 * arch-utils.h (generic_in_solib_call_trampoline): Delete.
228
b22e8f02
AC
229 * gdbarch.sh (in_solib_call_trampoline): Delete.
230 * gdbarch.h, gdbarch.c: Re-generate.
231
84674fe1
AC
232 * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
233 IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
234 * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
235 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
236 * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
237
c6d1029f
MK
2382004-10-31 Mark Kettenis <kettenis@gnu.org>
239
240 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
241 (mipsnbsd_fetch_inferior_registers): Rename from
242 fetch_inferior_registers. Make static.
243 (mipsnbsd_store_inferior_registers): Rename from
244 store_inferior_registers. Make static.
245 (_initialize_mipsnbsd_nat): New function and prototype.
246 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
247 * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
248 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
249 inf-ptrace.o.
250
bd9ca83f
AC
2512004-10-31 Andrew Cagney <cagney@gnu.org>
252
19d718a3
AC
253 * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
254 (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
255 delete corresponding unused function.
256 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
257 in_solib_call_trampoline.
258 * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
259 * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
260 * config/mips/tm-nbsd.h: Ditto.
261 * config/arm/tm-linux.h: Ditto.
262 * config/mips/tm-linux.h: Ditto.
263
e8ce19c0
AC
264 * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
265 (arm_netbsd_aout_in_solib_call_trampoline): Do not set
266 in_solib_call_trampoline, delete corresponding unused function.
267 * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
268 (vaxnbsd_aout_init_abi): Ditto.
269 * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
270 (sparc32nbsd_aout_init_abi): Ditto.
271 * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
272 (ppc_linux_init_abi): Ditto.
273 * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
274 (ns32knbsd_init_abi_aout): Ditto.
275 * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
276 * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
277 * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
278 (m68kbsd_aout_init_abi): Ditto.
279 * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
280 (i386_cygwin_init_abi): Ditto.
281 * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
282 (i386bsd_init_abi): Ditto.
283
af380d61
AC
284 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
285 in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
286 isn't used by this architecture.
287 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
288 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
289 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
290 * s390-tdep.c (s390_gdbarch_init): Ditto.
291 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
292 * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
293 * i386-tdep.c (i386_svr4_init_abi): Ditto.
294 * i386-nto-tdep.c (i386nto_init_abi): Ditto.
295 * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
296 * amd64-tdep.c (amd64_init_abi): Ditto.
297
0528d9f7
AC
298 * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
299 in_solib_call_trampoline to its default value of
300 generic_in_solib_call_trampoline.
301 * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
302 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
303 * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
304 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
305 * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
306 * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
307
f9f9eacb
AC
308 * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
309
a4ffd1e7
AC
310 * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
311
82e34d2f
AC
312 * config/mips/tm-mips.h: Delete file.
313 * remote-mips.c: Delete tm-mips.h from comment.
314 * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
315 * config/mips/tm-nbsd.h: Don't include tm-mips.h.
316 * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
317 * config/mips/tm-linux.h: Don't include tm-mips.h.
318 * config/mips/tm-vxmips.h: Don't include tm-mips.h.
319 * config/mips/irix5.mt (DEPRECATED_TM_FILE):
320 * config/mips/tm-wince.h: Don't include.
321
75dec9cf
AC
322 * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
323 * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
324 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
325 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
326
bd9ca83f
AC
327 * mdebugread.h (ecoff_relocate_efi): Delete declaration.
328 * mdebugread.c (ecoff_relocate_efi): Delete function.
329 * objfiles.c (objfile_relocate): Delete #ifdef
330 MDEBUG_EFI_SYMBOL_NAME code.
331
3352ef37
AC
3322004-10-31 Orjan Friberg <organ.friberg@axis.com>
333 Andrew Cagney <cagney@gnu.org>
334
335 * gdbarch.sh (single_step_through_delay): Add.
336 * gdbarch.h, gdbarch.c: Re-generate.
337 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
338 (mips_step_skips_delay): Delete.
339 * mips-tdep.c (mips_single_step_through_delay): Replace
340 mips_step_skips_delay.
341 (mips_gdbarch_init): Set single_step_through_delay.
342 (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
343
2440b685
MK
3442004-10-31 Mark Kettenis <kettenis@gnu.org>
345
346 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
347 from TRAMP_FRAME frame type.
348
56a2fed5
AC
3492004-10-31 Andrew Cagney <cagney@gnu.org>
350
9b792b1d
AC
351 * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
352
0a5e8d98
AC
353 * mips-tdep.c (mips_ignore_helper): Delete.
354 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
355 * infrun.c (handle_inferior_event): Delete #ifdef
356 DEPRECATED_IGNORE_HELPER_CALL code.
357
56a2fed5
AC
358 * config/mips/tm-mips.h (RA_REGNUM): Delete.
359
f69c55b2
MK
3602004-10-31 Mark Kettenis <kettenis@gnu.org>
361
362 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
363 (fill_fpregset): Do not compile for 64-bit systems.
364 * i386-sol2-nat.c: Don't include "i386v4-nat.c".
365 * Makefile.in (i386-sol2-nat.o): Update dependencies.
366 * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
367
d37cca3d
AC
3682004-10-30 Andrew Cagney <cagney@gnu.org>
369
36b8628e
AC
370 * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
371 (struct mdebug_extra_func_info): Define.
372 * config/alpha/tm-alpha.h: Delete same.
373 * config/mips/tm-mips.h: Delete same.
374 * mdebugread.c: Delete same.
375 * Makefile.in: Update dependencies.
376 * mips-mdebug-tdep.c: Include "mdebugread.h".
377
5b123146
AC
378 * objfiles.c: Include "mdebugread.h".
379 * mdebugread.c: Include "mdebugread.h".
380 (ecoff_relocate_cfi): Delete.
381 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
382 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
383 * mdebugread.h (ecoff_relocate_efi): New file.
384 * Makefile.in: Update dependencies.
385
b9c3a7de
AC
386 * mips-tdep.c (struct frame_extra_info): Delete.
387 (temp_proc_desc): Delete.
388
f92761ec
AC
389 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
390 MIPS_EFI_SYMBOL_NAME.
391 (mips_extra_func_info_t, mips_extra_func_info): Delete.
392 (struct mdebug_extra_func_info): Replace struct
393 alpha_extra_func_info and alpha_extra_func_info_t.
394 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
395 MIPS_EFI_SYMBOL_NAME.
396 (struct mdebug_extra_func_info): Replace struct
397 alpha_extra_func_info and alpha_extra_func_info_t.
398 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
399 * mdebugread.c, alpha-mdebug-tdep.c:
400
0bb57b31
AC
401 Suggested by Mark Kettenis.
402 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
403 fields frame_adjust and high_addr.
404 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
405 (non_heuristic_proc_desc): Delete references.
406
a5c9623c
AC
407 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
408 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
409 * mips-tdep.c: Update.
410
607fc93c
AC
411 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
412 (MIPS_LAST_EMBED_REGNUM): Add.
413 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
414 (LAST_EMBED_REGNUM): Delete.
415 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
416
24e05951
AC
417 * config/mips/tm-mips.h (PS_REGNUM): Delete.
418 * mips-tdep.h (MIPS_PS_REGNUM): Add.
419 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
420 * mips-linux-nat.c: Update.
421
613e114f
AC
422 * mips-tdep.h: Add comments on registers.
423 (MIPS_UNUSED_REGNUM): Define.
424 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
425 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
426 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
427 * mips-linux-nat.c, remote-mips.c: Update.
428
d37cca3d
AC
429 * config/mips/tm-mips.h (t_insn): Delete.
430 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
431 Replace t_insn with ULONGEST.
432
ceb41096
MK
4332004-10-30 Mark Kettenis <kettenis@gnu.org>
434
d1180b0f
MK
435 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
436 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
437 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
438 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
439 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
440 (mipsnbsd_core_osabi_sniffer): New function.
441 (mipsnbsd_init_abi): Set regset_from_core_section.
442 (_initialize_mipsnbsd_tdep): Remove calls to
443 deprecated_add_core_fns.
444 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
445 (mipsnbsd_regset_from_core_section): New functions.
446 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
447 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
448
ceb41096
MK
449 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
450 Remove optimization for DEPRECATED_FP_REGNUM.
451
ec4045ea
AC
4522004-10-30 Andrew Cagney <cagney@gnu.org>
453
cd65c8f6
AC
454 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
455 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
456 (alpha_setup_arbitrary_frame): Delete.
457 * mips-tdep.c (setup_arbitrary_frame): Delete.
458 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
459 (setup_arbitrary_frame): Delete.
460 * stack.c (parse_frame_specification_1): When specified, call
461 create_new_frame with two parameters. Delete #ifdef
462 SETUP_ARBITRARY_FRAME.
463
95ac2dcf
AC
464 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
465 (MIPS_INSTLEN): Delete.
466 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
467 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
468 * remote-mips.c, mips-tdep.c: Update.
469
1a8da44d
AC
470 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
471 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
472 * mips-tdep.c (mips_mdebug_frame_cache)
473 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
474 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
475 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
476 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
477 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
478 (mips_gdbarch_init): Do not append mdebug sniffers.
479 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
480 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
481 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
482 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
483 * Makefile.in: Update dependencies.
484
e6bc2e8a
AC
485 * mips-tdep.h (mips_abi_regsize): Declare.
486 * mips-tdep.c (mips_abi_regsize): Make non-static.
487
ec4045ea
AC
488 * mips-tdep.c (gdb_print_insn_mips): Simplify.
489 (make_mips16_addr): Delete.
e6bc2e8a 490
6b16acab
MK
4912004-10-30 Mark Kettenis <kettenis@gnu.org>
492
493 * i386-sol2-nat.c: New file.
494 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
495 i386-sol2-tdep.c.
496 (i386-sol2-nat.o): Update dependencies.
497 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
498 i386-sol2-nat.o.
499
8b622e6a
AC
5002004-10-30 Andrew Cagney <cagney@gnu.org>
501
502 Total breakage identified by Joel Brobecker.
503 * mips-tdep.c (after_prologue): Delete.
504 (mips_skip_prologue): Use skip_prologue_using_sal.
505 (heuristic_proc_desc): Delete, unused.
506
772cf8be
MK
5072004-10-30 Mark Kettenis <kettenis@gnu.org>
508
509 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
510 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
511 Cleanup coding style.
512
9c8fdbfa
AC
5132004-10-30 Andrew Cagney <cagney@gnu.org>
514
0fe7e7c8
AC
515 * mips-tdep.h (mips_pc_is_mips16): Declare.
516 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
517 non-static. Update calls.
518
1b295c3d
AC
519 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
520 * command.h (add_setshow_enum_cmd): Declare.
521 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
522
6bcadd06
AC
523 * mips-tdep.c (_initialize_mips_tdep): Use
524 add_setshow_zinteger_cmd.
525
9c8fdbfa
AC
526 * mips-tdep.c (mips_eabi_extract_return_value)
527 (mips_o64_extract_return_value, mips_o64_store_return_value)
528 (return_value_location, mips_eabi_reg_struct_has_addr)
529 (mips_eabi_use_struct_convention)
530 (mips_eabi_store_return_value): Delete.
531 (mips_eabi_store_return_value): New function.
532 (mips_eabi_return_value): New function.
533 (mips_gdbarch_init): For O64 and EABI, delete
534 extract_return_value, store_return_value, use_struct_convention
535 and reg_struct_has_addr, add return_value.
536
1d93fe1a
AC
537 * mips-tdep.c (read_signed_register): Use
538 regcache_cooked_read_signed.
539
303d2914
MK
5402004-10-30 Mark Kettenis <kettenis@gnu.org>
541
542 * mipsread.c: Cleanup coding style.
543 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
544 (mipscoff_symfile_finish): Remove prototypes.
545
5462004-10-29 Mark Kettenis <kettenis@gnu.org>
547
548 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
549 (mips_mdebug_frame_cache, mips16_scan_prologue)
550 (mips32_scan_prologue, mips_stub_frame_cache)
551 (heuristic_proc_start, heuristic_proc_desc)
552 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
553 (mips_n32n64_return_value, mips_o32_push_dummy_call)
554 (mips_o32_return_value, mips_o64_push_dummy_call)
555 (mips_step_skips_delay, mips_skip_trampoline_code)
556 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
557 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
558 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
559 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
560 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
561 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
562 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
563 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
564 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
565 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
566 ZERO_REGNUM.
567 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
568 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
569 ZERO_REGNUM.
570 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
571 A0_REGNUM.
572 * mipsnbsd-nat.c: Include "mips-tdep.h".
573 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
574 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
575
1c8831c5
AC
5762004-10-29 Andrew Cagney <cagney@gnu.org>
577
578 * stack.c (parse_frame_specification_1): New function based on
579 parse_frame_specification. Add message and selected_frame_p
580 paramters. Truely always return non-NULL.
581 (parse_frame_specification): Call parse_frame_specification_1.
582 (frame_info): Update. Eliminate target_has_stack check.
583 (select_frame_command): Update.
584
b04f3ab4
AC
5852004-10-29 Andrew Cagney <cagney@gnu.org>
586
587 * frame.h (get_selected_frame): Add message parameter.
588 * frame.c (get_selected_frame): Add and use message parameter.
589 * stack.c (current_frame_command, return_command, locals_info)
590 (catch_info, args_info, up_silently_base, down_silently_base): Use
591 get_selected_frame with an explicit message.
592 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
593 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
594 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
595 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
596 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
597 * breakpoint.c: Update.
598
5992004-10-29 Andrew Cagney <cagney@gnu.org>
00b25ff3
AC
600
601 * trad-frame.c (trad_frame_get_prev_register): Use
602 frame_unwind_register instead of frame_register_unwind, do not
603 recurse the register's location.
604 * xstormy16-tdep.c (xstormy16_frame_prev_register):
605 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
606 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
607 * sh-tdep.c (sh_frame_prev_register): Ditto.
608 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
609 * i386-tdep.c (i386_frame_prev_register): Ditto.
610 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
611 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
612
7a952542
MK
6132004-10-28 Mark Kettenis <kettenis@jive.nl>
614
c18c06be
MK
615 * proc-events.c: Fix several coding-style issues. Consistently
616 use #ifdef instead of #if defined().
617 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
618 ARRAY_SIZE.
619 (_initialize_proc_events): New prototype.
620
7a952542
MK
621 * proc-why.c: Fix several coding-style issues.
622 (proc_prettyfprint_why): Use ARRAY_SIZE.
623
fcad0fa4
JB
6242004-10-27 Jim Blandy <jimb@redhat.com>
625
626 * remote.c (fetch_register_using_p): Construct 'p' packet in a
627 manner independent of the host byte order.
628
c163184f
MK
6292004-10-27 Mark Kettenis <kettenis@gnu.org>
630
631 * mips-tdep.c (id_delayed): Remove prototype.
632
9c46b6f0
MK
6332004-10-26 Mark Kettenis <kettenis@gnu.org>
634
635 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
636 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
637 to enum with register numbers.
638 (enum mips_insn_size): New enum.
639
0d0266c6
AC
6402004-10-26 Andrew Cagney <cagney@gnu.org>
641
e7d6a6d2
AC
642 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
643 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
644 (mips_gdbarch_init): Update.
645 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
646
c5115f39
AC
647 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
648 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
649 IN_SOLIB_RETURN_TRAMPOLINE.
650 * mips-tdep.c (mips_dump_tdep): Do not print
651 IN_SOLIB_RETURN_TRAMPOLINE.
652 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
653 (mips_gdbarch_init): Update.
654
0d0266c6
AC
655 * mips-tdep.h (mips_software_single_step): Move to here ...
656 * config/mips/tm-mips.h: ... from here.
657 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
658 (SOFTWARE_SINGLE_STEP): Delete.
659 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
660
156a53ca
AC
6612004-10-25 Andrew Cagney <cagney@gnu.org>
662
663 * NEWS: Add Changes since GDB 6.3 section.
664
f27cf670
AS
6652004-10-23 Andreas Schwab <schwab@suse.de>
666
156a53ca
AC
667 * ada-lang.c (grow_vect): Return the new array instead of
668 expecting pointer to pointer to avoid violation of aliasing rules.
f27cf670
AS
669 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
670
121d8485
UW
6712004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
672
673 * s390-tdep.c (enum pv_boolean): Remove.
674 (pv_is_array_ref): Remove.
675 (s390_on_stack): Remove.
676 (S390_NUM_SPILL_SLOTS): Remove.
677 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
678 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
679 (s390_store): Track all stores of orginal incoming registers to the
680 stack constant offsets relative to the CFA, instead of only tracking
681 stores into specific spill slots.
682 (s390_load): Likewise.
683 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
684 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
685 defined as call-saved by the ABI.
686 (s390_push_dummy_call): Use bottom of dummy call argument save area
687 as return value, not the top. Do not store to the called function's
688 register save area.
689 (s390_unwind_dummy_id): Adapt accordingly.
690
0a6ddd08
AC
6912004-10-23 Andrew Cagney <cagney@gnu.org>
692
693 * objfiles.h (struct objfile): Rename obj_private to
694 deprecated_obj_private, sym_private to deprecated_sym_private, and
695 sym_stab_info to deprecated_sym_stab_info.
696 * gdb-stabs.h: Update.
697 * elfread.c: Update.
698 * dbxread.c: Update.
699 * coffread.c: Update.
700 * xcoffread.c: Update.
701 * symfile.c: Update.
702 * somread.c: Update.
703 * nlmread.c: Update.
704 * mdebugread.c: Update.
705 * hpread.c: Update.
706 * coffread.c: Update.
707
abc08782
MK
7082004-10-23 Mark Kettenis <kettenis@gnu.org>
709
710 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
711 * configure.host: Add mips64*-*-openbsd*.
712 * configure.tgt: Add mips64*-*-openbsd*.
713 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
714 mips64obsd-tdep.c.
715 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
716 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
717
fc062ac6
JB
7182004-10-21 Joel Brobecker <brobecker@gnat.com>
719
720 * symtab.c (symbol_search_name): Minor reformatting.
721
5bccb4d1
JB
7222004-10-20 Joel Brobecker <brobecker@gnat.com>
723
724 * symtab.h: Fix typo in comment.
725
a738430d
MK
7262004-10-19 Mark Kettenis <kettenis@gnu.org>
727
728 * dwarf2read.c (struct comp_unit_head): Fix coding style.
729 (dwarf_decode_line_header): Likewise.
730
f2cb65ca
MC
7312004-10-19 Michael Chastain <mec.gnu@mindspring.com>
732
733 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
734
09e55376
AC
7352004-10-19 Andrew Cagney <cagney@gnu.org>
736
737 GDB 6.3 branch created.
738 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
739
bc5f45f8
JB
7402004-10-15 Joel Brobecker <brobecker@gnat.com>
741
742 * dwarf2read.c (set_cu_language): Set language to Ada for
743 DW_LANG_Ada83 and DW_LANG_Ada95.
744
2941da8c
MC
7452004-10-15 Michael Chastain <mec.gnu@mindspring.com>
746
747 From Andreas Schwab <schwab@suse.de>:
748 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
749 for xmalloc and xrealloc.
750
34a17005
AC
7512004-10-15 Andrew Cagney <cagney@gnu.org>
752
753 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
754 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
755 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
756 Update dependencies.
757
714e53ab
PH
7582004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
759
760 * ada-lang.c (ada_lookup_symbol): Correct comment.
761 (ada_evaluate_subexp): Change error message for
762 OP_FUNCALL case so as not to indicate an internal error.
763
7642004-10-15 Joel Brobecker <brobecker@gnat.com>
765
766 Committed by Paul Hilfinger.
767 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
768 type sizes in XVE/XVU types, and emit a warning when that happens,
769 instead of rounding up the size of the resulting type.
770 Some minor reformatting.
771 (ada_is_aligner_type): Do not consider a type as an aligner type
772 if there is a corresponding XVS type as well.
773 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
774 have several levels of pointer indirection to the array.
775
7762004-10-15 Jerome Guitton <guitton@gnat.com>
777
778 Committed by Paul Hilfinger.
779 * ada-lang.c (check_size): New function.
780 (coerce_unspec_val_to_type): call check_size to make sure
781 that the object size is reasonable.
782 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
783 Implements the case when we get a reference when we evaluate
784 the expression of one of the bounds of the slice.
785 (ada_value_struct_elt): when a packed array field is
786 a reference, use ada_coerce_ref to dereference it; use
787 ada_value_ind only if it is a pointer.
788
29639122
JB
7892004-10-15 Joel Brobecker <brobecker@gnat.com>
790
791 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
792 a bit to avoid the necessity of an advance declaration. Remove
793 declaration.
794 (set_reg_offset): Move implemenation up.
795 (mips16_get_imm): Likewise.
796 (mips16_scan_prologue): Likewise.
797 (reset_saved_regs): Likewise.
798 (mips32_scan_prologue): Likewise.
799
a65bbe44
JB
8002004-10-14 Joel Brobecker <brobecker@gnat.com>
801
802 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
803 Remove sp as a parameter, compute it internally instead. Move
804 prologue scanning limit from heuristic_proc_desc to here.
805 (mips16_scan_prologue): Likewise.
806 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
807 by call to mips16_scan_prologue.
808 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
809 by call to mips32_scan_prologue.
810 (heuristic_proc_desc): Remove code that's no longer necessary.
811 Update calls to mips16_scan_prologue and mips32_scan_prologue.
812 (mips_skip_prologue): Update calls to mips16_scan_prologue
813 and mips32_scan_prologue.
814
1c645fec
JB
8152004-10-14 Joel Brobecker <brobecker@gnat.com>
816
817 * mips-tdep.c (mips16_scan_prologue): Merge code from
818 mips16_skip_prologue. Now return the address of the first
819 instruction past the function prologue.
820 (mips16_skip_prologue): Remove, no longer necessary.
821 (mips_skip_prologue): Replace call to mips16_skip_prologue
822 by call to mips16_scan_prologue.
823
98b4dd94
JB
8242004-10-14 Joel Brobecker <brobecker@gnat.com>
825
826 * mips-tdep.c (mips32_scan_prologue): Merge code from
827 mips32_skip_prologue. Now return the address of the first
828 instruction past the function prologue.
829 (mips32_skip_prologue): Remove. No longer necessary.
830 (mips16_skip_prologue): Add parameter end_pc instead of
831 computing it.
832 (mips_skip_prologue): Compute the upper limit for the
833 prologue scanning. Update call to mips16_skip_prologue.
834 Replace call to mips32_skip_prologue by call to
835 mips32_scan_prologue.
836
ad4c72d2
MK
8372004-10-14 Mark Kettenis <kettenis@gnu.org>
838
dfaf8edb
MK
839 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
840 NetBSD system call stubs that store %rp in the ERP slot of the
841 stack frame.
842
3e3a28f1
MK
843 * source.c: Always define O_BINARY to 0 if not defined already.
844 (openp): Unconditionally use O_BINARY.
845
ad4c72d2
MK
846 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
847 * event-top.c (gdb_readline2): Likewise.
848
52bd1401
OF
8492004-10-14 Orjan Friberg <orjanf@axis.com>
850
851 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
852 deprecated_add_core_fns which was removed by mistake.
853
e0e25c6c
KB
8542004-10-13 Kevin Buettner <kevinb@redhat.com>
855
856 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
857 references to deprecated_registers[] with equivalent code.
858
9f335945
KB
8592004-10-13 Kevin Buettner <kevinb@redhat.com>
860
861 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
862 ``deprecated_registers'' with equivalent code. Use gdb_assert()
863 instead of explicit test and print statement.
864
06c2338d
MK
8652004-10-12 Mark Kettenis <kettenis@gnu.org>
866
1b9445c2
MK
867 * sparc-nat.c: Include "inf-ptrace.h".
868 (sparc_target): New function.
869 * sparc-nat.h: Update copyright year.
870 (sparc_target): New prototype.
871 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
872 (_initialize_sparcnbsd_nat): Construct and add target vector.
873 * sparc64nbsd-nat.c: Include "target.h".
874 (_initialize_sparc64nbsd_nat): Construct and add target vector.
875 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
876 Update dependencies.
877 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
878 inftarg.o, add inf-ptrace.o.
879 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
880 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
881 (NAT_FILE): Set to nm-bsd.h.
882 (LOADLIBES): New variable.
883 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
884 infarg.o, add inf-ptrace.o.
885 * config/sparc/nm-nbsdaout.h: Remove file.
886 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
887 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
888 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
889
06c2338d
MK
890 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
891 "fopen-same.h". Update comment.
892
3303a276
MK
8932004-10-11 Mark Kettenis <kettenis@gnu.org>
894
895 * i386gnu-nat.c: Include "gdb_string.h".
896 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
897 registers when the floating-point state isn't initialized.
898 * Makefile.in (i386gnu-nat.o): Update dependencies.
899
04c663e3
DA
9002004-10-11 David Anderson <davea@sgi.com>
901
902 * regcache.c (regcache_raw_read): Comment was missing "to".
903 Extraneous ' removed.
904 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
905 comment now describes use.
906
a5f6c8f5
OF
9072004-10-11 Orjan Friberg <orjanf@axis.com>
908
909 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
910 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
911 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
912 (cris_sigtramp_frame_sniffer): New functions.
913 (cris_gdbarch_init): Hook in signal trampoline unwinder.
914 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
915 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
916 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
917 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
918 command.
919 (cris_version_update): Remove, replace with ...
920 (set_cris_version): New function.
921 (struct gdbarch_tdep, cris_mode, cris_mode_update)
922 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
923 (_initialize_cris_tdep): Remove CRIS mode command.
924 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
925 cris-fpless-backtrace command.
926 (cris_scan_prologue): Fix prologue scanning limit.
927 (cris_register_type): Update to reflect actual registers.
928 (cris_register_bytes_ok) Remove.
929 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
930 Remove set_gdbarch_deprecated_register_size,
931 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
932
77109804
AC
9332004-10-10 Andrew Cagney <cagney@gnu.org>
934
935 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
936 comment.
937
25652d4f
JB
9382004-10-10 Joel Brobecker <brobecker@gnat.com>
939
940 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
941
1e05a7bf
JB
9422004-10-10 Joel Brobecker <brobecker@gnat.com>
943
944 * mips-tdep.c (mips16_scan_prologue): Renames
945 mips16_heuristic_proc_desc. Update comment.
946 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
947 (heuristic_proc_desc): Update calls to the 2 functions above.
948
c68a4142
JB
9492004-10-10 Joel Brobecker <brobecker@gnat.com>
950
951 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
952 Update comments. Also immediately return empty cache when the start
953 address of our function could not be found.
954 (mips_insn32_frame_cache): Likewise.
955
0fce0821
JB
9562004-10-10 Joel Brobecker <brobecker@gnat.com>
957
958 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
959 (mips_insn16_frame_cache): Pass frame cache in call to
960 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
961 Remove code that became redundant as a consequence.
962 (mips32_heuristic_proc_desc): No longer compute a fake
963 procedure descriptor. Compute the full frame cache instead.
964 Some minor comment reformatting.
965
b672553e
JB
9662004-10-10 Jim Blandy <jimb@redhat.com>
967
968 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
969 reader, tracing bytecode stuff): Remove self.
970
9cc52bde
MK
9712004-10-10 Mark Kettenis <kettenis@gnu.org>
972
cc9784b6
MK
973 * sparc64-linux-tdep.c: Update copyright year. Don't include
974 "solib-svr4.h".
975 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
976 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
977 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
978
ee8aef23
MK
979 * sparc-linux-tdep.c: Update copyright year.
980 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
981 to struct frame_info *. Use safe_frame_unwind_memory instead of
982 deprecated_read_memory_nobpt.
983 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
984 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
985 changed signature of sparc_linux_sigtramp_start.
986 (sparc32_linux_pc_in_sigtramp): Remove function.
987 (sparc32_linux_sigtramp_p): New function.
988 (sparc32_linux_sigtramp_frame_sniffer): Use
989 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
990
bc73f8cc
MK
991 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
992 Remove function.
993 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
994
a2249542
MK
995 * ada-lang.c (lim_warning): Re-implement as a varargs function.
996 (decode_packed_array_type, value_subscript_packed)
997 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
998 argument in call to lim_warning.
999
9cc52bde
MK
1000 * configure.in: Really disable the TUI if an enhanced curses
1001 library isn't found.
1002 * configure: Regenerate.
1003
151fc45b
MK
10042004-10-09 Mark Kettenis <kettenis@gnu.org>
1005
1006 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
1007 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
1008 * config/i386/nm-nbsdaout.h: Remove file.
1009 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
1010 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
1011 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
1012 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
1013 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
1014 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
1015 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
1016 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
1017 (ldd, ld_un, ld_2): Remove defines.
1018 * config/i386/nm-obsd.h: Likewise.
1019
375c0479
PH
10202004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
1021
1022 * ada-lex.l: Remove useless rule whose right-context clause
1023 causes unreferenced static function warning for yyrealloc.
1024 (ada_flex_use): Remove the artificial reference to yyrealloc.
1025
c8e73a31
AC
10262004-10-08 Andrew Cagney <cagney@gnu.org>
1027
1028 * target.h (struct target_ops): Rename to_xfer_memory to
1029 deprecated_xfer_memory.
1030 * target.c: Update.
1031 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
1032 * wince.c: Update.
1033 * win32-nat.c: Update.
1034 * v850ice.c: Update.
1035 * uw-thread.c: Update.
1036 * thread-db.c: Update.
1037 * sol-thread.c: Update.
1038 * remote.c: Update.
1039 * remote-vx.c: Update.
1040 * remote-st.c: Update.
1041 * remote-sim.c: Update.
1042 * remote-sds.c: Update.
1043 * remote-rdp.c: Update.
1044 * remote-rdi.c: Update.
1045 * remote-mips.c: Update.
1046 * remote-m32r-sdi.c: Update.
1047 * remote-e7000.c: Update.
1048 * procfs.c: Update.
1049 * ppc-bdm.c: Update.
1050 * nto-procfs.c: Update.
1051 * monitor.c: Update.
1052 * linux-nat.c: Update.
1053 * inftarg.c: Update.
1054 * hpux-thread.c: Update.
1055 * go32-nat.c: Update.
1056 * gnu-nat.c: Update.
1057 * exec.c: Update.
1058 * corelow.c: Update.
1059 * bsd-kvm.c: Update.
1060 * aix-thread.c: Update.
1061
aa869812
AC
10622004-10-08 Andrew Cagney <cagney@gnu.org>
1063
1064 * target.c (debug_target): Move to near start of file.
1065 (target_stopped_data_address_p): Re-org logic, add casts.
1066
8dcef9cf
MK
10672004-10-02 Mark Kettenis <kettenis@gnu.org>
1068
1069 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
1070 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
1071 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
1072 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
1073 New defines.
1074
4aa7a7f5
JJ
10752004-10-08 Jeff Johnston <jjohnstn@redhat.com>
1076
1077 * target.h (to_stopped_data_address): Change prototype to
1078 take a CORE_ADDR pointer and return an int.
1079 * target.c (update_current_target): Change to_stopped_data_address
1080 to match new prototype.
1081 (debug_to_stopped_data_address): Change appropriately.
1082 * breakpoint.c (bpstat_stop_status): Change call to
1083 target_stopped_data_address to use new prototype.
1084 * frv-tdep.c (frv_have_stopped_data_address): New function.
1085 (frv_stopped_data_address): Change to new prototype and
1086 functionality.
1087 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
1088 prototype and functionality.
1089 (ia64_stopped_by_watchpoint): New function.
1090 * i386-nat.c (i386_stopped_data_address): Change to new
1091 prototype and functionality.
1092 (i386_stopped_by_watchpoint): New function.
1093 * remote.c (remote_stopped_data_address): Change to new prototype
1094 and functionality.
1095 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
1096 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
1097 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
1098 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
1099 new i386_stopped_by_watchpoint function.
1100 (i386_stopped_by_watchpoint): New prototype.
1101 (i386_stoppped_data_address): Change to new prototype.
1102 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
1103 new ia64_stopped_by_watchpoint function.
1104 (ia64_stopped_by_watchpoint): New prototype.
1105 (ia64_stopped_data_address): Ditto.
1106
61ee279c
PH
11072004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
1108
1109 * ada-typeprint.c (ada_print_type): Use int_string for printing
1110 modulus of modular type.
1111 * ada-lang.h (ada_modulus): Change return type to unsigned.
1112 * ada-lang.c (ada_language_arch_info): Correct type of
1113 string_char_type.
1114 (ada_modulus): Return unsigned result.
1115 (ada_lookup_symbol): Remove user disambiguation and modify comment
1116 accordingly.
1117
11182004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
1119
1120 Committed by Paul Hilfinger.
1121 * ada-lang.c (decode_packed_array): On big-endian targets,
1122 left-justify the value if it comes with a modular type.
1123
11242004-10-08 Joel Brobecker <brobecker@gnat.com>
1125
1126 Committed by Paul Hilfinger.
1127 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
1128 (is_name_suffix): Add support for "___JM" suffixes.
1129 (ada_check_typedef): Renames ada_completed_type.
1130 Update all users of CHECK_TYPEDEF, check_typedef, and
1131 ada_complete_type to call ada_check_typedef.
1132 * ada-typeprint.c: Likewise.
1133 * ada-valprint.c: Likewise.
1134
b6c25a56
CV
11352004-10-08 Corinna Vinschen <vinschen@redhat.com>
1136
1137 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
1138
83ca6a46
NR
11392004-10-08 Nick Roberts <nickrob@snap.net.nz>
1140
1141 * MAINTAINERS: Update e-mail address.
1142
1fd8cd20
DJ
11432004-10-07 Daniel Jacobowitz <dan@debian.org>
1144
1145 From Maciej W. Rozycki <macro@mips.com>:
1146 * mips-tdep.c (mips32_next_pc): Check the register's contents,
1147 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
1148
cea15572
KI
11492004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
1150
1151 * m32r-tdep.c (decode_prologue): Support functions written
1152 in assembler language. Recognize trap instructions as the
1153 end of prologue.
1154 (m32r_frame_unwind_cache): Ditto.
1155 (m32r_skip_prologue): Extend search limit. Quit analyzing
1156 prologue if pc's location is not readable.
1157
23485554
PH
11582004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
1159
1160 * Makefile.in (.l.c): Do conversions of names of alloc and free
1161 functions that are done for .y.c files, plus special one
1162 for yy_flex_realloc. Also, correct missing-file tests here.
1163 * ada-lex.l (malloc, free): Remove macros.
1164 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
1165 xrealloc.
1166 (ada_flex_use): Dummy definition to remove warnings about unused
1167 functions.
1168 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
1169 to suppress warning.
1170
c0409442
CV
11712004-10-06 Corinna Vinschen <vinschen@redhat.com>
1172
1173 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
1174 RETURN_VALUE.
1175 (sh_return_value_fpu): Ditto for CPUs with FPU.
1176 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
1177 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
1178 Install sh_return_value_nofpu resp. sh_return_value_fpu as
1179 RETURN_VALUE functions.
1180
9bed62d7
CV
11812004-10-06 Corinna Vinschen <vinschen@redhat.com>
1182
1183 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
1184 (sh_pseudo_register_write): Ditto.
1185
03131d99
CV
11862004-10-06 Corinna Vinschen <vinschen@redhat.com>
1187
1188 * sh-tdep.c (IS_MACL_STS): New define.
1189 (IS_MOVI20): Ditto.
1190 (IS_MACL_LDS): Ditto.
1191 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
1192 instructions in prologue.
1193 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
1194 instructions in epilogue.
1195
da962468
CV
11962004-10-06 Corinna Vinschen <vinschen@redhat.com>
1197
1198 * sh-tdep.c (SH_NUM_REGS): Define as 67.
1199 (sh_sh_register_name): Add eight empty register names.
1200 (sh_sh3_register_name): Ditto.
1201 (sh_sh3e_register_name): Ditto.
1202 (sh_sh2e_register_name): Ditto.
1203 (sh_sh2a_register_name): New function, defining SH2A register set.
1204 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
1205 in nofpu case.
1206 (sh_sh_dsp_register_name): Add eight empty register names.
1207 (sh_sh3_dsp_register_name): Ditto.
1208 (sh_sh4_register_name): Ditto.
1209 (sh_sh4_nofpu_register_name): Ditto.
1210 (sh_sh4al_dsp_register_name): Ditto.
1211 (sh2a_show_regs): New function.
1212 (sh2a_nofpu_show_regs): New function.
1213 (sh_sh2a_register_type): New function.
1214 (do_bank_register_info): New function.
1215 (sh_print_pseudo_register): Call do_bank_register_info.
1216 Call sh_print_pseudo_register for valid "bank" register.
1217 (sh_sh2a_register_sim_regno): New function.
1218 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
1219 Increment pseudo register count by one for all sh variants with
1220 pseudo registers to accomodate pseudo bank register.
1221 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
1222 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
1223 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
1224 Increment pseudo register numbers.
1225
1326e61b
CV
12262004-10-06 Corinna Vinschen <vinschen@redhat.com>
1227
1228 * dwarf2read.c (read_subroutine_type): Call make_function_type
1229 instead of lookup_function_type.
1230
146c42e3
JB
12312004-10-05 Jim Blandy <jimb@redhat.com>
1232
1233 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
1234 (Previous change missed some uses.)
1235
1df84f13
AC
12362004-10-05 Andrew Cagney <cagney@gnu.org>
1237
1238 * target.h (deprecated_child_ops): Rename child_ops.
1239 * wince.c: Update copyright. Rename child_ops.
1240 * win32-nat.c: Rename child_ops.
1241 * target.c: Rename child_ops.
1242 * rs6000-nat.c: Rename child_ops.
1243 * linux-nat.c: Rename child_ops.
1244 * infttrace.c: Rename child_ops.
1245 * inftarg.c: Rename child_ops.
1246 * infptrace.c: Rename child_ops.
1247 * hppah-nat.c: Update copyright. Rename child_ops.
1248 * hpux-thread.c: Update copyright. Rename child_ops.
1249
21e3b9b9
DJ
12502004-10-05 Daniel Jacobowitz <dan@debian.org>
1251
1252 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
1253
de83afe7
AC
12542004-10-05 Andrew Cagney <cagney@gnu.org>
1255
1256 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
1257
10b3939b
DJ
12582004-10-05 Daniel Jacobowitz <dan@debian.org>
1259
1260 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
1261 (die_ref_table): Remove.
1262 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
1263 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
1264 the usage of this type.
1265 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
1266 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
1267 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
1268 (dwarf2_create_include_psymtab): Update comment.
1269 (find_partial_die): Remove third argument. Remove unreachable call
1270 to error ().
1271 (dwarf2_find_containing_comp_unit): Update comments. Change one
1272 assertion to an error. Remove an unreachable error.
1273 (dwarf2_find_comp_unit): Update comments.
1274 (type_at_offset): Remove dead code.
1275 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
1276 (store_in_ref_table): Add CU argument.
1277 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
1278 inter-compilation-unit references.
1279 (load_full_comp_unit, process_full_comp_unit): New functions, based
1280 on psymtab_to_symtab_1.
1281 (psymtab_to_symtab_1): Use them.
1282 (dwarf2_add_dependence): New function.
1283 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
1284 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
1285 (partial_die_parent_scope, guess_structure_name): Update for changes
1286 to find_partial_die.
1287 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
1288 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
1289 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
1290 (read_die_and_children): Update call to store_in_ref_table.
1291 (do_free_die_list_cleanup): Remove.
1292 (fixup_partial_die): Update for changes to find_partial_die.
1293 (read_full_die): Handle queueing absolute references.
1294 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
1295 (dwarf2_attr, die_specification, die_type)
1296 (die_containing_type, dwarf2_extension): Update calls to
1297 follow_die_ref.
1298 (dump_die): Update DW_FORM_ref* handling.
1299 (dwarf2_get_ref_die_offset): Likewise.
1300 (free_one_comp_unit): Release the dies list.
1301 (dwarf2_mark_helper): New function.
1302 (dwarf2_mark): Use it.
1303
998bdd68
MK
13042004-10-05 Mark Kettenis <kettenis@jive.nl>
1305
1306 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
1307 when writing to memory.
1308
14588880
KI
13092004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
1310
1311 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
1312 (m32r_extract_struct_value_address): Delete function.
1313 (m32r_return_value): New function.
1314 (m32r_gdbarch_init): Instead of store_return_value,
1315 extract_return_value, deprecated_extract_struct_value_address
1316 and deprecated_use_struct_convention, set return_value.
1317
dd5e6932
DJ
13182004-10-03 Daniel Jacobowitz <dan@debian.org>
1319
1320 * dwarf2read.c (read_subrange_type): Add comment for variable
1321 sized arrays.
1322
7dc1ef8d
PH
13232004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
1324
1325 * Makefile.in (.l.c): Modify rule for compatibility with recent
1326 versions of flex, and remove most command-line options.
1327 * ada-lex.l: Add %options line in place of -I -i and -s command-line
1328 options.
1329
1f8173e6
PH
13302004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
1331
1332 Turn on initial Ada support (mainly expression evaluation).
1333
1334 * Makefile.in (SFILES): Remove ada-tasks.c.
1335 (HFILES_NO_SRCDIR): Add ada-lang.h.
1336 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
1337 (YYOBJ): Add ada-exp.o.
1338 (rule .l.c): Generalize to not mention ada.
1339 * symtab.c: Include ada-lang.h.
1340 (symbol_natural_name, symbol_demangled_name)
1341 (symbol_search_name): Add Ada case.
1342
cb85a953
AC
13432004-10-01 Andrew Cagney <cagney@gnu.org>
1344
3f3db248
AC
1345 * Makefile.in (COMMON_OBS): Add inf-child.o.
1346 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
1347 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1348 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1349 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
1350 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
1351 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
1352 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
1353 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
1354 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1355 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1356 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
1357 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
1358 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
1359
cb85a953
AC
1360 * target.c (xfer_using_stratum): Change return type to LONGEST.
1361 On each iteration offset, readbuf and writebuf.
1362 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
1363 partial_length, and read/modify/write predicate, update comments.
1364 Pass buffer.word to ptrace write.
1365
963a6417
PH
13662004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1367
1368 * symfile.c (init_filename_language_table): Add extensions for
1369 Ada.
1370 * defs.h (enum language): Add language_ada.
1371 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
1372 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
1373 (add_symbols_from_enclosing_procs): Make a no-op for now.
1374 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
1375 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
1376 (find_line_in_linetable, find_next_line_in_linetable)
1377 (read_all_symtabs, is_plausible_func_for_line)
1378 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
1379 (is_runtime_sym_defined, check_size): Remove declaration.
1380 (function_name_from_pc, ada_translate_error_message)
1381 (ada_lookup_minimal_symbol): Remove definition.
1382 (ada_add_block_symbols): Remove useless label.
1383 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
1384 useless declaration.
1385 (ada_is_exception_sym): Likewise.
1386
9b32d526
KI
13872004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
1388
1389 Add m32r-linux support.
1390 * configure.tgt: Add m32r*-*-linux*.
1391 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
1392 and m32r-linux-tdep.c.
1393 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
1394 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
1395 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
1396 m32r-linux-tdep.c.
1397 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
1398 config/m32r/linux.mh, config/m32r/linux.mt,
1399 config/m32r/nm-linux.h: New files.
1400
2de118d3
JB
14012004-09-30 Joel Brobecker <brobecker@gnat.com>
1402
1403 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
1404 (mips32_fetch_instruction): Remove, unused.
1405
a9fe69d1
JB
14062004-09-30 Joel Brobecker <brobecker@gnat.com>
1407
1408 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
1409 conditions that will always be true.
1410
bc8ffc12
MK
14112004-09-30 Mark Kettenis <kettenis@gnu.org>
1412
ba0cd111
MK
1413 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
1414 (vaxbsd_fetch_inferior_registers): Rename from
1415 fetch_inferior_registers. Make static.
1416 (vaxbsd_store_inferior_registers): Rename from
1417 store_inferior_registers. Make static.
1418 (_initialize_vaxbsd_nat): Construct and add target vector.
1419 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1420 inftarg.o. Add inf-child.o and inf-ptrace.o.
1421 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1422 inftarg.o. Add inf-child.o and inf-ptrace.o.
1423 (NAT_FILE): Remove.
1424 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
1425 inftarg.o. Add inf-child.o and inf-ptrace.o.
1426 (NAT_FILE): Remove.
1427 * Makefile.in (vaxbsd-nat.o): Update dependencies.
1428
bc8ffc12
MK
1429 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
1430 (m88kbsd_fetch_inferior_registers): Rename from
1431 fetch_inferior_registers. Make static.
1432 (m88kbsd_store_inferior_registers): Rename from
1433 store_inferior_registers. Make static.
1434 (_initialize_m88kbsd_nat): New prototype and function.
1435 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
1436 inftarg.o. Add inf-child.o and inf-ptrace.o.
1437 (NAT_FILE): Remove.
1438 * Makefile.in (m88kbsd-nat.o): Update dependencies.
1439
27394598
AC
14402004-09-30 Andrew Cagney <cagney@gnu.org>
1441
1442 * target.c (target_xfer_partial): New function.
1443 (target_read_memory_partial, target_write_memory_partial)
1444 (default_xfer_partial, target_read_partial, target_write_partial)
1445 (xfer_using_stratum): Use.
1446 (debug_to_xfer_partial): Delete function.
1447 (setup_target_debug): Do not override to_xfer_partial.
1448
74a4fe32
MK
14492004-09-30 Mark Kettenis <kettenis@chello.nl>
1450
1451 * fork-child.c: Update copyright year. Fix coding style.
1452
982526a1
MK
14532004-09-29 Mark Kettenis <kettenis@gnu.org>
1454
1455 * defs.h (msavestring, mstrsave): Remove prototypes.
1456 * utils.c (msavestring, mstrsave): Remove functions.
1457 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
1458 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
1459 of mstrsave.
1460 * source.c (find_and_open_source): Use xstrdup instead of
1461 mstrsave.
1462
b8eb5af0
AC
14632004-09-30 Andrew Cagney <cagney@gnu.org>
1464
0779438d
AC
1465 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
1466 (inf_ptrace_xfer_memory): Delete.
1467 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
1468 (target_read_memory, target_write_memory): Use xfer_using_stratum
1469 when target_xfer_partial_p.
1470 (debug_target): Move to start of file.
1471 (target_read_memory_partial, target_write_memory_partial): Use
1472 to_xfer_partial when target_xfer_partial_p.
1473
f929a579
AC
1474 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
1475 inf_ptrace_xfer_memory with equivalent code.
1476 * inftarg.c (child_xfer_partial): When performing a write, pass
1477 writebuf to child_xfer_memory.
1478
b8eb5af0
AC
1479 * target.c (target_read_string): Use target_read_memory instead of
1480 target_xfer_memory.
1481
ee21b650
AC
14822004-09-29 Andrew Cagney <cagney@gnu.org>
1483
d3e05d0d
AC
1484 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
1485 the address of status.
1486
ee21b650
AC
1487 * infptrace.c (ptrace_wait): Mention problem with HPUX.
1488 (kill_inferior): Inline ptrace_wait call.
1489 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
1490 * inftarg.c (child_wait): Inline ptrace_wait call.
1491
a182eed6
AC
1492 * target.h (struct target_ops): Delete field to_post_wait.
1493 (target_post_wait): Delete macro.
1494 (child_post_wait): Delete declaration.
1495 * target.c (update_current_target, update_current_target)
1496 (debug_to_post_wait, setup_target_debug): Delete functions and
1497 references.
1498 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
1499 * inftarg.c (child_post_wait): Delete.
1500 (init_child_ops): Do not set to_post_wait.
1501 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
1502 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
1503 * inf-child.c (inf_child_post_wait): Delete.
1504 (inf_child_target): Do not set to_post_wait.
1505 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
1506 (inf_ptrace_target): Do not set to_post_wait.
1507
ba0c540b
AC
1508 * wince.c (child_ops): Delete.
1509 * win32-nat.c (child_ops): Delete.
1510
81977402
AC
1511 * inftarg.c (inftarg_set_find_memory_regions)
1512 (inftarg_set_make_corefile_notes): Delete functions.
1513 (_initialize_linux_nat): Inline calls.
1514
5ac10fd1
AC
1515 * target.h (child_ops): Declare.
1516 * inftarg.c (child_ops): Move from here ...
1517 * target.c (child_ops): ... to here.
1518 * wince.c (child_ops): Delete extern declaration.
1519 * win32-nat.c (child_ops): Delete extern declaration.
1520 * linux-nat.c (child_ops): Delete extern declaration.
1521 * hpux-thread.c (child_ops): Delete extern declaration.
1522
663408c2 15232004-09-28 Mark Kettenis <kettenis@gnu.org>
890c8f4d
MK
1524
1525 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
1526
0dad8a66
MK
15272004-09-28 Mark Kettenis <kettenis@gnu.org>
1528
1529 * configure.in: Only set host_makefile_frag when building a native
1530 debugger.
1531 * configure: Regenerate.
e8d74ed3
MK
1532
1533 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
1534 for OpenBSD ELF.
1535
dba24537
AC
15362004-09-28 Andrew Cagney <cagney@gnu.org>
1537
e979516b
AC
1538 Problem identified by Paul Hilfinger.
1539 * Makefile.in (ada_lex_c): Define.
1540 (ada-lex.o): Delete rule.
1541
dba24537
AC
1542 * linux-proc.c: Delete file.
1543 * Makefile.in: Update.
1544 * config/sparc/linux64.mh (NATDEPFILES):
1545 * config/sparc/linux.mh (NATDEPFILES): Update.
1546 * config/s390/s390.mh (NATDEPFILES): Update.
1547 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
1548 * config/powerpc/linux.mh (NATDEPFILES): Update.
1549 * config/pa/linux.mh (NATDEPFILES): Update.
1550 * config/mips/linux.mh (NATDEPFILES): Update.
1551 * config/m68k/linux.mh (NATDEPFILES): Update.
1552 * config/ia64/linux.mh (NATDEPFILES): Update.
1553 * config/i386/linux64.mh (NATDEPFILES): Update.
1554 * config/i386/linux.mh (NATDEPFILES): Update.
1555 * config/arm/linux.mh (NATDEPFILES): Update.
1556 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
1557 * linux-nat.c: Update copyright. Include <sys/param.h>,
1558 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
1559 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
1560 (O_LARGEFILE): Possibly define.
1561 (_initialize_linux_nat, linux_proc_pending_signals)
1562 (add_line_to_sigset, linux_proc_xfer_memory)
1563 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
1564 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
1565 (struct linux_corefile_thread_data)
1566 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
1567 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
1568
d6b0e80f
AC
15692004-09-16 Andrew Cagney <cagney@gnu.org>
1570
1571 * lin-lwp.c: Delete file.
1572 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
1573 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
1574 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
1575 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
1576 (linux_nat_attach, detach_callback, linux_nat_detach)
1577 (resume_callback, resume_clear_callback, linux_nat_resume)
1578 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
1579 (stop_wait_callback, linux_nat_has_pending, flush_callback)
1580 (status_callback, running_callback, count_events_callback)
1581 (select_singlestep_lwp_callback, select_event_lwp_callback)
1582 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
1583 (child_wait, stop_and_resume_callback, linux_nat_wait)
1584 (kill_callback, kill_wait_callback, linux_nat_kill)
1585 (linux_nat_create_inferior, linux_nat_mourn_inferior)
1586 (linux_nat_xfer_memory, linux_nat_thread_alive)
1587 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
1588 (_initialize_linux_nat): New functions.
1589 * Makefile.in: Update all dependencies.
1590 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
1591 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1592 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
1593 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
1594 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1595 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1596 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1597 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1598 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1599 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
1600 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1601 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1602 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
1603
5a174d79
MK
16042004-09-27 Mark Kettenis <kettenis@gnu.org>
1605
2f604c28
MK
1606 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
1607 config/i386/obsd64.mh (NAT_FILE): Remove variable.
1608
5a174d79
MK
1609 * configure.in: Don't comment out NATDEPFILES in the generated
1610 Makefile if NAT_FILE is unset.
1611 * configure: Regenerate.
1612
b2ed1746
AC
16132004-09-27 Andrew Cagney <cagney@gnu.org>
1614
44cbf7b5
AC
1615 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
1616 (insert_step_resume_breakpoint): Delete.
1617 (insert_step_resume_breakpoint_at_frame): New function.
1618 (insert_step_resume_breakpoint_at_sal): New function.
1619 (handle_inferior_event, step_into_function)
1620 (insert_step_resume_breakpoint): Simplify by using same.
1621
b2ed1746
AC
1622 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
1623
3691b3be
MK
16242004-09-26 Mark Kettenis <kettenis@gnu.org>
1625
36f391e8
MK
1626 * fbsd-proc.c: Remove file.
1627 * Makefile.in (fbsd-proc.o): Remove dependency.
1628
771e236c
MK
1629 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
1630 code together.
1631
3691b3be
MK
1632 * config/i386/nm-fbsd64.h: Remove file.
1633 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1634
6a5c78a3
MK
16352004-09-26 Mark Kettenis <kettenis@gnu.org>
1636
1637 * amd64-nat.h: Update copyright year.
1638 (amd64bsd_target): New prototype.
1639 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
1640 (amd64bsd_target): New function.
1641 (amd64bsd_fetch_inferior_registers): Rename from
1642 fetch_inferior_registers. Make static.
1643 (amd64bsd_store_inferior_registers): Rename from
1644 store_inferior_registers. Make static.
1645 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
1646 (_initialize_amd64fbsd_nat): Construct and add target vector.
1647 * amd64nbsd-nat.o: Include "target.h".
1648 (_initialize_amd64nbsd_nat): Construct and add target vector.
1649 * amd64obsd-nat.c: Include "target.h".
1650 (_initialize_amd64obsd_nat): Construct and add target vector.
1651 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
1652 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
1653 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
1654 fbsd-nat.o.
1655 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
1656 Remove infptrace.o and inftarg.o. Add inf-child.o and
1657 inf-ptrace.o.
1658 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
1659 (amd64obsd-nat.o): Update dependencies.
1660
27acbe61
MK
16612004-09-25 Mark Kettenis <kettenis@gnu.org>
1662
509a5e7d
MK
1663 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
1664 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
1665 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
1666 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
1667 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
1668
6e1e94ea
MK
1669 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
1670 Inline attach call.
1671 (inf_ptrace_detach): Inline detach call.
1672
8b9cf735
MK
1673 * configure.in: Check for waddstr instead of mvwaddstr when
1674 searching for curses library. Check for wborder.
1675 * configure, config.in: Regenerate.
1676 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
1677 available.
1678
27acbe61
MK
1679 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
1680
b96ec7ac
AC
16812004-09-24 Robert Picco <Robert.Picco@hp.com>
1682
1683 Committed by Andrew Cagney.
1684 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
1685 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
1686 configuration.
1687 (fetch_register_using_p): Implement 'p' packet. Based on code by
1688 Fernando Nasser.
1689 (remote_fetch_registers): Call fetch_register_using_p.
1690 (init_all_packet_configs, show_remote_cmd)
1691 (_initialize_remote): Add p-packet.
1692
62ece330
MK
16932004-09-24 Mark Kettenis <kettenis@gnu.org>
1694
1695 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
1696 instead of call_ptrace. Call wait directly instead of
1697 ptrace_wait.
1698 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
1699 (inf_ptrace_wait): Inline ptrace_wait call.
1700
00937274
PH
17012004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
1702
1703 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
1704 rolled back instead.
1705
3f2c7a45
PH
17062004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
1707
1708 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
1709 the new argument order.
1710
b6fcb393
CV
17112004-09-23 Corinna Vinschen <vinschen@redhat.com>
1712
1713 * MAINTAINERS: Remove "broken" from XStormy16 entry.
1714 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
1715 (struct gdbarch_tdep): Remove.
1716 (struct xstormy16_frame_cache): New frame cache structure.
1717 (xstormy16_register_byte, xstormy16_register_raw_size)
1718 (xstormy16_reg_virtual_type, xstormy16_register_type)
1719 (xstormy16_push_arguments, xstormy16_push_return_address)
1720 (xstormy16_pop_frame, xstormy16_store_struct_return)
1721 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
1722 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
1723 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
1724 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
1725 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
1726 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
1727 (xstormy16_use_struct_convention): Drop gcc_p parameter.
1728 (xstormy16_extract_return_value, xstormy16_store_return_value):
1729 Regcachify. Drop useless struct convention handling.
1730 (xstormy16_register_type, xstormy16_return_value)
1731 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
1732 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
1733 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
1734 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
1735 (xstormy16_unwind_sp, xstormy16_unwind_pc)
1736 (xstormy16_unwind_dummy_id) : New functions.
1737 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
1738 of xstormy16_scan_prologue.
1739 (xstormy16_frame_unwind): New frame_unwind structure.
1740 (xstormy16_frame_base): New frame_base structure.
1741 (xstormy16_gdbarch_init): Accomodate all of the above changes.
1742 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
1743
1285b746
MK
17442004-09-22 Mark Kettenis <kettenis@gnu.org>
1745
1746 * language.c (language_gdbarch_post_init): Fix off-by one error.
1747
1c379e20
DJ
17482004-09-21 Daniel Jacobowitz <dan@debian.org>
1749
1750 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
1751 (struct dwarf2_offset_and_type): New.
1752 (set_die_type, reset_die_and_siblings_types, get_die_type)
1753 (offset_and_type_hash, offset_and_type_eq): New functions.
1754 (read_structure_type, read_enumeration_type, read_array_type)
1755 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
1756 (read_tag_reference_type, read_tag_const_type)
1757 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
1758 (read_typedef, read_base_type, read_subrange_type): Use
1759 set_die_type.
1760
ae038cb0
DJ
17612004-09-20 Daniel Jacobowitz <dan@debian.org>
1762
1763 * Makefile.in (dwarf2read.o): Update dependencies.
1764 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
1765 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
1766 and read_in_chain.
1767 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
1768 mark, and has_form_ref_addr.
1769 (struct dwarf2_per_cu_data): New.
1770 (dwarf2_max_cache_age): New.
1771 (dwarf2_build_psymtabs_hard): Free cached compilation units
1772 after loading. Create and manage the list of compilation units.
1773 Remove unnecessary NULL initialization. Fix indentation.
1774 (psymtab_to_symtab_1): Initialize all of CU.
1775 (dwarf2_read_abbrevs): Set has_form_ref_addr.
1776 (find_partial_die): Use dwarf2_find_containing_comp_unit
1777 and load_comp_unit.
1778 (free_stack_comp_unit): Update comments. Clear the per-cu
1779 pointer. Handle aging.
1780 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
1781 (age_cached_comp_units, free_one_cached_comp_unit)
1782 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
1783 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
1784 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
1785 (show_dwarf2_cmd): New.
1786 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
1787 and "maint show dwarf2 max-cache-age".
1788 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
1789 externs.
1790 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
1791 global.
1792
987504bb
JJ
17932004-09-20 Jeff Johnston <jjohnstn@redhat.com>
1794
1795 * dwarf2read.c (typename_concat): Change prototype to accept obstack
1796 and dwarf2_cu struct pointer as arguments. Change function to use
1797 obstack if provided and use dwarf2_cu to determine language-specific
1798 separator.
1799 (partial_die_parent_scope): Change comment to include java. Use
1800 new version of typename_concat instead of obconcat.
1801 (partial_die_full_name): Use typename_concat.
1802 (read_namespace): Ditto.
1803 (read_enumeration_type): Use typename_concat instead of obconcat.
1804 (new_symbol): Ditto.
1805 (add_partial_symbol): Enhance tests for C++ to also test for Java.
1806 (guess_structure_name): Ditto.
1807 (read_subroutine_type): Ditto.
1808 (read_structure_type): Ditto.
1809 (is_vtable_name): Add Java support.
1810 (determine_class_name): Switch to new typename_concat call.
1811 (determine_prefix): Switch to new typename_concat call.
1812 * jv-exp.y (FuncStart): New pattern.
1813 (MethodInvocation): Add support for simple function calls. Change
1814 warning message for other forms of inferior call currently not
1815 supported.
1816 * valarith.c (value_subscript): Treat an array with upper-bound
1817 of -1 as unknown size.
1818
d9c8471e
DJ
18192004-09-20 Daniel Jacobowitz <dan@debian.org>
1820
1821 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
1822 (lookup_partial_symtab): Use symtab_to_fullname.
1823
d73f140a
JB
18242004-09-19 Jim Blandy <jimb@redhat.com>
1825
1826 * minsyms.c (lookup_minimal_symbol): Doc fix.
1827
adbef1f0
AC
18282004-09-20 Andrew Cagney <cagney@gnu.org>
1829
1830 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
1831 CHILD_RESUME.
1832 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
1833 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
1834 KILL_INFERIOR.
1835 * infptrace.c: Update.
1836
d092d1a2
DJ
18372004-09-19 Daniel Jacobowitz <dan@debian.org>
1838
1839 * symtab.c (output_source_filename): Mark first argument as const.
1840 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
1841 for "info sources" output.
1842
86d9e1d7
MK
18432004-09-20 Mark Kettenis <kettenis@gnu.org>
1844
1845 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
1846 <machine/vmparam.h>.
1847 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
1848 (register_u_addr): Remove prototype.
1849
9a6c8ef4
MK
18502004-09-19 Mark Kettenis <kettenis@gnu.org>
1851
9692934b
MK
1852 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
1853 (i386bsd_fetch_inferior_registers): Rename from
1854 fetch_inferior_registers. Make static.
1855 (i386bsd_store_inferior_registers): Rename from
1856 store_inferior_registers. Make static.
1857 (i386bsd_target): New function.
1858 * i386bsd-nat.h: New file.
1859 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
1860 "i386bsd-nat.h".
1861 (i386fbsd_resume): Rename from child_resume. Make static.
1862 (_initialize_i386fbsd_nat): Construct and add target vector.
1863 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
1864 (_initialize_i386nbsd_nat): Construct and add target vector.
1865 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
1866 Remove defines.
1867 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
1868 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
1869 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
1870 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
1871 (LOADLIBES): New variable.
1872 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
1873 inf-ptrace.o. Remove inftarg.o.
1874 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
1875 inf-ptrace.o. Remove inftarg.o.
1876 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
1877 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
1878 (LOADLIBES): New variable.
1879 * Makefile.in (i386bsd_nat_h): New variable.
1880 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
1881 dependencies.
1882
3510d1f2
MK
1883 * sparc64nbsd-tdep.c: Include "objfiles.h".
1884 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
1885 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
1886 svr4_lp64_fetch_link_map_offsets.
1887 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
1888 "nbsd-tdep.h".
1889 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
1890 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
1891 svr4_lp64_fetch_link_map_offsets.
1892 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
1893 dependencies.
1894
578c1c03
MK
1895 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
1896 * fbsd-nat.h: New file.
1897 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
1898 (fbsd_nat_h): New variable.
1899 (fbsd-nat.o): New dependency.
1900
7a7b73b7
MK
1901 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
1902 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
1903
9a6c8ef4
MK
1904 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
1905 comment.
1906
72d5681a
PH
19072004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
1908
1909 * ada-exp.y (type_int): New function to add layer of abstraction
1910 around references to expression types.
1911 (type_long): Ditto.
1912 (type_long_long): Ditto.
1913 (type_float): Ditto.
1914 (type_double): Ditto.
1915 (type_long_double): Ditto.
1916 (type_char): Ditto.
1917 (type_system_address): Ditto.
1918 (simple_exp): Use type_* functions in place of builtin_*
1919 variables.
1920 (exp): Ditto.
1921 (write_var_from_name): Ditto.
1922 (write_object_renaming): Ditto.
1923 * ada-lang.c (ada_create_fundamental_type): Remove redundant
1924 declaration.
1925 (build_ada_types): Remove, replacing with...
1926 (ada_language_arch_info): New function to initialize primitive
1927 type vector in language_arch_info.
1928 (ada_array_length): Remove use of builtin_type_ada_int.
1929 (value_pos_atr): Ditto.
1930 (ada_evaluate_subexp): Ditto.
1931 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
1932 builtin_type_ada_long_long, builtin_type_ada_char,
1933 builtin_type_ada_float, builtin_type_ada_double,
1934 builtin_type_ada_long_double, builtin_type_ada_natural,
1935 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
1936 (ada_builtin_types): Remove.
1937 (ada_language_defn): Remove entries for la_builtin_type_vector and
1938 string_char_type and use ada_language_arch_info.
1939 (_initialize_ada_language): Do type-vector initialization along
1940 the lines of c-lang.c.
1941 (ada_create_fundamental_type): Break up line.
1942 (ada_dump_symtab): Remove unused function.
1943 (enum ada_primitive_types): Define.
1944 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
1945 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
1946 builtin_type_ada_float, builtin_type_ada_double,
1947 builtin_type_ada_long_double, builtin_type_ada_natural,
1948 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
1949 * ada-lex.l: Use type_* functions in place of builtin_* variables.
1950 (processInt): Ditto.
1951 (processReal): Ditto.
1952 (name_lookup): Ditto.
1953 * ada-typeprint.c (print_range): Use builtin_type_int, not
1954 builtin_type_ada_int.
1955
4f0be353
MK
19562004-09-18 Mark Kettenis <kettenis@gnu.org>
1957
30b0e2d8
MK
1958 * i386-tdep.c (i386_register_name): Rename regno to regnum.
1959
4f0be353
MK
1960 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
1961 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
1962 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
1963 * configure.in: Improve checks for curses library by checking for
1964 mvwaddstr instead of initscr. Drop HP curses in favour of
1965 standard curses on HP-UX.
1966 * configure: Regenerated.
1967
72d5681a 19682004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
6c038f32
PH
1969
1970 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
1971 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
1972 Minor formatting changes.
1973 (empty_array): Slight rewrite for formatting.
1974 (emit_char,parse,ada_language_defn,build_ada_types,
1975 ada_is_exception_sym, _initialize_ada_language): Move
1976 definitions around.
1977 (ada_dump_symtab): Remove unused definition.
1978 (ada_maybe_exception_partial_symbol): Remove unused definition.
1979
1c8c7407
AC
19802004-09-16 Andrew Cagney <cagney@gnu.org>
1981
7681f339
AC
1982 * inf-child.c: Include "gdb_string.h".
1983 (inf_child_core_file_to_sym_file): Delete.
1984 (inf_child_target): Set to_fetch_registers and to_store_registers.
1985 * inf-ptrace.c: Include "gdb_string.h".
1986 * Makefile.in: Update all dependencies.
1987
1c8c7407
AC
1988 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
1989 problem.
1990
65596487
JB
19912004-09-14 Joel Brobecker <brobecker@gnat.com>
1992
1993 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
1994 call to heuristic_proc_desc. Remove code that became redundant
1995 as a consequence.
1996 (read_next_frame_reg): Remove special case for SP_REGNUM.
1997 (set_reg_offset): Fix small typo.
1998 (reset_saved_regs): New procedure.
1999 (mips32_heuristic_proc_desc): No longer compute a fake
2000 procedure descriptor. Compute the full frame cache instead.
2001 Some minor comment reformatting.
2002
95575b2e
AC
20032004-09-14 Andrew Cagney <cagney@gnu.org>
2004
f200c492
AC
2005 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
2006 maintainer.
2007
95575b2e
AC
2008 * thread-db.c (thread_db_new_objfile): Assume that there is a
2009 child process.
2010
69657671
JB
20112004-09-13 Jim Blandy <jimb@redhat.com>
2012
2013 * valops.c (value_assign): Move 'buffer' to the enclosing block,
2014 so that its storage isn't referenced after its lifetime ends.
2015
6c4182dd
JB
2016 * valops.c (value_assign): 'use_buffer' is initialized to zero,
2017 and never assigned to. Delete it, and the 'if (use_buffer)'
2018 clauses. Delete 'raw_buffer', since it is now unused.
2019
ee31a58d
AC
20202004-09-13 Andrew Cagney <cagney@gnu.org>
2021
2c0fc042
AC
2022 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
2023 * configure: Re-generate.
2024 * nlm/Makefile.in (TAGS): Update.
2025 * Makefile.in (TAGS): Update.
2026 * config/vax/nbsd.mt (TM_FILE): Update.
2027 * config/sparc/vxworks.mt (TM_FILE): Update.
2028 * config/sparc/sol2.mt (TM_FILE): Update.
2029 * config/sparc/sol2-64.mt (TM_FILE): Update.
2030 * config/sparc/obsd64.mt (TM_FILE): Update.
2031 * config/sparc/obsd.mt (TM_FILE): Update.
2032 * config/sparc/nbsd64.mt (TM_FILE): Update.
2033 * config/sparc/nbsd.mt (TM_FILE): Update.
2034 * config/sparc/linux64.mt (TM_FILE): Update.
2035 * config/sparc/linux.mt (TM_FILE): Update.
2036 * config/sparc/fbsd.mt (TM_FILE): Update.
2037 * config/sh/wince.mt (TM_FILE): Update.
2038 * config/sh/nbsd.mt (TM_FILE): Update.
2039 * config/sh/linux.mt (TM_FILE): Update.
2040 * config/sh/embed.mt (TM_FILE): Update.
2041 * config/s390/s390.mt (TM_FILE): Update.
2042 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
2043 * config/rs6000/rs6000.mt (TM_FILE): Update.
2044 * config/rs6000/aix4.mt (TM_FILE): Update.
2045 * config/powerpc/vxworks.mt (TM_FILE): Update.
2046 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
2047 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
2048 * config/powerpc/obsd.mt (TM_FILE): Update.
2049 * config/powerpc/nbsd.mt (TM_FILE): Update.
2050 * config/powerpc/linux.mt (TM_FILE): Update.
2051 * config/powerpc/aix.mt (TM_FILE): Update.
2052 * config/pa/obsd.mt (TM_FILE): Update.
2053 * config/pa/linux.mt (TM_FILE): Update.
2054 * config/pa/hppahpux.mt (TM_FILE): Update.
2055 * config/pa/hppa64.mt (TM_FILE): Update.
2056 * config/pa/hppa.mt (TM_FILE): Update.
2057 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
2058 * config/mips/wince.mt (TM_FILE): Update.
2059 * config/mips/vxmips.mt (TM_FILE): Update.
2060 * config/mips/nbsd.mt (TM_FILE): Update.
2061 * config/mips/linux.mt (TM_FILE): Update.
2062 * config/mips/irix6.mt (TM_FILE): Update.
2063 * config/mips/irix5.mt (TM_FILE): Update.
2064 * config/mips/embed.mt (TM_FILE): Update.
2065 * config/m68k/vxworks68.mt (TM_FILE): Update.
2066 * config/m68k/st2000.mt (TM_FILE): Update.
2067 * config/m68k/os68k.mt (TM_FILE): Update.
2068 * config/m68k/obsd.mt (TM_FILE): Update.
2069 * config/m68k/nbsd.mt (TM_FILE): Update.
2070 * config/m68k/monitor.mt (TM_FILE): Update.
2071 * config/m68k/linux.mt (TM_FILE): Update.
2072 * config/m68k/cisco.mt (TM_FILE): Update.
2073 * config/ia64/linux.mt (TM_FILE): Update.
2074 * config/ia64/aix.mt (TM_FILE): Update.
2075 * config/ia64/ia64.mt (TM_FILE): Update.
2076 * config/i386/vxworks.mt (TM_FILE): Update.
2077 * config/i386/obsd64.mt (TM_FILE): Update.
2078 * config/i386/obsd.mt (TM_FILE): Update.
2079 * config/i386/nto.mt (TM_FILE): Update.
2080 * config/i386/nbsd64.mt (TM_FILE): Update.
2081 * config/i386/nbsd.mt (TM_FILE): Update.
2082 * config/i386/linux64.mt (TM_FILE): Update.
2083 * config/i386/linux.mt (TM_FILE): Update.
2084 * config/i386/i386sol2.mt (TM_FILE): Update.
2085 * config/i386/i386lynx.mt (TM_FILE): Update.
2086 * config/i386/fbsd64.mt (TM_FILE): Update.
2087 * config/i386/fbsd.mt (TM_FILE): Update.
2088 * config/i386/cygwin.mt (TM_FILE): Update.
2089 * config/h8300/h8300.mt (TM_FILE): Update.
2090 * config/frv/frv.mt (TM_FILE): Update.
2091 * config/cris/cris.mt (TM_FILE): Update.
2092 * config/arm/wince.mt (TM_FILE): Update.
2093 * config/arm/nbsd.mt (TM_FILE): Update.
2094 * config/arm/linux.mt (TM_FILE): Update.
2095 * config/arm/embed.mt (TM_FILE): Update.
2096 * config/alpha/nbsd.mt (TM_FILE): Update.
2097 * config/alpha/fbsd.mt (TM_FILE): Update.
2098 * config/alpha/alpha.mt (TM_FILE): Update.
2099 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
2100 * config/alpha/alpha-linux.mt (TM_FILE): Update.
2101
362646f5
AC
2102 Eliminate event_loop_p, always has the value 1.
2103 * defs.h (event_loop_p): Delete macro.
2104 * breakpoint.c (until_break_command): Simplify.
2105 * utils.c (prompt_for_continue): Simplify.
2106 * tracepoint.c (read_actions): Simplify.
2107 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
2108 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
2109 (set_prompt, init_main): Simplify.
2110 (init_signals, disconnect): Delete, unused.
2111 * remote.c (remote_async_resume)
2112 (extended_remote_async_create_inferior): Simplify.
2113 * mi/mi-interp.c (mi_input): Delete, unused.
2114 (mi_interpreter_resume, mi_command_loop): Simplify.
2115 * interps.c (current_interp_command_loop): Simplify.
2116 * infrun.c (proceed): Simplify.
2117 * infcmd.c (run_command, continue_command, step_1, jump_command)
2118 (until_command, advance_command, finish_command)
2119 (interrupt_target_command): Simplify.
2120 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
2121
ee31a58d
AC
2122 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2123 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2124 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2125 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2126 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2127 * mips-tdep.c (mips_dump_tdep): Do not print same.
2128
b7ffc4a8
AC
21292004-09-12 Andrew Cagney <cagney@gnu.org>
2130
2bfb72ee
AC
2131 * valprint.c (print_longest): Use fputs_filtered. Make "val"
2132 const.
2133 * Makefile.in (valprint.o): Delete explict rule.
2134
4f17c3c1
AC
2135 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
2136 reported by Dave Anderson.
2137
f810308b
AC
2138 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
2139
b7ffc4a8
AC
2140 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
2141
28b41c52
AC
21422004-09-12 Salvador E. Tropea <set@users.sf.net>
2143 Andrew Cagney <cagney@gnu.org>
2144
2145 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
2146 (mi_cmd_data_list_register_values)
2147 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
2148 the register number computation.
2149
5bf970f9
AC
21502004-09-12 Andrew Cagney <cagney@gnu.org>
2151
2152 * ppcnbsd-nat.c: Include "inf-ptrace.h".
2153 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
2154 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
2155 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
2156 target.
2157 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
2158 inf-ptrace.o and inf-child.o.
2159 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
2160 * Makefile.in: Update dependencies.
2161
0759e0bf
AC
21622004-09-11 Andrew Cagney <cagney@gnu.org>
2163
2164 * language.c (hex_string, hex_string_custom): Move from here ...
2165 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
2166 (CELLSIZE): Increase to 50.
2167 * language.h (hex_string, hex_string_custom): Move from here ...
2168 * defs.h: ... to here.
2169 * Makefile.in: Update all dependencies.
2170
bb599908
PH
21712004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
2172
2173 * language.c (local_hex_format_custom): Remove.
2174 (local_hex_string): Rename to hex_string, use C format, and move to
2175 utils.c
2176 (local_hex_string_custom): Rename to hex_string_custom and change
2177 interface. Now uses C format. Move to utils.c
2178 (local_octal_format_custom): Remove.
2179 (local_decimal_format_custom): Remove.
2180 (unknown_language_defn): Remove language-specific number
2181 formatting entries.
2182 (auto_language_defn): Ditto.
2183 (local_language_defn): Ditto.
2184 * language.h (struct language_format_info): Delete declaration.
2185 (struct language_defn): Remove language_format_info fields
2186 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
2187 (local_binary_format): Remove macro.
2188 (local_binary_format_prefix): Remove macro.
2189 (local_binary_format_specifier): Remove macro.
2190 (local_binary_format_suffix): Remove macro.
2191 (local_octal_format): Remove macro.
2192 (local_octal_format_prefix): Remove macro.
2193 (local_octal_format_specifier): Remove macro.
2194 (local_octal_format_suffix): Remove macro.
2195 (local_decimal_format): Remove macro.
2196 (local_decimal_format_prefix): Remove macro.
2197 (local_decimal_format_specifier): Remove macro.
2198 (local_decimal_format_suffix): Remove macro.
2199 (local_hex_format): Remove macro.
2200 (local_hex_format_prefix): Remove macro.
2201 (local_hex_format_specifier): Remove macro.
2202 (local_hex_format_suffix): Remove macro.
2203 (local_decimal_format_custom): Remove.
2204 (local_octal_format_custom): Remove.
2205 (local_hex_format_custom): Remove.
2206 (local_hex_string): Rename to hex_string and move to defs.h.
2207 (local_hex_string_custom): Rename to hex_string_custom, change
2208 interface, and move to defs.h.
2209 * utils.c: (int_string): New function.
2210 (hex_string): New function (from language.c).
2211 (hex_string_custom): New function (from language.c).
2212 (octal2str): New function.
2213 (decimal2str): Add width parameter.
2214 (paddr_u): Use new decimal2str interface.
2215 (paddr_d): Ditto.
2216 * defs.h (hex_string): Declare.
2217 (hex_string_custom): Declare.
2218 (int_string): Declare.
2219 * printcmd.c (print_scalar_formatted): Remove localized binary
2220 formatting.
2221 * valprint.c (print_longest): Use int_string.
2222 (print_floating): Use C hex format.
2223 (print_hex_chars): Ditto.
2224 (print_binary_chars): Remove language-specific formatting.
2225 (print_octal_chars): Use C octal format.
2226 (print_decimal_chars): Delocalize format.
2227 (print_decimal): Remove.
2228 * ada-lang.c (ada_language_defn): Remove language-specific number
2229 formatting entries.
2230 * p-lang.c (pascal_language_defn): Ditto.
2231 * c-lang.c (c_language_defn): Ditto.
2232 (cplus_language_defn): Ditto.
2233 (asm_language_defn): Ditto.
2234 (minimal_language_defn): Ditto.
2235 * f-lang.c (f_language_defn): Ditto.
2236 * jv-lang.c (java_language_defn): Ditto.
2237 * m2-lang.c (m2_language_defn): Ditto.
2238 * scm-lang.c (scm_language_defn): Ditto.
2239 * objc-lang.c (objc_language_defn): Ditto.
2240 * memattr.c (mem_info_command): Use renamed hex_string_custom with
2241 new interface.
2242 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
2243 * ui-out.c (ui_out_field_core_addr): Ditto.
2244 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
2245 * exec.c (print_section_info): Ditto.
2246 * i387-tdep.c (print_i387_status_word): Ditto.
2247 (print_i387_control_word): Ditto.
2248 (i387_print_float_info): Ditto.
2249 * maint.c (maint_print_section_info): Ditto.
2250 * solib.c (info_sharedlibrary_command): Ditto.
2251 * somsolib.c (som_sharedlibrary_info_command): Ditto.
2252 * symtab.c (print_msymbol_info): Ditto.
2253 * tracepoint.c (tracepoints_info): Ditto.
2254 * solib-frv.c (lm_base): Ditto.
2255 (frv_current_sos): Ditto.
2256 (enable_break2): Ditto.
2257 (enable_break): Ditto.
2258 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
2259 (process_one_symbol): Ditto.
2260 * infcmd.c (program_info): Ditto.
2261 * mdebugread.c (parse_partial_symbols): Ditto.
2262 * symfile.c (add_symbol_file_command): Ditto.
2263 * cli/cli-cmds.c (edit_command): Ditto.
2264 (list_command): Ditto.
2265 * infcall.c (call_function_by_hand): Ditto.
2266 * remote-vx.c (vx_run_files_info): Ditto.
2267 (vx_wait): Ditto.
2268 (vx_attach): Ditto.
2269 (vx_detach): Ditto.
2270 (vx_kill): Ditto.
2271 * aix-thread.c (pdc_symbol_addrs): Ditto.
2272 (pdc_read_regs): Ditto.
2273 (pdc_write_regs): Ditto.
2274 (pdc_read_data): Ditto.
2275 (pdc_write_data): Ditto.
2276 * d10v-tdep.c (display_trace): Ditto.
2277 * rs6000-nat.c (find_toc_address): Ditto.
2278 * aix-thread.c: Don't include language.h.
2279 * buildsym.c: Ditto.
2280 * dbxread.c: Ditto.
2281 * mdebugread.c: Ditto.
2282 * rs6000-nat.c: Ditto.
2283 * buildsym.c (make_blockvector): Use renamed hex_string.
2284
33f2d567
JM
22852004-09-10 Jason Molenda (jmolenda@apple.com)
2286
2287 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
2288 chars after 'if' or 'while' commands in user-defined commands.
2289
7b90c3f9
JB
22902004-09-08 Jim Blandy <jimb@redhat.com>
2291
2292 Fix bug reported and analyzed by Olivier Crete:
2293 * symfile.c (copy_section_addr_info): New function.
2294 (symbol_file_add_with_addrs_or_offsets): Use it to save the
2295 original set of address arguments, instead of handwritten code
2296 that uses one length to allocate and a different length to
2297 initialize. Use make_cleanup_free_section_addr_info.
2298 * symfile.h (copy_section_addr_info): New declaration.
2299 * utils.c: #include "symfile.h".
2300 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
2301 New functions.
2302 * defs.h (make_cleanup_free_section_addr_info): New declaration.
2303 * Makefile.in (utils.o): Update dependencies.
2304
b26a6851
AC
23052004-09-08 Andrew Cagney <cagney@gnu.org>
2306
2307 * thread-db.c (keep_thread_db): Delete.
2308 (thread_db_new_objfile, thread_db_create_inferior)
2309 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
2310
be24b061
MK
23112004-09-08 Mark Kettenis <kettenis@gnu.org>
2312
f6792ef4
MK
2313 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
2314 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
2315 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
2316 (i386_frameless_signal_p): Remove prototype.
2317 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
2318 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
2319 I386_SSE_NUM_REGS.
2320 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
2321 instead of FP0_REGNUM.
2322 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
2323 of FP0_REGNUM and FPC_REGNUM.
2324
eeefdaa7
MK
2325 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
2326 (sunos_solib_create_inferior_hook): Don't call
2327 sunos_relocate_main_executable.
2328
be24b061
MK
2329 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
2330 solib_svr4_fetch_link_map_offsets to
2331 svr4_ilp32_fetch_link_map_offsets.
2332 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
2333 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
2334 svr4_ilp32_fetch_link_map_offsets.
2335 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
2336
7c679d16
JB
23372004-09-07 Jim Blandy <jimb@redhat.com>
2338
2339 * frame.h (frame_register): Doc fix.
2340
1f04aa62
AC
23412004-09-07 Andrew Cagney <cagney@gnu.org>
2342
2343 * vx-share/wait.h: Delete #ifdef USG.
2344 * utils.c (request_quit): Ditto.
2345 * tui/tui.c (tui_reset): Ditto.
2346 * remote.c: Ditto.
2347 * remote-sds.c: Ditto.
2348 * remote-rdi.c: Ditto.
2349 * mdebugread.c: Ditto.
2350 * m68klinux-nat.c: Ditto.
2351 * infttrace.c: Ditto.
2352 * infptrace.c: Ditto.
2353 * i386v-nat.c: Ditto.
2354 * exec.c: Ditto.
2355 * dbxread.c: Ditto.
2356 * core-aout.c: Ditto.
2357
90edbfbc
JB
23582004-09-05 Joel Brobecker <brobecker@gnat.com>
2359
2360 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
2361 heuristic_proc_desc.
2362 (mips_insn32_frame_cache): Likewise.
2363
01f4bf2b
JB
23642004-09-04 Joel Brobecker <brobecker@gnat.com>
2365
2366 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
2367 left behind by error.
2368
8511a048
JB
23692004-09-04 Joel Brobecker <brobecker@gnat.com>
2370
2371 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
2372 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
2373
649dfe9f
JB
23742004-09-04 Joel Brobecker <brobecker@gnat.com>
2375
2376 * config/rs6000/xm-aix4.h: Remove this file.
2377 * config/rs6000/aix4.mh (XM_FILE): Delete.
2378
6e50f889
JB
23792004-09-04 Joel Brobecker <brobecker@gnat.com>
2380
2381 * config/rs6000/xm-rs6000.h: Remove this file.
2382 * config/rs6000/rs6000.mh (XM_FILE): Remove.
2383
b8c4aece
AC
23842004-09-03 Andrew Cagney <cagney@gnu.org>
2385
fb603883
AC
2386 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
2387 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
2388 only use.
2389
c9343fd1
AC
2390 * mips-tdep.c (temp_saved_regs): Delete.
2391 (set_reg_offset): Replace saved_regs parameter with this_cache.
2392 (heuristic_proc_desc, mips16_heuristic_proc_desc)
2393 (mips32_heuristic_proc_desc): Add this_cache parameter.
2394 (mips_insn32_frame_cache, mips_insn16_frame_cache)
2395 (after_prologue): Pass a NULL this_cache.
2396
9733cfe1
AC
2397 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
2398 non-kernel trap prologues.
2399
0d5febcc
AC
2400 * mips-tdep.c (find_proc_desc): Delete function.
2401 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
2402 simplify.
2403 (mips_insn16_frame_cache): Replace find_proc_desc with code from
2404 mips_insn32_frame_cache.
2405
9733cfe1 2406 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
283be873
AC
2407 Simplify as NEXT_FRAME is NULL.
2408 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
2409
177f84a3
AC
2410 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
2411 local variable.
2412 (mips_skip_prologue): Update.
2413
465f7520
AC
2414 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
2415 "cur_frame" parameter.
177f84a3
AC
2416 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
2417 (mips_insn32_frame_cache, find_proc_desc): Update
465f7520 2418
e38b8658
AC
2419 * config/vax/nm-obsd.h: Delete file.
2420 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2421 * config/vax/nm-nbsd.h: Delete file.
2422 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
2423 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2424 * config/sh/nm-nbsd.h: Delete file.
2425 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2426 * config/rs6000/nm-rs6000ly.h: Delete file.
2427 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
2428 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2429 * config/powerpc/nm-obsd.h: Delete file.
2430 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2431 * config/powerpc/nm-nbsd.h: Delete file.
2432 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2433 * config/pa/nm-obsd.h: Delete file.
2434 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2435 * config/mips/nm-nbsd.h: Delete file.
2436 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2437 * config/m88k/nm-obsd.h: Delete file.
2438 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2439 * config/m68k/nm-nbsd.h: Delete file.
2440 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
2441 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2442 * config/i386/nm-nbsd.h: Delete file.
2443 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
2444 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2445 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2446 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2447 * config/i386/nm-i386lynx.h: Delete file.
2448 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2449 * config/arm/nm-nbsd.h: Delete file.
2450 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
2451 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2452
be1ed680
AC
2453 * config/i386/tm-fbsd.h: Delete file.
2454 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
2455 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
2456
4b392b26
AC
2457 * config/rs6000/tm-rs6000-aix4.h: Delete file.
2458 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
2459 * config/rs6000/aix4.mt (TM_FILE): Set to
2460 config/rs6000/tm-rs6000.h.
2461 * config/powerpc/tm-ppc-aix.h: Delete file.
2462 * config/powerpc/aix.mt (TM_FILE): Set to
2463 config/rs6000/tm-rs6000.h.
2464 * config/m68k/tm-linux.h: Delete file.
2465 * config/m68k/linux.mt (TM_FILE): Set to solib.h
2466 * config/i386/tm-linux64.h: Delete file.
2467 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
2468 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
2469
f3219c75
AC
2470 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
2471 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
2472 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
2473 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
2474 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
2475 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
2476 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
2477 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
2478 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
2479
b8c4aece
AC
2480 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
2481 gdb_host_cpu.
2482
8ac2e020
JB
24832004-09-02 Joel Brobecker <brobecker@gnat.com>
2484
2485 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
2486 Minor reformatting. Some code factoring.
2487
c185a355
AC
24882004-09-02 Andrew Cagney <cagney@gnu.org>
2489
63f22f0d
AC
2490 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
2491 * config/vax/tm-nbsd.h: Delete file.
2492 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
2493 * config/sparc/tm-vxworks.h: Delete file.
2494 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
2495 * config/sparc/tm-nbsd.h: Delete file.
2496 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
2497 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
2498 * config/sparc/tm-linux.h: Delete file.
2499 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
2500 * config/s390/tm-linux.h: Delete file.
2501 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
2502 * config/pa/tm-bsd.h: Delete file.
2503 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
2504 * config/m68k/tm-obsd.h: Delete file.
2505 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
2506 * config/m68k/tm-nbsd.h: Delete file.
2507 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
2508 * config/i386/tm-vxworks.h: Delete file.
2509 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
2510 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
2511 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
2512 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
2513 * config/i386/tm-nbsd.h: Delete file.
2514 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
2515 * config/i386/tm-i386lynx.h: Delete file.
2516 * config/cris/cris.mt (TM_FILE): Set to solib.h.
2517 * config/cris/tm-cris.h: Delete file.
2518
0f475e27
AC
2519 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
2520 * configure: Re-generate.
2521 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
2522 * config/arm/tm-nbsd.h: Delete file.
2523
458ed000
AC
2524 * config/powerpc/tm-ppcle-sim.h: Delete.
2525 * config/powerpc/tm-ppcle-eabi.h: Delete.
2526 * config/powerpc/tm-nbsd.h: Delete.
2527 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
2528 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
2529 tm-ppcle-eabi.h.
2530
f14375f3
AC
2531 * config/i386/nto.mh (NAT_FILE): Delete.
2532 * config/i386/nm-nto.h: Delete.
2533
c34d127c
AC
2534 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
2535 * config/m68k/tm-os68k.h: Ditto.
2536 * config/m68k/tm-monitor.h: Ditto.
2537 * config/m68k/tm-cisco.h: Ditto.
2538 * config/m68k/st2000.mt (TM_FILE): Delete.
2539 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
2540 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
2541 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
2542 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
2543
f7f0fe03
AC
2544 * config/m68k/tm-st2000.h: Delete.
2545 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
2546 * config/sparc/fbsd.mt (TM_FILE): Delete.
2547 * config/sparc/tm-fbsd.h: Delete.
2548
a2558533
AC
2549 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
2550 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
2551 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
2552
b78960be
AC
2553 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
2554 GDB_TM_FILE and GDB_XM_FILE.
2555 * gdbarch.c: Re-generate.
2556 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
2557 quotes in macro definition.
2558 * configure.in: Re-generate.
2559
4d60522e
AC
2560 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
2561 validating architecture methods.
2562 * gdbarch.c: Re-generate.
2563
5010d38b
AC
2564 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
2565 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
2566 GDB_MULTI_ARCH_PARTIAL.
2567 * gdbarch.h: Re-generate.
2568
c185a355
AC
2569 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
2570 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
2571 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
2572 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
2573 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
2574 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
2575 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
2576 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
2577 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
2578 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
2579 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
2580 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
2581
14aaa6ab
AC
25822004-09-01 Andrew Cagney <cagney@gnu.org>
2583
2584 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
2585 and main_func_highpc.
2586 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
2587 * objfiles.c (init_entry_point_info, objfile_relocate): Update
2588 * nlmread.c (nlm_symfile_read): Update.
2589
a343eb3c
JB
25902004-09-01 Joel Brobecker <brobecker@gnat.com>
2591
2592 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
2593 (mips_insn32_frame_cache): Inline call to find_proc_desc.
2594 (find_proc_desc): Remove dead code.
2595
4fbbbd07
JB
25962004-09-01 Joel Brobecker <brobecker@gnat.com>
2597
2598 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
2599
84acb35a
JJ
26002004-09-01 Jeff Johnston <jjohnstn@redhat.com>
2601
2602 * observer.sh: Add struct so_list declaration.
2603 * Makefile.in: Add dependencies on observer.h for solib.c and
2604 breakpoint.c.
2605 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
2606 function.
2607 (_initialize_breakpoint): Register
2608 disable_breakpoints_in_unloaded_shlib as an observer of the
2609 "solib unloaded" observation event.
2610 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
2611 call decode_line_1 so unfound breakpoint errors are silent.
2612 * solib.c (update_solib_list): When a solib is discovered to have
2613 been unloaded by the program, notify all observers of the
2614 "solib unloaded" observation event.
2615
c8cd9f6c
AC
26162004-09-01 Andrew Cagney <cagney@gnu.org>
2617
2618 * frame.c: Include "objfiles.h".
2619 (inside_main_func): New function.
2620 (get_prev_frame): Use new inside_main_func.
2621 * Makefile.in (frame.o): Update dependencies.
2622 * defs.h (inside_main_func): Delete declaration.
2623 * blockframe.c (inside_main_func): Delete function.
2624
1168df01
JB
26252004-08-31 Jim Blandy <jimb@redhat.com>
2626
2627 * dwarf2read.c (is_vtable_name): New function, based on logic from
2628 read_structure_type, but passing the correct length to strncmp,
2629 and using 'sizeof' instead of 'strlen'.
2630 (read_structure_type): Call it.
2631
f14f9744
JB
26322004-08-31 Joel Brobecker <brobecker@gnat.com>
2633
2634 * config/powerpc/aix.mh: Add comment.
2635
386d4518
PG
26362004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
2637
2638 * MAINTAINERS: Add self to Write-After-Approval.
2639
7d97d5e2
MI
26402004-08-30 Manoj Iyer <manjo@austin.ibm.com>
2641
2642 * MAINTAINERS: Add self to Write-After-Approval.
2643
68f53502
AC
26442004-08-30 Andrew Cagney <cagney@gnu.org>
2645
2646 Fix PR breakpoints/1757.
2647 * infrun.c (struct execution_control_state): Replace
2648 remove_breakpoints_on_following_step with
2649 step_after_step_resume_breakpoint.
2650 (init_execution_control_state): Update.
2651 (handle_inferior_event): For signals, when stepping off a
2652 breakpoint, set step_after_step_resume_breakpoint. When
2653 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
2654 (keep_going): Delete code handling
2655 remove_breakpoints_on_following_step.
2656
7ca2d3a3
DL
26572004-08-29 David Lecomber <david@streamline-computing.com>
2658
2659 Fix PR gdb/648
2660 * language.h (enum array_ordering): New enum.
2661 * language.h (struct language_defn): New la_array_ordering
2662 attribute.
2663 * language.c (unknown_language_defn, auto_language_defn)
2664 (local_language_defn): Ditto.
2665 * ada-lang.c (ada_language_defn): Ditto.
2666 * c-lang.c (c_language_defn, cplus_language_defn)
2667 (asm_language_defn, minimal_language_defn): Ditto.
2668 * f-lang.c (f_language_defn): Ditto.
2669 * jv-lang.c (java_language_defn): Ditto.
2670 * m2-lang.c (f_language_defn): Ditto.
2671 * objc-lang.c (objc_language_defn): Ditto.
2672 * p-lang.c (pascal_language_defn): Ditto.
2673 * scm-lang.c (scm_language_defn): Ditto.
2674 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
2675 oriented large to small in type structure.
2676 * dwarf2read.c (read_array_order): New function.
2677 (read_array_type): Use read_array_order to check row/column
2678 major ordering.
2679
e354df01
NW
26802004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
2681
2682 * target.c (target_resize_to_sections): Check
2683 current_target.to_sections for an old value when updating.
2684
9185ddce
JB
26852004-08-27 Joel Brobecker <brobecker@gnat.com>
2686
2687 * procfs.c (dbx_link_bpt_addr): New static global variable.
2688 (dbx_link_shadow_contents): New static global variable.
2689 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
2690 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
2691 if we just hit it.
2692 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
2693 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
2694 from run to run.
2695 (procfs_create_inferior): Remove syssgi syscall-exit notifications
2696 after the inferior has been forked.
2697 (remove_dbx_link_breakpoint): New function.
2698 (dbx_link_addr): New function.
2699 (insert_dbx_link_bpt_in_file): New function.
2700 (insert_dbx_link_bpt_in_region): New function.
2701 (insert_dbx_link_breakpoint): New function.
2702 (proc_trace_syscalls_1): New function, extracted from
2703 proc_trace_syscalls.
2704 (proc_trace_syscalls): Replace extract code by call to
2705 proc_trace_syscalls_1.
2706 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
2707 is no longer valid.
2708
e6742ace
JB
27092004-08-25 Jim Blandy <jimb@redhat.com>
2710
2711 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
2712
8fb3e588
AC
27132004-08-25 Andrew Cagney <cagney@gnu.org>
2714
629a41ee
AC
2715 * infrun.c (struct execution_control_state): Delete field
2716 "stepping_through_sigtramp".
2717 (init_execution_control_state): Do not set same.
2718 (context_switch): Do not pass same to save_infrun_state and
2719 load_infrun_state.
2720 * gdbthread.h (struct thread_info): Delete field
2721 stepping_through_sigtramp.
2722 (save_infrun_state, load_infrun_state): Delete parameter
2723 stepping_through_sigtramp.
2724 * thread.c (load_infrun_state, save_infrun_state): Update.
2725
8fb3e588
AC
2726 * infrun.c: Re-indent. Move expression operators to the beginning
2727 of the line. Remove long disabled #if 0 code.
2728
49c54768
AC
27292004-08-24 Andrew Cagney <cagney@gnu.org>
2730
2731 * doublest.h (floatformat_ieee_quad): Rename
2732 floatformat_ia64_quad.
2733 * doublest.c (floatformat_ieee_quad): Rename
2734 floatformat_ia64_quad.
2735 (_initialize_doublest): Update.
2736
5ca2e327
JB
27372004-08-24 Jim Blandy <jimb@redhat.com>
2738
87808bd6
JB
2739 * dwarf2expr.h (struct dwarf_expr_context): New members
2740 'num_pieces' and 'pieces', for returning the result of an
2741 expression that uses DW_OP_piece.
2742 (struct dwarf_expr_piece): New struct type.
2743 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
2744 pieces.
2745 (free_dwarf_expr_context): Free pieces, if any.
2746 (add_piece): New function.
2747 (execute_stack_op): Implement DW_OP_piece.
2748 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
2749 expression is a list of pieces, print an error message.
2750 (dwarf2_loc_desc_needs_frame): If the expression yields
2751 pieces, and any piece is in a register, then we need a frame.
2752
5ca2e327
JB
2753 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
2754 the stack until we've decided what sort of result the evaluation
2755 has produced. Use separate variables, with more specific names.
2756
2afeb6b8
RE
27572004-08-23 Richard Earnshaw <rearnsha@arm.com>
2758
2759 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
2760 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
2761 (arm_netbsd_init_abi_common): Register them.
2762
5885ab49
MK
27632004-08-22 Mark Kettenis <kettenis@gnu.org>
2764
fda820a6
MK
2765 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
2766
1c5bf419
MK
2767 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
2768 safe_frame_unwind_memory instead of target_read_memory.
2769
8cbba7c8
MK
2770 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
2771 Reorder includes.
2772 (fetch_register, store_register): Remove prototypes.
2773 (child_resume): Reorganize code and comments such that it is
2774 grouped a bit more logically.
2775 (attach): Explicitly compare errno against 0.
2776 (detach): Likewise. Use perror_with_name instead of
2777 print_sys_errmsg.
2778 * Makefile.in (infptrace.o): Update dependencies.
2779
c5fa4245
MK
2780 * ia64-linux-nat.c: Update copyright year.
2781 (fetch_debug_register, store_debug_register)
2782 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
2783 PTRACE_TYPE_ARG3.
2784 * config/ia64/nm-linux.h: Update copyright year.
2785 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
2786
387c058c
MK
2787 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
2788 from CORE_ADDR to struct frame_info *. Use
2789 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
2790 (amd64_linux_sigtramp_p): Adjust for changed signature of
2791 and64_linux_sigtramp_start
2792
277215a6
MK
2793 * gdb_ptrace.h: GNU/Linux.
2794
25f6178e
MK
2795 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
2796 Remove defines.
2797
652fc137
MK
2798 * infptrace.c: Include "gdb_assert.h".
2799 (PTRACE_XFER_TYPE): Remove define.
2800 (offsetof): Only define if U_REGS_OFFSET isn't defined.
2801 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
2802 Tweak comment.
2803 (fetch_inferior_registers, store_inferior_registers): Remove
2804 redundant culry braces. Tweak comment. s/regno/regnum.
2805 * Makefile.in (infptrace.o): Update dependencies.
2806
5885ab49
MK
2807 * configure.in: Change test for return type of ptrace to default
2808 to `long' instead of `int'.
2809 * configure: Regenerate.
2810
11003ae3
MK
28112004-08-21 Mark Kettenis <kettenis@gnu.org>
2812
6b95110c
MK
2813 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
2814
bcb3dc3d
MK
2815 * configure.in: Check for ttrace function.
2816 * configure, config.in: Regenerate.
2817
11003ae3
MK
2818 * gdb_ptrace.h: New file.
2819 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
2820 <sys/ptrace.h>.
2821 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
2822 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
2823 (attach): Don't define PT_ATTACH.
2824 (detach): Don't define PT_DETACH.
2825 * Makefile.in (gdb_ptrace_h): New variable.
2826 (infptrace.o): Update dependencies.
2827
f8707cac
MK
28282004-08-16 Mark Kettenis <kettenis@gnu.org>
2829
2830 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
2831 instead of `int' if not already defined.
2832 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
2833 PTRACE_TYPE_ARG3.
2834 * infptrace.c (call_ptrace): Revert change that replaced
2835 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2836
655c5466
MK
28372004-08-15 Mark Kettenis <kettenis@gnu.org>
2838
156e5ba7
MK
2839 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
2840 Remove defines.
2841
de9a9e51
MK
2842 * linux-nat.c (kill_inferior): Add missing third and fourth
2843 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
2844
88800403
MK
2845 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
2846 PTRACE_TYPE_RET.
2847
849a1d7c
MK
2848 * proc-why.c (proc_prettyfprint_why): Fix format string.
2849
61ad16d1
MK
2850 * solib-osf.c (osf_current_sos): Remove unsused label.
2851
a6ed5501
MK
2852 * configure.in: Add <ncurses/ncurses.h> to the list of possible
2853 curses headers.
2854 * configure, config.in: Regenerate.
2855 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
2856 <ncurses/ncurses.h>.
2857
016ddeca
MK
2858 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
2859 * config/nm-nbsd.h: Update copyright year.
2860 (PTRACE_ARG3_TYPE): Remove define.
2861
49ec097f
MK
2862 * sparc-nat.c (fetch_inferior_registers)
2863 (store_inferior_registers, sparc_xfer_wcookie):
2864 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2865
9f8e0089
MK
2866 * alphabsd-nat.c (fetch_inferior_registers):
2867 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2868 PTRACE_TYPE_ARG3.
2869 * amd64bsd-nat.c (fetch_inferior_registers)
2870 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2871 PTRACE_TYPE_ARG3.
2872 * armnbsd-nat.c: Update copyright year.
2873 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
2874 (store_register, store_regs, store_fp_register, store_fp_regs):
2875 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2876 * hppabsd-nat.c (fetch_inferior_registers)
2877 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2878 PTRACE_TYPE_ARG3.
2879 * i386bsd-nat.c (fetch_inferior_registers)
2880 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
2881 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2882 * m68kbsd-nat.c (fetch_inferior_registers)
2883 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2884 PTRACE_TYPE_ARG3.
2885 * m88kbsd-nat.c (fetch_inferior_registers)
2886 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2887 PTRACE_TYPE_ARG3.
2888 * mipsnbsd-nat.c: Update copyright year.
2889 (fetch_inferior_registers, store_inferior_registers):
2890 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2891 * ns32knbsd-nat.c: Update copyright year.
2892 (fetch_inferior_registers, store_inferior_registers):
2893 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2894 * ppcnbsd-nat.c (fetch_inferior_registers):
2895 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2896 PTRACE_TYPE_ARG3.
2897 * ppcobsd-nat.c (fetch_inferior_registers):
2898 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2899 PTRACE_TYPE_ARG3.
2900 * shnbsd-nat.c: Update copyright year.
2901 (fetch_inferior_registers, store_inferior_registers):
2902 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2903 * vaxbsd-nat.c (fetch_inferior_registers)
2904 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2905 PTRACE_TYPE_ARG3.
2906
655c5466
MK
2907 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
2908 PTRACE_TYPE_ARG3.
2909 * infptrace.c (call_ptrace, child_resume, attach, detach)
2910 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
2911 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2912 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
2913 PTRACE_TYPE_ARG3.
2914
c40d0d10
MK
29152004-08-14 Mark Kettenis <kettenis@gnu.org>
2916
5cb0ff31
MK
2917 * defs.h: Remove out-of-date comment.
2918 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
2919 [!GETENV_PROVIDED] (getenv): Remove prototype.
2920
5f0f34cb
MK
2921 * standalone.c: Remove file.
2922 * Makefile.in (standalone.o): Remove dependency.
2923
7532965f
MK
2924 * i386-linux-nat.c (dummy_sse_values): Remove function and
2925 prototype.
2926 (i386_linux_dr_get): Fix typo in comment.
2927 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
2928
1bdc6c53
MK
2929 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
2930
c40d0d10
MK
2931 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
2932 from declaration.
2933 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
2934 from definition.
2935
64218d3e
MK
29362004-08-13 Mark Kettenis <kettenis@gnu.org>
2937
2938 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
2939 parenthesis in definition.
2940 * configure: Regenerated.
2941
926c94e7
MC
29422004-08-12 Michael Chastain <mec.gnu@mindspring.com>
2943
2944 * PROBLEMS: Mention build/1411.
2945
69489883
NN
29462004-08-09 Robert Millan <robertmh@gnu.org>
2947
2948 Committed by Nathanael Nerode.
2949 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
2950 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
2951
ebb7c577
AC
29522004-08-12 Andrew Cagney <cagney@gnu.org>
2953
2954 * NEWS: Mention fixes in GDB 6.2.1.
2955 * PROBLEMS: Remove mention of mips-irix.
2956
232d697c
JB
29572004-08-11 Joel Brobecker <brobecker@gnat.com>
2958
2959 * config/powerpc/xm-aix.h: Delete.
2960 * config/powerpc/aix.mh (MH_FILE): Remove.
2961 * config/powerpc/aix432.mh (MH_FILE): Remove.
2962
72f4e82b
JB
29632004-08-11 Joel Brobecker <brobecker@gnat.com>
2964
2965 * config/powerpc/aix.mh: Remove obsolete comment.
2966 * config/powerpc/aix432.mh: Likewise.
2967
0687ccb2
JB
29682004-08-11 Joel Brobecker <brobecker@gnat.com>
2969
2970 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
2971
dbf3ada7
JB
29722004-08-11 Joel Brobecker <brobecker@gnat.com>
2973
e08e1886
JB
2974 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
2975 this file is now empty.
2976 * config/xm-aix4.h: Remove, this file is no longer included
2977 anywhere.
2978
29792004-08-11 Joel Brobecker <brobecker@gnat.com>
2980
2981 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
2982 that file is now empty.
dbf3ada7
JB
2983 (termdef): Remove prototype, function no longer used.
2984
4c525ef6
JB
29852004-08-11 Joel Brobecker <brobecker@gnat.com>
2986
2987 * doc/gdbint.texinfo (Host Definition): Remove documentation
2988 for USE_O_NOCTTY, no longer used.
2989 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
2990 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
2991
82e0b968
JB
29922004-08-11 Joel Brobecker <brobecker@gnat.com>
2993
2994 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
2995 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
2996 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
2997
f2acbe1c
MK
29982004-08-11 Mark Kettenis <kettenis@gnu.org>
2999
daa98270
MK
3000 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
3001 instead of FIVE_ARG_PTRACE.
3002
f2acbe1c
MK
3003 * inflow.c (O_NOCTTY): Define to zero if not already defined.
3004 (new_tty): Use O_NOCTTY unconditionally.
3005
cc377e6b
MK
30062004-08-10 Mark Kettenis <kettenis@gnu.org>
3007
3008 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
3009 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
3010 fflush on stdout.
3011
3bcc18fa
JB
30122004-08-10 Joel Brobecker <brobecker@gnat.com>
3013
3014 * xcoff_symfile_finish: Replace last call to xmfree by call
3015 to xfree.
3016
7936743b
AC
30172004-08-10 Andrew Cagney <cagney@gnu.org>
3018
cc503c8a
AC
3019 * main.c (captured_main): Delete call to init_malloc.
3020 * defs.h (init_malloc): Delete declaration.
3021 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
3022 (init_malloc): Delete functions.
3023
2dc74dc1
AC
3024 * defs.h (xmfree): Delete.
3025 * utils.c (xmfree): Delete function.
3026 (xfree): Inline calls to xmfree and mfree.
3027 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
3028 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
3029 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
3030 * somread.c (som_symfile_finish): Ditto.
3031 * objfiles.c (allocate_objfile, free_objfile):
3032 * nlmread.c (nlm_symfile_finish): Ditto.
3033 * hpread.c (hpread_symfile_finish): Ditto.
3034 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
3035 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
3036 * coffread.c (coff_symfile_finish): Ditto.
3037
aa2ee5f6
AC
3038 * defs.h (xmcalloc): Delete declaration.
3039 * utils.c (xmcalloc): Delete.
3040 (xcalloc): Inline calls to xmcalloc and mcalloc.
3041 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
3042 xcalloc and xfree.
3043 * symtab.c (create_demangled_names_hash): Ditto.
3044
0efffb96
AC
3045 * defs.h (xmrealloc): Delete.
3046 * utils.c (xmrealloc): Delete.
3047 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
3048 * symmisc.c (extend_psymbol_list): Use xrealloc.
3049 * source.c (find_source_lines): Ditto.
3050 * hpread.c (hpread_lookup_type): Ditto.
3051 * dbxread.c (add_bincl_to_list): Ditto.
3052
7936743b
AC
3053 * utils.c (xmmalloc): Delete.
3054 (xmalloc): Inline xmmalloc and mmalloc calls.
3055 (msavestring): Use xmalloc.
3056 * defs.h (xmmalloc): Delete declaration.
3057 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
3058 xmmalloc.
3059 * symmisc.c (extend_psymbol_list): Ditto.
3060 * symfile.c (init_psymbol_list): Ditto.
3061 * source.c (find_source_lines): Ditto.
3062 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
3063 * elfread.c (elf_symtab_read): Ditto.
3064 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
3065 * coffread.c (coff_symfile_init): Ditto.
3066
252ab814
DC
30672004-08-10 David Carlton <carlton@bactrian.org>
3068
3069 * MAINTAINERS: Remove David Carlton from c++ testsuite
3070 maintainers.
3071
8f5ba92b
JG
30722004-08-10 Jerome Guitton <guitton@gnat.com>
3073
3074 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
3075 print a line feed before the prompt.
3076
21749010
MK
30772004-08-10 Mark Kettenis <kettenis@gnu.org>
3078
3079 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
3080
1f011ce2
JB
30812004-08-09 Joel Brobecker <brobecker@gnat.com>
3082
3083 General cleanup of the AIX xm include file:
3084 * config/xm-aix4.h (fd_set): Remove undefine.
3085 Remove include of <sys/select.h>.
3086 (HAVE_TERMIO): Remove define.
3087 (USG): Likewise.
3088 (NULL): Remove redefine.
3089 (alloca): Remove #pragma.
3090 (vfork): Remove define.
3091 (termdef): Remove.
3092 (SIGWINCH_HANDLER): Remove.
3093 (SIGWINCH_HANDLER_BODY): Remove.
3094
cf4e7692
MK
30952004-08-09 Mark Kettenis <kettenis@gnu.org>
3096
3097 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
3098 GDB_OSABI_OPENBSD_ELF.
3099
ac5754fa
MK
31002004-08-07 Robert Millan <robertmh@gnu.org>
3101
3102 * bsd-kvm.c: Check for nlist.h before including it.
3103
086ec9eb
MK
31042004-08-09 Mark Kettenis <kettenis@gnu.org>
3105
bbe06c74
MK
3106 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
3107 sigcontext' offset consistency checks for ancient BSD.
3108
3aa7b3b3
MK
3109 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
3110
086ec9eb
MK
3111 * configure.in: Check for <sys/types.h>. Check return and
3112 argument types of ptrace.
3113 * configure, config.in: Regenerate.
3114
09991fa0
JB
31152004-08-09 Jim Blandy <jimb@redhat.com>
3116
3117 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
3118 rs6000_register_sim_regno): Doc fixes.
3119
fed7ba43
JB
31202004-08-08 Joel Brobecker <brobecker@gnat.com>
3121
3122 * mips-tdep.c: Include "floatformat.h".
3123 (n32n64_floatformat_always_valid): New function.
3124 (floatformat_n32n64_long_double_big): New constant.
3125 (mips_gdbarch_init): Set size and format of long double
3126 for N32 and N64 ABIs.
3127 * Makefile.in (mips-tdep.o): Update dependencies.
3128
456fcf94
AC
31292004-08-08 Andrew Cagney <cagney@gnu.org>
3130
2f9b146e
AC
3131 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
3132 print. Improve script's error messages.
3133 * gdbarch.h: Re-generate.
3134
456fcf94
AC
3135 * gdbarch.sh (pformat): New function.
3136 (float_format, double_format, long_double_format): List with bit
3137 members. Use pformat when printing.
3138 * gdbarch.c, gdbarch.h: Re-generate.
3139
69e9e646
NW
31402004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
3141
3142 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
3143 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
3144 (ppcnbsd_supply_pcb): New function.
3145 (_initialize_ppcnbsd_nat): New prototype and function.
3146 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
3147 (LOADLIBES): New variable.
3148 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
3149
5ef2d0aa
AC
31502004-08-08 Andrew Cagney <cagney@gnu.org>
3151
3152 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
3153 (builtin_type_ieee_double, builtin_type_ia64_quad)
3154 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
3155 BE/LE floating-point types.
3156 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
3157 (builtin_type_ieee_double, builtin_type_ia64_quad)
3158 (builtin_type_ia64_spill): Declare.
3159 * doublest.c (_initialize_doublest, floatformat_ieee_single)
3160 (floatformat_ieee_double, floatformat_arm_ext)
3161 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
3162 of LE/BE floatformats.
3163 * doublest.h: (struct floatformat, floatformat_ieee_single)
3164 (floatformat_ieee_double, floatformat_arm_ext)
3165 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
3166
5c7f2947
MK
31672004-08-08 Mark Kettenis <kettenis@gnu.org>
3168
ecac404d
MK
3169 * i386gnu-nat.c (gnu_store_registers): Fix typo.
3170
9b8607ce
MK
3171 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
3172 instead of regcache_raw_supply when storing the registers.
3173
f6052080
MK
3174 * i386gnu-nat.c: Update copyright year.
3175 (gnu_store_registers): Don't use deprecated_registers and
3176 deprecated_registers_valid. Use regcache_valid_p and
3177 regcache_raw_supply instead.
3178
17777823
MK
3179 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
3180 frame_pc_unwind.
3181
5240ceac
MK
3182 * procfs.c (procfs_pid_to_str): Remove redundant and unused
3183 variables. Incapitalized "process".
3184
5c7f2947
MK
3185 * configure.in: Add cursesX to the list of possible curses libs.
3186 Add cursesX.h to the list of possible curses headers.
3187 * configure, config.in: Regenerate.
3188
da7d81e3
NW
31892004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3190
3191 * configure.in: Test for struct lwp in <sys/lwp.h>.
3192 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
3193 the offset of l_addr in struct lwp.
3194
7f245d65
NW
31952004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3196
3197 * bsd-kvm.c: Include "gdbcore.h"
3198 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
3199
47b3f456
AC
32002004-08-07 Andrew Cagney <cagney@gnu.org>
3201
70bd8e24
AC
3202 * gdbtypes.c (build_flt, build_complex): New functions.
3203 (gdbtypes_post_init): Use.
3204
9b0dea39
AC
3205 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
3206
5cf7abac
AC
3207 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
3208 through to builtin_type_uint128.
3209
64d2b26d
AC
3210 * c-exp.y: Use builtin_type function to obtain builtin types.
3211
7ad6570d
AC
3212 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
3213 builtin_uint128.
3214 * gdbtypes.c (gdbtypes_post_init): Update.
3215 (build_gdbtypes): Move initialization of builtin_type_int0
3216 through to builtin_type_uint128 from here ...
3217 (_initialize_gdbtypes): ... to here.
3218 * d10v-tdep.c (d10v_register_type): Update.
3219
47b3f456
AC
3220 * doublest.c: Update copyright.
3221 (floatformat_from_length): Call error when floatformat is NULL.
3222 (extract_floating_by_length): Remove NULL fmt check.
3223 (store_floating_by_length): Ditto.
3224
0a8146bf
AC
32252004-08-07 Andrew Cagney <cagney@gnu.org>
3226
3227 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
3228 that the register is valid.
3229
c0ccb908
MK
32302004-08-05 Mark Kettenis <kettenis@chello.nl>
3231
8e6bed05
MK
3232 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3233 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
3234 struct frame_info *. Use safe_frame_unwind_memory instead of
3235 deprecated_read_memory_nobpt.
3236 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
3237 changed signature of i386_linux_sigtramp_start and
3238 i386_linux_rt_sigtramp_start.
3239
24f9f5e3
MK
3240 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
3241 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
3242 instead of deprecated_read_memory_nobpt.
3243 (i386nbsd_sigtramp_p): Adjust for changed signature of
3244 i386nbsd_sigtramp_offset.
3245
c822af0c
MK
3246 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
3247 safe_frame_unwind_memory instead of target_read_memory.
3248
c0ccb908
MK
3249 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3250 !NO_SYS_FILE.
3251 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
3252 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
3253 (_initialize_kernel_u_addr): Remove prototype and function.
3254 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3255 !NO_SYS_FILE.
3256 * xcoffread.c: Likewise.
3257
b9e1c0d6
MK
32582004-08-06 Mark Kettenis <kettenis@gnu.org>
3259
3260 * vax-nat.c: New file.
3261 * vaxbsd-nat.c: Tweak comment.
3262 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
3263 vaxnbsd-tdep.c.
3264 (vax-nat.o): New dependency.
3265 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
3266 (vax-*-ultrix2*): Remove.
3267 * config/vax/vax.mh: New file.
3268 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
3269 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
3270 (vax_register_u_addr): New prototype.
3271 (REGISTER_U_ADDR): Define using vax_register_u_addr.
3272 * config/vax/vaxult2.mh: Remove file.
3273 * config/vax/vaxult.mh: Remove file.
3274 * config/vax/vaxbsd.mh: Remove file.
3275 * config/vax/vax.mt (TM_FILE): Remove.
3276 * config/vax/tm-vaxbsd.h: Remove file.
3277
9ad7bec7
JB
32782004-08-06 Joel Brobecker <brobecker@gnat.com>
3279
3280 * aix-thread.c (get_signaled_thread): New function.
3281 (iter_trap): Delete, no longer used.
3282 (iter_tid): New function.
3283 (pd_update): Find the thread that received the SIGTRAP signal
3284 by first locating the kernel thread, and then finding its
3285 associated thread.
3286
bf0d233d
UW
32872004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
3288
3289 * lin-lwp.c (child_wait): Continue inferior after processing
3290 PTRACE_EVENT_CLONE event.
3291
d0f853e1
NN
32922004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
3293
3294 * MAINTAINERS: Add self to Write-After-Approval.
3295
ab14aeb0
JJ
32962004-08-05 Jeff Johnston <jjohnstn@redhat.com>
3297
3298 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
3299 libunwind-xxxx.so" where xxxx is UNW_TARGET.
3300
9c8dbfa9
AC
33012004-08-05 Andrew Cagney <cagney@gnu.org>
3302
c8f3ca46
AC
3303 * config/xm-sysv4.h: Delete file.
3304 * config/mips/xm-irix5.h: Delete file.
3305 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
3306 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
3307 * config/ia64/xm-aix.h: Delete file.
3308 * config/ia64/aix.mh (XM_FILE): Delete.
3309 * config/pa/xm-hppah.h: Delete file.
3310 * config/pa/hpux11w.mh (XM_FILE): Delete.
3311 * config/pa/hpux11.mh (XM_FILE): Delete.
3312 * config/pa/hpux1020.mh (XM_FILE): Delete.
3313 * config/pa/hppahpux.mh (XM_FILE): Delete.
3314
5f7daaff
AC
3315 * config/alpha/xm-alphalinux.h: Delete file.
3316 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
3317 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
3318 * config/alpha/xm-alphaosf.h: Delete file.
3319 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
3320 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
3321 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
3322 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
3323
69babf95
AC
3324 * config/i386/xm-i386v.h: Delete file.
3325 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
3326 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
3327 * config/i386/xm-i386sco.h: Delete file.
3328 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
3329 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
3330 * config/i386/xm-i386v4.h: Delete file.
3331 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
3332 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
3333 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
3334 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
3335
6f009c8a
AC
3336 * config/vax/xm-vax.h: Delete file.
3337 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
3338 * config/vax/xm-vaxult2.h: Delete file.
3339 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
3340 * config/vax/vaxult2.mh (XM_FILE): Delete.
3341 * config/vax/xm-vaxult.h: Delete file.
3342 * config/vax/vaxult.mh (XM_FILE): Delete.
3343 * config/vax/xm-vaxbsd.h: Delete file.
3344 * config/vax/vaxbsd.mh (XM_FILE): Delete.
3345
9c8dbfa9
AC
3346 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
3347 * gdbarch.h, gdbarch.c: Re-generate.
3348 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
3349 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
3350 * frame.h: Delete deprecated_read_fp from comments.
3351 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
3352 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
3353
84367a3e
MK
33542004-08-04 Mark Kettenis <kettenis@gnu.org>
3355
9c8e3411
MK
3356 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
3357 trampoline in OpenBSD 3.5-current.
3358
b87bc0d8
MK
3359 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
3360 SSE registers.
3361
84367a3e
MK
3362 * Makefile.in: Remove embedded page breaks.
3363
a44bddec
JB
33642004-08-04 Jim Blandy <jimb@redhat.com>
3365
7ab3286f
JB
3366 * regcache.c (regcache_raw_read): Assert that, after calling
3367 target_fetch_registers, the register we're reading is cached.
3368
a44bddec
JB
3369 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
3370 a call to 'internal_error', with a more helpful error message.
3371 * rs6000-tdep.c (e500_pseudo_register_read,
870d65d5 3372 e500_pseudo_register_write, rs6000_store_return_value): Same.
a44bddec 3373
35124113
AC
33742004-08-04 Andrew Cagney <cagney@gnu.org>
3375
3376 * Makefile.in: Update dependencies.
3377
9f643768
JB
33782004-08-04 Jim Blandy <jimb@redhat.com>
3379
6ced10dd
JB
3380 Change the layout of the PowerPC E500 raw register cache to allow
3381 the lower 32-bit halves of the GPRS to be their own raw registers,
3382 not pseudoregisters.
3383 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
3384 add ppc_ev0_upper_regnum flag.
3385 * rs6000-tdep.c: #include "reggroups.h".
3386 (spe_register_p): Recognize the ev upper half registers as SPE
3387 registers.
3388 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
3389 registers.
3390 (e500_move_ev_register): New function.
3391 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
3392 vector registers are the pseudo-registers now, formed by splicing
3393 together the gprs and the upper-half registers.
3394 (e500_register_reggroup_p): New function.
3395 (P): Macro deleted.
3396 (P8, A4): New macro.
3397 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
3398 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
3399 macros.
3400 (registers_e500): Rearrange register set so that the raw register
3401 set contains 32-bit GPRs and upper-half registers, and the SPE
3402 vector registers become pseudo-registers.
3403 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
3404 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
3405 register numbers are now the same for the E500 as they are for
3406 other PowerPC variants. Register e500_register_reggroup_p as the
3407 register group function for the E500.
3408 * Makefile.in (rs6000-tdep.o): Update dependencies.
3409
3410 Adapt PPC E500 native support to the new raw regcache layout.
3411 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
3412 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
3413 (fetch_spe_register, store_spe_register): Handle fetching/storing
3414 all the SPE registers at once, if regno == -1. These now take
3415 over the job of fetch_spe_registers and store_spe_registers.
3416 (fetch_spe_registers, store_spe_registers): Deleted.
3417 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
3418 unconditionally; they're always raw. Fetch/store SPE upper half
3419 registers, if present, instead of ev registers.
3420 (fetch_register, store_register): Remove sanity checks: gprs are
3421 never pseudo-registers now, so we never need to even mention any
3422 registers that are ever pseudoregisters.
3423
9f643768
JB
3424 Use a fixed register numbering when communicating with the PowerPC
3425 simulator.
3426 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
3427 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
3428 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
3429 New functions.
3430 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
3431 init_sim_regno_table.
3432 * Makefile.in (gdb_sim_ppc_h): New variable.
3433 (rs6000-tdep.o): Update dependencies.
3434
1e2279c8
AC
34352004-08-02 Andrew Cagney <cagney@gnu.org>
3436
1d94326f
AC
3437 * cris-tdep.c (cris_register_size): Restore function, still used
3438 locally.
3439
331ae7ed
AC
3440 * gdbarch.sh (deprecated_target_read_fp)
3441 (deprecated_frame_locals_address, deprecated_frame_args_address)
3442 (deprecated_frame_chain_valid, deprecated_frame_chain)
3443 (deprecated_init_extra_frame_info, deprecated_pop_frame)
3444 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
3445 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
3446 * gdbarch.h, gdbarch.c: Re-generate.
3447 * regcache.c (deprecated_read_fp): Do not call
3448 DEPRECATED_TARGET_READ_FP_P.
3449 * infcmd.c (default_print_registers_info): Do not call
3450 DEPRECATED_DO_REGISTERS_INFO.
3451 * frame-base.c (default_frame_locals_address): Do not call
3452 DEPRECATED_FRAME_LOCALS_ADDRESS.
3453 (default_frame_args_address): Do not call
3454 DEPRECATED_FRAME_ARGS_ADDRESS.
3455
1e2279c8
AC
3456 * gdbarch.sh (deprecated_register_raw_size)
3457 (deprecated_register_virtual_size:int): Delete.
3458 * gdbarch.h, gdbarch.c: Re-generate.
3459 * cris-tdep.c (cris_register_size): Delete.
3460 (cris_gdbarch_init): Update.
3461 * alpha-tdep.c (alpha_register_raw_size)
3462 (alpha_register_virtual_size): Delete.
3463 (alpha_gdbarch_init): Update.
3464
a90c06b4
AC
3465 * gdbarch.sh (deprecated_register_virtual_type)
3466 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
3467 (deprecated_dummy_write_sp): Delete.
3468 * gdbarch.h, gdbarch.c: Re-generate.
3469
f42accbe
AC
3470 * gdbarch.sh (deprecated_register_bytes): Delete.
3471 * gdbarch.h, gdbarch.c: Re-generate.
3472 * regcache.c (deprecated_register_bytes): New function.
3473 * regcache.h (deprecated_register_bytes): Declare.
3474 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3475 * v850-tdep.c (v850_gdbarch_init): Update.
3476 * sh64-tdep.c (sh64_gdbarch_init): Update.
3477 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
3478 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3479 * mcore-tdep.c (mcore_gdbarch_init): Update.
3480 * cris-tdep.c (cris_gdbarch_init): Update.
3481 * arm-tdep.c (arm_gdbarch_init): Update.
3482 * remote.c (init_remote_state): Update.
3483 * remote-vx.c (vx_prepare_to_store): Update.
3484 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
3485 * irix5-nat.c (fetch_core_registers): Update.
3486 * cris-tdep.c (cris_register_bytes_ok): Update.
3487 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
3488
45c9dd44
AC
3489 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
3490 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
3491 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
3492 (mips_insn16_frame_base_address, mips_insn16_frame_base)
3493 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
3494 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
3495 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
3496 (mips_insn32_frame_base_address, mips_insn32_frame_base)
3497 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
3498 with mips_insn16 and mips_insn32.
3499
3acba339
AC
3500 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
3501 * rs6000-tdep.c (rs6000_push_dummy_call)
3502 (rs6000_extract_return_value): Use register_size.
3503 * xstormy16-tdep.c (xstormy16_get_saved_register)
3504 (xstormy16_extract_return_value): Ditto.
3505 * valops.c (value_assign): Ditto.
3506 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
3507 * v850-tdep.c (v850_extract_return_value): Ditto.
3508 * tracepoint.c (collect_symbol): Ditto.
3509 * target.c (debug_print_register): Ditto.
3510 * stack.c (frame_info): Ditto.
3511 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
3512 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
3513 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
3514 (store_register_using_P): Ditto.
3515 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
3516 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
3517 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
3518 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
3519 * regcache.c (deprecated_read_register_bytes)
3520 (deprecated_write_register_bytes, read_register)
3521 (write_register): Ditto.
3522 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
3523 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
3524 * monitor.c (monitor_supply_register, monitor_fetch_register)
3525 (monitor_store_register): Ditto.
3526 * mn10300-tdep.c (mn10300_pop_frame_regular)
3527 (mn10300_print_register): Ditto.
3528 * mipsv4-nat.c (fill_fpregset): Ditto.
3529 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
3530 (mips64_fill_fpregset): Ditto.
3531 * mi/mi-main.c (register_changed_p, get_register)
3532 (mi_cmd_data_write_register_values): Ditto.
3533 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
3534 * irix5-nat.c (fill_gregset, fetch_core_registers):
3535 * infrun.c (write_inferior_status_register): Ditto.
3536 * infptrace.c (fetch_register, store_register): Ditto.
3537 * infcmd.c (default_print_registers_info): Ditto.
3538 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
3539 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
3540 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
3541 * hpux-thread.c (hpux_thread_fetch_registers)
3542 (hpux_thread_store_registers): Ditto.
3543 * hppah-nat.c (store_inferior_registers, fetch_register):
3544 * findvar.c (value_from_register): Ditto.
3545 * dve3900-rom.c (fetch_bitmapped_register):
3546 * cris-tdep.c (cris_gdbarch_init): Ditto.
3547 * alpha-tdep.h: Ditto.
3548 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
3549
01e1877c
AC
3550 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
3551 DEPRECATED_REGISTER_RAW_SIZE from comments.
3552 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
3553 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
3554 DEPRECATED_REGISTER_RAW_SIZE.
3555 * findvar.c (value_of_register): Simplify by assuming that the
3556 registers raw and virtual sizes are identical.
3557 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
3558 comment.
3559 * arch-utils.c (generic_register_size): Simplify by assuming
3560 register_type.
3561
73f458fb
AC
3562 * regcache.c (legacy_read_register_gen, real_register)
3563 (legacy_write_register_gen): Delete, not used.
3564
336a3131
AC
3565 * regcache.c (struct regcache_descr): Delete legacy_p.
3566 (init_legacy_regcache_descr): Delete function.
3567 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
3568 Do not use deprecated register functions.
3569 (regcache_raw_read, deprecated_write_register_gen):
3570 (deprecated_read_register_gen, regcache_raw_write): Delete code
3571 predicated on legacy_p.
3572 (register_size): Delete check against register raw size.
3573
c1d546cd
AC
3574 * cris-tdep.c (cris_register_type): Replace
3575 cris_register_virtual_type.
3576 (cris_gdbarch_init): Update, set register_type.
3577
48c2c0a6
AC
3578 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
3579 * gdbarch.h, gdbarch.c: Re-generate.
3580 * arm-tdep.c (arm_frameless_function_invocation): Delete.
3581 (arm_gdbarch_init) Do not set frameless function invocation.
3582 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
3583 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
3584 * frv-tdep.c (frv_frameless_function_invocation): Delete.
3585 (frv_gdbarch_init): Do not set frameless function invocation.
3586 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
3587 * sh-tdep.c (sh_gdbarch_init): Ditto.
3588 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
3589 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3590 * avr-tdep.c (avr_gdbarch_init): Ditto.
3591
474093a6
AC
3592 * blockframe.c (legacy_frame_chain_valid): Delete function.
3593
3c109c8b
AC
3594 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
3595 and pc. Update comments.
3596 (pc_in_dummy_frame): Delete function.
3597 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
3598 use the "id".
3599 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
3600 call_hi, top and pc, use the id.
3601 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
3602
96860204
AC
3603 * dummy-frame.c: Include "gdb_string.h".
3604 (generic_save_call_dummy_addr, generic_push_dummy_frame)
3605 (generic_save_dummy_frame_tos): Delete.
3606 (dummy_frame_push): New function, replaces above.
3607 * dummy-frame.h: Update copyright.
3608 (dummy_frame_push): Declare.
3609 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
3610 (generic_save_call_dummy_addr): Delete declarations.
3611 * infcall.c: Include "dummy-frame.h".
3612 (call_function_by_hand): Add locals caller_regcache,
3613 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
3614 with call to frame_save_as_regcache plus cleanup. Delete calls to
3615 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
3616 Move clear_proceed_status to just before the resume, add call to
3617 dummy_frame_push (discard cleanup).
3618 * Makefile.in (infcall.o): Add $(dummy_frame_h).
3619 (dummy-frame.o): Add $(gdb_string_h).
3620
d67ec5db
AC
36212004-08-01 Andrew Cagney <cagney@gnu.org>
3622
3623 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
3624 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
3625 * dummy-frame.c (find_dummy_frame): Delete.
3626 (struct dummy_frame_cache, dummy_frame_sniffer)
3627 (dummy_frame_prev_register, dummy_frame_this_id)
3628 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
3629 frame unwinder using a dummy_frame_cache.
3630
a81dcb05
AC
36312004-08-01 Andrew Cagney <cagney@gnu.org>
3632
3633 * frame.h (frame_save_as_regcache): Declare.
3634 * frame.c (frame_save_as_regcache): New function.
3635 (do_frame_read_register): Replace do_frame_unwind_register.
3636 (frame_pop): Use frame_save_as_regcache.
3637 * dummy-frame.c (generic_push_dummy_frame): Use
3638 frame_save_as_regcache.
3639
aa495d11
JB
36402004-08-01 Joel Brobecker <brobecker@gnat.com>
3641
3642 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
3643 file as included until we record the first line in the linetable.
3644
ff65ac78
AC
36452004-08-01 Andrew Cagney <cagney@gnu.org>
3646
3647 * frame.h (deprecated_pop_dummy_frame)
3648 (deprecated_read_register_dummy)
3649 (deprecated_generic_find_dummy_frame): Delete.
3650 * dummy-frame.c (deprecated_generic_find_dummy_frame)
3651 (deprecated_read_register_dummy)
3652 (deprecated_find_dummy_frame_regcache)
3653 (discard_innermost_dummy)
3654 (deprecated_pop_dummy_frame): Delete.
3655 (dummy_frame_this_id): Simplify.
3656 (struct dummy_frame): Delete "fp" and "sp".
3657 (find_dummy_frame): Simplify.
3658 (generic_push_dummy_frame): Do not set "fp" or "sp".
3659 (fprint_dummy_frames): Do not print "fp" and "sp"
3660
37bdc87e
MK
36612004-08-01 Mark Kettenis <kettenis@gnu.org>
3662
3663 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
3664 (struct i386_insn): New structure.
3665 (i386_match_insn): New function.
3666 (i386_frame_setup_skip_insns): New variable.
3667 (i386_analyze_frame_setup): Change to use i386_match_insn and the
3668 array i386_frame_setup_insns of instructions that should be
3669 skipped inside the frame setup sequence.
3670
8241eaa6
AC
36712004-08-01 Andrew Cagney <cagney@gnu.org>
3672
5bc602c7
AC
3673 * frame.h (deprecated_frame_xmalloc_with_cleanup)
3674 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
3675 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
3676 * stack.c (frame_info): Delete references to
3677 DEPRECATED_FRAME_INIT_SAVED_REGS and
3678 deprecated_get_frame_saved_regs.
3679 * frame.c (struct frame_info): Delete saved_regs and extra_info.
3680 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
3681 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
3682 (frame_unwind_register_signed)
3683 (frame_unwind_register_unsigned)
3684 (frame_unwind_unsigned_register): Use register_size.
3685 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
3686 (deprecated_frame_xmalloc_with_cleanup)
3687 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
3688 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
3689
03d363a1
AC
3690 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
3691 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
3692 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
3693 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
3694
8241eaa6
AC
3695 * infcall.c (call_function_by_hand): Do not use
3696 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
3697 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
3698 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
3699 DEPRECATED_STACK_ALIGN.
3700
f00df8b7
AC
37012004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
3702
3703 Committed by Andrew Cagney.
3704 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
3705
eec63939
AC
37062004-08-01 Andrew Cagney <cagney@gnu.org>
3707
3708 * mips-tdep.c (mips16_frame_cache)
3709 (mips16_frame_this_id, mips16_frame_prev_register)
3710 (mips16_frame_unwind, mips16_frame_sniffer)
3711 (mips16_frame_base_address, mips16_frame_base)
3712 (mips16_frame_base_sniffer, mips32_frame_cache)
3713 (mips32_frame_this_id, mips32_frame_prev_register)
3714 (mips32_frame_unwind, mips32_frame_sniffer)
3715 (mips32_frame_base_address, mips32_frame_base)
3716 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
3717 separate heuristic mips16 and mips32 unwinders.
3718 (mips_stub_frame_cache, mips_stub_frame_this_id)
3719 (mips_stub_frame_prev_register)
3720 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
3721 (mips_stub_frame_base_address, mips_stub_frame_base)
3722 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
3723 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
3724 match true mdebug frames.
3725 (non_heuristic_proc_desc): Add forward declaration.
3726
e66299b3
AC
37272004-08-01 Andrew Cagney <cagney@gnu.org>
3728
83cbbf3e
AC
3729 * config/mips/tm-irix6.h: Delete file.
3730 * config/mips/tm-irix5.h: Delete file.
3731 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
3732 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
3733
22d41b37
AC
3734 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
3735 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
3736 * config/nm-gnu.h (NO_CORE_OPS): Delete.
3737 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
3738 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
3739 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
3740 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
3741 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
3742 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
3743 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
3744 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
3745 (TARGET_SIGNAL_RAW_VALUES): Delete.
3746 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
3747 Delete.
3748 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
3749 (TARGET_HW_WATCH_LIMIT): Delete.
3750 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
3751 * minimon.h: Delete file.
3752
e66299b3
AC
3753 * trad-frame.c (trad_frame_get_this_base)
3754 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
3755 functions.
3756 * trad-frame.h (trad_frame_set_this_base)
3757 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
3758
1f67027d
AC
37592004-07-31 Andrew Cagney <cagney@gnu.org>
3760
3761 * trad-frame.c (trad_frame_get_prev_register): Rename
3762 trad_frame_get_prev_register.
3763 * vax-tdep.c (vax_frame_prev_register): Update.
3764 * trad-frame.h: Update.
3765 * trad-frame.c (trad_frame_get_register): Update.
3766 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
3767 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
3768 Update.
3769 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
3770 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
3771 Update.
3772 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
3773 Update.
3774 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
3775 Update.
3776 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
3777 Update.
3778 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
3779 Update.
3780 * s390-tdep.c (s390_frame_prev_register)
3781 (s390_stub_frame_prev_register)
3782 (s390_sigtramp_frame_prev_register): Update.
3783 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
3784 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
3785 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
3786 * m88k-tdep.c (m88k_frame_prev_register)
3787 * m68hc11-tdep.c (m68hc11_frame_prev_register)
3788 * m32r-tdep.c (m32r_frame_prev_register): Update.
3789 * hppa-tdep.c (hppa_frame_prev_register_helper)
3790 * frv-tdep.c (frv_frame_prev_register): Update.
3791 * d10v-tdep.c (d10v_frame_prev_register): Update.
3792 * cris-tdep.c (cris_frame_prev_register): Update.
3793 * avr-tdep.c (avr_frame_prev_register): Update.
3794 * arm-tdep.c (arm_prologue_prev_register)
3795 (arm_sigtramp_prev_register): Update.
3796
c1bf6f65
AC
37972004-07-31 Andrew Cagney <cagney@gnu.org>
3798
3799 * frame.h (legacy_saved_regs_unwind)
3800 (legacy_frame_chain_valid, legacy_frame_p)
3801 (enum frame_type): Delete UNKNOWN_FRAME.
01fbbd97
AC
3802 * dummy-frame.c (dummy_frame_this_id): Simplify.
3803 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
c1bf6f65
AC
3804 * frame.c (struct frame_info): Delete the field "type".
3805 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
3806 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
3807 (legacy_saved_regs_unwind, legacy_frame_p)
3808 (frame_type_from_pc): Delete.
3809 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
3810 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
3811
dc856692
MK
38122004-07-31 Mark Kettenis <kettenis@gnu.org>
3813
5a5effe1
MK
3814 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
3815 indentation.
3816
d4fd50a6
MK
3817 * mips-nat.c: Remove file.
3818 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
3819 (mips-nat.o): Remove dependency.
3820
2689df5a
MK
3821 * infptrace.c: Update copyright year.
3822 (fetch_register): Pass NULL in regcache_raw_supply call instead of
3823 explicitly setting the buffer to all zeroes.
3824
dc856692
MK
3825 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
3826 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
3827
763910e0
AC
38282004-07-30 Andrew Cagney <cagney@gnu.org>
3829
3830 * GDB 6.2 released from gdb_6_2-branch.
3831
0b66e38c
EZ
38322004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
3833
3834 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
3835
3836 * exec.c (exec_file_attach):
3837 * nto-tdep.c (nto_find_and_open_solib):
3838 * pa64solib.c (pa64_solib_sizeof_symbol_table):
3839 * solib.c (solib_open):
3840 * somsolib.c (som_solib_sizeof_symbol_table):
3841 * source.c (is_regular_file, openp, open_source_file):
3842 * symfile.c (symfile_bfd_open):
3843 * wince.c (upload_to_device): Differentiate between the search for
3844 binary and source files.
3845
be7d7357
AC
38462004-07-30 Andrew Cagney <cagney@gnu.org>
3847
3848 * complaints.c (_initialize_complaints): Pass NULL to
3849 add_setshow_zinteger_cmd for help_doc.
3850 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
3851
ddc9cd0f
AC
38522004-07-30 Andrew Cagney <cagney@gnu.org>
3853
3854 Fix PR i18n/761.
3855 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
3856 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
3857 $(PACKAGE).pot and update-po.
3858 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
3859 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
3860 (update-po): New rules.
3861 (localedir): Define using autoconf.
3862 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
3863 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
3864 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
3865 * configure.in: Generate CATALOGS and LINGUAS from contents of
3866 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
3867 * configure: Re-generate.
3868 * po/gdbtext: New file
3869
e92f3704
JG
38702004-07-30 Jerome Guitton <guitton@gnat.com>
3871
3872 * MAINTAINERS: Reorder Write After Approval list in alphabetical
3873 order.
3874
b0f35d58
DL
38752004-07-30 David Lecomber <dsl@sources.redhat.com>
3876
3877 * dwarf2read.c (read_file_scope): Set producer if attribute
3878 present.
3879 (struct dwarf2_cu): Added new member producer.
3880
ce7d4522
JG
38812004-07-30 Jerome Guitton <guitton@gnat.com>
3882
3883 * inflow.c (kill_command): release file handles in BFD.
3884 * exec.c (exec_file_attach): Ditto.
3885 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
3886
05ee07c7
AC
38872004-07-29 Andrew Cagney <cagney@gnu.org>
3888
3889 * PROBLEMS (mips-irix): Note that it is broken.
3890
62eceb47
AC
38912004-07-29 Andrew Cagney <cagney@gnu.org>
3892
e57b8d41
AC
3893 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
3894 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
3895
d334389b
AC
3896 * config/xm-nbsd.h: Delete file.
3897 * config/arm/xm-nbsd.h: Delete file.
3898 * config/i386/xm-nbsd.h: Delete file.
3899 * config/ns32k/xm-nbsd.h: Delete file.
3900 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
3901 * config/i386/nbsdelf.mh (XM_FILE): Delete.
3902 * config/i386/nbsdaout.mh (XM_FILE): Delete.
3903 * config/arm/nbsdelf.mh (XM_FILE): Delete.
3904 * config/arm/nbsdaout.mh (XM_FILE): Delete.
3905
e910f676
AC
3906 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
3907 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
3908 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
3909 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
3910 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
3911 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
3912
6fa856b9
AC
3913 * config/powerpc/xm-linux.h: Delete empty file.
3914 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
3915 * config/powerpc/linux.mh (XM_FILE): Delete.
3916 * config/m68k/xm-linux.h: Delete empty file.
3917 * config/m68k/linux.mh (XM_FILE): Delete.
3918 * config/ia64/xm-linux.h: Delete empty file.
3919 * config/ia64/linux.mh (XM_FILE): Delete.
3920 * config/arm/xm-linux.h: Delete empty file.
3921 * config/arm/linux.mh (XM_FILE): Delete.
3922
471ae5ae
AC
3923 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3924 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
3925 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3926 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
3927 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3928 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
3929 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3930 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
3931
62eceb47
AC
3932 * config/m68k/xm-m68k.h: Delete file.
3933 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
3934 copyright.
3935 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
3936 * config/pa/xm-linux.h: Delete empty file.
3937 * config/pa/linux.mh (XM_FILE): Delete.
3938 * config/i386/xm-i386.h: Delete empty file.
3939 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
3940 "i386/xm-i386.h".
3941 * config/i386/obsdaout.mh (XM_FILE): Delete.
3942 * config/i386/obsd64.mh (XM_FILE): Delete.
3943 * config/i386/fbsd64.mh (XM_FILE): Delete.
3944 * config/i386/nto.mh (XM_FILE): Delete.
3945 * config/i386/obsd.mh (XM_FILE): Delete.
3946 * config/i386/linux64.mh (XM_FILE): Delete.
3947 * config/i386/linux.mh (XM_FILE): Delete.
3948 * config/i386/i386sol2.mh (XM_FILE): Delete.
3949 * config/i386/i386gnu.mh (XM_FILE): Delete.
3950 * config/i386/fbsd.mh (XM_FILE): Delete.
3951 * config/i386/nbsd64.mh (XM_FILE): Delete.
3952
c35f4ffc
AC
39532004-07-29 Andrew Cagney <cagney@gnu.org>
3954
3955 * config/pa/xm-linux.h: Do not include "floatformat.h".
3956 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3957 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
3958 * config/i386/xm-i386.h: Do not include "floatformat.h".
3959 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3960 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
3961 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3962 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
3963 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
3964 GDB_HOST_LONG_DOUBLE_FORMAT instead.
3965 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
3966 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
3967 * configure, config.in: Regenerate.
3968 * configure.host (gdb_host_float_format, gdb_host_double_format)
3969 (gdb_host_long_double_format): Set according to the host.
3970
624a44a3
AC
39712004-07-29 Andrew Cagney <cagney@gnu.org>
3972
3973 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
3974
0dea2468
AC
39752004-07-28 Andrew Cagney <cagney@gnu.org>
3976
3977 * PROBLEMS: Mention threads/1650.
3978 * NEWS: Mention the NPTL fix.
3979
b3f42336
AC
39802004-07-28 Andrew Cagney <cagney@gnu.org>
3981
3982 * cli/cli-decode.c (add_setshow_cmd): Delete function.
3983 (add_setshow_cmd_full): Make static.
3984 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
3985 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
3986 * cli/cli-decode.c (add_setshow_filename_cmd)
3987 (add_setshow_string_cmd): New functions.
3988 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
3989 * mips-tdep.c (_initialize_mips_tdep): Update.
3990 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
3991 * cli/cli-logging.c (_initialize_cli_logging): Update.
3992 * complaints.c (_initialize_complaints): Update.
3993 * remote.c (_initialize_remote): Update.
3994
3b64bf98
AC
39952004-07-28 Andrew Cagney <cagney@gnu.org>
3996
3997 * cli/cli-decode.c (add_setshow_zinteger_cmd)
3998 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
3999 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
4000 print parameters. Make string parameters constant.
4001 * command.h: Update. Update copyright.
4002 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
4003 * observer.c (_initialize_observer): Ditto.
4004 * frame.c (_initialize_frame): Ditto.
4005 * complaints.c (_initialize_complaints): Ditto.
4006 * maint.c (_initialize_maint_cmds): Ditto.
4007 * target.c (initialize_targets): Ditto.
4008 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
4009 * infcall.c (_initialize_infcall): Ditto.
4010 * arm-tdep.c (_initialize_arm_tdep): Ditto.
4011 * m32r-rom.c (_initialize_m32r_rom): Ditto.
4012 * remote-rdi.c (_initialize_remote_rdi): Ditto.
4013 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
4014 * mips-tdep.c (_initialize_mips_tdep): Ditto.
4015
e9667a65
AC
40162004-07-28 Andrew Cagney <cagney@gnu.org>
4017
54a5b07d
AC
4018 * gdbtypes.c (lookup_primitive_typename): Delete function.
4019 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
4020 * ada-lex.l: Use language_lookup_primitive_type_by_name.
4021 * gdbtypes.c (lookup_typename): Ditto.
4022 * f-exp.y (yylex): Ditto.
4023 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
4024
e9667a65
AC
4025 * scm-lang.c (c_builtin_types): Delete extern declaration.
4026 (scm_language_defn): Replace
4027 string_char_type and primitive_type_vector with
4028 la_language_arch_info.
4029 * jv-lang.c (java_language_defn): Replace
4030 string_char_type and primitive_type_vector with
4031 la_language_arch_info.
4032 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
4033 c_builtin_types in comment.
4034 * c-lang.h (struct language_arch_info): Declare opaque.
4035 (c_language_arch_info): Declare.
4036 (c_builtin_types): Delete declaration.
4037 * c-lang.c (c_language_arch_info): Set string_char_type to
4038 builtin_char, not builtin_true_char. Make global.
4039 (c_builtin_types): Delete array.
4040 (asm_language_defn, minimal_language_defn): Replace
4041 string_char_type and primitive_type_vector with
4042 la_language_arch_info.
4043
685419e2
AC
40442004-07-28 Andrew Cagney <cagney@gnu.org>
4045
4046 * gdbtypes.h (struct builtin_type): Rename true_char to
4047 builtin_true_char.
4048 * gdbtypes.c (gdbtypes_post_init): Update.
4049 * c-lang.c (arch_info): New function.
4050 (enum c_primitive_types): New enum.
4051 (c_language_defn): Instead of string_char_type and
4052 primitive_type_vector set la_language_arch_info.
4053
5a44ea29
AC
40542004-07-28 Andrew Cagney <cagney@gnu.org>
4055
4056 * language.h (struct language_arch_info): Fix typo
4057 s/primative/primitive/.
4058 * gdbtypes.c (lookup_primitive_typename): Ditto.
4059 * language.c (language_lookup_primitive_type_by_name)
4060 (unknown_language_arch_info): Ditto.
4061
f290d38e
AC
40622004-07-27 Andrew Cagney <cagney@gnu.org>
4063
4064 * defs.h (enum language): Add nr_languages.
4065 * language.h (struct language_arch_info): Define.
4066 (struct language_defn): Add la_language_arch_info.
4067 (language_lookup_primative_type_by_name): Declare.
4068 (language_string_char_type): Declare.
4069 * language.c (_initialize_language, language_gdbarch_post_init)
4070 (struct language_gdbarch, language_gdbarch_data): Implement
4071 per-architecture language information.
4072 (unknown_language_arch_info, language_string_char_type)
4073 (language_lookup_primative_type_by_name): New functions.
4074 (unknown_language_defn, auto_language_defn)
4075 (local_language_defn): Set la_language_arch_info to
4076 unknown_language_arch_info.
4077 (unknown_builtin_types): Delete.
4078 * gdbtypes.c (lookup_primitive_typename): Use
4079 language_lookup_primative_type_by_name.
4080 (create_string_type): Use language_string_char_type.
4081 * values.c (value_from_string): Use language_string_char_type.
4082 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
4083 * p-lang.c (pascal_language_defn): Ditto.
4084 * m2-lang.c (m2_language_defn): Ditto.
4085 * jv-lang.c (java_language_defn): Ditto.
4086 * objc-lang.c (objc_language_defn): Ditto.
4087 * f-lang.c (f_language_defn): Ditto.
4088 * c-lang.c (c_language_defn, cplus_language_defn)
4089 (asm_language_defn, minimal_language_defn): Ditto.
4090
000177f0
AC
40912004-07-27 Andrew Cagney <cagney@gnu.org>
4092
4093 * gdbtypes.h (struct builtin_type): Declare.
4094 (builtin_type): Declare.
4095 * d10v-tdep.c (d10v_register_type): Use builtin_type.
4096 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
4097 (gdbtypes_post_init): New function.
4098 (builtin_type): New function.
4099
e22f895c
KI
41002004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
4101
4102 * remote-m32r-sdi.c: Fix breakpoint bug.
4103 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
4104 recv_char_data, recv_long_data): New functions to replace communication
4105 sequences.
4106
536517dd
MC
41072004-07-26 Michael Chastain <mec.gnu@mindspring.com>
4108
4109 Document PR threads/1650.
4110 * PROBLEMS (Threads): Document problem with many threads
4111
a0a44d18
AC
41122004-07-26 Andrew Cagney <cagney@gnu.org>
4113
4114 * gdb-mi.el: Move from here ...
4115 * mi/gdb-mi.el: ... to here.
4116
7ac4ac06
AC
41172004-07-26 Andrew Cagney <cagney@gnu.org>
4118
4119 Problem reported by Ashley Pittman <ashley@quadrics.com>.
4120 * main.c (captured_main): When in batch mode always detach.
4121
a1b461bf
AC
41222004-07-26 Andrew Cagney <cagney@gnu.org>
4123
4124 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
4125 and h8300 as broken.
4126 * NEWS: END-OF-LIFE frame compatibility module.
4127 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
4128 specific comments.
4129
cb1a6d5f
AC
41302004-07-26 Andrew Cagney <cagney@gnu.org>
4131
4132 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
4133 * xcoffsolib.c (_initialize_xcoffsolib): Update.
4134 * wince.c (_initialize_wince): Update.
4135 * win32-nat.c (_initialize_win32_nat): Update.
4136 * varobj.c (_initialize_varobj): Update.
4137 * valops.c (_initialize_valops): Update.
4138 * utils.c (initialize_utils, initialize_utils): Update.
4139 * tui/tui-win.c (_initialize_tui_win): Update.
4140 * top.c (init_main): Update.
4141 * symfile.c (_initialize_symfile): Update.
4142 * source.c (_initialize_source): Update.
4143 * somsolib.c (_initialize_som_solib): Update.
4144 * solib.c (_initialize_solib): Update.
4145 * solib-frv.c (_initialize_frv_solib): Update.
4146 * serial.c (_initialize_serial): Update.
4147 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
4148 * remote.c (_initialize_remote, _initialize_remote): Update.
4149 * remote-vx.c (_initialize_vx): Update.
4150 * remote-utils.c (_initialize_sr_support): Update.
4151 * remote-sds.c (_initialize_remote_sds): Update.
4152 * remote-mips.c (_initialize_remote_mips): Update.
4153 * remote-e7000.c (_initialize_remote_e7000): Update.
4154 * proc-api.c (_initialize_proc_api): Update.
4155 * printcmd.c: Update.
4156 * parse.c (_initialize_parse): Update.
4157 * pa64solib.c (_initialize_pa64_solib): Update.
4158 * p-valprint.c (_initialize_pascal_valprint): Update.
4159 * monitor.c (_initialize_remote_monitors): Update.
4160 * mips-tdep.c (_initialize_mips_tdep): Update.
4161 * mcore-tdep.c (_initialize_mcore_tdep): Update.
4162 * maint.c (_initialize_maint_cmds): Update.
4163 * lin-lwp.c (_initialize_lin_lwp): Update.
4164 * language.c (_initialize_language): Update.
4165 * kod.c (_initialize_kod): Update.
4166 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
4167 * i386-tdep.c (_initialize_i386_tdep): Update.
4168 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
4169 * gdbarch.sh: Update.
4170 * gdbarch.c: Re-generate.
4171 * gdb-events.sh: Update.
4172 * gdb-events.c: Re-generate.
4173 * frame.c (_initialize_frame): Update.
4174 * exec.c: Update.
4175 * demangle.c (_initialize_demangler): Update.
4176 * dcache.c (_initialize_dcache): Update.
4177 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
4178 * cp-valprint.c (_initialize_cp_valprint): Update.
4179 * corefile.c (_initialize_core): Update.
4180 * command.h: Update.
4181 * cli/cli-decode.h: Update.
4182 * cli/cli-cmds.c (init_cli_cmds): Update.
4183 * charset.c (_initialize_charset): Update.
4184 * breakpoint.c (_initialize_breakpoint): Update.
4185 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
4186 * alpha-tdep.c (_initialize_alpha_tdep): Update.
4187 * aix-thread.c (_initialize_aix_thread): Update.
4188
b4632131
MK
41892004-07-24 Mark Kettenis <kettenis@gnu.org>
4190
4191 Partial fix for PR backtrace/1718.
4192 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
4193 that GCC migrates into the prolugue. Don't handle any
4194 instructions that clobber %ebx.
4195
822c9732
AC
41962004-07-23 Andrew Cagney <cagney@gnu.org>
4197
4198 Use regcache_raw_collect instead of regcache_collect.
4199 * regcache.h (regcache_collect): Delete declaration.
4200 * regcache.c (regcache_colect): Delete function.
4201 * win32-nat.c (do_child_store_inferior_registers): Update.
4202 * sol-thread.c (sol_thread_store_registers): Update.
4203 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
4204 * rs6000-nat.c (store_register): Update.
4205 * remote.c (store_register_using_P, remote_store_registers): Update.
4206 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
4207 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
4208 (fill_vrregset, store_spe_registers, fill_gregset)
4209 (fill_gregset): Update.
4210 * nto-procfs.c (procfs_store_registers): Update.
4211 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
4212 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
4213 * m68klinux-nat.c (store_register, fill_gregset): Update.
4214 * m68k-tdep.c (fill_gregset): Update.
4215 * infptrace.c (store_register): Update.
4216 * i386-nto-tdep.c (i386nto_regset_fill): Update.
4217 * i386-linux-nat.c (store_register, fill_gregset): Update.
4218 * hppa-linux-nat.c (fill_gregset): Update.
4219 * go32-nat.c (store_register): Update.
4220 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
4221 (store_fp_regs): Update.
4222 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
4223 (store_nwfpe_extended, store_fpregister, store_fpregs)
4224 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
4225 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
4226 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
4227 (store_regs_user_thread, store_regs_kernel_thread): Update.
4228
32b05c07
MK
42292004-07-24 Mark Kettenis <kettenis@gnu.org>
4230
4231 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
4232 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
4233 encoding.
4234 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
4235 member of `struct comp_unit'.
4236
8567c30f
AC
42372004-07-23 Andrew Cagney <cagney@gnu.org>
4238
4239 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
4240 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
4241
f6da8dd8
MH
42422004-07-23 Martin Hunt <hunt@redhat.com>
4243 Kevin Buettner <kevinb@redhat.com>
4244
4245 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
4246 alignment was being added to the offset instead of multiplied.
4247
bd921882
MK
42482004-07-23 Mark Kettenis <kettenis@gnu.org>
4249
24f033e8
MK
4250 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
4251 changed signal trampoline in OpenBSD 3.5-current.
4252
90f3cecd
MK
4253 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
4254 <machine/pcb.h> and "bsd-kvm.h".
4255 (sparc64nbsd_supply_pcb): New function.
4256 (_initialize_sparc64nbsd_nat): Renamed from
4257 _initialize_sparcnbsd_nat. Enable libkvm interface.
4258 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
4259 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
4260 (LOADLIBES): New variable.
4261
a4954a62
MK
4262 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
4263
bd921882
MK
4264 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
4265
23a6d369
AC
42662004-07-21 Andrew Cagney <cagney@gnu.org>
4267
4268 Use regcache_raw_supply instead of supply_register.
4269 * regcache.h (supply_register): Delete declaration.
4270 * regcache.c (supply_register): Delete function.
4271 * wince.c (do_child_fetch_inferior_registers): Update.
4272 * win32-nat.c (do_child_fetch_inferior_registers)
4273 (fetch_elf_core_registers): Update.
4274 * v850ice.c (v850ice_fetch_registers): Update.
4275 * thread-db.c (thread_db_store_registers): Update.
4276 * sol-thread.c (sol_thread_store_registers): Update.
4277 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
4278 * rs6000-nat.c (fetch_register): Update.
4279 * rom68k-rom.c (rom68k_supply_one_register): Update.
4280 * remote.c (remote_wait, remote_async_wait): Update.
4281 * remote-st.c (get_hex_regs): Update.
4282 * remote-sim.c (gdbsim_fetch_register): Update.
4283 * remote-sds.c (sds_fetch_registers): Update.
4284 * remote-rdp.c (remote_rdp_fetch_register): Update.
4285 * remote-rdi.c (arm_rdi_fetch_registers): Update.
4286 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
4287 * remote-m32r-sdi.c (m32r_fetch_register): Update.
4288 * remote-hms.c (init_hms_cmds): Update.
4289 * remote-est.c (init_est_cmds): Update.
4290 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
4291 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
4292 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
4293 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
4294 (fetch_register, supply_vrregset, supply_vrregset)
4295 (fetch_spe_registers): Update.
4296 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
4297 * monitor.c (monitor_supply_register): Update.
4298 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
4299 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
4300 (mipsnbsd_supply_fpreg): Update.
4301 * mips-nat.c (fetch_inferior_registers)
4302 (fetch_core_registers): Update.
4303 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
4304 (supply_fpregset, mips64_supply_gregset)
4305 (mips64_supply_fpregset): Update.
4306 * m68klinux-nat.c (fetch_register, supply_gregset)
4307 (supply_fpregset): Update.
4308 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
4309 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
4310 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
4311 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
4312 * infptrace.c (fetch_register): Update.
4313 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
4314 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
4315 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
4316 (gnu_fetch_registers, gnu_store_registers): Update.
4317 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
4318 * i386-linux-nat.c (fetch_register, supply_gregset)
4319 (dummy_sse_values): Update.
4320 * hpux-thread.c (hpux_thread_fetch_registers): Update.
4321 * hppah-nat.c (fetch_register): Update.
4322 * hppa-linux-nat.c (fetch_register, supply_gregset)
4323 (supply_fpregset): Update.
4324 * go32-nat.c (fetch_register): Update.
4325 * dve3900-rom.c (fetch_bitmapped_register)
4326 (_initialize_r3900_rom): Update.
4327 * cris-tdep.c (supply_gregset): Update.
4328 * abug-rom.c (init_abug_cmds): Update.
4329 * core-aout.c (fetch_core_registers): Update.
4330 * armnbsd-nat.c (supply_gregset, supply_fparegset)
4331 (fetch_register, fetch_fp_register): Update.
4332 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
4333 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
4334 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
4335 * alphanbsd-tdep.c (fetch_core_registers): Update.
4336 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
4337 * alpha-nat.c (fetch_osf_core_registers)
4338 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
4339 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
4340 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
4341
73cc75f3
AC
43422004-07-21 Andrew Cagney <cagney@gnu.org>
4343
4344 * PROBLEMS: Mention breakpoints/1702.
4345 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
4346 that is known to work.
4347
a53c66de
AC
43482004-07-21 Andrew Cagney <cagney@gnu.org>
4349
4350 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
4351 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
4352 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
4353 (handle_inferior_event): Wrap call to deprecated
4354 IGNORE_HELPER_CALL in #ifdef.
4355 * config/mips/tm-nbsd.h: Update.
4356
708ff411
JB
43572004-07-20 Jim Blandy <jimb@redhat.com>
4358
412b3060
JB
4359 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
4360 bfd_mach_ppc has no segment registers.
4361
13ac140c
JB
4362 Include PowerPC SPR numbers for special-purpose registers.
4363 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
4364 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
4365 new member in initializer.
4366 (S, S4, SN4, S64): New macros for defining special-purpose
4367 registers.
4368 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
4369 registers_403, registers_403GC, registers_505, registers_860,
4370 registers_601, registers_602, registers_603, registers_604,
4371 registers_750, registers_e500): Use them.
4372
708ff411
JB
4373 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
4374 replace references with expression used to initialize variable.
4375
1f602b35
AC
43762004-07-20 Andrew Cagney <cagney@gnu.org>
4377
4378 * breakpoint.c (deprecated_read_memory_nobpt): Rename
4379 read_memory_nobpt.
4380 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
4381 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
4382 (s390_sigtramp_frame_sniffer): Update.
4383 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
4384 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
4385 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
4386 (mips32_fetch_instruction): Update.
4387 * mcore-tdep.c (get_insn): Update.
4388 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
4389 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
4390 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
4391 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4392 (i386_linux_rt_sigtramp_start): Update.
4393 * i386-linux-nat.c (child_resume): Update.
4394 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
4395 * hppa-linux-tdep.c (insns_match_pattern): Update.
4396 * gdbcore.h: Update.
4397 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
4398 * frame.c (safe_frame_unwind_memory): Update.
4399 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
4400 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
4401 * alpha-tdep.c (alpha_read_insn): Update.
4402
2cd8546d
AC
44032004-07-20 Andrew Cagney <cagney@gnu.org>
4404
4405 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
4406 containing both bytes and mask. Add "frame_type".
4407 * tramp-frame.c (tramp_frame_start): Update.
4408 (tramp_frame_prepend_unwinder): Update.
4409 * mips-linux-tdep.c (mips_linux_o32_sigframe)
4410 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
4411 (mips_linux_n64_rt_sigframe): Update. Make "static const".
4412 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
4413
f928dd62
EZ
44142004-07-19 Eli Zaretskii <eliz@gnu.org>
4415
4416 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
4417 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
4418 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
4419 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
4420
d5c560f7
AC
44212004-07-17 Andrew Cagney <cagney@gnu.org>
4422
860660cb
AC
4423 * NEWS, PROBLEMS: Update for 6.2.
4424
8c266f54
AC
4425 * README: Update to 6.2.
4426
a552edd9
AC
4427 * utils.c (xvasprintf): Call xstrvprintf.
4428
c4a172b5
AC
4429 * parse.c: Update copyright.
4430 (null_post_parser): Eliminate ARGSUSED.
4431
da745b36
AC
4432 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
4433 * tui/tui-win.c (tui_get_cmd_list): Ditto.
4434 * symfile-mem.c (_initialize_symfile_mem): Ditto.
4435
9cbc6ef0
AC
4436 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
4437 * ppc-linux-nat.c: Use "Linux kernel".
4438 * hppa-linux-tdep.c: Use GNU/Linux.
4439 * hppa-linux-nat.c: Use GNU/Linux.
4440 * dwarfread.c: Add [sic] to use of Linux.
4441
1b89295f
AC
4442 * hppa-linux-nat.c: Do not include <string.h>.
4443 (supply_fpregset): Remove "register" attribute.
4444
d5c560f7
AC
4445 * solib-frv.c (fetch_loadmap): Use xfree, not free.
4446
7ddd7709
MK
44472004-07-17 Mark Kettenis <kettenis@gnu.org>
4448
b1d19a62
MK
4449 * configure.in: Define _MSE_INT_H on Solaris 9 too.
4450 * configure, config.in: Regenerated.
4451
7ddd7709
MK
4452 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
4453 "bsd-kvm.h".
4454 (vaxbsd_supply_pcb): New function.
4455 (_initialize_vaxbsd_nat): New prototype and function.
4456 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
4457 solib-sunos.o.
4458 (LOADLIBES): New variable.
4459 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4460 (LOADLIBES): New variable.
4461 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
4462 (LOADLIBES): New variable.
4463 * Makefile.in (vaxbsd-nat.o): Update dependencies.
4464
2c07db7a
AC
44652004-07-16 Andrew Cagney <cagney@gnu.org>
4466
4467 * defs.h (event_loop_p): Replace variable declaration with macro,
4468 always 1.
4469 * main.c (captured_main): Delete options "-async" and "-noasync".
4470 (event_loop_p): Delete variable.
4471 * NEWS: Mention that "-async" and "-noasync" were removed.
4472
717eb1cf
AC
44732004-07-16 Andrew Cagney <cagney@gnu.org>
4474
4475 * remote-m32r-sdi.c: Re-indent.
4476
c101bc14
JB
44772004-07-16 Jim Blandy <jimb@redhat.com>
4478
5109a438
JB
4479 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
4480 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
4481 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
4482 missing MPC823 SPRs.
4483 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
4484 incorrect. (This was corrected in GDB's register name tables on
4485 2004-07-14.)
4486
c101bc14
JB
4487 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
4488 should be "esasrr" ("ESA Save and Restore Register").
4489
7ce450bd
AC
44902004-07-16 Andrew Cagney <cagney@gnu.org>
4491
4492 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
4493 calls, no longer applicable. Update comments and rename parameter
4494 "step_frame" to "return_frame".
4495
ca73dd9d
AC
44962004-07-16 Andrew Cagney <cagney@gnu.org>
4497
4498 * frame.c (fprint_field): New function.
4499 (fprint_frame_id): Use fprint_field.
4500
31941f6d
JB
45012004-07-15 Joel Brobecker <brobecker@gnat.com>
4502
4503 * ada-lang.c (ada_language_defn): Remove commented out code.
4504
f86a7158
JB
45052004-07-15 Jim Blandy <jimb@redhat.com>
4506
4507 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
4508 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
4509
c24791ec
JB
45102004-07-14 Jim Blandy <jimb@redhat.com>
4511
29bb1356
JB
4512 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
4513
cc98b5cc
JB
4514 * ppc-tdep.h (ppc_num_vrs): New enum constant.
4515
8f088af7
JB
4516 * ppc-tdep.h (ppc_num_srs): New enum constant.
4517
0ea0ec5f
JB
4518 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
4519 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
4520 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
4521 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
4522 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
4523 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
4524 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
4525 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
4526 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
4527 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
4528 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
4529 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
4530 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
4531 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
4532 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
4533 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
4534 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
4535 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
4536 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
4537 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
4538 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
4539 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
4540 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
4541 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
4542 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
4543 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
4544 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
4545 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
4546 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
4547 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
4548 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
4549 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
4550 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
4551 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
4552 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
4553 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
4554 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
4555 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
4556 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
4557 special-purpose register numbers.
4558
c24791ec
JB
4559 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
4560 manual mentions 'md_twb', but many mention 'm_twb', and at that
4561 point in the register list.)
4562
d833db3b
AC
45632004-07-14 Andrew Cagney <cagney@gnu.org>
4564
4565 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
4566 instead of "internal-error".
4567
080228b2
JB
45682004-07-10 Joel Brobecker <brobecker@gnat.com>
4569
4570 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
4571 that was inserted inside a comment.
4572
c268433a
RC
45732004-07-10 Randolph Chung <tausq@debian.org>
4574
4575 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
4576 function.
4577 (hppa_hpux_push_dummy_code): New function.
4578 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
4579 Set find_global_pointer method.
4580
71009278
MK
45812004-07-10 Mark Kettenis <kettenis@gnu.org>
4582
4583 * NEWS: Mention BSD libkvm interface.
4584
b2fa5097
MS
45852004-07-10 Michael Snyder <msnyder@redhat.com>
4586
4587 * symfile.c (generic_load): Comment typo.
4588 * stack.c (get_selected_block): Ditto.
4589 * regcache.c (regcache_cooked_read): Ditto.
4590 * monitor.c (monitor_debug): Ditto.
4591 * mips-tdep.c (mips_read_pc): Ditto.
4592 * i386-linux-nat.c (ps_get_thread_area): Ditto.
4593 * gdb_mbuild.sh: Ditto.
4594 * gdbarch.sh: Ditto.
4595 * gdbarch.h: Ditto.
4596
c3e5cd34
PH
45972004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
4598
8a2225b2
PH
4599 * ada-tasks.c: Remove file.
4600
c3e5cd34
PH
4601 Remove ARI problems:
4602
4603 * ada-exp.y (write_var_from_sym): Reformat to put operator at
4604 beginning of line.
4605
4606 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
4607 Add comment.
4608 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
4609 (MIN_OF_SIZE): Rename min_of_size. Add comment.
4610 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
4611 (UMIN_OF_SIZE): Remove.
4612 (max_of_type): New function to replace orphan macro in gdbtypes.h
4613 (min_of_type): Ditto.
4614 (discrete_type_high_bound): Use max_of_type.
4615 (discrete_type_low_bound): Use min_of_type.
4616 (possible_user_operator_p): Move operator to beginning of line.
4617 (ada_is_variant_part): Ditto.
4618 (ensure_lval): Rewrite to avoid deprecated operations.
4619 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
4620 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
4621 (ada_enum_name): Remove assignments in 'if' statements.
4622 (build_ada_types): Add gdbarch parameter.
4623 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
4624 with gdbarch_data_register_post_init.
4625 Use add_setshow_uinteger_cmd rather than add_set_cmd and
4626 add_show_from_set.
4627
4628 * ada-valprint.c (inspect_it): Remove declaration.
4629 (repeat_count_threshold): Remove declaration.
4630 (ada_print_floating): Remove assignments in 'if' statements.
4631 (print_str): Move operator to beginning of line.
4632
61ce229a
JB
46332004-07-08 Jim Blandy <jimb@redhat.com>
4634
4635 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
4636
09bcec80
BR
46372004-07-08 Bob Rossi <bob@brasko.net>
4638
4639 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
4640
31c27f77
JJ
46412004-07-06 Jeff Johnston <jjohnstn@redhat.com>
4642
4643 * language.h (struct_language_defn): Add new function pointer:
4644 la_class_name_from_physname. Also add new prototype for
4645 language_class_name_from_physname.
4646 * language.c (language_class_name_from_physname): New function.
4647 (unk_lang_class_name): Ditto.
4648 (unknown_language_defn, auto_language_defn): Change
4649 to add unk_lang_class_name function pointer for
4650 la_class_name_from_physname.
4651 (local_language_defn): Ditto.
4652 * dwarf2read.c (guess_structure_name): Change to call
4653 language_class_name_from_physname.
4654 (determine_class_name): Ditto.
4655 * cp-support.c (class_name_from_physname): Renamed.
4656 (cp_class_name_from_physname): New name of function.
4657 * cp-support.h: Ditto.
4658 * c-lang.c (c_language_defn): Change to add NULL
4659 for class_name_from_physname function pointer.
4660 (cplus_language_defn): Change to add cp_class_name_from_physname.
4661 * jv-lang.c (java_class_name_physname): New function.
4662 (java_find_last_component): New static routine.
4663 (java_language_defn): Add java_class_name_from_physname pointer.
4664 * ada-lang.c (ada_language_defn): Change to add NULL
4665 for class_name_from_physname function pointer.
4666 * f-lang.c (f_language_defn): Ditto.
4667 * m2-lang.c (m2_language_defn): Ditto.
4668 * objc-lang.c (objc_language_defn): Ditto.
4669 * p-lang.c (pascal_language_defn): Ditto.
4670 * scm-lang.c (scm_language_defn): Ditto.
4671
ee28ca0f
AC
46722004-07-06 Andrew Cagney <cagney@gnu.org>
4673
4674 Patch from Bart Robinson.
4675 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
4676 (O_LARGEFILE): Define to 0, if not defined.
4677
fdb1bf9d
MK
46782004-07-03 Mark Kettenis <kettenis@gnu.org>
4679
cb162ff6
MK
4680 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
4681 <machine/pcb.h> and "bsd-kvm.h".
4682 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
4683 (m68kbsd_supply_pcb): New function.
4684 (_initialize_m68kbsd_nat): New prototype and function.
4685 * Makefile.in (m68kbsd-nat.o): Update dependencies.
4686 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4687 (LOADLIBES): New variable.
4688 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
4689 (LOADLIBES): New variable.
4690
fdb1bf9d
MK
4691 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
4692
963c4174
MK
46932004-07-03 Mark Kettenis <kettenis@gnu.org>
4694
4695 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
4696 <sys/proc.h>.
4697 (bsd_kvm_cmdlist): New variable.
4698 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
4699 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
4700 command and "kvm proc" command.
4701 * Makefile.in (bsd-kvm.o): Update dependencies.
4702
533f1d8f
MK
47032004-07-02 Mark Kettenis <kettenis@gnu.org>
4704
4705 * osabi.c: Update copyright year.
4706 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
4707 notes if EI_OSABI is set to ELFOSABI_HPUX.
4708
6780dcde
MS
47092004-07-01 Michael Snyder <msnyder@redhat.com>
4710
4711 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
4712 that seems to have gotten whacked out of line.
4713
67bebe79
MK
47142004-07-01 Mark Kettenis <kettenis@gnu.org>
4715
4716 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
4717 code.
4718
0b5d8877
PH
47192004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
4720
4721 * ada-lang.c (decode_packed_array): Minor change to comment.
4722 (ada_value_slice_ptr): New function.
4723 (ada_value_slice): New function.
4724 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
4725 test. Don't know why it is there.
4726 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
4727 to avoid dereferencing huge arrays from which one is slicing.
4728 (empty_array): Correct to return an array rather than
4729 a subrange value.
4730 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
4731 on empty arrays (let'em use 'FIRST instead).
4732
19c1ef65
PH
47332004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
4734
4735 Address complaints from gdb_ari.sh:
4736
4737 * ada-exp.y: Include gdb_string.h rather than string.h.
4738 (convert_char_literal): Reformat declaration.
4739 * ada-lang.h: Include opaque struct declaration for struct frame_info.
4740 * ada-lex.l: Change use of free to xfree (the macro would do so
4741 anyway, but this is harmless).
4742 Include gdb_string.h rather than string.h.
4743 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
4744
4745 * ada-lang.c (parse): Remove K&Rism in parameter list.
4746 (is_name_suffix): Correct Linux => GNU/Linux in comment.
4747
d81cbc94
MK
47482004-06-30 Mark Kettenis <kettenis@gnu.org>
4749
4750 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
4751 dead code.
4752
07681759
MK
47532004-06-30 Mark Kettenis <kettenis@gnu.org>
4754
4755 * alphabsd-nat.c: Update copyright year.
4756 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
4757
f7948b5f
JB
47582004-06-29 Joel Brobecker <brobecker@gnat.com>
4759
6e0cdd28 4760 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
f7948b5f
JB
4761 (i386_cygwin_in_solib_call_trampoline): New function.
4762 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
4763 and skip_trampoline_code gdbarch methods.
4764
8f113c9a
JB
47652004-06-29 Jim Blandy <jimb@redhat.com>
4766
4767 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
4768 name actually used in the dependency lists.
4769
97dc871c
RC
47702004-06-29 Randolph Chung <tausq@debian.org>
4771
4772 * NEWS (New native configurations): Mention GNU/Linux/hppa.
4773
47216e51
CV
47742004-06-29 Corinna Vinschen <vinschen@redhat.com>
4775
4776 * win32-nat.c (child_pid_to_exec_file): New function.
6780dcde 4777 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
47216e51
CV
4778 functionality.
4779
e623b504
AC
47802004-06-28 Andrew Cagney <cagney@gnu.org>
4781
4782 * defs.h (xstrvprintf): Declare.
4783 * utils.c (xstrvprintf): New function.
4784 (internal_vproblem, xstrprintf, xasprintf)
4785 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
4786 * serial.c (serial_printf): Ditto.
4787 * complaints.c (vcomplaint): Ditto.
4788
79acc9b3
CV
47892004-06-29 Corinna Vinschen <vinschen@redhat.com>
4790
4791 * infcmd.c (attach_command): Move call to target_terminal_inferior
4792 behind loading symbol table.
4793
1daf35d9
AC
47942004-06-28 Andrew Cagney <cagney@gnu.org>
4795
4796 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
4797 change - add back extern deprecated_ui_loop_hook declaration.
4798
b435e160
AC
47992004-06-28 Andrew Cagney <cagney@gnu.org>
4800
4801 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
4802 xstrprintf.
4803 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
4804 (c_value_of_variable): Ditto.
4805 * utils.c (internal_vproblem): Ditto.
4806 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
4807 * remote.c (add_packet_config_cmd): Ditto.
4808 * remote-rdp.c (rdp_set_command_line): Ditto.
4809 * regcache.c (regcache_dump): Ditto.
4810 * frv-tdep.c (new_variant, new_variant): Ditto.
4811 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
4812 (fbsd_find_memory_regions): Ditto.
4813 * breakpoint.c (create_thread_event_breakpoint)
4814 (create_breakpoints): Ditto.
4815 * aix-thread.c (aix_thread_pid_to_str): Ditto.
4816 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
4817
06d5cf63
JB
48182004-06-28 Joel Brobecker <brobecker@gnat.com>
4819
4820 * ada-lang.c: Re-indent file, with some massaging to help indent
4821 a bit when the result is otherwise really too ugly.
4822
35809fad
UW
48232004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
4824
4825 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
4826 code_addr_p and special_addr_p to 'unsigned int'.
4827
40e20472
MK
48282004-06-27 Mark Kettenis <kettenis@gnu.org>
4829
4830 * i386v4-nat.c: Update copyright year and tweak comment.
4831 (regmap): Remove trailing comma.
4832 (supply_gregset): Rename local variable i to regnum. Call
4833 regcache_raw_supply instead of supply_register.
4834 (fill_gregset): Rename argument regno to regnum. Call
4835 regcache_raw_collect instead of regcache_collect.
4836
12b0b6de
UW
48372004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
4838
4839 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
4840 and special_addr_p.
4841 (frame_id_build, frame_id_build_special): Update comments.
4842 (frame_id_build_wild): New prototype.
4843 * frame.c (frame_id_build, frame_id_build_special): Fill in new
4844 struct frame_id fields.
4845 (frame_id_build_wild): New function.
4846 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
4847
47b42a3e
MK
48482004-06-27 Mark Kettenis <kettenis@gnu.org>
4849
4850 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
4851 hppabsd-tdep.c.
4852
1265e4aa
JB
48532004-06-27 Joel Brobecker <brobecker@gnat.com>
4854
4855 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
4856
76a01679
JB
48572004-06-27 Joel Brobecker <brobecker@gnat.com>
4858
4859 * ada-lang.c: Re-indent file.
4860
7aca490a
JB
48612004-06-27 Joel Brobecker <brobecker@gnat.com>
4862
4863 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
4864 (no_symtab_msg): Likewise.
4865
5e987968
AS
48662004-06-27 Andreas Schwab <schwab@suse.de>
4867
4868 * source.c: Fix whitespace.
4869
315c4276
MK
48702004-06-27 Mark Kettenis <kettenis@gnu.org>
4871
d15be926
MK
4872 * configure.in: Include <sys/param.h> for td_pcb test.
4873 * configure: Regenerated.
4874
9062529b
MK
4875 * i386nbsd-nat.c: New file.
4876 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
4877 i386obsd-nat.c and i386obsd-tdep.c.
4878 (i386nbsd-nat.o): New dependency.
4879 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
4880 bsd-kvm.o.
4881 (LOADLIBES): New variable.
4882 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
4883 bsd-kvm.o.
4884 (LOADLIBES): New variable.
4885
8010310e
MK
4886 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
4887 (LOADLIBES): New variable.
4888
efe1d7b9
MK
4889 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
4890 fetching from BSD_KVM_PADDR. Correctly lookup address for
4891 "_thread0".
4892
315c4276
MK
4893 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
4894 "bsd-kvm.h".
4895 (amd64fbsd_supply_pcb): New funcion.
4896 (_initialize_amd64fbsd_nat): Enable libkvm interface.
4897
399cfac6
DL
48982004-06-27 <david@streamline-computing.com>
4899
4900 Partial fix for PR cli/1056.
4901 * valarith.c: Check for zero in division and remainder
4902 evaluation.
4903
6235f9c8
MK
49042004-06-27 Mark Kettenis <kettenis@gnu.org>
4905
4906 * i387-tdep.c: Remove excessive whitespace.
4907
2726dafc
AC
49082004-06-26 Andrew Cagney <cagney@gnu.org>
4909
4910 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
4911 * gdb-events.h, gdb-events.c: Re-generate.
4912 * tui/tui-hooks.c (tui_install_hooks): Update.
4913 (tui_remove_hooks): Update.
4914 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
4915
0e56aeaf
MK
49162004-06-26 Mark Kettenis <kettenis@gnu.org>
4917
cb461069
MK
4918 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
4919 (gregset_t, fpregset_t): Remove typedefs.
4920 (REG_OFFSET): Rename argument.
4921 (amd64bsd_r_reg_offset): Rename from reg_offset.
4922 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
4923 Remove functions.
4924 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
4925 of reg_offset.
4926 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
4927
ecba89de
MK
4928 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
4929
4cd80476
MK
4930 * vax-tdep.c: Tweak comment.
4931
0e56aeaf
MK
4932 Add OpenBSD/hppa support.
4933 * NEWS (New native configurations): Mention OpenBSD/hppa.
4934 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
4935 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
4936 files.
4937 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
4938 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
4939 * configure.host: Add hppa*-*-openbsd*.
4940 * configure.tgt: Add hppa*-*-openbsd*.
4941
98bbd631
AC
49422004-06-25 Andrew Cagney <cagney@gnu.org>
4943
4944 * defs.h (deprecated_ui_loop_hook): Deprecated.
4945 * wince.c (child_wait): Update.
4946 * win32-nat.c (child_wait): Update.
4947 * v850ice.c (v850ice_wait): Update.
4948 * top.c (deprecated_ui_loop_hook): Update.
4949 * serial.h: Update.
4950 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
4951 (do_unix_readchar): Update.
4952 * ser-tcp.c (net_open): Update.
4953 * remote-sim.c (gdb_os_poll_quit): Update.
4954 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
4955
769d7dc4
AC
49562004-06-24 Andrew Cagney <cagney@gnu.org>
4957
4958 * defs.h (deprecated_pre_add_symbol_hook)
4959 (deprecated_post_add_symbol_hook): Deprecated.
4960 * symfile.c (symbol_file_add_with_addrs_or_offsets)
4961 (symbol_file_add_with_addrs_or_offsets): Update references.
4962
11c949aa
AC
49632004-06-24 Andrew Cagney <cagney@gnu.org>
4964
4965 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
4966 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
4967 * wince.c (ui_loop_hook): Delete extern declaration.
4968 * win32-nat.c (ui_loop_hook): Delete extern declaration..
4969 * v850ice.c (ui_loop_hook): Delete extern declaration..
4970 * ser-unix.c (ui_loop_hook): Delete extern declaration..
4971 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
4972 * remote-sim.c (ui_loop_hook): Delete extern declaration..
4973 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
4974 ui_loop_hook declaration.
4975
eedc19af
AC
49762004-06-24 Andrew Cagney <cagney@gnu.org>
4977
4978 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
4979 entry_func_highpc fields.
4980 * objfiles.c (init_entry_point_info): Do not clear
4981 entry_func_lowpc and entry_func_highpc.
4982 (objfile_relocate): Do not relocate entry_func_lowpc and
4983 entry_func_highpc.
4984 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
4985 entry_func_highpc.
4986 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
4987 entry_func_highpc.
4988 * blockframe.c (legacy_frame_chain_valid): Replace tests against
4989 entry_func_lowpc and entry_func_highpc with call to
4990 inside_entry_func.
4991
d47079be
MK
49922004-06-24 Mark Kettenis <kettenis@gnu.org>
4993
4994 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
4995 quad-precision floating point arguments in registers.
4996
2107e348
MK
49972004-06-24 Mark Kettenis <kettenis@gnu.org>
4998
4999 From Michael Mueller <m.mueller99@kay-mueller.de>:
5000 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
5001 account.
5002
46587c42
JJ
50032004-06-22 Jeff Johnston <jjohnstn@redhat.com>
5004
5005 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
5006 to -1.
5007 * breakpoint.c (bpstat_stop_status): Move check for ignoring
5008 untriggered watchpoints to a separate if clause. Update function
5009 comment regarding STOPPED_BY_WATCHPOINT argument.
5010
226f5cf4
JB
50112004-06-22 Jim Blandy <jimb@redhat.com>
5012
5013 * gdbarch.sh: Doc fix.
5014
f10683bb
MH
50152004-06-21 Martin Hunt <hunt@redhat.com>
5016 Kevin Buettner <kevinb@redhat.com>
5017
5018 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
5019 * mips-tdep.h (MIPS_SP_REGNUM): Define.
5020 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
5021 to set_gdbarch_sp_regnum(). Use cooked register number.
5022 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
5023
412d5987
AC
50242004-06-21 Andrew Cagney <cagney@gnu.org>
5025
5026 * gdbarch.sh: When the macro field is empty, do not generate a
5027 macro definition. When the macro field is "=", generate the macro
5028 name from the upper-case function name.
5029 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
5030 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
5031 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
5032 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
5033 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
5034 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
5035 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
5036 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
5037 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
5038 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
5039 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
5040 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
5041 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
5042 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
5043 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
5044 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
5045 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
5046 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
5047 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
5048 (DEPRECATED_USE_STRUCT_CONVENTION)
5049 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5050 (DEPRECATED_FRAME_INIT_SAVED_REGS)
5051 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
5052 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
5053 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
5054 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
5055 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
5056 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
5057 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
5058 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
5059 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
5060 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
5061 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
5062 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
5063 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
5064 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
5065 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
5066 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
5067
68908a3e
AC
50682004-06-21 Andrew Cagney <cagney@gnu.org>
5069
48f7351b
AC
5070 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
5071 macro name, and the function rather than macro value. Only wrap
5072 macro print statements in #ifdef. Move format logic to where it
5073 is needed.
5074 * gdbarch.c: Re-generate.
5075
283354d8
AC
5076 * gdbarch.sh (read): Delete "print_p" and "description", add
5077 "garbage_at_eol". Check for non-empty garbage at end-of-line.
5078 Delete references to print_p.
5079 (TARGET_ARCHITECTURE): Delete print predicate.
5080 * gdbarch.c: Re-generate.
5081
68908a3e
AC
5082 * gdbarch.sh: Check that multi-arch methods do not provide a
5083 macro.
5084 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
5085 (print_registers_info, print_float_info, print_vector_info)
5086 (adjust_breakpoint_address, remote_translate_xfer_address)
5087 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
5088 (address_class_type_flags_to_name, unwind_sp): Remove the macro
5089 name from the multi-arch definition.
5090
a2428dbe
AC
50912004-06-20 Andrew Cagney <cagney@gnu.org>
5092
5093 * gdbarch.sh: Sort by the function, instead of macro name.
5094 * gdbarch.c: Re-generate.
5095
750eb019
AC
50962004-06-20 Andrew Cagney <cagney@gnu.org>
5097
66d659b1
AC
5098 * gdbarch.sh: Use the function, instead of macro name in
5099 errors and the log file.
5100 (return_value): Remove stray ":" in spec.
5101
750eb019
AC
5102 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
5103 * gdbarch.h, gdbarch.c: Re-generate.
5104 * Makefile.in (arch-utils.o): Update dependencies.
5105 * values.c (using_struct_return): Move code calling
5106 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
5107 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
5108 to legacy_return_value, simplify.
5109 * infcmd.c (print_return_value): Move code calling
5110 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
5111 to legacy_return_value, simplify.
5112 * infcall.c (call_function_by_hand): Move code calling
5113 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
5114 * arch-utils.c: Update copyright. Include "gdbcore.h".
5115 (legacy_return_value): New function.
5116 * arch-utils.h: Update copyright.
5117 (legacy_return_value): Declare.
5118
b5622e8d
AC
51192004-06-20 Andrew Cagney <cagney@gnu.org>
5120
5121 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
5122 * gdbarch.h, gdbarch.c: Re-generate.
5123 * values.c (using_struct_return): Update call.
5124 * mcore-tdep.c: Update comment.
5125 * infcall.c (call_function_by_hand): Update comment.
5126 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5127 * arch-utils.h (always_use_struct_convention): Update.
5128 * v850-tdep.c (v850_gdbarch_init): Update.
5129 * sh64-tdep.c (sh64_gdbarch_init): Update.
5130 * sh-tdep.c (sh_gdbarch_init): Update.
5131 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5132 * mips-tdep.c (mips_gdbarch_init): Update.
5133 * mcore-tdep.c (mcore_gdbarch_init): Update.
5134 * m32r-tdep.c (m32r_gdbarch_init): Update.
5135 * ia64-tdep.c (ia64_gdbarch_init): Update.
5136 * h8300-tdep.c (h8300_gdbarch_init): Update.
5137 * frv-tdep.c (frv_gdbarch_init): Update.
5138 * cris-tdep.c (cris_gdbarch_init): Update.
5139 * arm-tdep.c (arm_gdbarch_init): Update.
5140 * alpha-tdep.c (alpha_gdbarch_init): Update.
5141
5191de37
MC
51422004-06-18 Michael Chastain <mec.gnu@mindspring.com>
5143
5144 * PROBLEMS: Add more specific information, and a work-around,
5145 for PR gdb/1458.
5146
782263ab
AC
51472004-06-18 Andrew Cagney <cagney@gnu.org>
5148
5149 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
5150 * gdbarch.h, gdbarch.c: Re-generate.
5151 * ada-lang.c (ada_finish_decode_line_1): Update.
5152 * infrun.c (handle_inferior_event): Update.
5153 * infcall.c (find_function_addr): Update.
5154 * linespec.c (minsym_found): Update.
5155 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
5156 Update.
5157 * blockframe.c (legacy_frameless_look_for_prologue): Update.
5158 * cli/cli-cmds.c (disassemble_command): Update.
5159 * vax-tdep.c (vax_gdbarch_init): Update.
5160
2f305df1
MK
51612004-06-18 Mark Kettenis <kettenis@gnu.org>
5162
5163 * i386-tdep.c (i386_collect_fpregset): Fix comment.
5164
e5fe55f7
AC
51652004-06-17 Andrew Cagney <cagney@gnu.org>
5166
5167 GDB 6.1.1 released from the GDB 6.1 branch.
5168 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
5169 * PROBLEMS: Ditto.
5170
473b7be6
DJ
51712004-06-16 Daniel Jacobowitz <dan@debian.org>
5172
5173 PR gdb/1658
5174 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
5175 operation as a uleb128. Found by Michael Coulter.
5176
96d887e8
PH
51772004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
5178
5179 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
5180 make it non-static.
5181 * ada-lang.h (task_control_block): declaration moved from ada-task.c
5182 to ada-lang.h; this is needed to be able to implement the kill command
5183 in multi-task mode.
5184 (task_ptid): Ditto.
5185 (task_entry): Ditto.
5186 (task_list): Ditto.
5187 (ada_build_task_list): Ditto.
5188
5189 * ada-lang.c: Conditionalize routines and data structures related
5190 to breakpoints, exceptions, completion, and symbol caching on
5191 GNAT_GDB, since these are not yet used in the submitted public sources.
5192 (ada_main_name): Editorial: Move definition out of exception-related
5193 code.
5194
31eef181
AC
51952004-06-15 Andrew Cagney <cagney@gnu.org>
5196
5197 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
5198 deprecated_pc_in_call_dummy.
5199
2c500098
AM
52002004-06-15 Alan Modra <amodra@bigpond.net.au>
5201
5202 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
5203 bfd_get_section_size_before_reloc or _raw_size.
5204 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
5205 * dwarf2read.c (dwarf2_locate_sections): Likewise.
5206 (dwarf2_read_section): Likewise.
5207 * elfread.c (elf_locate_sections): Likewise.
5208 * gcore.c (derive_heap_segment): Likewise.
5209 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
5210 * remote-e7000.c (e7000_load): Likewise.
5211 * remote-m32r-sdi.c (m32r_load): Likewise.
5212 * remote-mips.c (mips_load_srec): Likewise.
5213 (pmon_load_fast): Likewise.
5214 * remote.c (compare_sections_command): Likewise.
5215 * symfile.c (add_section_size_callback): Likewise.
5216 (load_section_callback): Likewise.
5217 (pc_in_unmapped_range): Likewise.
5218 (pc_in_mapped_range): Likewise.
5219 (sections_overlap): Likewise.
5220 (list_overlays_command): Likewise.
5221 (simple_overlay_update_1): Likewise.
5222 (simple_overlay_update): Likewise.
5223 * tracepoint.c (remote_set_transparent_ranges): Likewise.
5224 * win32-nat.c (core_section_load_dll_symbols): Likewise.
5225
90f943f1
RC
52262004-06-14 Randolph Chung <tausq@debian.org>
5227
5228 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
5229 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
5230 static.
5231 (hppa_hpux_inferior_created): New function.
5232 (hppa_hpux_init_abi): Register observer.
5233 * symfile.c (hp_cxx_exception_support_initialized)
5234 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
5235 (symbol_file_add_main_1, symbol_file_clear): Likewise.
5236
700c15aa
RC
52372004-06-14 Randolph Chung <tausq@debian.org>
5238
3973a7d3
AC
5239 * MAINTAINERS (Write After Approval): Alphabetize my entry
5240 correctly.
700c15aa 5241
cea4838c
AC
52422004-06-14 Andrew Cagney <cagney@gnu.org>
5243
5244 * MAINTAINERS (testsuite): List Michael Chastain as the lead
5245 testsuite maintainer.
5246
97092415
AC
52472004-06-13 Andrew Cagney <cagney@gnu.org>
5248
e8c3165b
AC
5249 * infcmd.c (print_return_value): Fix logic, allow
5250 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
5251
bceabdd8
AC
5252 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
5253 defining any macros.
5254 * gdbarch.h: Re-generate.
5255
57010b1c
AC
5256 * gdbarch.sh: Delete "level" attribute. Only check for a macro
5257 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
5258 * gdbarch.h: Re-generate.
5259
bc87dfa0
AC
5260 * values.c (generic_use_struct_convention): Don't check gcc_p.
5261
15ac804d
AC
5262 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
5263 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
5264 * gdbarch.h, gdbarch.c: Regenerate.
5265 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
5266 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
5267 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5268 deprecated_max_register_raw_size and
5269 deprecated_max_register_virtual_size.
5270 * v850-tdep.c (v850_gdbarch_init): Ditto.
5271 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5272 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5273 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5274 * cris-tdep.c (cris_gdbarch_init): Ditto.
5275
97092415
AC
5276 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
5277 * gdbarch.h, gdbarch.c: Re-generate.
5278 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
5279 (m68hc11_use_struct_convention): Delete function.
5280 (m68hc11_extract_struct_value_address): Delete function.
5281 (m68hc11_return_value): New function.
5282 (m68hc11_gdbarch_init): Instead of store_return_value,
5283 extract_return_value, return_value_on_stack,
5284 deprecated_extract_struct_value_address and use_struct_convention,
5285 set return_value.
5286 * values.c (using_struct_return): Do not call
5287 RETURN_VALUE_ON_STACK.
5288 * arch-utils.h (generic_return_value_on_stack_not): Delete
5289 declaration.
5290 * arch-utils.c (generic_return_value_on_stack_not): Delete
5291 function.
5292
44e5158b
AC
52932004-06-12 Andrew Cagney <cagney@gnu.org>
5294
5295 * values.c (register_value_being_returned): Delete function.
5296 * infcmd.c (legacy_return_value): Delete function.
5297 * infcall.c (call_function_by_hand): Inline
5298 "register_value_being_returned", simplify.
5299 * values.c (using_struct_return): Update comment, refer to
5300 print_return_value instead of register_value_being_returned.
5301 * infcmd.c (print_return_value): Inline calls to
5302 register_value_being_returned and legacy_return_value. Simplify.
5303
b887c273
RC
53042004-06-11 Randolph Chung <tausq@debian.org>
5305
5306 * somread.c (som_symtab_read): Exclude gcc local symbols.
5307
1b2bfbb9
RC
53082004-06-11 Randolph Chung <tausq@debian.org>
5309
3973a7d3
AC
5310 * infrun.c (handle_inferior_event): Handle the case when a
5311 trampoline ends up in the runtime resolver, and if the trampoline
5312 has no name. Rearrange the code so that all the trampoline
5313 processing happens before other step-out-of-range handling.
1b2bfbb9 5314
a9d61c86
MH
53152004-06-11 Martin Hunt <hunt@redhat.com>
5316
5317 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
5318 has no fpu.
5319
2c87cf5a
AC
53202004-06-10 Andrew Cagney <cagney@gnu.org>
5321
5322 * blockframe.c (legacy_inside_entry_func): Delete.
5323 (legacy_frame_chain_valid): Inline call to
5324 legacy_inside_entry_func, simplify.
5325
0b67b468 53262004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
5327
5328 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
5329 * dwarf2read.c (partial_die_info): Add dirname field.
5330 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
5331 (read_partial_die): Save away DW_AT_comp_dir.
5332 * defs.h (symtab_to_filename): Removed.
5333 * source.c (find_and_open_source): Added.
57c22c6c 5334 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
5335 (symtab_to_filename): Removed.
5336 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
5337 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
5338 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
5339 symtab_to_filename.
5340 * symtab.h (partial_symtab): Add dirname field.
5341 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
5342 (mi_cmd_file_list_exec_source_file): Call new function
5343 symtab_to_fullname to find fullname.
57c22c6c 5344 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 5345 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
5346 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
5347
9a1dd1ad
AC
53482004-06-10 Andrew Cagney <cagney@gnu.org>
5349
239ae8c7
AC
5350 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
5351 to generic_use_struct_convention, the default value.
5352
fc720350
AC
5353 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
5354 of abort.
5355
9a1dd1ad
AC
5356 * ns32k-tdep.c (ns32k_push_arguments): New function.
5357 (ns32k_gdbarch_init): Set deprecated_push_arguments.
5358 * infcall.c (call_function_by_hand): Call error instead of
5359 legacy_push_arguments.
5360 * value.h (legacy_push_arguments): Delete declaration.
5361 * valops.c (legacy_push_arguments): Delete function.
5362 (value_push): Delete function.
5363
fea25152
BF
53642004-06-10 Brian Ford <ford@vss.fsi.com>
5365
5366 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
5367 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
5368 info.
5369 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
5370
30a4a8e0
AC
53712004-06-10 Andrew Cagney <cagney@gnu.org>
5372
5373 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
5374 * gdbarch.h, gdbarch.c: Re-generate.
5375 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
5376 parameters.
5377 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
5378 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
5379 deprecated_pc_in_call_dummy instead of
5380 DEPRECATED_PC_IN_CALL_DUMMY.
5381 (arm_skip_prologue): Ditto.
5382 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
5383 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
5384 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
5385 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
5386 Ditto.
5387 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
5388 (sh64_init_extra_frame_info, sh64_get_saved_register)
5389 (sh64_pop_frame): Ditto.
5390 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
5391 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
5392 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
5393 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
5394 (h8300_pop_frame): Ditto.
5395 * blockframe.c (legacy_inside_entry_func)
5396 (legacy_frame_chain_valid): Ditto.
5397 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
5398 to deprecated_pc_in_call_dummy.
5399
81cfbe54
AC
54002004-06-09 Andrew Cagney <cagney@gnu.org>
5401
a1f4a1b6
AC
5402 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
5403 provide a default value.
5404 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
5405 * gdbarch.h, gdbarch.c: Re-generate.
5406 * arch-utils.c (generic_convert_register_p): Rename
5407 legacy_convert_register_p
5408 (legacy_register_to_value, legacy_value_to_register): Delete
5409 functions.
5410 * arch-utils.h (generic_convert_register_p): Rename
5411 legacy_convert_register_p.
5412 (legacy_register_to_value, legacy_value_to_register): Delete
5413 declarations.
5414
9730f241
AC
5415 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
5416 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
5417 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
5418 * gdbarch.h, gdbarch.c: Re-generate.
5419 * infcmd.c (default_print_registers_info): Simplify.
5420 * findvar.c (value_of_register): Simplify.
5421 * mi/mi-main.c (get_register): Simplify.
5422 * arch-utils.c (legacy_convert_register_p): Always return 0.
5423 (legacy_register_to_value, legacy_value_to_register): Always call
5424 internal_error.
5425
8a1bf479
AC
5426 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
5427 #ifdef CLEAR_INSN_CACHE code.
5428 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
5429 Delete #ifdef CLEAR_DEFERRED_STORES code.
5430
4b38d6f1
AC
5431 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
5432
2d62ecc7
AC
5433 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
5434 copyright.
5435 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
5436
be4f7469
AC
5437 * config/mips/mipsv4.mh: Delete file.
5438
81cfbe54
AC
5439 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
5440 unreferenced macro.
5441 (hpread_adjust_stack_address): Delete declaration.
5442
d966f0cb
AC
54432004-06-08 Andrew Cagney <cagney@gnu.org>
5444
5445 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5446 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
5447 PTRACE_ATTACH / PTRACE_DETACH available call error.
5448 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
5449 * infttrace.c (update_thread_state_after_attach, attach, detach):
5450 Remove #ifdef wrappers.
5451 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
5452 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5453 * config/nm-bsd.h (ATTACH_DETACH): Delete.
5454 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
5455 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
5456 * config/nm-linux.h (ATTACH_DETACH): Delete.
5457 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
5458 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
5459 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
5460 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
5461 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
5462
d91670b9
CV
54632004-06-08 Corinna Vinschen <vinschen@redhat.com>
5464
5465 * configure.in: Set $configdir to the right OS specific value.
5466 Use value when setting $tcldir and $tkdir.
5467 * configure: Regenerate.
5468
28ba0b33
PB
54692004-06-06 Paul Brook <paul@codesourcery.com>
5470
5471 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
5472 records.
5473
f26caa11
PH
54742004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
5475
5476 * ada-lang.c (lookup_symbol_in_language): New function to allow
5477 re-use of another language's symbol lookup code. (Placed here
5478 temporarily while Ada support is being integrated into the public
5479 tree).
5480 (restore_language): New auxiliary function for
5481 lookup_symbol_in_language.
5482 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
5483 temporarily while Ada support is being integrated into the public
5484 tree).
5485
d560a54b
AO
54862004-06-08 Alexandre Oliva <aoliva@redhat.com>
5487
e75d110c
AO
5488 * Makefile.in (check//%): New.
5489
d560a54b
AO
5490 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
5491 (mn10300_store_return_value): Rewrite.
5492 (mn10300_type_align): New.
5493 (mn10300_use_struct_convention): Rewrite.
5494 (mn10300_return_value): New, using all of the above.
5495 (mn10300_pop_frame_regular): Add saved_regs_size.
5496 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
5497
a72fbdb7
AO
5498 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
5499 regs if PC is on movm.
5500
01904826
JB
55012004-06-07 Jim Blandy <jimb@redhat.com>
5502
5503 Add native Linux support for the PowerPC E500.
5504 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
5505 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
5506 all architectures except the E500.
5507 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
5508 #definitions.
5509 (struct gdb_evrregset_t): New type.
5510 (have_ptrace_getsetevrregs): New variable.
5511 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
5512 fetch_spe_registers): New functions.
5513 (fetch_register): Call fetch_spe_register as appropriate.
5514 Assert that we're only passed raw register numbers.
5515 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
5516 Don't fetch gprs if they're pseudoregisters.
5517 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
5518 store_spe_registers): New functions.
5519 (store_register): Call store_spe_register as appropriate.
5520 Assert that we're only passed raw register numbers.
5521 (store_ppc_registers): Call store_spe_registers as appropriate.
5522 Don't store gprs if they're pseudoregisters.
5523
f90ef764
JJ
55242004-06-07 Jeff Johnston <jjohnstn@redhat.com>
5525
5526 * thread-db.c (thread_get_info_callback): Fill in the thread_info
5527 struct if one exists, even if we are dealing with a zombie thread.
5528
45b75230
AC
55292004-06-07 Andrew Cagney <cagney@gnu.org>
5530
5531 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
5532 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
5533 Rename PC_REQUIRES_RUN_BEFORE_USE.
5534 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
5535 #ifdef.
5536
1658da49
RC
55372004-06-07 Randolph Chung <tausq@debian.org>
5538
5539 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
5540 unwinding after sp has been saved to the stack but before the end
5541 of the prologue, and after the fp has been modified but before it has
5542 been saved to the stack.
5543 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
5544 Remove superfluous definitions.
5545 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
5546
9a727a3c
RC
55472004-06-07 Guy Martin <gmsoft@gentoo.org>
5548
5549 Committed by Randolph Chung.
5550 * hppa-linux-nat.c: Include the correct version of the header file
5551 depending on the kernel version.
5552
9e500012
RC
55532004-06-06 Randolph Chung <tausq@debian.org>
5554
5555 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
5556 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
5557
3388d7ff
RC
55582004-06-06 Randolph Chung <tausq@debian.org>
5559
5560 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
5561 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
5562 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
5563 * hppa-tdep.c (hppa_symbol_address): New function definition.
5564 * hppa-tdep.h (hppa_symbol_address): New function declaration.
5565
d49771ef
RC
55662004-06-06 Randolph Chung <tausq@debian.org>
5567
5568 * hppa-tdep.h (struct value): Forward declaration.
5569 (gdbarch_tdep): Define tdep find_global_pointer method.
5570 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
5571 associated with the function we are trying to call, and write it
5572 to the gp register.
5573 (hppa32_convert_from_funct_ptr_addr): New function.
5574 (hppa_find_global_pointer): New function.
5575 (hppa_gdbarch_init): Set default find_global_pointer method; set
5576 convert_from_func_ptr_addr method.
5577 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
5578 (hppa_linux_init_abi): Set find_global_pointer method.
5579 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
5580
7d9b040b
RC
55812004-06-06 Randolph Chung <tausq@debian.org>
5582
5583 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
5584 to struct value *function.
5585 * gdbarch.c: Regenerate.
5586 * gdbarch.h: Likewise.
5587 * infcall.c (call_function_by_hand): Pass entire function value
5588 to push_dummy_call.
5589
5590 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
5591 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
5592 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
5593 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
5594 * arm-tdep.c (arm_push_dummy_call): Likewise.
5595 * avr-tdep.c (avr_push_dummy_call): Likewise.
5596 * cris-tdep.c (cris_push_dummy_call): Likewise.
5597 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
5598 * frv-tdep.c (frv_push_dummy_call): Likewise.
5599 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
5600 * hppa-tdep.c (hppa32_push_dummy_call)
5601 (hppa64_push_dummy_call): Likewise.
5602 * i386-tdep.c (i386_push_dummy_call): Likewise.
5603 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
5604 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
5605 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
5606 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
5607 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
5608 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
5609 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
5610 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
5611 (ppc64_sysv_abi_push_dummy_call): Likewise.
5612 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
5613 (ppc64_sysv_abi_push_dummy_call): Likewise.
5614 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
5615 * s390-tdep.c (s390_push_dummy_call): Likewise.
5616 * sh-tdep.c (sh_push_dummy_call_fpu)
5617 (sh_push_dummy_call_nofpu): Likewise.
5618 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
5619 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
5620 * vax-tdep.c (vax_push_dummy_call): Likewise.
5621
4a19ea35
JB
56222004-06-04 Jim Blandy <jimb@redhat.com>
5623
8327ccee
JB
5624 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
5625 gdbarch argument to register_size.
5626
a3c001ce
JB
5627 * rs6000-tdep.c (rs6000_store_return_value): Use
5628 regcache_cooked_write_part instead of
5629 deprecated_write_register_bytes.
5630 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
5631 not gdbarch_deprecated_store_return_value.
5632
4a19ea35
JB
5633 * ppc-linux-nat.c (store_register, fetch_register): Remove
5634 incorrect assertions. Simplify and generalize handling of
5635 transfers whose sizes are not multiples of, or less than, sizeof
5636 (PTRACE_XFER_TYPE).
5637
b9b5d7ea
JJ
56382004-06-04 Jeff Johnston <jjohnstn@redhat.com>
5639
5640 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
5641 as a new thread event.
720c7d64 5642 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 5643 zombie, return TD_THR_ZOMBIE.
720c7d64 5644 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
5645 TD_THR_ZOMBIE, check if the thread is still on the thread list
5646 and return a -1 ptid if not found.
5647 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
5648 change the status to TARGET_WAITKIND_SPURIOUS.
5649
c8a3b559
CV
56502004-06-03 Corinna Vinschen <vinschen@redhat.com>
5651
5652 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
5653 double values in little endian mode.
5654
20605361
AC
56552004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
5656
5657 Committed by Andrew Cagney.
5658 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
5659 after last enum constant to avoid error from IBM C
5660 compiler.
5661
bc97b3ba
JB
56622004-06-02 Jim Blandy <jimb@redhat.com>
5663
5664 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
5665 to 'message', and make it local to the lone block that uses it.
5666
1da28ab0
JB
5667 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
5668
4c4b4cd2
PH
56692004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
5670
8a2225b2
PH
5671 * ada-exp.y: Update copyright notice.
5672 Include block.h.
5673
5674 Replace REGNAME, LAST, INTERNAL_VARIABLE with
5675 SPECIAL_VARIABLE and unify the treatment of these cases.
5676
5677 (write_attribute_call0): Remove.
5678 (write_attribute_call1): Remove.
5679 (write_attribute_calln): Remove.
5680 (save_qualifier): Add missing semicolon.
5681
5682 (simple_exp,exp): Decomment (i.e., reactivate) code that was
5683 temporarily disabled to allow compilation with FSF head version.
5684
5685 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
5686 use individual operators (OP_*) for all attributes.
5687 (exp syntax): Use write_int.
5688 Handle STRING literals with OP_STRING.
5689 (variable syntax): Add limit parameter to calls to
5690 write_object_renaming.
5691
5692 (temp_parse_space): New definition to hold entities that need
5693 only live until the next call to ada_parse.
5694 (string_to_operator): Rename fields of ada_opname_table entries.
5695
5696 (write_var_from_sym): Record block.
5697 (write_var_from_name): Minor reformatting.
5698 Make sure saved name is properly encoded in the case of multiple
5699 matches, and set its language to Ada.
5700 Update comment.
5701 Modify to indicate unresolved name as symbol in the UNRESOLVED
5702 namespace, allocated in temp_parse_space.
5703 (write_int): New function.
5704
5705 (write_object_renaming): Add max_depth parameter to limit
5706 chains of object renamings.
5707 Handle case where root of renaming expression is itself a renaming.
5708 Use temp_parse_space for temporary name buffer.
5709 Handle renamings to dereferenced pointers (___XEXA suffices).
5710
5711 (ada_parse, yyerror, string_to_operator,
5712 write_var_from_sym, write_var_from_name, write_attribute_call0,
5713 write_attribute_call1, write_attribute_calln,
5714 write_object_renaming): Protoize.
5715
5716 (_initialize_ada_exp): New function.
5717
5718 * ada-lang.c: Update copyright notice.
5719 General terminology change to conform to GNAT compiler usage:
5720 mangle => encode, demangle => decode
5721 Include gdb_obstack.h.
5722 Include gdb_regex.h
5723 Include frame.h
5724 Include hashtab.h
5725 Include completer.h
5726 Include gdb_stat.h
5727 Include block.h
5728 Include infcall.h
5729
5730 (ADA_RETAIN_DOTS): Make sure this is defined.
5731 (TRUNCATION_TOWARDS_ZERO): Define.
5732 (struct string_vector): Define.
5733 (unresolved_names): Remove definition.
5734 (xnew_string_vector): New function.
5735 (string_vector_append): New function.
5736 (extract_string): Make static.
5737 (ada_unqualified_name): New function.
5738 (add_angle_brackets): New function.
5739 (function_name_from_pc): New function.
5740 (place_on_stack): Rename to ensure_lval.
5741
5742 (ensure_lval): Renamed from place_on_stack.
5743 Make identity on lvals.
5744 Update comment.
5745 (is_nonfunction): New interface.
5746 Only symbols in LOC_CONST class can be enumerals.
5747 (fill_in_ada_prototype): Remove; now independent of language.
5748 (add_defn_to_vec): Add obstack and symtab arguments.
5749 Use obstack to hold collected definitions.
5750 (num_defns_collected): New function.
5751 (defns_collected): New function.
5752 (ada_resolve_subexp): Rename to resolve_subexp.
5753 (resolve_subexp): Renamed from ada_resolve_subexp.
5754 (ada_op_name): Return non-const result.
5755 (ada_decoded_op_name): Renamed from ada_op_name, now used for
5756 other purposes.
5757
5758 (to_fixed_array_type): Add declaration.
5759 (coerce_unspec_val_to_type): Remove offset parameter.
5760 (find_sal_from_funcs_and_line): New interface.
5761 (find_line_in_linetable): Ditto.
5762
5763 (all_sals_for_line): Rename to ada_sals_for_line and make
5764 global.
5765 Add new parameter. When set, do not ask the user to choose the
5766 instance, but use the first one found instead.
5767 Use given line number in returned sals.
5768 Fix comment.
5769 Skip the prologue if funfirstline is set.
5770 Correct for memory leak when 0 lines found.
5771
5772 (value_pos_atr): Use pos_atr.
5773 (pos_atr): New function.
5774 (standard_lookup): Add block parameter.
5775
5776 (makeTimeStart): Remove declaration and uses.
5777 (makeTimeStop): Remove declaration and uses.
5778
5779 (ada_completer_word_break_characters): Allow for VMS.
5780 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
5781 (raise_sym_name): New constant.
5782 (raise_unhandled_sym_name): New constant.
5783 (raise_assert_sym_name): New constant.
5784 (process_raise_exception_name): New constant.
5785 (longest_exception_template): New constant.
5786 (warning_limit): New variable to limit warnings during expression
5787 evaluation.
5788 (warnings_issued): New variable to keep track of warnings issued.
5789 (known_runtime_file_name_patterns): New constant.
5790 (known_auxiliary_function_name_patterns): New constant.
5791 (symbol_list_obstack): New variable.
5792
5793 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
5794 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
5795 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
5796 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
5797 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
5798 ada_variant_discrim_name, field_alignment, dynamic_template_type,
5799 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
5800 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
5801 and strcmp.
5802
5803 (ada_get_field_index): New function.
5804 (lim_warning): New function.
5805 (ada_translate_error_message): New function.
5806 (MAX_OF_SIZE): New function.
5807 (MIN_OF_SIZE): New function.
5808 (UMAX_OF_SIZE): New function.
5809 (UMIN_OF_SIZE): New function.
5810 (discrete_type_high_bound): New function.
5811 (discrete_type_low_bound): New function.
5812 (base_type): New function.
5813 (do_command): Remove.
5814
5815 (ada_update_initial_language): Use language_ada, not language_unknown.
5816 (ada_encode): Renamed from ada_mangle.
5817 Obey ADA_RETAIN_DOTS.
5818 (ada_decode): Renamed from ada_demangle.
5819 Update coding conventions.
5820 (decoded_names_store): New hash table.
5821 (ada_decode_symbol): New function.
5822 (ada_la_decode): New function.
5823
5824 (modify_general_field): Correct computations of offset and bit
5825 position.
5826 (desc_base_type): Handle ref types, too.
5827 (ada_is_direct_array_type): New function.
5828
5829 (ada_is_simple_array): Rename to ada_is_simple_array_type.
5830 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
5831 (ada_is_bogus_array_descriptor,ada_type_of_array,
5832 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
5833 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
5834 ada_is_array_descriptor_type.
5835
5836 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
5837 (ada_is_packed_array_type): Handle pointers or
5838 references to packed arrays as well.
5839 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
5840 (decode_packed_array_type): Search for the packed array type
5841 symbol in the currently selected block and associated
5842 superblocks too.
5843 Use lookup_symbol again.
5844
5845 (decode_packed_array): Handle pointers and references.
5846 Update call to coerce_unspec_val_to_type.
5847 (decode_packed_array_type,value_subscript_packed): Limit warnings.
5848 (ada_value_primitive_packed_val): Improve comment.
5849
5850 (ada_index_type): Substitute int type for "undefined".
5851 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
5852 ada_array_langth, ada_is_string_type): Use renamed
5853 ada_is_simple_array_type.
5854 (empty_array): New function.
5855
5856 (ada_resolve): Rename to resolve.
5857 (resolve): Make static.
5858 Call renamed resolve_subexp.
5859 Update comment.
5860 (ada_resolve_subexp): Rename to resolve_subexp.
5861 (resolve_subexp): Update comment.
5862 Decomment disabled code.
5863 Add LOC_COMPUTED* cases.
5864 Modify to use temporary struct symbols (marked as being in
5865 UNDEF_NAMESPACE) to indicate unresolved names, instead of
5866 OP_UNRESOLVED_VALUE.
5867 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
5868 Add OP_STRING case.
5869 Remove OP_ARRAY.
5870 Use SYMBOL_PRINT_NAME instead of ada_demangle.
5871 Use new ada_lookup_symbol_list interface.
5872 Use new ada_resolve_function interface.
5873 Remove OP_TYPE case.
5874
5875 (ada_args_match): Idiot proof against null actuals.
5876 Use intermediate variables to clarify.
5877 (ada_resolve_function): Update comment and interface.
5878 (mangled_ordered_before): Rename to encoded_ordered_before and
5879 update comment.
5880 (sort_choices): Update comment and interface.
5881 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
5882 (user_select_syms): New interface.
5883 Use new sort_choices interface.
5884 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
5885 (possible_user_operator_p): Idiot-proof against null values.
5886 (ada_simple_renamed_entity): Don't make cleanup; rely on
5887 caller to free result string.
5888 Remove const from return type.
5889 (make_array_descriptor): Rename uses of place_on_stack to
5890 ensure_lval.
5891 Make sure that arrays are on stack.
5892
5893 (HASH_SIZE): Define.
5894 (struct cache_entry): Define.
5895 (cache_space): Define.
5896 (cache): Define.
5897 (clear_ada_sym_cache): New function.
5898 (find_entry): New function.
5899 (lookup_cached_symbol): New function.
5900 (defn_vector_size): Define.
5901 (cache_symbol): New function.
5902 (defn_symbols): Remove.
5903
5904 (standard_lookup): Use lookup_symbol_in_language to get effect of
5905 C lookup.
5906 Cache results.
5907
5908 (symbol_completion_match): New function.
5909 (symbol_completion_add): New function.
5910 (ada_make_symbol_completion_list): New function.
5911
5912 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
5913 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
5914 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
5915 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
5916
5917 (ada_lookup_simple_minsym): New function.
5918 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
5919
5920 (add_symbols_from_enclosing_procs): New interface.
5921 Conditionalize more helpfully.
5922 Don't bother if program isn't running.
5923 Use new interface to get_frame_block.
5924 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
5925
5926 (remove_extra_symbols): New interface.
5927 (xget_renaming_scope): New function.
5928 (is_package_name): New function.
5929 (renaming_is_visible): New function.
5930 (remove_out_of_scope_renamings): New function.
5931
5932 (ada_lookup_symbol_list): New interface.
5933 Properly reinitialize the symbol list obstack.
5934 Don't call add_symbols_from_enclosing_procs if we start from a
5935 static or global block.
5936 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
5937 add_symbols_from_enclosing_procs.
5938 Add symtab data to cached entries.
5939 Handle symbols prefixed with
5940 "standard__" specially; strip prefix and don't look in local symbols.
5941 Do not include out of scope renaming symbols in list of
5942 symbols returned.
5943 Add const to block parameter.
5944 Move check for non-local, non-global symbols earlier.
5945 Remove timing stuff.
5946 (ada_lookup_symbol): New interface.
5947 Find symtab as well.
5948 (ada_lookup_symbol_nonlocal): New function.
5949
5950 (is_name_suffix): Enhance suffix detection to recognize
5951 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
5952 (is_dot_digits_suffix): New function.
5953 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
5954
5955 (ada_add_block_symbols): New interface. Use obstack to return results
5956 in a vector of struct ada_symbol_infos. Add symtab argument.
5957 Use new interface to add_defn_to_vec.
5958 Remove calls to fill_in_ada_prototype.
5959 Use BLOCK_BUCKETS, BLOCK_BUCKET.
5960
5961 (ada_finish_decode_line_1): Add const qualification to local to fix
5962 warning.
5963 Start looking in static block for functions to avoid attempts
5964 to search frame chain for up-level variables.
5965 Adapt to new ada_sals_for_line interface.
5966 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
5967 Handle quoting of the function name inside the spec string.
5968 Skip prologue when funfirstline is set and update the
5969 function documentation to that effect.
5970
5971 (debug_print_lines, debug_print_block, debug_print_blocks,
5972 debug_print_symtab): Remove.
5973
5974 (ada_main_name): New function.
5975 (ada_exception_breakpoint_type): New function.
5976 (is_known_support_routine): New function.
5977 (ada_find_printable_frame): Renamed from find_printable_frame and made
5978 global.
5979 Remove level parameter.
5980 Use new interface to select_frame.
5981
5982 (begin_command): Remove.
5983 (ada_adjust_exception_stop): New function.
5984 (ada_print_exception_stop): New function.
5985 (exception_name_from_cond): New function.
5986 (ada_report_exception_break): Replace disabled code with
5987 conditionalization on GNAT_GDB.
5988 Get the exception name from the condition string.
5989 Remove and move functionality into new functions
5990 ada_print_exception_breakpoint_task and
5991 ada_print_exception_breakpoint_nontask.
5992 (error_breakpoint_runtime_sym_not_found): New function.
5993 (is_runtime_sym_defined): New function.
5994 (ada_breakpoint_rewrite): Uncomment suppressed code.
5995 Use symbolic error-message and runtime-symbol names.
5996 Surround runtime symbol names in quotes.
5997 Allow non-specific breakpoints on exceptions and assertions before
5998 program starts.
5999
6000 (ada_is_tagged_type): Add parameter.
6001 (ada_is_tag_type): New function.
6002 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
6003 (ada_variant_discrim_type): Ditto.
6004 (value_tag_from_contents_and_address): New function.
6005 (type_from_tag): New function.
6006 (struct tag_args): New structure used to communicate with
6007 ada_tag_name_1.
6008 (ada_tag_name_1): New function.
6009 (ada_tag_name): New function.
6010
6011 (ada_scan_number): Update comment.
6012 (find_struct_field): New function.
6013 (ada_search_struct_field): Make static.
6014 (ada_value_struct_elt): New version that returns references when
6015 given pointers or references to structs.
6016 (ada_lookup_struct_elt_type): Add 'refok' parameter.
6017 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
6018 interface.
6019 (ada_value_ind): Use new ada_to_fixed_value interface.
6020 (ada_coerce_ref): Ditto.
6021 (field_offset): Remove.
6022
6023 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
6024 (ada_find_renaming_symbol): New function.
6025 (ada_prefer_type): Prefer named types over unnamed ones.
6026 (variant_field_index): New function.
6027 (contains_variant_part): Removed: subsumed by variant_field_index.
6028 (ada_template_to_fixed_record_type): New function, mostly from
6029 template_to_fixed_record_type.
6030 (template_to_fixed_record_type):
6031 Do not scan the type fields beyond the last one; prevents a
6032 potential SEGV.
6033 Handle case where variant field is listed BEFORE discriminant it
6034 depends on.
6035 Fix calculation of record length when bit length is
6036 not evenly divisible by char length.
6037 Move code to ada_template_to_fixed_record_type and call it.
6038
6039 (template_to_static_fixed_type): Revise comment.
6040 Modify to work on ordinary record types as well as templates,
6041 so as to handle fields that use ___XVE or ___XVU encodings.
6042 (to_record_with_fixed_variant_part): Fill out comment.
6043 Initialize C++ stuff in right type.
6044 Allow case where DVAL is null.
6045 Handle case where variant field is not last.
6046 Fix typo concerning record length.
6047 (to_fixed_record_type): Decomment disabled code.
6048 (to_fixed_record_type): Use variant_field_index instead of
6049 contains_variant_part.
6050 (to_fixed_variant_branch_type): Ditto.
6051 (to_fixed_array_type): Decomment disabled code.
6052 (ada_to_fixed_type): Convert tagged types to the specific type.
6053 Deactivate the size-check for array types in order to avoid
6054 some false size alarms.
6055 (to_static_fixed_type): Decomment disabled code.
6056 Modify to call template_to_static_fixed_type
6057 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
6058 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
6059 Remove valaddr argument, as it is never really used.
6060 (ada_to_fixed_value): Change interface to act on single struct value*
6061 operand.
6062 (adjust_pc_past_prologue): New function.
6063 (ada_attribute_name): Modify to take enum exp_opcode argument.
6064
6065 (ada_enum_name): Recognize new homonym-distinguishing convention.
6066 Adjust local variable's type to remove compiler warning.
6067 Fix a small problem in the part that unqualifies the enumeration name.
6068 (ada_value_binop): New function.
6069 (ada_value_equal): New function.
6070
6071 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
6072 Don't give error message when not doing normal evaluation
6073 and a tagged type doesn't seem to contain a structure member.
6074 Give error message for packed arrays.
6075 For indexing arrays, handle pointers to packed arrays correctly.
6076 Handle case of 'first and 'last attributes of bare integral type
6077 without encoded subtype info.
6078 Remove some unnecessary casts.
6079 Fix uninitialized value of type in computing 'first, 'last, or 'length
6080 of array object.
6081 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
6082 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
6083 calls.
6084 Attributes are now exp_opcode values.
6085 Correct treatment of 'modulus.
6086 Better error message for taking 'length of wrong kind of type;
6087 improve comment.
6088 Change EVAL_NORMAL to noside for consistency.
6089 Use ada_value_binop for DIV, MOD, REM.
6090 Make special case out of array of length 0, since an argument
6091 of 0 upsets some platforms' malloc.
6092 Use OP_STRING instead of OP_ARRAY.
6093 For slice, add check that we have an array type before extracting
6094 a slice out of it. Avoids a SEGV.
6095 When evaluating an array slice, if the array type is a reference to
6096 an aligner type, then replace the aligner type by the actual type.
6097 Decomment disabled code.
6098 Remove some dead code.
6099 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
6100 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
6101 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
6102 and UNOP_MBR to UNOP_IN_RANGE.
6103 If an array type has a parallel ___XVE type, then use it.
6104 Turn arrays into pointers for lvalue arrays.
6105 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
6106 bounds error and handle 0-length slices.
6107 Use lim_warning.
6108 When selecting fields, apply ada_to_fixed_value (because the fields
6109 might have ___XVU or ___XVE encodings even if not dynamic.)
6110 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
6111 (ada_is_system_address_type): New function.
6112
6113 (get_var_value): Use new interface to ada_lookup_symbol_list.
6114 (get_int_var_value): New interface.
6115 (to_fixed_range_type): Allow unknown bound, with warning.
6116 (ada_is_modular_type): Decomment disabled code.
6117 (ADA_OPERATORS): New definition.
6118 (ada_operator_length): New function.
6119 (ada_expr_op_name): New function.
6120 (ada_forward_operator_length): New function.
6121 (ada_dump_subexp_body): New function.
6122 (ada_print_subexp): New function.
6123 (ada_exp_descriptor): New constant.
6124 (ada_op_print_tab): Add 'size. Remove FIXMEs.
6125 (ada_language_defn): Add ada_exp_descriptor entry.
6126 Change ada_parse => parse.
6127 Add post-parser entry.
6128 Use ada-specific non-local symbol lookup.
6129 Don't use C-style arrays.
6130 String lower-bound is 1.
6131 Decomment disabled code.
6132 (parse): New function.
6133 New fields ada_translate_error_message, ada_lookup_symbol,
6134 ada_lookup_minimal_symbol.
6135
6136 * ada-lang.h: Update copyright dates.
6137 Replace the mangle/demangle terminology throughout by the
6138 more appropriate encode/decode one.
6139 Include breakpoint.h.
6140 Forward declare struct partial_symbol, struct block.
6141 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
6142 (EXTRACT_ADDRESS): Remove.
6143 (EXTRACT_INT): Remove.
6144 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
6145 (MAX_ENCLOSING_FRAME_LEVELS): Define.
6146 (MAX_RENAMING_CHAIN_LENGTH): Define.
6147 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
6148
6149 (enum task_states): Remove.
6150 ada_task_states: Remove.
6151 (fat_string): Remove.
6152 (struct entry_call): Remove.
6153 (struct task_fields): Remove.
6154 (struct task_entry): Remove.
6155
6156 (struct ada_symbol_info): Define.
6157 (enum ada_attribute): Remove.
6158 (enum ada_operator): Define.
6159
6160 (ada_get_field_index): Declare.
6161 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
6162 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6163 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6164 (ada_lookup_symbol_list): New interface.
6165 (ada_decode_symbol): Declare.
6166 (ada_decode): Declare.
6167 (ada_lookup_symbol): New interface.
6168 (ada_update_initial_language): Declare.
6169 (ada_lookup_simple_minsym): Declare.
6170 (user_select_syms): New interface.
6171 (ada_sals_for_line): Declare.
6172 (ada_is_tagged_type): New interface.
6173 (ada_tag_name): Declare.
6174 (ada_lookup_struct_elt_type): Remove declaration.
6175 (ada_search_struct_field): Remove declaration.
6176 (ada_attribute_name): New interface.
6177 (ada_is_system_address_type): Declare.
6178 (ada_to_fixed_value): Remove declaration.
6179 (ada_template_to_fixed_record_type_1): Declare.
6180 (get_int_var_value): New interface.
6181 (ada_find_any_symbol): Declare.
6182 (ada_find_renaming_symbol): Declare.
6183 (ada_mangle): Rename to ada_encode.
6184 (ada_simple_renamed_entity): Remove const.
6185 (ada_main_name): Declare.
6186 (get_current_task): Rename to ada_get_current_task.
6187 (get_entry_number): Remove declaration.
6188 (ada_report_exception_break): Remove declaration.
6189 (ada_print_exception_breakpoint_nontask): Declare.
6190 (ada_print_exception_breakpoint_task): Declare.
6191 (ada_find_printable_frame): Declare.
6192
6193 * ada-lex.l: Update copyright notices.
6194 Use xmalloc and xfree instead of malloc and free.
6195 Use new interface to name_lookup.
6196 Use new interface to
6197 ada_mangle=>ada_encode.
6198 Redo handling of '$...' variable to parallel current treatment
6199 in c-exp.y.
6200 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
6201 digit_to_int, strtoulst, processInt, processReal, processId,
6202 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
6203 yywrap): Protoize.
6204
6205 (processInt): Use cast to remove harmless warning.
6206 (processReal): Modify to get rid of compiler warning on scan formats.
6207
6208 (processId): Replace xmalloc with obstack_alloc for name and remove
6209 call to ada_name_string_cleanup.
6210 Remove obsolete disabled code.
6211 (name_lookup): Ditto.
6212 New interface.
6213 Use obsavestring on temp_parse_space instead of savestring
6214 on name, and remove call to ada_name_string_cleanup.
6215 Free string returned from ada_simple_renamed_entity.
6216 Use new interface to ada_lookup_symbol_list.
6217 Decomment disabled code.
6218 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
6219 not types.
6220 When a type name lookup succeeds as a result of
6221 lookup_primitive_typename, check for regular type entry that has not
6222 yet been read in.
6223 Limit length of chain of renamed symbols we are willing to follow.
6224 Do not break names beginning with "standard__" into segments.
6225 (block_lookup): Use new interface to ada_lookup_symbol_list.
6226
6227 * ada-typeprint.c: Update copyright notice.
6228 (demangled_type_name): Rename to decoded_type_name.
6229 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
6230 (print_range_bound): Correct handling of negative
6231 bounds that make the index type looked unsigned under STABS.
6232 (print_dynamic_range_bound): Use new interface to get_int_var_value.
6233 (print_range_type_named): Use the builtin int type if no type
6234 corresponding to the given type name could be found.
6235 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
6236 Add some bullet-proofing.
6237 (print_variant_clauses): Allow for variant branches with ___XVU
6238 encodings that are not dynamic fields.
6239 Use new interface to ada_is_tagged_type.
6240 (print_record_type): Allow for fields with ___XVE encodings that
6241 are not dynamic fields.
6242 Use new interface to ada_is_tagged_type.
6243 (ada_print_type): ada_is_array_descriptor =>
6244 ada_is_array_descriptor_type.
6245
6246 * ada-valprint.c: Update copyright notice.
6247 Include gdb_string.h
6248 Include infcall.h
6249 (ui_memcpy): New function.
6250 (ada_print_floating): New function.
6251 (ada_print_str): Order arguments correctly.
6252 Correct handling of empty arrays and arrays of 0-length items.
6253 ada_is_array_descriptor => ada_is_array_descriptor_type
6254 Print values of type System.Address in hexadecimal format.
6255 Use ada_print_floating to print floating-point numbers in Ada format.
6256 Print class tag values with type names.
6257 No longer print the address of reference values. Avoids
6258 a potential confusion.
6259 (ada_value_print): Stop printing the object type for reference
6260 values, but preserve that behavior for access types. Avoids
6261 a potential confusion.
6262 Simplify one conditional expression, as the first part is now
6263 necessarily true.
6264 ada_is_array_descriptor => ada_is_array_descriptor_type
6265 Add check for arrays for null records, and print them by hand.
4c4b4cd2 6266
f65f91b5
JB
62672004-06-01 Jim Blandy <jimb@redhat.com>
6268
6269 * ppc-tdep.h: Delete unused 'regoff' member.
6270 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
6271
d4687fa0
MC
62722004-06-01 Michael Chastain <mec.gnu@mindspring.com>
6273
6274 Fix PR symtab/1661.
6275 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
6276 (hpread_read_struct_type): Likewise.
6277
de169ec9
AC
62782004-06-01 Andrew Cagney <cagney@gnu.org>
6279
c6902d46
AC
6280 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
6281 instead of xasprintf.
6282 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
6283 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
6284 (mi_cmd_data_list_register_names)
6285 (mi_cmd_data_list_changed_registers)
6286 (mi_cmd_data_list_register_values)
6287 (get_register, mi_cmd_data_write_register_values)
6288 (mi_cmd_data_write_register_values)
6289 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
6290 (mi_cmd_target_download, mi_cmd_target_select)
6291 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
6292 (mi_execute_cli_command, mi_execute_async_cli_command)
6293 (mi_execute_async_cli_command): Ditto.
6294 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
6295 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
6296
6085fc2d
AC
6297 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
6298 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
6299 error_last_message instead of mi_error_last_message.
6300 * mi/mi-main.c (mi_error_last_message): Delete function.
6301
de169ec9
AC
6302 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
6303 "invalid number of columns" error. Delete redundant "out of
6304 memory" check.
6305
1fc7d519
MK
63062004-05-31 Mark Kettenis <kettenis@gnu.org>
6307
6cfb2041
MK
6308 * i386bsd-nat.c: Don't include <sys/procfs.h>.
6309 (gregset_t, fpregset_t): Remove typedefs.
6310 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
6311 (REG_OFFSET): Rename argument.
6312 (i386bsd_r_reg_offset): Rename from reg_offset.
6313 (REG_ADDR): Remove macro.
6314 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
6315 functions.
6316 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
6317 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
6318 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
6319 instead of supply_gregset.
6320 (store_inferior_registers): Use `struct reg' and `struct fpreg'
6321 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
6322 instead of fill_gregset.
6323 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
6324
1fc7d519
MK
6325 * i386bsd-nat.c: Don't include "gregset.h".
6326 (supply_gregset, fill_gregset): Make static.
6327 (supply_fpregset, fill_fpregset): Remove.
6328 * Makefile.in (i386bsd-nat.o): Update dependencies.
6329
2c34abbe
MK
63302004-05-30 Mark Kettenis <kettenis@gnu.org>
6331
448724fb
MK
6332 * fbsd-proc.c: Include "regcache.h", "regset.h" and
6333 "gdb_assert.h". Con't include "gregset.h".
6334 (fbsd_make_corefile_notes): Use regset-based core file support
6335 instead off fill_gregset and fill_fpregset.
6336 * Makefile.in (fbsd-proc.o): Update dependencies.
6337
5ca8ca7c
MK
6338 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
6339 instructions.
6340 (m88k_frame_prev_register): Simplify code a bit.
6341
593adc23
MK
6342 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
6343 (amd64_collect_fpregset): New function.
6344 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
6345
8d1b517b
MK
6346 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
6347
7fdafb5a
MK
6348 * i386-tdep.c (i386_supply_gregset): Adjust comment.
6349 (i386_collect_gregset): New function.
6350 (i386_supply_fpregset): Adjust comment.
6351 (i386_collect_fpregset): New function.
6352 (i386_regset_from_core_section): Use i386_collect_gregset and
6353 i386_collect_fpregset.
6354
8693c419
MK
6355 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
6356 handle VALUEP being null.
6357
2c34abbe
MK
6358 * regset.h (collect_regset_ftype): Unconstify fourth argument.
6359
45d134d8
MK
63602004-05-29 Mark Kettenis <kettenis@gnu.org>
6361
1698f4e7
MK
6362 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
6363
45d134d8
MK
6364 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
6365 assembler in OpenBSD 3.5-current.
6366 (amd64obsd_sigcontext_addr): Likewise.
6367
691d145a
JB
63682004-05-28 Jim Blandy <jimb@redhat.com>
6369
6370 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
6371 register set, so our regcache isn't declared "legacy" and our E500
6372 pseudoregister read and write functions aren't ignored.
6373 (rs6000_register_byte, rs6000_register_raw_size,
6374 rs6000_register_virtual_type, rs6000_register_convertible,
6375 rs6000_register_convert_to_virtual,
6376 rs6000_register_convert_to_raw): Deleted.
6377 (rs6000_register_type, rs6000_convert_register_p,
6378 rs6000_register_to_value, rs6000_value_to_register): New
6379 functions.
6380 (rs6000_gdbarch_init): Don't register
6381 gdbarch_deprecated_register_size,
6382 gdbarch_deprecated_register_bytes,
6383 gdbarch_deprecated_register_byte,
6384 gdbarch_deprecated_register_raw_size,
6385 gdbarch_deprecated_register_virtual_type,
6386 gdbarch_deprecated_register_convertible,
6387 gdbarch_deprecated_register_convert_to_virtual, or
6388 gdbarch_deprecated_register_convert_to_raw methods. Instead,
6389 register gdbarch_register_type, gdbarch_convert_register_p,
6390 gdbarch_register_to_value, and gdbarch_value_to_register methods.
6391
18ed0c4e
JB
63922004-05-26 Jim Blandy <jimb@redhat.com>
6393
6394 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
6395 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
6396 functions, updated to match the register numberings used in GCC.
6397 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
6398 rs6000_dwarf2_reg_to_regnum as register number conversions
6399 functions for STABS and Dwarf2.
6400
779af9e3
RC
64012004-05-26 Randolph Chung <tausq@debian.org>
6402
6403 * infttrace.h (target_waitkind): Forward declare type instead of pulling
6404 in header file.
6405
c23968a2
JB
64062004-05-25 Joel Brobecker <brobecker@gnat.com>
6407
6408 * NEWS: Document new "start" command.
6409
3a7d1c27
RC
64102004-05-25 Randolph Chung <tausq@debian.org>
6411
6412 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
6413 hppa-linux.
6414
43613416
RC
64152004-05-25 Randolph Chung <tausq@debian.org>
6416
6417 * hppa-hpux-tdep.c (offsetof): Define.
6418 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
6419 (hppa32_hpux_frame_base_before_sigtramp)
6420 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
6421 (hppa64_hpux_frame_saved_pc_in_sigtramp)
6422 (hppa64_hpux_frame_base_before_sigtramp)
6423 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
6424 functions.
6425 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
6426 (hppa_hpux_sigtramp_frame_unwind_cache)
6427 (hppa_hpux_sigtramp_frame_this_id)
6428 (hppa_hpux_sigtramp_frame_prev_register)
6429 (hppa_hpux_sigtramp_frame_unwind)
6430 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
6431 (hppa_hpux_init_abi): Register sigtramp unwinder.
6432 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
6433
6d1be3f1
RC
64342004-05-25 Randolph Chung <tausq@debian.org>
6435
6436 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
6437 and multiple stack unwinds.
6438 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
6439
97c34f65
AC
64402004-05-25 Andrew Cagney <cagney@gnu.org>
6441
6442 * symfile.h (symbol_file_add_from_memory): Delete declaration.
6443 * symfile-mem.h: Delete file.
6444 * symfile-mem.c: Do not include "symfile-mem.h".
6445 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
6446 "struct bfd_section". When an error do not bother returning NULL.
6447 (add_symbol_file_from_memory_command): Use "struct bfd" and
6448 "struct bfd_section".
6449 * Makefile.in (symfile_mem_h): Delete.
6450 (symfile-mem.o): Update dependencies.
6451
e23cbd82
NR
64522004-05-25 Nick Roberts <nickrob@gnu.org>
6453
6454 * gdb-mi.el: New file.
6455
20d2ca3e
AC
64562004-05-25 Andrew Cagney <cagney@gnu.org>
6457
6458 * inftarg.c: Include "observer.h".
6459 (child_attach, child_create_inferior): Notify inferior_created.
6460 * corelow.c: Include "observer.h".
6461 (core_open): Notify inferior_created.
6462 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
6463
c27cda74
AC
64642004-05-25 Andrew Cagney <cagney@gnu.org>
6465
6466 * target.h (struct target_ops): Add from_tty to
6467 to_create_inferior.
6468 (target_create_inferior, find_default_create_inferior): Update.
6469 * infcmd.c (run_command): Update.
6470 * wince.c (child_create_inferior): Update.
6471 * win32-nat.c (child_create_inferior): Update.
6472 * uw-thread.c (uw_thread_create_inferior): Update.
6473 * thread-db.c (thread_db_create_inferior): Update.
6474 * target.c (debug_to_create_inferior)
6475 (find_default_create_inferior): Update.
6476 (maybe_kill_then_create_inferior): Update.
6477 * sol-thread.c (sol_thread_create_inferior): Update.
6478 * remote.c (extended_remote_async_create_inferior)
6479 (extended_remote_create_inferior): Update.
6480 * remote-vx.c (vx_create_inferior): Update.
6481 * remote-st.c (st2000_create_inferior): Update.
6482 * remote-sim.c (gdbsim_create_inferior): Update.
6483 * remote-sds.c (sds_create_inferior): Update.
6484 * remote-rdp.c (remote_rdp_create_inferior): Update.
6485 * remote-rdi.c (arm_rdi_create_inferior): Update.
6486 * remote-m32r-sdi.c (m32r_create_inferior): Update.
6487 * remote-e7000.c (e7000_create_inferior): Update.
6488 * procfs.c (procfs_create_inferior): Update.
6489 * ocd.c (ocd_create_inferior): Update.
6490 * ocd.h (ocd_create_inferior): Update.
6491 * nto-procfs.c (procfs_create_inferior): Update.
6492 * monitor.c (monitor_create_inferior): Update.
6493 * lin-lwp.c (lin_lwp_create_inferior): Update.
6494 * inftarg.c (child_create_inferior): Update.
6495 * hpux-thread.c (hpux_thread_create_inferior): Update.
6496 * gnu-nat.c (gnu_create_inferior): Update.
6497
1db2a798
AC
64982004-05-25 Andrew Cagney <cagney@gnu.com>
6499
6500 * MAINTAINERS: Update e-mail address.
6501
007d08bb
RC
65022004-05-24 Randolph Chung <tausq@debian.org>
6503
6504 * thread.c (info_threads_command, thread_apply_all_command)
6505 (thread_apply_command, thread_command, do_captured_thread_select):
6506 Remove HPUXHPPA-specific code.
6507
69e7b95e
RC
65082004-05-24 Randolph Chung <tausq@debian.org>
6509
6510 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
6511 unused symbols.
6512 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
6513 references.
6514
a4d5f2e0
JB
65152004-05-24 Joel Brobecker <brobecker@gnat.com>
6516
6517 * infcmd.c (kill_if_already_running): New function, extracted
6518 from run_command().
6519 (run_command): Replace extracted code by call to
6520 kill_if_already_running().
6521 (start_command): New function.
6522 (_initialize_infcmd): Add "start" command.
6523
bf2ca189
MK
65242004-05-24 Mark Kettenis <kettenis@gnu.org>
6525
6526 Add OpenBSD/m88k support.
6527 * NEWS (New native configurations): Mention OpenBSD/m88k.
6528 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
6529 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
6530 * Makefile.in (m88k_tdep_h): New variable.
6531 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
6532 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
6533 * configure.host: Add m88*-*-openbsd*.
6534 * configure.tgt: Add m88*-*-openbsd*.
6535
80fadb11
JB
65362004-05-24 Jim Blandy <jimb@redhat.com>
6537
6538 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
6539 to approve changes.
6540
19e2d14b
KB
65412004-05-24 Kevin Buettner <kevinb@redhat.com>
6542
6543 * symtab.c (fixup_section): Search section table when lookup by
6544 name fails.
6545
1b07b470
RC
65462004-05-24 Randolph Chung <tausq@debian.org>
6547
6548 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
6549 be "small_struct".
6550
368702b1
MK
65512004-05-24 Mark Kettenis <kettenis@gnu.org>
6552
5df97fde
MK
6553 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
6554 register number in regcache_raw_collect call.
6555 (m68kbsd_collect_fpregset): Likewise.
6556 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
6557
368702b1
MK
6558 * regset.h (struct regset): Add back `regset' member.
6559
a770d4ec
MK
65602004-05-23 Mark Kettenis <kettenis@gnu.org>
6561
70f9f479
MK
6562 * configure.in: Check for td_pcb in `struct thread'.
6563 * configure, config.in: Regenerated.
6564
2e16d79e
MK
6565 * dpx2-nat.c: Remove file.
6566 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
6567 (dpx2-nat.o): Remove dependencies.
6568
492cf391
MK
6569 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
6570 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
6571 (amd64obsd_supply_pcb): New function.
6572 (_initialize_amd64obsd_nat): Enable libkvm interface.
6573 * Makefile.in (amd64obsd-nat.o): Update dependencies.
6574 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
6575 (LOADLIBES): New variable.
6576
a770d4ec
MK
6577 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
6578 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
6579 (sparc32nbsd_supply_pcb): New function.
6580 (_initialize_sparcnbsd_nat): Enable libkvm interface.
6581 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
6582 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
6583 (LOADLIBES): New variable.
6584
9ea75c57
MK
65852004-05-22 Mark Kettenis <kettenis@gnu.org>
6586
2e0c3539
MK
6587 * bsd-kvm.c, bsd-kvm.h: New files.
6588 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
6589 "bsd-kvm.h".
6590 (i386fbsd_supply_pcb): New function.
6591 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
6592 (i386fbsd-nat.o): Update dependencies.
6593 (bsd_kvm_h): New variable.
6594 (bsd-kvm.o): New dependency.
6595 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
6596 (LOADLIBES): New variable.
6597
9ea75c57
MK
6598 * regset.c: Tweak comment.
6599 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
6600 macro.
6601 * regset.h: Update copyright year.
6602 (struct regset): Remove `descr' member, add `gdbarch' member.
6603 (regset_alloc): Adjust prototype and comment.
6604 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
6605 (i386_supply_fpregset): Likewise.
6606 (i386_regset_from_core_section): Update call to regset_alloc.
6607 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
6608 REGSET->arch.
6609 (i386obsd_aout_regset_from_core_section): Update call to
6610 regset_alloc.
6611 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
6612 REGSET->arch.
6613 (i386nbsd_aout_regset_from_core_section): Update call to
6614 regset_alloc.
6615 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
6616 REGSET->arch.
6617 (amd64_regset_from_core_section): Update call to regset_alloc.
6618 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
6619 REGSET->arch.
6620 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
6621 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
6622 &sparc32nbsd_gregset in sparc32_supply_gregset call.
6623 (sparc32nbsd_init_abi): Update call to regset_alloc.
6624 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
6625 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
6626 (sparc64obsd_init_abi): Update call to regset_alloc.
6627 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
6628 &sparc64nbsd_gregset in sparc64_supply_gregset call.
6629 (sparc64nbsd_init_abi): Update call to regset_alloc.
6630 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
6631 &sparc64fbsd_gregset in sparc64_supply_gregset call.
6632 (sparc64fbsd_init_abi): Update call to regset_alloc.
6633
867e2dc5
JB
66342004-05-22 Jim Blandy <jimb@redhat.com>
6635
6636 * ppc-tdep.h (spe_register_p): New declaration.
6637 (struct gdbarch_tdep): New members: ppc_acc_regnum and
6638 ppc_spefscr_regnum.
6639 * rs6000-tdep.c (spe_register_p): New function.
6640 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
6641 spefscr.
6642 (rs6000_gdbarch_init): Initialize the new members of the tdep
6643 structure.
6644
617a4cba
JB
66452004-05-21 Jim Blandy <jimb@redhat.com>
6646
0397dee1
JB
6647 * ppc-linux-nat.c (fetch_register): Move code back to be next
6648 to the comment that describes it. (Moved code, instead of
6649 comment, for symmetry with store_register.)
6650
617a4cba
JB
6651 Allocate regset structures in the gdbarch's obstack, not using
6652 xmalloc.
6653 * regset.c (regset_alloc): Renamed from regset_xmalloc.
6654 Add 'arch' argument. Allocate the regset on arch's obstack, not
6655 using xmalloc.
6656 * regset.h (regset_alloc): Update declaration.
6657 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
6658 gdbarch argument.
6659 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
6660 * i386-tdep.c (i386_regset_from_core_section): Same.
6661 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
6662 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
6663 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
6664 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
6665 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
6666 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
6667
9aa3914d
JB
66682004-05-21 Joel Brobecker <brobecker@gnat.com>
6669
6670 * config/djgpp/fnchange.lst: Undo previous change, was useless.
6671
99c87dab
JB
66722004-05-21 Jim Blandy <jimb@redhat.com>
6673
6674 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
6675 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
6676
c2b6b4aa
JB
66772004-05-20 Jim Blandy <jimb@redhat.com>
6678
6679 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
6680
144529d0
MK
66812004-05-20 Mark Kettenis <kettenis@gnu.org>
6682
6683 * regset.h: Make prototype const-correct.
6684 * regset.c (regset_xmalloc): Make const-correct.
6685
4725b721
PH
66862004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
6687
6688 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
6689 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
6690 (symbol_search_name): Declare.
6691
6692 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
6693 (iter_name_next_hashed): Ditto.
6694 (iter_name_next_linear): Ditto.
6695 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
6696
6697 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
6698 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
6699 (symbol_search_name): New function.
6700
6701 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
6702
6703 * minsyms.c (build_minimal_symbol_hash_tables): Change
6704 test for adding to demangled hash table to check for difference
6705 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
6706
be07a590
JB
67072004-05-19 Jim Blandy <jimb@redhat.com>
6708
6709 Use a constructor function to create regset structures.
6710 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
6711 (struct regset): Use supply_regset_ftype. Add new
6712 'collect_regset' member.
6713 (regset_xmalloc): New declaration.
6714 * regset.c: New file.
6715 * am64-tdep.c (amd64_regset_from_core_section): Use
6716 regset_xmalloc to construct regset structures.
6717 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
6718 * i386-tdep.c (i386_regset_from_core_section): Same.
6719 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
6720 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
6721 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
6722 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
6723 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
6724 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
6725 * Makefile.in (COMMON_OBS): Add regset.o.
6726 (regset.o): New rule.
6727
604368f5
JB
67282004-05-19 Joel Brobecker <brobecker@gnat.com>
6729
6730 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
6731 and pthread_cond_wait.c.
6732
82d69f8b
JB
67332004-05-18 Jim Blandy <jimb@redhat.com>
6734
6735 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
6736 before the mach-specific switch, and then let the individual cases
6737 override the defaults, rather than leaving them uninitialized
6738 until the switch and then setting them in each case.
6739
5859efe5
RC
67402004-05-18 Randolph Chung <tausq@debian.org>
6741
6742 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
6743 millicode functions.
6744
9ca80cf8
RC
67452004-05-18 Randolph Chung <tausq@debian.org>
6746
6747 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
6748 references to dld_flags_buffer consistent.
6749
ed70ba00
RC
67502004-05-18 Randolph Chung <tausq@debian.org>
6751
6752 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
6753 it for unwinding the stack.
6754
63100632
RC
67552004-05-18 Randolph Chung <tausq@debian.org>
6756
6757 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
6758 Undefine these so we can overide them using gdbarch.
6759
090ccbb7
RC
67602004-05-18 Randolph Chung <tausq@debian.org>
6761
6762 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
6763 handling for 64-bit HPUX (elf).
6764
594706e6
DJ
67652004-05-18 Daniel Jacobowitz <dan@debian.org>
6766
6767 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
6768 constants.
6769 * amd64-tdep.c (amd64_skip_prologue): Likewise.
6770 * ia64-tdep.c (examine_prologue): Likewise.
6771 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
6772 * v850-tdep.c (v850_fix_call_dummy): Likewise.
6773
e5483145
MK
67742004-05-18 Mark Kettenis <kettenis@gnu.org>
6775
6776 * vax-tdep.c (vax_return_value): Implement
6777 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6778
caed1a45
MK
67792004-05-17 Mark Kettenis <kettenis@gnu.org>
6780
6781 * vax-tdep.c (vax_return_value): Fix typo.
6782
3c0b7db2
AC
67832004-05-17 Andrew Cagney <cagney@redhat.com>
6784
5aae53e5
AC
6785 * MAINTAINERS: Mark Salter was also responsible for
6786 testsuite/config/
6787
3c0b7db2
AC
6788 * NEWS: Mention signal fixes.
6789
22b0923d
RC
67902004-05-17 Randolph Chung <tausq@debian.org>
6791
6792 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
6793 check to see if we are unwinding an export stub. Export stubs clobber
6794 the %rp in the call path and stores the original rp in a stack slot.
6795
22f2b2f3
JB
67962004-05-17 Jim Blandy <jimb@redhat.com>
6797
6798 * MAINTAINERS: Update address for J.T. Conklin.
6799
cea96d64
RC
68002004-05-17 Randolph Chung <tausq@debian.org>
6801
6802 * hppa-tdep.c: Remove superfluous #include's.
6803 * Makefile.in (hppa-tdep.o): Update dependencies.
6804
f08f6a4a
RC
68052004-05-17 Randolph Chung <tausq@debian.org>
6806
6807 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
6808 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
6809 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
6810 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
6811 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
6812 Remove static function declarations.
6813
51da707a
MK
68142004-05-17 Mark Kettenis <kettenis@gnu.org>
6815
caed1a45
MK
6816 * alphabsd-nat.c: Update copyright year.
6817 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
6818
c0c2b0db
MK
6819 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
6820 and M68K_A2_REGNUM.
6821
51da707a
MK
6822 * m68k-tdep.c (m68k_svr4_return_value): Implement
6823 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6824
8d027a04
MK
68252004-05-16 Mark Kettenis <kettenis@gnu.org>
6826
6827 * sol-thread.c Update copyright year. Fix various coding
6828 standards violations. Tweak a few comments.
6829 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
6830 Delete prototypes.
6831
0d99fdb9
RC
68322004-05-15 Randolph Chung <tausq@debian.org>
6833
6834 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
6835 as pointer instead of array reference since HPUX compiler does
6836 not accept unsized array arguments.
6837 * somsolib.c (dld_flags_buffer): Use constant array size.
6838
f7e3843a
MK
68392004-05-15 Mark Kettenis <kettenis@gnu.org>
6840
0fe85704
MK
6841 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
6842 offset with decimal offset.
6843 (amd64obsd_sigcontext_addr): Return correct address for entire
6844 signal trampoline.
6845
a54f9a00
MK
6846 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
6847 instead of get_frame_base.
6848
feae6502
MK
6849 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
6850 (fill_gregset): Use regcache_raw_collect.
6851
0382d099
MK
6852 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
6853 ppcobsd-tdep.c.
6854
f7e3843a
MK
6855 * config/sparc/tm-nbsd64.h: Remove file.
6856 * config/tm-sunos.h: Remove file.
6857
773df3e5
JB
68582004-05-15 Joel Brobecker <brobecker@gnat.com>
6859
6860 * rs6000-tdep.c (store_param_on_stack_p): New function,
6861 an improved version of some code extracted from skip_prologue().
6862 (skip_prologue): Use store_param_on_stack_p() to detect
6863 instructions saving a parameter on the stack. Detect when r0
6864 is used to save a parameter.
6865 Do not mark "li rx, SIMM" instructions as part of the prologue,
6866 unless the following instruction is also part of the prologue.
6867
95918acb
AC
68682004-05-14 Andrew Cagney <cagney@redhat.com>
6869
06f32659
AC
6870 * infrun.c (handle_inferior_event): Simplify
6871 STEP_OVER_UNDEBUGGABLE.
6872
95918acb
AC
6873 * infrun.c (handle_step_into_function): Delete function.
6874 (handle_inferior_event): Inline calls to
6875 handle_step_into_function.
6876
40711ff1 68772004-05-14 Jerome Guitton <guitton@gnat.com>
42203e46
JG
6878
6879 * rs6000-nat.c: Fix a comment.
6880
02f60eae
JB
68812004-05-12 David Anderson <davea@sgi.com>
6882
6883 Committed by Jim Blandy <jimb@redhat.com>:
6884 * regcache.c (struct regcache_descr): fix comment spelling.
6885
552e377b
JB
68862004-05-13 J. Brobecker <brobecker@gnat.com>
6887
6888 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
6889 Fixes a link link failure.
6890
349766b2
JB
68912004-05-13 J. Brobecker <brobecker@gnat.com>
6892
6893 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
6894 error that was causing the build to fail.
6895
0d4d5484
JB
68962004-05-13 J. Brobecker <brobecker@gnat.com>
6897
6898 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
6899 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
6900
0b30808c
AC
69012004-05-13 Andrew Cagney <cagney@redhat.com>
6902
6903 * infrun.c (handle_inferior_event): Check for
6904 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
6905 calls. Update comments.
6906
cdf2c5f5
JB
69072004-05-13 Jim Blandy <jimb@redhat.com>
6908
063715bf
JB
6909 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
6910 (fetch_regs_user_thread, fetch_regs_kernel_thread)
6911 (store_regs_user_thread, store_regs_kernel_thread): Use
6912 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
6913 * ppc-linux-nat.c (fill_gregset): Same.
6914 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
6915 (ppc_linux_sigtramp_cache): Same.
6916 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
6917 (ppcnbsd_sigtramp_cache_init): Same.
6918 * rs6000-nat.c (fetch_core_registers): Same.
6919 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
6920 (rs6000_frame_cache): Same.
6921
cdf2c5f5
JB
6922 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
6923 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
6924 of assuming that the gprs are numbered starting with zero.
6925 * ppc-linux-nat.c (fill_gregset): Same.
6926 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
6927 * ppcnbsd-nat.c (getregs_supplies): Same.
6928 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
6929 * rs6000-nat.c (fetch_core_registers): Same.
6930 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
6931
450bd37b
MS
69322004-05-07 Michael Snyder <msnyder@redhat.com>
6933
6934 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
6935 LOC_COMPUTED_ARG, and LOC_INDIRECT.
6936
4a72a2a6
AC
69372004-05-13 Andrew Cagney <cagney@redhat.com>
6938
6939 * infrun.c (handle_inferior_event): Use frame_unwind_id.
6940
8edfa926
BM
69412004-05-13 Bryce McKinlay <mckinlay@redhat.com>
6942
6943 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
6944 base_address for shared libraries.
6945
723e0e3d
BM
69462004-05-13 Bryce McKinlay <mckinlay@redhat.com>
6947
6948 * MAINTAINERS (write after approval): Add myself.
6949
00d4360e
UW
69502004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6951
6952 * breakpoint.c (bpstat_stop_status): Add new argument
6953 STOPPED_BY_WATCHPOINT. Use it instead of testing
6954 target_stopped_data_address agaist 0 to check whether
6955 or not we stopped due to a hardware watchpoint.
6956 * breakpoint.h (bpstat_stop_status): Adapt prototype.
6957 * infrun.c (handle_inferior_event): Call bpstat_stop_status
6958 with new argument.
6959
ec76baa5
JB
69602004-05-12 Jim Blandy <jimb@redhat.com>
6961
6962 * configure.in: When checking whether we should use the -bbigtoc
6963 option, don't forget to restore the original value of LDFLAGS.
6964 * configure: Regenerated.
6965
f2c9ca08
AC
69662004-05-12 Andrew Cagney <cagney@redhat.com>
6967
6968 * thread.c (load_infrun_state): Delete step_sp.
6969 * infrun.c (context_switch): Ditto.
6970 * inferior.h (step_sp): Ditto.
6971 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
6972 * gdbthread.h (struct thread_info, save_infrun_state)
6973 (restore_infrun_state): Ditto.
6974
090ddb2a
UW
69752004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
6976
6977 * MAINTAINERS (write after approval): Add myself.
6978
8aad930b
AC
69792004-05-12 Andrew Cagney <cagney@redhat.com>
6980
6981 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
6982 eliminate reference to step_sp.
6983 (struct execution_control_state, init_execution_control_state)
6984 (handle_inferior_event, keep_going): Delete update_step_sp and
6985 step_sp.
6986 * infcmd.c (step_sp): Note that variable is unused.
6987
922d5ae0
AC
69882004-05-11 Andrew Cagney <cagney@redhat.com>
6989
6990 * infrun.c (step_over_function): Delete function.
6991 (handle_step_into_function): Use insert_step_resume_breakpoint.
6992 (insert_step_resume_breakpoint): Fix assertion.
6993
017c5ca5
NR
69942004-05-11 Nick Roberts <nickrob@gnu.org>
6995
6996 * utils.c (defaulted_query): Just use the normal query input type
6997 when printing the annotations.
6998
42edda50
AC
69992004-05-11 Andrew Cagney <cagney@redhat.com>
7000
7001 * infrun.c (handle_inferior_event): Simplify code handling
7002 step-into or return-from a signal trampoline.
7003
d28b44a7
AC
70042004-05-11 Andrew Cagney <cagney@redhat.com>
7005
7006 * ppcnbsd-tdep.c: Include "gdb_assert.h".
7007 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
7008
383f0f5b
JB
70092004-05-10 Jim Blandy <jimb@redhat.com>
7010
d0b57c3a
JB
7011 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
7012 with a call to internal_error.
7013
383f0f5b
JB
7014 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
7015 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
7016 processor variant lacks those registers.
7017 (ppc_floating_point_unit_p): Change description to make it clear
7018 that this returns info about the ISA, not the ABI.
7019 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
7020 return true or false by checking tdep->ppc_fp0_regnum and
7021 tdep->ppc_fpscr_regnum. The original code replicated the BFD
7022 arch/mach switching done in rs6000_gdbarch_init; it's better to
7023 keep that logic there, and just check the results here.
7024 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
7025 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
7026 floating-point registers.
7027 (ppc_supply_fpregset, ppc_collect_fpregset)
7028 (rs6000_push_dummy_call, rs6000_extract_return_value)
7029 (rs6000_store_return_value): Assert that we have floating-point
7030 registers.
7031 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
7032 (rs6000_frame_cache): Don't note the locations at which
7033 floating-point registers were saved if we have no fprs.
7034 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
7035 registers.
7036 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7037 (store_regs_user_thread, store_regs_kernel_thread): Only call
7038 supply_fprs / fill_fprs if we actually have floating-point
7039 registers.
7040 (special_register_p): Check ppc_fpscr_regnum before matching
7041 against it.
7042 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
7043 supply / collect fpscr if we don't have it.
7044 * ppc-bdm.c: #include "gdb_assert.h".
7045 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
7046 have floating-point registers, since I can't test this code on
7047 FP-free systems to adapt it.
7048 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
7049 fpscr and floating point register numbers if they don't exist.
7050 (fetch_register): Assert that we have floating-point registers
7051 before we reach the code that handles them.
7052 (store_register): Same. And use tdep instead of calling
7053 gdbarch_tdep again.
7054 (fill_fpregset): Don't try to collect FP registers and fpscr if we
7055 don't have them.
7056 (ppc_linux_sigtramp_cache): Don't record the saved locations of
7057 fprs and fpscr if we don't have them.
7058 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
7059 don't have them.
7060 * ppcnbsd-nat.c: #include "gdb_assert.h".
7061 (getfpregs_supplies): Assert that we have floating-point registers.
7062 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
7063 * ppcobsd-tdep.c: #include "gdb_assert.h".
7064 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
7065 have floating-point registers.
7066 * rs6000-nat.c (regmap): Don't match against the fpscr and
7067 floating point register numbers if they don't exist.
7068 (fetch_inferior_registers, store_inferior_registers,
7069 fetch_core_registers): Only fetch / store / supply the
7070 floating-point registers and the fpscr if we have them.
7071 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
7072 (ppcobsd-tdep.o): Update dependencies.
7073
15960608
AC
70742004-05-10 Andrew Cagney <cagney@redhat.com>
7075
7076 * infrun.c (through_sigtramp_breakpoint): Delete variable.
7077 (context_switch): Do not switch through_sigtramp_breakpoint.
7078 * gdbthread.h (save_infrun_state, load_infrun_state)
7079 (struct thread_info): Delete through_sigtramp_breakpoint parameter
7080 and structure member.
7081 * thread.c (load_infrun_state, save_infrun_state): Update.
7082
5ab5aa0f
MK
70832004-05-10 Mark Kettenis <kettenis@gnu.org>
7084
7085 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
7086
da78b0e7
DJ
70872004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
7088
7089 * acinclude.m4: Quote macro names being defined by AC_DEFUN
7090 throughout.
7091 * aclocal.m4: Regenerate.
7092
cca0d3b0
NW
70932004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
7094
7095 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
7096
d303a6c7
AC
70972004-05-10 Andrew Cagney <cagney@redhat.com>
7098
7099 * infrun.c (check_sigtramp2): Delete function.
7100 (handle_inferior_event): When single stepping, and taking a
7101 signal, set a breakpoint at the signal return address. Delete
7102 redundant calls to check_sigtramp2.
7103 (insert_step_resume_breakpoint): New function.
7104 (through_sigtramp_breakpoint, handle_inferior_event)
7105 (follow_exec, wait_for_inferior, fetch_inferior_event)
7106 (currently_stepping, keep_going): Delete most uses of
7107 through_sigtramp_breakpoint, not that it should be deleted.
7108 (delete_breakpoint_current_contents): Delete function.
7109
03f4cc20
RC
71102004-05-10 Randolph Chung <tausq@debian.org>
7111
7112 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
7113 target.
7114 * config/pa/tm-linux.h: New file.
7115
37fc812e
DJ
71162004-05-10 Daniel Jacobowitz <drow@mvista.com>
7117
7118 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
7119 of prefixes. Don't print the prefix twice in the CLI.
7120
26c0b942
JB
71212004-05-10 Jim Blandy <jimb@redhat.com>
7122
2e56e9c1
JB
7123 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
7124 collect all the gprs.
7125
26c0b942
JB
7126 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
7127 loop collecting gprs.
7128
dc497459
AC
71292004-05-09 Andrew Cagney <cagney@redhat.com>
7130
7131 * remote-vx.c (net_step): Delete step-range code.
7132 * remote.c (remote_resume, init_all_packet_configs)
7133 (set_remote_protocol_E_packet_cmd)
7134 (show_remote_protocol_E_packet_cmd)
7135 (remote_protocol_E, show_remote_cmd, _initialize_remote)
7136 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
7137 (show_remote_protocol_e_packet_cmd): Ditto.
7138
0543f387
MK
71392004-05-09 Mark Kettenis <kettenis@gnu.org>
7140
c481d1ca
MK
7141 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
7142
f626a069
MK
7143 * hppa-tdep.h: Update copyright year.
7144 (struct trad_frame_saved_reg): Add opaque declaration.
7145
6fa57a7d
MK
7146 * amd64-tdep.c (amd64_return_value): Implement
7147 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7148
e47577ab
MK
7149 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
7150 (m68k_value_to_register): New functions.
7151 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
7152 value_to_register.
7153
31db7b6c
MK
7154 * defs.h (enum return_value_convention): Add
7155 RETURN_VALUE_ABI_RETURNS_ADDRESS and
7156 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
7157 * infcmd.c (legacy_return_value): New function.
7158 (print_return_value): Rwerite to implement
7159 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7160 * values.c (using_struct_return): Check for inequality to
7161 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
7162 RETURN_VALUE_STRUCT_CONVENTION.
7163 * i386-tdep.c (i386_return_value): Implement
7164 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7165
0543f387
MK
7166 * vax-tdep.c: Tweak comments. Reorder include files. Don't
7167 include "symtab.h", "opcode/vax.h" and "inferior.h".
7168 (vax_skip_prologue): Replace calls to read_memory_integer by calls
7169 to read_memory_unsigned_integer.
7170 (vax_gdbarch_init): Reorder.
7171 (_initialize_vax_tdep): Spell out prototype.
7172 * Makefile.in (vax-tdep.o): Update dependencies.
7173
0c93b7b6
AC
71742004-05-08 Andrew Cagney <cagney@redhat.com>
7175
e6b55ae2
AC
7176 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
7177 * target.c (target_detach, target_disconnect): Ditto.
7178
1ac839b8
AC
7179 * infcall.c (call_function_by_hand): When no
7180 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
7181 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
7182 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
7183 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7184 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7185
28954179
AC
7186 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
7187 * gdbarch.h, gdbarch.c: Re-generate.
7188 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7189 deprecated_fix_call_dummy.
7190 * v850-tdep.c (v850_gdbarch_init): Ditto.
7191 * infcall.c (call_function_by_hand): Do not call
7192 DEPRECATED_FIX_CALL_DUMMY.
7193
434b87dd
AC
7194 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
7195 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
7196 * gdbarch.h, gdbarch.c: Re-generate.
7197 * arm-linux-tdep.c (arm_linux_call_dummy_words)
7198 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
7199 deprecated_sizeof_call_dummy_words.
7200 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
7201 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7202 * v850-tdep.c (v850_gdbarch_init): Ditto.
7203 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
7204 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
7205 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7206 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7207 * arch-utils.h (legacy_call_dummy_words)
7208 (legacy_sizeof_call_dummy_words): Delete declarations.
7209 * arch-utils.c (legacy_call_dummy_words)
7210 (legacy_sizeof_call_dummy_words): Delete variables.
7211
58d28df8
AC
7212 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
7213 * gdbarch.h, gdbarch.c: Re-generate.
7214 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
7215 * infcall.c (call_function_by_hand): Eliminate call to
7216 DEPRECATED_PUSH_DUMMY_FRAME.
7217 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7218 push_dummy_frame.
7219 (ns32k_push_dummy_frame): Delete function.
7220
e4a2df64
AC
7221 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7222 deprecated_call_dummy_breakpoint_offset or
7223 deprecated_call_dummy_start_offset.
7224 * dummy-frame.c, arm-tdep.c: Update comments.
7225 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
7226 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
7227 * gdbarch.h, gdbarch.c: Re-generate.
7228
d3712828
AC
7229 * infcall.c (legacy_push_dummy_code): Delete function.
7230 (push_dummy_code): Delete call.
7231
7a882905
AC
7232 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
7233 * gdbarch.h, gdbarch.c: Re-generate.
7234 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
7235 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
7236 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
7237 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
7238
0ec5872b
AC
7239 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
7240 (struct frame_info): Delete opaque declaration.
7241 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
7242 * frame.c (get_frame_type): Delete call.
7243
0c93b7b6
AC
7244 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7245 pc_in_call_dummy.
7246 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
7247 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
7248
75536971
MK
72492004-05-08 Mark Kettenis <kettenis@gnu.org>
7250
527ca6bb
MK
7251 * alphanbsd-tdep.c: Include "gdb_string.h".
7252 * armnbsd-tdep.c: Update copyright year.
7253 Include "gdb_string.h".
7254 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
7255 dependencies.
7256
d39fdc61
MK
7257 * delta68-nat.c: Remove file.
7258 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
7259 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
7260 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
7261 (delta68-nat.o): Remove dependency.
7262
75536971
MK
7263 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
7264 function.
7265 (m68k_gdbarch_init): Don't set
7266 deprecated_frameless_function_invocation.
7267
f4ca1d1f
RC
72682004-05-07 Randolph Chung <tausq@debian.org>
7269
7270 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
7271 read_memory_nobpt for code reading when doing frame unwinding.
7272 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
7273
2f0e8c7a
RC
72742004-05-07 Randolph Chung <tausq@debian.org>
7275
7276 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
7277 instead of sp, handle sigaltstack case.
7278 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
7279 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
7280 signal handler and not that of the caller.
7281 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
7282 hppa_linux_sigtramp_find_sigcontext.
7283
959464ff
RC
72842004-05-07 Randolph Chung <tausq@debian.org>
7285
7286 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
7287 hppa-linux-nat.c.
7288 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
7289 * hppa-linux-nat.c (fetch_register, store_register): Define.
7290 (fetch_inferior_registers, store_inferior_registers): Define.
7291 (supply_gregset): Add comment and clean up some unneeded code.
7292 (fill_gregset): Add comment and fix so that it saves registers in
7293 the right place in the gregset.
7294 (fill_fpregset): Fix buffer overrun problem.
7295 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
7296
0da28f8a
RC
72972004-05-07 Randolph Chung <tausq@debian.org>
7298
7299 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
7300 do common handling of the pcoqt register.
7301 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
7302 to use helper function.
7303 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
7304 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
7305 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
7306 generic fallback unwinder when all else fails.
7307 (hppa_gdbarch_init): Add fallback sniffer.
7308 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
7309 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
7310 to use helper function.
7311
b9ec757a
JB
73122004-05-08 Joel Brobecker <brobecker@gnat.com>
7313
7314 * config/djgpp/fnchange.lst: Add translation rules for
7315 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
7316
756e95f1
MK
73172004-05-08 Mark Kettenis <kettenis@gnu.org>
7318
7319 * frame.c (get_prev_frame_1): Work around GCC bug.
7320 * frame.h: Add comment about GCC bug.
7321
2b4855ab
AC
73222004-05-07 Andrew Cagney <cagney@redhat.com>
7323
7324 * observer.c: Include "commands.h" and "gdbcmd.h".
7325 (observer_debug, _initialize_observer): Add the
7326 command "set/show debug observer".
7327 * observer.sh: When observer debugging, log notify calls.
7328 * Makefile.in (observer.o): Update dependencies.
7329
ba3e8e46
JM
73302004-05-07 Jason Molenda (jmolenda@apple.com)
7331
7332 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
7333
16796152
JB
73342004-05-07 Jim Blandy <jimb@redhat.com>
7335
daf6dc85
JB
7336 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
7337 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
7338 to recognize gpr regnums, instead of assuming that
7339 tdep->ppc_fp0_regnum marks the end of the general-purpose
7340 registers.
7341
16796152
JB
7342 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
7343 the given architecture has floating-point registers.
7344
c69b8bfc
AC
73452004-05-07 Andrew Cagney <cagney@redhat.com>
7346
7347 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
7348 macro defined to 1.
7349 * gdbarch.h, gdbarch.c: Re-generate.
7350 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7351 deprecated_use_generic_dummy_frames.
7352
7243600a
BF
73532004-05-07 Brian Ford <ford@vss.fsi.com>
7354
7355 * NEWS: Mention Cygwin DWARF 2 support.
7356
73c1e0a1
AC
73572004-05-07 Andrew Cagney <cagney@redhat.com>
7358
7359 * objfiles.h (struct entry_info): Delete unused fields
7360 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
7361 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
7362 * mipsread.c (mipscoff_symfile_read): Update.
7363 * mdebugread.c (parse_partial_symbols): Update.
7364 * dwarfread.c (read_file_scope): Update.
7365 * dwarf2read.c (read_file_scope): Update.
7366 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
7367 * coffread.c (complete_symtab): Update.
7368
1d3056ac
MK
73692004-05-07 Mark Kettenis <kettenis@gnu.org>
7370
7371 * infcall.c (_initialize_infcall): Fix typo.
7372
15170568
AC
73732004-05-07 Andrew Cagney <cagney@redhat.com>
7374
7375 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
7376 * command.h (add_setshow_zinteger_cmd): Declare.
7377
34f75cc1
RC
73782004-05-06 Randolph Chung <tausq@debian.org>
7379
7380 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
7381 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
7382 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
7383 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
7384 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
7385 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
7386 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
7387 definitions ...
7388 * hppa-tdep.h: ... to here, with HPPA_ prefix.
7389 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
7390 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
7391 (hppa64_hpux_frame_find_saved_regs_in_sig)
7392 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
7393 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
7394 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
7395 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
7396 (hppa_linux_sigtramp_frame_prev_register): Likewise.
7397 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
7398 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
7399 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
7400 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
7401 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
7402 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
7403 (hppa32_register_type, hppa_cannot_store_register)
7404 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
7405 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
7406 * hpread.c (hpread_process_one_debug_symbol): Likewise.
7407 * pa64solib.c (pa64_solib_have_load_event)
7408 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
7409 (pa64_solib_unloaded_library_pathname): Likewise.
7410 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
7411 (som_solib_library_pathname): Likewise.
7412
0a5e7efe
JI
74132004-05-05 Jim Ingham <jingham@apple.com>
7414
7415 * breakpoint.c (create_breakpoints): Copy the ignore count and
7416 thread id over from the pended breakpoint to the actual
7417 breakpoint.
7418
10a4b113
AC
74192004-05-05 Andrew Cagney <cagney@redhat.com>
7420
7421 * gdbarch.sh (PARM_BOUNDARY): Delete.
7422 gdbarch.h, gdbarch.c: Re-generate.
7423 * valops.c (PARM_BOUNDARY): Delete macro.
7424 (value_push): Delete PARM_BOUNDARY code.
7425 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
7426
366f009f
JB
74272004-05-04 Jim Blandy <jimb@redhat.com>
7428
32b99774
JB
7429 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
7430 Don't assume that the gprs, fprs, and UISA sprs are
7431 contiguous, start at register number zero, and end with fpscr.
7432 Instead, use the numbers from the tdep structure.
7433
366f009f
JB
7434 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
7435 should no longer be used in code specific to the RS6000 and its
7436 derivatives.
7437 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
7438 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
7439 tdep->ppc_fp0_regnum.
7440 (ppc_supply_fpregset, ppc_collect_fpregset)
7441 (rs6000_push_dummy_call, rs6000_extract_return_value)
7442 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
7443 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
7444 FP0_REGNUM.
7445 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
7446 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
7447 Same.
7448 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
7449 bdm_ppc_store_registers): Same.
7450 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
7451 (store_register, fill_fpregset): Same.
7452 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
7453 (ppc_linux_supply_fpregset): Same.
7454 * ppcnbsd-nat.c (getfpregs_supplies): Same.
7455 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
7456 Same.
7457 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
7458 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
7459 ppc64_sysv_abi_return_value): Same.
7460 * rs6000-nat.c (regmap, fetch_inferior_registers)
7461 (store_inferior_registers, fetch_core_registers): Same.
7462
827f338d
MK
74632004-05-01 Mark Kettenis <kettenis@gnu.org>
7464
7465 * m68knbsd-nat.c: Remove file.
7466 * m68knbsd-tdep.c: Remove file.
7467 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
7468 dependencies.
7469 * configure.host: Add m68k-*-netbsdelf*.
7470 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
7471 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
7472 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
7473 (XM_FILE): Remove.
7474 * config/m68k/nbsdelf.mh: New file.
7475 * config/m68k/nbsd.mt: New file.
7476 * config/m68k/nbsdaout.mt: Remove file.
7477 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
7478 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
7479 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
7480 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
7481 (use_struct_convention): Remove prototype.
7482 (USE_STRUCT_CONVENTION): Remove define.
7483 * config/m68k/xm-nbsd.h: Remove file.
7484
66894781
MS
74852004-05-04 Michael Snyder <msnyder@redhat.com>
7486
7487 * m68k-tdep.c (m68k_gdbarch_init): Default to using
7488 reg_struct_return method (as gcc usually does for cross targets).
7489
f0f63663
AC
74902004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7491
7492 Committed by Andrew Cagney.
7493 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
7494 alignment padding when accessing ucontext struct members.
7495
edf61169
JB
74962004-05-04 Jim Blandy <jimb@redhat.com>
7497
8bf659e8
JB
7498 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
7499 'ppc_gplast_regnum' member.
7500 (ppc_num_gprs): New enum constant.
7501 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
7502 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
7503 * rs6000-nat.c (regmap, fetch_inferior_registers,
7504 store_inferior_registers): Same.
7505 * rs6000-tdep.c (e500_pseudo_register_read)
7506 (e500_pseudo_register_write): Same.
7507 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
7508
b967e06f
JB
7509 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
7510 * ppc-tdep.h (ppc_num_fprs): New enum constant.
7511 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
7512 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
7513 FPLAST_REGNUM.
7514 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7515 Same.
7516 * ppc-linux-nat.c (ppc_register_u_addr): Same.
7517 * rs6000-nat.c (regmap, fetch_inferior_registers)
7518 (store_inferior_registers): Same.
7519
edf61169
JB
7520 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
7521 with FPLAST_REGNUM.
7522
58a9656e
JB
75232004-05-03 Joel Brobecker <brobecker@gnat.com>
7524
7525 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
7526 failure detected by recent versions of GCC.
7527 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
7528 to be consistent with the usage in dwarf2_create_include_psymtab.
7529
dc305454
MS
75302004-05-03 Michael Snyder <msnyder@redhat.com>
7531
7532 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
7533 (heuristic_proc_start): Whitespace cleanup.
7534
29972665
MK
75352004-05-04 Mark Kettenis <kettenis@gnu.org>
7536
6b57680d
MK
7537 * sun3-nat.c: Remove file.
7538 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
7539 dependencies.
7540 (ALLDEPFILES): Remove sun3-nat.c.
7541 (sun3-nat.o): Remove dependencies.
7542
29972665
MK
7543 * i386-interix-nat.c, i386-interix-tdep.c,
7544 config/i386/nm-interix.h, config/i386/interix.mh,
7545 config/i386/interix.mt: Remove files.
7546 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
7547 dependencies.
7548
f595cb19
MK
75492004-05-03 Mark Kettenis <kettenis@gnu.org>
7550
7551 * m68k-tdep.h (struct gdbarch_tdep): Add member
7552 struct_value_regnum.
7553 (m68k_svr4_init_abi): New prototype.
7554 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
7555 different calling conventions.
7556 (m68k_extract_return_value): Remove code dealing with single-field
7557 structs.
7558 (m68k_store_return_value): Remove code dealing with single-field
7559 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
7560 (m68k_extract_struct_value_address): Remove function.
7561 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
7562 (m68k_reg_struct_return_p, m68k_return_value)
7563 (m68k_svr4_return_value): New functions.
7564 (m68k_use_struct_convention): Remove function.
7565 (m68k_push_dummy_call): Use new struct_value_regnum member of
7566 `struct gdbarch_tdep' instead of hardcoded register number to
7567 store STRUCT_ADDR.
7568 (m68k_svr4_init_abi): New function.
7569 (m68k_gdbarch_init): Don't set extract_return_value,
7570 store_return_values, deprecated_extract_struct_value_address and
7571 use_struct_convention. Set return_value instead. Initialize new
7572 struct_value_regnum member of `struct gdbarch_tdep'.
7573 * m68klinux-tdep.c: Update copyright year.
7574 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
7575 (m68k_linux_extract_struct_value_address): Remove function.
7576 (m68k_linux_init_abi): Don't set extract_return_value,
7577 store_return_values, deprecated_extract_struct_value_address and
7578 use_struct_convention. Call m68k_svr4_init_abi but override the
7579 new struct_value_regnum member of `struct gdbarch_tdep'.
7580 * Makefile.in (m68k-tdep.o): Update dependencies.
7581
aaa75496
JB
75822004-05-03 J. Brobecker <brobecker@gnat.com>
7583
7584 * dwarf2read.c (line_header): Add new included_p field in
7585 field file_names.
7586 (partial_die_info): New field has_stmt_list. New field line_offset.
7587 (dwarf2_create_include_psymtab): New function.
7588 (dwarf2_build_include_psymtabs): New function.
7589 (add_file_name): Add forward declaration. Initialize new field.
7590 (dwarf_decode_lines): Add new parameter. Enhance this procedure
7591 to be able to determine the list of files included by the
7592 given unit, and build their associated psymtabs.
7593 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
7594 files as well.
7595 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
7596 (read_file_scope): Update call to dwarf_decode_lines.
7597 (read_partial_die): Handle DW_AT_stmt_list attributes.
7598
c848556f
MC
75992004-05-02 Michael Chastain <mec.gnu@mindspring.com>
7600
7601 Unfix PR gdb/1626.
7602 * configure.in: Revert special case for osf5.*.
7603 * configure: Regenerate.
7604
eb4556d7
JB
76052004-05-02 Jim Blandy <jimb@redhat.com>
7606
7607 Move the symbol-file-from-memory functions into their own file.
7608 * symfile-mem.c, symfile-mem.h: New files.
7609 * symfile.c (symbol_file_add_from_bfd): New function.
7610 (symbol_file_add): Call symbol_file_add_from_bfd.
7611 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
7612 Moved to symfile-mem.c.
7613 (_initialize_symfile): Move definition of
7614 add-symbol-file-from-memory command to symfile-mem.c.
7615 * symfile.h (symbol_file_add_from_bfd): New declaration.
7616 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
7617 * config/powerpc/linux.mt (TDEPFILES): Same.
7618 * Makefile.in (SFILES): Add symfile-mem.c.
7619 (symfile_mem_h): New variable.
7620 (HFILES_NO_SRCDIR): Add symfile-mem.h.
7621 (symfile-mem.o): New rule.
7622
80bb239e
AC
76232004-05-01 Andrew Cagney <cagney@redhat.com>
7624
7789d0fa
AC
7625 * breakpoint.c (insert_bp_location): Use get_frame_id, and
7626 frame_find_by_id instead of frame_relative_level.
7627 (do_enable_breakpoint): Ditto.
7628 * thread.c: Update copyright.
7629 (info_threads_command): Ditto, simplify.
7630
80bb239e
AC
7631 * frame.c (deprecated_generic_get_saved_register): Delete
7632 function, moved to "xstormy16-tdep.c".
7633 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
7634 deprecated_generic_get_saved_register from "frame.c".
7635 (xstormy16_frame_saved_register): Call
7636 xstormy16_get_saved_register.
7637 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
7638 static.
7639 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
7640 * frame.h (deprecated_generic_get_saved_register): Delete.
7641
b2a871dd
MC
76422004-05-01 Michael Chastain <mec.gnu@mindspring.com>
7643
7644 * dwarfread.c: Update documentation on the state of dwarf-1.
7645
0e100dab
AC
76462004-05-01 Andrew Cagney <cagney@redhat.com>
7647
acd8056e
AC
7648 * stack.c (select_frame_command): Delete call to
7649 frame_relative_level.
7650 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
7651 Delete #if0 code.
7652 (frame_info): Do not print FRAMELESS.
7653 (print_block_frame_labels): Replace DEPRECATED_STREQ.
7654 (catch_info): Delete #if0 code.
7655
0e100dab
AC
7656 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
7657 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
7658 of frame_relative_level.
7659 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
7660 to SENTINEL_FRAME.
7661 * frame.h (enum frame_type): Add SENTINEL_FRAME.
7662 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
7663 frame_relative_level.
7664
55699d59
AC
7665 * frame.h (deprecated_set_frame_type): Delete declaration.
7666 * frame.c (deprecated_set_frame_type): Delete function, update
7667 comments.
7668
fcf70625
AC
7669 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
7670 * gdbarch.h, gdbarch.c: Re-generate.
7671 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
7672 (shnbsd_pc_in_sigtramp): Delete.
7673 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
7674 pc_in_sigtramp.
7675 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
7676 pc_in_sigtramp.
7677 * frame.h: Update comments.
7678 * ppc-linux-tdep.c: Update comments.
7679 * breakpoint.c (bpstat_what): Update comments.
7680
ac5eccb7
AC
7681 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
7682 m68klinux-tdep.o's dependencies, were previously added to
7683 m68klinux-nat.o.
7684
f2524b93
AC
7685 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
7686 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
7687 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
7688 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
7689 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
7690
17e20bce
AC
7691 * Makefile.in (m68klinux-nat.o): Update dependencies.
7692 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
7693 (m68k_linux_sigtramp_frame_cache)
7694 (m68k_linux_sigtramp_frame_this_id)
7695 (m68k_linux_sigtramp_frame_prev_register)
7696 (m68k_linux_sigtramp_frame_unwind)
7697 (m68k_linux_sigtramp_frame_sniffer)
7698 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
7699 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
7700 names, use trad-frame.h.
7701 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
7702 (struct m68k_sigtramp_info): Delete.
7703 * m68k-tdep.c (m68k_sigtramp_frame_cache)
7704 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
7705 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
7706 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
7707 "m68klinux-tdep.c".
7708
c8864fa2
AC
7709 * infrun.c (check_sigtramp2): Delete check for
7710 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
7711
511dd2cd
MK
77122004-05-01 Mark Kettenis <kettenis@gnu.org>
7713
7714 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
7715
8c6b0e06
AC
77162004-05-01 Andrew Cagney <cagney@redhat.com>
7717
9df0bb3f
AC
7718 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
7719 (frv_linux_sigtramp_frame_cache)
7720 (frv_linux_sigtramp_frame_this_id)
7721 (frv_linux_sigtramp_frame_prev_register)
7722 (frv_linux_sigtramp_frame_unwind)
7723 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
7724 include "linux" in function and variable names, directly call
7725 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
7726 the latest trad-frame code.
7727 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
7728 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
7729 * Makefile.in (frv-linux-tdep.o): Update dependencies.
7730 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
7731 * frv-tdep.c (frv_sigtramp_frame_cache)
7732 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
7733 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
7734 frv-linux-tdep.c.
7735 (frv_gdbarch_init): Do not append a sigtramp sniffer.
7736 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
7737 (frv_set_sigcontext_reg_addr): Delete function.
7738
8c6b0e06
AC
7739 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
7740 (DEPRECATED_SIGTRAMP_END): Delete.
7741 * gdbarch.h, gdbarch.c: Re-generate.
7742 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
7743 * config/vax/tm-vaxbsd.h: Update copyright.
7744 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
7745 (DEPRECATED_IN_SIGTRAMP): Define.
7746 * config/m68k/tm-nbsd.h: Update copyright.
7747 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
7748 (DEPRECATED_IN_SIGTRAMP): Define.
7749
50ea7769
MK
77502004-05-01 Mark Kettenis <kettenis@gnu.org>
7751
03ac2a74
MK
7752 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
7753 encondings. Fixes PR gdb/1628.
7754
50ea7769
MK
7755 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
7756 DW_CFA_restore state without a matching DW_CFA_remember_state
7757 instead of aborting. Fixes PR backtrace/1589.
7758
9a5d7be1
JB
77592004-04-30 Joel Brobecker <brobecker@gnat.com>
7760
7761 * MAINTAINERS: Add self as AIX maintainer.
7762 Update my e-mail address in write-after-approval section.
7763
2593d1cd
AC
77642004-04-30 Andrew Cagney <cagney@redhat.com>
7765
ce12bbf9
AC
7766 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
7767 (legacy_get_prev_frame): Ditto.
7768
36710c63
AC
7769 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
7770 (mips_gdbarch_init): Do not set pc_in_sigtramp.
7771 * mipsread.c (sigtramp_address): Delete extern variable.
7772 (mipscoff_new_init): Delete reference.
7773 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
7774 (fixup_sigtramp): Delete function.
7775 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
7776 (fixup_sigtramp): Delete declarations.
7777
2593d1cd
AC
7778 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
7779 deprecated_pc_in_sigtramp.
7780 (ppcnbsd_pc_in_sigtramp): Delete function.
7781
2a25f91c
MK
77822004-05-01 Mark Kettenis <kettenis@gnu.org>
7783
7784 * config/m68k/nm-nbsd.h: Tweak comments.
7785 * config/m68k/nm-nbsdaout.h: Likewise.
7786
0b281939
AC
77872004-04-30 Andrew Cagney <cagney@redhat.com>
7788
7789 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
7790 legacy_pc_in_sigtramp.
7791 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
7792
8f2d3ea0
MK
77932004-05-01 Mark Kettenis <kettenis@gnu.org>
7794
7795 Add OpenBSD/m68k support.
7796 * NEWS (New native configurations): Mention OpenBSD/m68k.
7797 * m68kbsd-tdep.c: New file.
7798 * m68kbsd-nat.c: New file.
7799 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
7800 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
7801 * configure.host: Add m68k-*-openbsd.
7802 * configure.tgt: Add m68k-*-openbsd.
7803 * config/m68k/tm-obsd.h: New file.
7804 * config/m68k/obsd.mt: New file.
7805 * config/m68k/obsd.mh: New file.
7806 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
7807 m68kbsd-tdep.c.
7808
c40f49a4
AC
78092004-04-30 Andrew Cagney <cagney@redhat.com>
7810
7811 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
7812 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
7813
e81554cd
MK
78142004-04-30 Mark Kettenis <kettenis@gnu.org>
7815
7816 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
7817 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
7818
d4dc1a91
BF
78192004-04-30 Brian Ford <ford@vss.fsi.com>
7820
7821 Revert 2004-04-16 change.
7822 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
7823 (i386_coff_init_abi): Remove.
7824 * i386-tdep.h (i386_coff_init_abi): Remove.
7825 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
7826
2f72f850
AC
78272004-04-30 Andrew Cagney <cagney@redhat.com>
7828
e492f9d6
AC
7829 * blockframe.c (find_pc_partial_function): Delete use of
7830 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
7831 DEPRECATED_SIGTRAMP_END.
7832
7b7adad0
AC
7833 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
7834 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
7835 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
7836 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
7837 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
7838
2f72f850
AC
7839 * defs.h (deprecated_inside_entry_file): Delete declaration.
7840 * blockframe.c (deprecated_inside_entry_file): Delete function.
7841 (legacy_frame_chain_valid): Delete call.
7842 * sh64-tdep.c (sh64_frame_chain): Delete call.
7843 * objfiles.h: Update comments.
7844 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
7845 call.
7846 * frame.c (get_prev_frame): Delete call, update comments.
7847
283f90a7
BF
78482004-04-30 Brian Ford <ford@vss.fsi.com>
7849
7850 * MAINTAINERS (Write After Approval): Add myself.
7851
8ee56bcf
AC
78522004-04-30 Andrew Cagney <cagney@redhat.com>
7853
7854 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
7855 * gdbarch.h, gdbarch.c: Re-generate.
7856 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
7857 code.
7858
ee27e1b6
AC
78592004-04-30 Andrew Cagney <cagney@redhat.com>
7860
7861 * gdb-events.sh (selected_thread_changed)
7862 (selected_frame_level_changed, target_changed): Delete.
7863 * gdb-events.h, gdb-events.c: Re-generate.
7864 * valops.c (value_assign): Update.
7865 * stack.c (select_frame_command, up_silently_base)
7866 (down_silently_base): Update.
7867
d5ac5a39
AC
78682004-04-29 Andrew Cagney <cagney@redhat.com>
7869
7870 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
7871 registers correctly.
7872 (print_gp_register_row, mips32_heuristic_proc_desc)
7873 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
7874 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
7875 references to mips_isa_regsize.
7876
ceae6e75
AC
78772004-04-29 Andrew Cagney <cagney@redhat.com>
7878
7879 * mips-tdep.c (struct gdbarch_tdep): Delete
7880 mips_fp_register_double.
7881 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
7882 mips_abi_regsize.
7883 (mips_gdbarch_init): Do not set mips_fp_register_double.
7884 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
7885
a587af0b
AC
78862004-04-29 Joel Brobecker <brobecker@gnat.com>
7887
7888 Committed by Andrew Cagney.
7889 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
7890 function calls.
7891
13326b4e
AC
78922004-04-29 Andrew Cagney <cagney@redhat.com>
7893
7894 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
7895 gdbarch, use mips_abi, update callers.
7896 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
7897 mips_abi_regsize, update callers.
7898 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
7899 mips_default_abi_regsize.
7900 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
7901 mips_default_abi_regsize.
7902
711cc5cd
AC
79032004-04-29 Andrew Cagney <cagney@redhat.com>
7904
1b13c4f6
AC
7905 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
7906 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
7907 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
7908 mips_default_abi_regsize.
7909 (mips_isa_regsize): Rename mips_regisze.
7910 * mipsnbsd-tdep.c: Update.
7911 * mips-linux-tdep.c: Update.
7912 * irix5-nat.c: Update.
7913 * mips-tdep.h (mips_isa_regsize): Update.
7914
711cc5cd
AC
7915 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
7916 Delete all disabled code.
7917 * gdb-events.h, gdb-events.c: Re-generate.
7918
e63bbc88
MK
79192004-04-19 Jerome Guitton <guitton@gnat.com>
7920 Mark Kettenis <kettenis@gnu.org>
7921
7922 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
7923 the function begins with a branch instruction.
7924
fd35795f
MK
79252004-04-29 Mark Kettenis <kettenis@gnu.org>
7926
7927 * i386-tdep.c: Fix spelling mistakes.
7928
c960c18f
AC
79292004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7930 Andrew Cagney <cagney@redhat.com>
7931
7932 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
7933 <sys/proc.h>.
7934 * acconfig.h: Provide default _KMEMUSER value.
7935 * config.in, configure: Re-generate.
7936 * NEWS: Mention fix.
7937
50306a9d
RC
79382004-04-24 Randolph Chung <tausq@debian.org>
7939
7940 * configure.host (hppa*-*-linux*): New target.
7941 * configure.tgt (hppa*-*-linux*): Likewise.
7942 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
7943 gdbarch_init_osabi() call earlier so that osabi-specific frame
7944 unwinders can be registered first.
7945 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
7946 hppa-linux-nat.c.
7947 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
7948 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
7949 * config/pa/linux.mh: New file.
7950 * config/pa/linux.mt: New file.
7951 * config/pa/nm-linux.h: New file.
7952 * config/pa/xm-linux.h: New file.
7953 * hppa-linux-nat.c: New file.
7954 * hppa-linux-tdep.c: New file.
7955
2a6228ef
RC
79562004-04-28 Randolph Chung <tausq@debian.org>
7957
7958 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
7959 return values.
7960 (hppa32_push_dummy_call): Fix small struct and floating point argument
7961 passing, and make sure the stack frame is properly aligned.
7962
82c10df6
AC
79632004-04-28 Andrew Cagney <cagney@redhat.com>
7964
d762c46a
AC
7965 * stack.c (print_stack_frame): Fix description.
7966
82c10df6
AC
7967 * NEWS: Mention gdb/gdbserver/configure execute permission
7968 changed. PR server/519.
7969
0faf0076
AC
79702004-04-28 Andrew Cagney <cagney@redhat.com>
7971
7972 * stack.c (print_stack_frame_stub): Delete declaration.
7973 (struct print_stack_frame_args, print_stack_frame)
7974 (print_frame_info, print_frame): Replace "source" with print what.
7975 Replace "print" with "print_level". Replace "args" with
7976 "print_args".
7977 * frame.h (show_and_print_stack_frame, print_stack_frame)
7978 (print_frame_info): Update declarations.
7979 * stack.c (select_and_print_frame, frame_command)
7980 (current_frame_command, up_command, down_command): Update calls -
7981 use get_selected_frame, pass "enum print_what" for source, do not
7982 call frame_relative_level.
7983 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
7984 * remote-rdp.c (remote_rdp_open): Ditto.
7985 * remote-mips.c (common_open): Ditto.
7986 * remote-e7000.c (e7000_start_remote): Ditto.
7987 * ocd.c (ocd_start_remote): Ditto.
7988 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
7989 * infrun.c (normal_stop): Ditto.
7990 * inflow.c (kill_command): Ditto.
7991 * infcmd.c (finish_command): Ditto.
7992 * corelow.c (core_open): Ditto.
7993 * tracepoint.c (finish_tfind_command): Ditto.
7994 * thread.c (info_threads_command, info_threads_command)
7995 (restore_current_thread, do_captured_thread_select): Ditto.
7996 * ada-tasks.c (task_command): Ditto.
7997
f4c5303c
OF
79982004-04-26 Orjan Friberg <orjanf@axis.com>
7999
8000 * frame.c: Include "observer.h".
8001 (frame_observer_target_changed): New function.
8002 (_initialize_frame): Attach target_changed observer.
8003 * regcache.c: Include "observer.h".
8004 (regcache_observer_target_changed): New function.
8005 (_initialize_regcache): Attach target_changed observer.
8006 * valops.c: Include "observer.h".
8007 (value_assign): Notify target_changed event when modifying register.
8008 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
8009
7270d8f2
OF
80102004-04-26 Orjan Friberg <orjanf@axis.com>
8011
8012 From Paul Koning <pkoning@equallogic.com>:
8013 * breakpoint.c (free_valchain): New function.
8014 (insert_bp_location, delete_breakpoint): Use free_valchain.
8015 (remove_breakpoint): Do not remove the valchain.
8016 (bpstat_stop_status): If not stopped by watchpoint, skip
8017 watchpoints when generating stop status list.
8018 * infrun.c (handle_inferior_event): Make
8019 stepped_after_stopped_by_watchpoint a global variable.
8020 * remote.c (remote_stopped_data_address): Return watch data
8021 address rather than zero if stepped_after_stopped_by_watchpoint is
8022 set.
8023
02d62932
MC
80242004-04-25 Michael Chastain <mec.gnu@mindspring.com>
8025
8026 Fix PR gdb/1626.
8027 * configure.in: Check for curses after termcap.
8028 On osf5.*, do not check for ncurses.
8029 * configure: Regenerate.
8030
3e9a183c
MK
80312004-04-25 Mark Kettenis <kettenis@gnu.org>
8032
c79ac407
MK
8033 * ppcobsd-nat.c: Include "ppc-tdep.h".
8034 * Makefile.in (ppcobsd-nat.o): Update dependencies.
8035
3e9a183c
MK
8036 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
8037 Fixes PR tdep/1623 and PR tdep/1624.
8038
38cc9c28
MC
80392004-04-24 Michael Chastain <mec.gnu@mindspring.com>
8040
8041 * xmodem.h, xmodem.c: Remove files.
8042 * Makefile.in: Remove references to xmodem.h, xmodem.c.
8043
7f07c5b6
RC
80442004-04-23 Randolph Chung <tausq@debian.org>
8045
8046 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
8047 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
8048 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
8049 for handling stackless frames.
8050 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
8051
9f7194c3
RC
80522004-04-23 Randolph Chung <tausq@debian.org>
8053
8054 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
8055 starts at a pc before the frame is created.
8056
dcff6009
JB
80572004-04-23 Joel Brobecker <brobecker@gnat.com>
8058
8059 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
8060
40711ff1 80612004-04-23 Jerome Guitton <guitton@gnat.com>
65951cd9
JG
8062
8063 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
8064 use convert_typed_floating to get the appropriate format.
8065
abc485a1
RC
80662004-04-22 Randolph Chung <tausq@debian.org>
8067
8068 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
8069 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
8070 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
8071 (hppa_sign_extend): Add prototype.
8072 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
8073 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
8074 (sign_extend): Rename with hppa_ prefix and make non-static. Other
8075 hppa targets will also use these functions.
8076 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
8077 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
8078 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
8079 (hppa_gdbarch_init): Remove gdbarch setting of
8080 skip_trampoline_code, in_solib_call_trampoline and
8081 in_solib_return_trampoline.
8082 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
8083 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
8084 hppa_in_solib_call_trampoline.
8085 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
8086 Moved from hppa-tdep.c.
8087 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
8088 in_solib_call_trampoline and in_solib_return_trampoline.
8089
369aa520
RC
80902004-04-22 Randolph Chung <tausq@debian.org>
8091
8092 * hppa-tdep.c (hppa_debug): New variable.
8093 (find_unwind_entry, hppa_frame_cache): Add debug output.
8094 (_initialize_hppa_tdep): Add command to set debug flag.
8095
476be15e
AC
80962004-04-22 Andrew Cagney <cagney@redhat.com>
8097
8098 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
8099 "trad-frame.h".
8100 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
8101 signal trampoline unwinder.
8102 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
8103
d195bc9f
MK
81042004-04-22 Mark Kettenis <kettenis@gnu.org>
8105
8106 Add OpenBSD/powerpc support.
8107 * NEWS (New native configurations): Mention OpenBSD/powerpc.
8108 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
8109 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
8110 (ppc_collect_fpregset): New prototypes.
8111 * ppcobsd-nat.c: New file.
8112 * ppcobsd-tdep.c: New file.
8113 * ppcobsd-tdep.h: New file.
8114 * rs6000-tdep.c: Include "regset.h".
8115 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
8116 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
8117 New functions.
8118 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
8119 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
8120 (rs6000-tdep.o): Update dependencies.
8121 * configure.host: Add powerpc-*-openbsd.
8122 * configure.tgt: Add powerpc-*-openbsd.
8123 * config/powerpc/obsd.mh: New file.
8124 * config/powerpc/nm-obsd.h: New file.
8125 * config/powerpc/obsd.mt: New file.
8126
6f14cc33
AC
81272004-04-22 Andrew Cagney <cagney@redhat.com>
8128
fcf29e5f
AC
8129 * frame.h (show_frame_info): Delete declaration.
8130
6f14cc33
AC
8131 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
8132 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
8133 * m32r-tdep.c (m32r_frame_this_id): Ditto.
8134 * frv-tdep.c (frv_frame_this_id): Ditto.
8135 * avr-tdep.c (avr_frame_this_id): Ditto.
8136
e5786a5c
EZ
81372004-04-22 Elena Zannoni <ezannoni@redhat.com>
8138
8139 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
8140
26e75e5c
JB
81412004-04-22 Jim Blandy <jimb@redhat.com>
8142
8143 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
8144 register number zero.
8145
d8d65dd3
MS
81462004-04-21 Michael Snyder <msnyder@redhat.com>
8147
8148 * mips-tdep.c (heuristic_proc_start):
8149 Warning() already prefixes "Warning: ".
8150
9a4105ab
AC
81512004-04-21 Andrew Cagney <cagney@redhat.com>
8152
8153 * annotate.h (deprecated_annotate_starting_hook)
8154 (deprecated_annotate_stopped_hook)
8155 (deprecated_annotate_exited_hook)
8156 (deprecated_annotate_signal_hook)
8157 (deprecated_annotate_signalled_hook): Deprecate.
8158 * tracepoint.h (deprecated_create_tracepoint_hook)
8159 (deprecated_delete_tracepoint_hook)
8160 (deprecated_modify_tracepoint_hook)
8161 (deprecated_trace_find_hook)
8162 (deprecated_trace_start_stop_hook): Deprecate.
8163 * target.h (deprecated_target_new_objfile_hook): Deprecate.
8164 * remote.h (deprecated_target_resume_hook)
8165 (deprecated_target_wait_loop_hook): Deprecate.
8166 * gdbcore.h (deprecated_exec_file_display_hook)
8167 (deprecated_file_changed_hook): Deprecate.
8168 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
8169 * defs.h (deprecated_modify_breakpoint_hook)
8170 (deprecated_command_loop_hook, deprecated_show_load_progress)
8171 (deprecated_print_frame_info_listing_hook)
8172 (deprecated_query_hook, deprecated_warning_hook)
8173 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
8174 (deprecated_delete_breakpoint_hook)
8175 (deprecated_interactive_hook, deprecated_registers_changed_hook)
8176 (deprecated_readline_begin_hook, deprecated_readline_hook)
8177 (deprecated_readline_end_hook, deprecated_register_changed_hook)
8178 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
8179 (deprecated_context_hook, deprecated_target_wait_hook)
8180 (deprecated_attach_hook, deprecated_detach_hook)
8181 (deprecated_call_command_hook, deprecated_set_hook)
8182 (deprecated_error_hook, deprecated_error_begin_hook)
8183 (deprecated_ui_load_progress_hook): Deprecate.
8184 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
8185 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
8186 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
8187 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
8188 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
8189 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
8190 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
8191 * annotate.c, aix-thread.c: Update.
8192
62cf13cc
AC
81932004-04-21 Andrew Cagney <cagney@redhat.com>
8194
b2e31a62
AC
8195 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
8196 * vaxnbsd-tdep.c: Include "gdb_string.h".
8197
62cf13cc
AC
8198 * symfile.c (symbol_file_add_from_memory): #if 0 function.
8199 (add_symbol_file_from_memory_command): #if 0 function body, call
8200 error instead.
8201
00e32a35
AC
82022004-04-21 Andrew Cagney <cagney@redhat.com>
8203
8204 * gdbcore.h: Update copyright.
8205 (deprecated_add_core_fns): Rename add_core_fns.
8206 * win32-nat.c (_initialize_core_win32): Update.
8207 * sun3-nat.c (_initialize_core_sun3): Update.
8208 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
8209 * rs6000-nat.c (_initialize_core_rs6000): Update.
8210 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
8211 * nto-tdep.c (_initialize_nto_tdep): Update.
8212 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
8213 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
8214 * mips-nat.c (_initialize_core_mips): Update.
8215 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8216 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
8217 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
8218 * lynx-nat.c (_initialize_core_lynx): Update.
8219 * irix5-nat.c (_initialize_core_irix5): Update.
8220 * i386-interix-nat.c (_initialize_core_interix): Update.
8221 * cris-tdep.c (_initialize_cris_tdep): Update.
8222 * corelow.c (deprecated_add_core_fns): Update.
8223 * core-regset.c (_initialize_core_regset): Update.
8224 * core-aout.c (_initialize_core_aout): Update.
8225 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
8226 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
8227 * alpha-nat.c (_initialize_core_alpha): Update.
8228
13c7b1ca
JB
82292004-04-21 Jim Blandy <jimb@redhat.com>
8230
8231 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
8232
7b5a2f43
DJ
82332004-04-19 Daniel Jacobowitz <drow@mvista.com>
8234
8235 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
8236 Delete.
8237 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
8238 (read_attribute_value): Update calls to dwarf_alloc_block.
8239 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
8240 dwarf2_tmp_obstack.
8241 (psymtab_to_symtab_1): Likewise. Clean up using
8242 free_stack_comp_unit.
8243 (add_to_cu_func_list): Use the comp_unit_obstack.
8244
05cf31d1
JB
82452004-04-19 Joel Brobecker <brobecker@gnat.com>
8246
8247 * dwarf2read.c (dwarf2_flag_true_p): New function.
8248 (die_is_declaration): Use the function above. Add some comments.
8249
adf93a2f
MK
82502004-04-19 Mark Kettenis <kettenis@gnu.org>
8251
8252 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
8253 architecture when registering sparcnbsd_core_osabi_sniffer.
8254 Adjust comment.
8255
748894bf
MK
82562004-04-18 Mark Kettenis <kettenis@gnu.org>
8257
f622ad42
MK
8258 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
8259 return value.
8260
c4fc7f1b
MK
8261 Based on a patch from Brian Ford <ford@vss.fsi.com>:
8262 * i386-tdep.c: Correct register numbering scheme comments
8263 throughout.
8264 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
8265 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
8266 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
8267 (i386_gdb_arch_init): Likewise.
8268
b4ead1bd
MK
8269 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
8270 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
8271 ppcnbsd-tdep.o.
8272
748894bf
MK
8273 * m68k-tdep.h: Tweak comments.
8274 * m68k-tdep.c: Tweak comment.
8275
fdd72f95
RC
82762004-04-17 Randolph Chung <tausq@debian.org>
8277
8278 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
8279 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
8280 (hppa_hpux_som_init_abi): Set is_elf to 0.
8281 (hppa_hpux_elf_init_abi): Set is_elf to 1.
8282 * hppa-tdep.c (low_text_segment_address): Remove global.
8283 (record_text_segment_lowaddr): Pass in low address as parameter. Use
8284 section offset to calculate segment address.
8285 (internalize_unwinds): Define low_text_segment_address as local and
8286 pass to record_text_segment_lowaddr for ELF targets.
8287 (hppa_gdbarch_init): Zero fill tdep structure.
8288 (hppa_dump_tdep): Print tdep structure.
8289 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
8290
0f8d9d59
RC
82912004-04-17 Randolph Chung <tausq@debian.org>
8292
8293 * hppa-tdep.c (hppa_pseudo_register_read): Define.
8294 (hppa_gdbarch_init): Set pseudo_register_read.
8295 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
8296 * regcache.c (supply_register): Remove check for
8297 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
8298
7c46b9fb
RC
82992004-04-17 Randolph Chung <tausq@debian.org>
8300
8301 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
8302 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
8303 (hpread_adjust_stack_address): Move to hpread.c.
8304 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8305 obj_private_struct): Move from tm-hppa.h.
8306 * hpread.c (hppa-tdep.h): Include.
8307 (hpread_adjust_stack_address): Move from hppa-tdep.c.
8308 (hpread_read_function_type, hpread_read_doc_function_type)
8309 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
8310 directly.
8311 * pa64solib.c (hppa-tdep.h): Include.
8312 * somsolib.c (hppa-tdep.h): Include.
8313 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
8314 inferior_status): Remove unused forward declarations.
8315 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
8316 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8317 obj_private_struct): Move to hppa-tdep.h.
8318 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
8319
8d153463
RC
83202004-04-17 Randolph Chung <tausq@debian.org>
8321
8322 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
8323 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
8324 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
8325 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
8326 Remove forward declaration and make static.
8327 (hppa_reg_struct_has_addr): Remove.
8328
350c2e5b
JB
83292004-04-16 Joel Brobecker <brobecker@gnat.com>
8330
8331 * observer.sh: Move comments in sed command to first column.
8332
bbde78fa
JM
83332004-04-16 Jason Molenda (jmolenda@apple.com)
8334
8335 * frame.c: Minor typeo corrections in comments.
8336
e0270fd9
JB
83372004-04-16 Joel Brobecker <brobecker@gnat.com>
8338
8339 * observer.c (observer_test_first_notification_function): Update
8340 function profile.
8341 (observer_test_second_notification_function): Likewise.
8342 (observer_test_third_notification_function): Likewise.
8343
3d049254
MK
83442004-04-16 Mark Kettenis <kettenis@gnu.org>
8345
8346 From Brian Ford <ford@vss.fsi.com>:
8347 * i386-tdep.c (i386_coff_init_abi): New function.
8348 * i386-tdep.h (i386_coff_init_abi): New prototype.
8349 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
8350 register number translation functions for DWARF and DWARF 2.
8351
7867684d
JB
83522004-04-16 Joel Brobecker <brobecker@gnat.com>
8353
8354 * dwarf2read.c: Back out my previous change, it was incorrect.
8355
72bf9492
DJ
83562004-04-16 Daniel Jacobowitz <drow@mvista.com>
8357
8358 * dwarf2read.c: Include "hashtab.h".
8359 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
8360 has_namespace_info.
8361 (struct partial_die_info): Add comments. Use bitfields to reduce
8362 memory footprint. Add scope, scope_set, has_specification,
8363 spec_offset, die_parent, die_child, and die_sibling.
8364 (peek_die_abbrev): Add prototype.
8365 (partial_read_comp_unit_head): New function, broken out from
8366 dwarf2_build_psymtabs_hard.
8367 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
8368 Use partial_read_comp_unit_head. Initialize the CU and
8369 comp_unit_obstack. Update calls to read_partial_die and
8370 scan_partial_symbols. Use free_stack_comp_unit and
8371 load_partial_dies.
8372 (scan_partial_symbols): Change PDI to a pointer. Use the child and
8373 sibling pointers to walk partial DIEs. Call fixup_partial_die.
8374 Update calls to helper functions. Remove NAMESPACE argument.
8375 Update comments.
8376 (partial_die_parent_scope, partial_die_full_name): New functions.
8377 (add_partial_symbol): Remove namespace argument. Update call to
8378 pdi_needs_namespace. Use partial_die_full_name. Handle
8379 DW_TAG_namespace. Check has_namespace_info flag.
8380 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
8381 tag. Handle namespaces.
8382 (add_partial_namespace, add_partial_enumeration): Simplify.
8383 (guess_structure_name): New function, derived from
8384 add_partial_structure.
8385 (add_partial_structure): Remove.
8386 (determine_class_name): Update comment.
8387 (dwarf2_read_abbrevs): Set has_namespace_info flag.
8388 (is_type_tag_for_partial, load_partial_dies): New functions.
8389 (read_partial_die): Pass abbrev and abbrev_len as arguments.
8390 Record specifications instead of following them immediately.
8391 (find_partial_die_in_comp_unit, find_partial_die)
8392 (fixup_partial_die, free_stack_comp_unit)
8393 (hashtab_obstack_allocate, dummy_obstack_deallocate)
8394 (partial_die_hash, partial_die_eq): New functions.
8395 * Makefile.in (hashtab_h): Define.
8396 (dwarf2read.o): Update dependencies.
8397 (observer_inc, observer_h): Move to the correct section.
8398
fdc860a3
JB
83992004-04-15 Joel Brobecker <brobecker@gnat.com>
8400
8401 * dwarf2read.c (dwarf2_attribute_true_p): New function.
8402 (die_is_declaration): Use the function above. Add comment.
8403
dc718098
JB
84042004-04-15 Joel Brobecker <brobecker@gnat.com>
8405
8406 * dwarf2read.c (read_structure_scope): Identify stub types
8407 using die_is_declaration() only.
8408
8718a420
RM
84092004-04-15 Roland McGrath <roland@redhat.com>
8410
8411 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
8412 argument instead of NAME.
8413 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
8414 in call to symbol_file_add_with_addrs_or_offsets.
8415 (build_addr_info): New function, helper for ...
8416 (symbol_file_add_from_memory): New function.
8417 (add_symbol_file_from_memory_command): New function using that.
8418 (_initialize_symfile): Register it for add-symbol-file-from-memory.
8419 (pre_add_symbol_hook): Add const to argument type.
8420 * symfile.h (symbol_file_add_from_memory): Declare it.
8421
8b910bab
MK
84222004-04-15 Mark Kettenis <kettenis@gnu.org>
8423
9f076e7a
MK
8424 * NEWS (New native configurations): Mention OpenBSD/vax.
8425 * configure.host: Add vax-*-openbsd*.
8426 * config/vax/obsd.mh: New file.
8427 * config/vax/nm-obsd.h: New file.
8428
8b910bab
MK
8429 * vax-tdep.c: Include "regset.h".
8430 (vax_supply_gregset): New function.
8431 (vax_gregset): New variable.
8432 (vax_regset_from_core_section): New function.
8433 (vax_gdbarch_init): Set regset_from_core_section.
8434 * Makefile.in (vax-tdep.o): Update dependencies.
8435
7a464420
AC
84362004-04-15 Andrew Cagney <cagney@redhat.com>
8437
8438 * observer.c (normal_stop_subject, observer_notify_normal_stop)
8439 (observer_normal_stop_notification_stub)
8440 (observer_attach_normal_stop, observer_detach_normal_stop):
8441 Delete, replaced by #include "observer.inc".
8442 * infrun.c (normal_stop): Pass "stop_bpstat" to
8443 observer_notify_normal_stop.
8444 * Makefile.in (observer_inc): Define.
8445 (observer.o): Update dependencies.
8446 (observer.h, observer.inc): New rules.
8447 * observer.h: Delete file.
8448 * observer.sh: New file.
8449
e36ad527
MK
84502004-04-15 Mark Kettenis <kettenis@gnu.org>
8451
8452 * vax-tdep.c (vax_frame_cache): Fix typo.
8453
67b441e1
MK
84542004-04-14 Mark Kettenis <kettenis@gnu.org>
8455
6f606e1c
MK
8456 * NEWS (New native configurations): Mention NetBSD/vax.
8457 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
8458 * config/vax/nbsdelf.mh: New file.
8459 * config/vax/nbsdaout.mh: New file.
8460 * config/vax/nm-nbsd.h: New file.
8461 * config/vax/nm-nbsdaout.h: New file.
8462
9c5519a5
MK
8463 * vaxnbsd-tdep.c: New file.
8464 * Makefile.in (vaxnbsd-tdep.o): New dependency.
8465 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
8466 * config/vax/nbsd.mt: New file.
8467 * config/vax/tm-nbsd.h: New file.
8468
4844a614
MK
8469 * Makefile.in (vaxbsd-nat.o): New dependency.
8470
67b441e1
MK
8471 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
8472 * vax-tdep.c (vax_store_arguments): Remove struct_return and
8473 struct_addr arguments. Don't push return value address.
8474 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
8475 arguments to vax_store_arguments. Store return value address in
8476 R1.
8477 (vax_store_struct_return, vax_extract_return_value)
8478 (vax_store_return_value): Remove functions.
8479 (vax_return_value): New function.
8480 (vax_gdbarch_init): Set return value. Don't set
8481 deprecated_store_struct_return, deprecated_extract_struct_return
8482 and deprecated_store_return_value.
8483
6672f2ae
AS
84842004-04-14 Andreas Schwab <schwab@suse.de>
8485
8486 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
8487 value buffer.
8488 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
8489
7346c184
MK
84902004-04-14 Mark Kettenis <kettenis@gnu.org>
8491
8492 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
8493 (vax_unwind_dummy_id): New functions.
8494 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
8495 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
8496 variables.
8497 (vax_fix_call_dummy): Remove function.
8498 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
8499 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
8500 call_dummy_location, deprecated_call_dummy_words,
8501 deprecated_sizeof_call_dummy_words,
8502 deprecated_call_dummy_breakpoint_offset,
8503 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
8504 and deprecated_dummy_write_sp.
8505
58e23df4
DC
85062004-04-13 David Carlton <carlton@kealia.com>
8507
8508 * MAINTAINERS: Move myself to "paper trail" section.
8509
5e6b39ff
MK
85102004-04-12 Mark Kettenis <kettenis@gnu.org>
8511
7def7fef
MK
8512 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
8513 "trad-frame.h".
8514 (vax_frame_init_saved_regs): Remove function.
8515 (vax_sigtramp_saved_pc): Remove function.
8516 (vax_frame_saved_pc): Remove function.
8517 (vax_frame_args_address): Remove function.
8518 (vax_frame_num_args): Rewrite.
8519 (vax_frame_chain): Remove function.
8520 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
8521 VAX_FP_REGNUM.
8522 (vax_pop_frame): Likewise.
8523 (vax_saved_pc_after_call): Remove function.
8524 (struct vax_frame_cache): New structure.
8525 (vax_frame_cache): New function.
8526 (vax_frame_this_id): New function.
8527 (vax_frame_prev_register): New function.
8528 (vax_frame_unwind): New variable.
8529 (vax_frame_sniffer): New function.
8530 (vax_frame_base_address): New function.
8531 (vax_frame_args_address): New function.
8532 (vax_frame_base): New variable.
8533 (vax_unwind_pc): New function.
8534 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
8535 deprecated_fp_regnum, deprecated_saved_pc_after_call,
8536 deprecated_frame_chain, deprecated_frame_saved_pc,
8537 deprecated_frame_args_address and
8538 deprecated_frame_init_saved_regs.
8539 * Makefile.in (vax-tdep.o): Update dependencies.
8540
53284fc1
MK
8541 * vaxbsd-nat.c: New file.
8542
5e6b39ff
MK
8543 * vax-tdep.h: Update copyright year. Adjust comments.
8544 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
8545 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
8546 (vax_regnum): New enum. Replacing...
8547 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
8548 (VAX_PS_REGNUM): ... these removed macros.
8549 * vax-tdep.c (vax_register_name): Remove prototype.
8550 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
8551 (vax_register_byte, vax_register_raw_size,
8552 vax_register_virtual_size, vax_register_virtual_type): Remove
8553 functions.
8554 (vax_register_type): New function.
8555 (vax_breakpoint_from_pc): Reorganize.
8556 (vax_gdbarch_init): Set register_type. Don't set
8557 deprecated_register_size, deprecated_register_bytes,
8558 deprecated_register_byte, deprecated_register_raw_size,
8559 deprecated_max_register_raw_size,
8560 deprecated_register_virtual_size,
8561 deprecated_max_register_virtual_size and
8562 deprecated_register_virtual_type. Add comment on stack direction.
8563
e9c71e9f
MK
85642004-04-11 Mark Kettenis <kettenis@gnu.org>
8565
8566 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
8567 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 8568 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 8569
d46f1176 85702004-04-10 Randolph Chung <tausq@debian.org>
8718a420 8571
d46f1176
RC
8572 * MAINTAINERS (write after approval): Add myself.
8573
a2a84a72
RC
85742004-04-07 Randolph Chung <tausq@debian.org>
8575
8576 * hppa-tdep.c (hppa_inner_than): Remove.
8577 (is_pa_2): Remove unused static variable.
8718a420 8578 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 8579
e85c3284
PH
85802004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
8581
8582 * language.h (language_defn): Add new la_post_parser field.
8583 * parser-defs.h (null_post_parser): New declaration (default for
8584 la_post_parser).
8718a420 8585
e85c3284
PH
8586 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
8587 insert call to that function.
8588 (parse_exp_in_context): New function, including code formerly in
8718a420 8589 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
8590 prefixification.
8591 (parse_expression_in_context): New exported function.
8592 (null_post_parser): New definition.
8593 * expression.h (parse_expression_in_context): Add declaration.
8718a420 8594
e85c3284
PH
8595 * p-lang.c (pascal_language_defn): Add trivial post-parser.
8596 * c-lang.c (c_language_defn): Ditto.
8597 (cplus_language_defn): Ditto.
8598 (asm_language_defn): Ditto.
8599 (minimal_language_defn): Ditto.
8600 * f-lang.c (f_language_defn): Ditto.
8601 * jv-lang.c (java_language_defn): Ditto.
8602 * language.c (unknown_language_defn): Ditto.
8603 (auto_language_defn): Ditto.
8604 (local_language_defn): Ditto.
8605 * m2-lang.c (m2_language_defn): Ditto.
8606 * scm-lang.c (scm_language_defn): Ditto.
8607 * obj-lang.c (objc_language_defn): Ditto.
8718a420 8608
d9f8c85b
MK
86092004-04-10 Mark Kettenis <kettenis@gnu.org>
8610
fa34704a
MK
8611 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
8612 (amd64nbsd_mcontext_addr): New function.
8613 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
8614 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
8615 with amd64nbsd_r_reg_offset, instead of building it on the fly.
8616
403e1656
MK
8617 * corelow.c (core_xfer_partial): Fix coding standards violation.
8618 Add support for TARGET_OBJECT_WCOOKIE.
8619
a57e5a95
MK
8620 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
8621 deprecated_pc_in_sigtramp.
8622 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
8623 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
8624 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
8625 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8626 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
8627 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8628 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
8629
377d9ebd
MK
8630 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
8631 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
8632 Fix typo.
8633
f0ef85a5
MK
8634 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
8635 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
8636 (amd64_collect_fxsave): Likewise.
8637
d9f8c85b
MK
8638 * i386-sol2-tdep.c: Include "gdb_string.h".
8639 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
8640 name.
8641 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
8642
75f501b5
MK
86432004-04-10 Mark Kettenis <kettenis@gnu.org>
8644
8645 * i386-sol2-tdep.c: Include "solib-svr4.h".
8646 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8647 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
8648 * config/i386/tm-i386sol2.h: Include :solib.h".
8649 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
8650 solib-svr4.o and solib-legacy.o.
8651 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
8652 solib-svr4.o.
8653
b31bc724
MK
86542004-04-09 Mark Kettenis <kettenis@gnu.org>
8655
18bbbd9e
MK
8656 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
8657 whether a register is supplied by PTRACE_GETFPREGS.
8658 (store_inferior_registers): Likewise.
8659 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
8660 whether a register is supplied by PT_GETFPREGS.
8661 (store_inferior_registers): Likewise.
8662
3c30bf1b
MK
8663 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
8664 * config/i386/linux64.mt (TDEPFILES): Likewise.
8665
a4194092
MK
8666 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
8667
911bc6ee
MK
8668 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
8669 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
8670 the program counter is in the range specified by `struct
8671 gdbarch_tdep'.
8672 * amd64-linux-tdep.c: Include "symtab.h".
8673 (amd64_linux_pc_in_sigtramp): Remove function.
8674 (amd64_linux_sigtramp_p): New function.
8675 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
8676 deprecated_pc_in_sigtramp.
8677 * amd64nbsd-tdep.c: Include "symtab.h".
8678 (amd64nbsd_sigtramp_p): New function.
8679 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
8680 deprecated_pc_in_sigtramp.
8681 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
8682 few comments.
8683 (amd64obsd_pc_in_sigtramp): Remove function.
8684 (amd64obsd_sigtramp_p): New function.
8685 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
8686 deprecated_pc_in_sigtramp.
8687 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
8688 (i386bsd_pc_ins_sigtramp): Remove prototype.
8689 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
8690 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
8691 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
8692 the program counter is in the range specified by `struct
8693 gdbarch_tdep'.
8694 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
8695 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
8696 (i386_go32_pc_in_sigtramp): Remove function.
8697 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
8698 Initialize TDEP->sigtramp_p.
8699 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
8700 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
8701 deprecated_pc_in_sigtramp.
8702 * i386-linux-tdep.c: Adjust comments.
8703 (i386_linux_pc_in_sigtramp): Remove function.
8704 (i386_linux_sigtramp_p): New function.
8705 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
8706 deprecated_pc_in_sigtramp.
8707 * i386-nto-tdep.c: Update copyright year.
8708 (i386nto_pc_in_sigtramp): Remove function.
8709 (i386nto_sigtramp_p): New function.
8710 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
8711 SP_REGNUM.
8712 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
8713 deprecated_pc_in_sigtramp.
8714 * i386-sol2-tdep.c: Update copyright year.
8715 (i386_sol2_pc_in_sigtramp): Remove function.
8716 (i386_sol2_sigtramp_p): New function.
8717 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
8718 deprecated_pc_in_sigtramp.
8719 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
8720 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
8721 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8722 deprecated_sigtramp_start and deprecated_sigtramp_end.
8723 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
8724 (i386nbsd_pc_in_sigtramp): Remove function.
8725 (i386nbsd_sigtramp_p): New function.
8726 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8727 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
8728 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
8729 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
8730 (i386obsd_pc_in_sigtramp): Remove function.
8731 (i386obsd_sigtramp_p): New function.
8732 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
8733 functions.
8734 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8735 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
8736 TDEP->sigtramp_p.
8737 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
8738 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
8739 dependencies.
8740
e083e6ec
MK
8741 * config/i386/i386aout.mt: Remove file.
8742
bd153b94
MK
8743 * configure.tgt: Remove i[34567]86-*-go32*,
8744 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
8745 and i[34567]86-*-isc*. Set gdb_target to i386 for
8746 i[34567]86-*-netware* and i[34567]86-*-*.
8747 * config/i386/i386.mt: New file.
8748 * config/i386/embed.mt: Remove file.
8749 * config/i386/go32.mt: Remove file.
8750 * config/i386/i386nw.mt: Remove file.
8751 * config/i386/i386v.mt: Remove file.
8752 * config/i386/tm-go32.h: Remove file.
8753
4a1bcc8c
MK
8754 * tui/tui-hooks.c: Include "readline/readline.h" after
8755 "gdb_curses.h" instead of before.
8756 * tui/tui-io.c: Likewise.
8757
f9a79064
MK
8758 * tui/tui.c: Fix typo in comment.
8759
b31bc724
MK
8760 * sparc64-tdep.c (sparc_address_from_register): Remove function.
8761
f83f82bc
AC
87622004-04-08 Andrew Cagney <cagney@redhat.com>
8763
8764 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
8765 (deprecated_exception_support_initialized): Declare.
8718a420 8766 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
8767 (initialize_hp_cxx_exception_support)
8768 (child_enable_exception_callback): Update.
8769 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
8770 (deprecated_exception_support_initialized): Rename
8771 deprecated_exception_catchpoints_are_fragile and
8772 deprecated_exception_support_initialized.
8773 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
8774
8775 * symtab.c (deprecated_hp_som_som_object_present): Rename
8776 hp_som_som_object_present.
8777 * symtab.h (deprecated_hp_som_som_object_present): Declare.
8778 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
8779 Update. Delete extern declaration.
8780 * valops.c (hp_som_som_object_present): Ditto.
8718a420 8781 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
8782 (parse_nested_classes_for_hpacc): Ditto.
8783 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 8784 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
8785 (initialize_hp_cxx_exception_support): Ditto.
8786 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 8787 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 8788 (cp_print_class_method): Ditto.
8718a420 8789 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
8790 (c_type_print_base): Ditto.
8791 * c-exp.y (hp_som_som_object_present): Ditto.
8792
fb2be677
AC
87932004-04-08 Andrew Cagney <cagney@redhat.com>
8794
8795 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
8796 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
8797 (frame_unwind_find_by_frame): Re-implement the unwind code so
8798 that it can both prepend and append sniffers. Replace
8799 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
8800 * tramp-frame.c (tramp_frame_append): Use
8801 frame_unwind_prepend_unwinder.
8802 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
8803 frame_unwind_register_unwinder.
8804 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
8805 tramp_frame_append.
8806 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 8807 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
8808 (mips_linux_init_abi): Update.
8809
67faf007
KB
88102004-04-08 Kevin Buettner <kevinb@redhat.com>
8811
8812 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
8813 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
8814 file support.
8815
8973ff21
KB
88162004-04-07 Kevin Buettner <kevinb@redhat.com>
8817
8818 * ia64-tdep.c (elf.h): Don't include.
8819 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
8820
4a0e2f88
JM
88212004-04-07 Jason Molenda (jmolenda@apple.com)
8822
8823 * frame.h: Typeo corrections in comments.
8824
9872ad24
JB
88252004-04-07 Jim Blandy <jimb@redhat.com>
8826
8827 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
8828 %esp and %ebp
8829
70b216c8
MK
88302004-04-07 Mark Kettenis <kettenis@gnu.org>
8831
11d5789c
MK
8832 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
8833 * config/sparc/linux64.mt (TDEPFILES): Likewise.
8834 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
8835 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
8836 and solib-legacy.o.
8837 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
8838 solib-svr4.o.
8839 * config/sparc/tm-sol2.h: Update copyright year. Include
8840 "solib.h".
8841
70b216c8
MK
8842 * sparc-sol2-tdep.c: Update copyright year. Include
8843 "solib-svr4.h".
8844 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8845 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
8846 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 8847 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
8848 dependencies.
8849
6339dc9e
AC
88502004-04-06 Andrew Cagney <cagney@redhat.com>
8851
8852 * infttrace.c: Include "infttrace.h".
8853 * infttrace.h: Include "target.h".
8854 * Makefile.in (infttrace_h): Update.
8855 (infttrace.o): Update.
8718a420 8856
93449403
AC
88572004-04-06 Andrew Cagney <cagney@redhat.com>
8858
6d518969
AC
8859 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
8860 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
8861 move extern declarations from here ...
8862 * infttrace.h: ... to here.
8863 * Makefile.in (hppah-nat.o): Update dependencies.
8864
85f4f2d8
AC
8865 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
8866 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 8867 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
8868 (hppa_breakpoint_from_pc): Delete.
8869
93449403
AC
8870 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
8871
71456ec6
AC
88722004-04-05 Andrew Cagney <cagney@redhat.com>
8873
8874 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
8875 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
8876 <sys/file.h>.
8718a420 8877
4c02c60c
AC
88782004-04-06 Randolph Chung <tausq@debian.org>
8879
8880 Committed by Andrew Cagney (mechanical change).
8881 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
8882 exception_catchpoints_are_fragile, find_stub_with_shl_get,
8883 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
8884 child_enable_exception_callback, current_ex_event,
8885 null_symtab_and_line, child_get_current_exception_event,
8886 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
8887 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
8888 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
8889 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
8890 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
8891 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
8892 Move hpux-specific definitions ...
8893 * hppa-hpux-tdep.c: ... to here.
8894
3a515653
AC
88952004-04-05 Andrew Cagney <cagney@redhat.com>
8896
8897 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
8898 skip_prologue_using_sal.
8899
c1730d02
AC
89002004-04-05 Andrew Cagney <cagney@redhat.com>
8901
8902 * config/i386/tm-i386.h: Delete file.
8903 * config/i386/tm-vxworks.h: Update copyright, do not include
8904 "tm-i386.h".
8905 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
8906 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
8907 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
8908 * config/i386/ncr3000.mt (TM_FILE): Delete.
8909 * config/i386/interix.mt (TM_FILE): Delete.
8910 * config/i386/i386v.mt (TM_FILE): Delete.
8911 * config/i386/i386nw.mt (TM_FILE): Delete.
8912 * config/i386/i386gnu.mt (TM_FILE): Delete.
8913 * config/i386/i386aout.mt (TM_FILE): Delete.
8914 * config/i386/embed.mt (TM_FILE): Delete.
8915
8b67aa36
KB
89162004-04-05 Kevin Buettner <kevinb@redhat.com>
8917
8918 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
8919 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
8920 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
8921 (accg7_regnum): New constants.
8922 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
8923 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
8924 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
8925 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
8926 for accg registers.
8927 (frv_register_sim_regno): Update spr_map[].
8928
3c7012f5
AC
89292004-04-04 Andrew Cagney <cagney@redhat.com>
8930
8931 * config/mips/xm-riscos.h: Delete.
8932 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
8933 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
8934 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
8935 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
8936 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
8937 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
8938 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
8939 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
8940 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
8941 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
8942 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
8943 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
8944 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
8945 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
8946 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
8947 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
8948 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
8949 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
8950 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
8951 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
8952 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
8953 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
8954 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
8955 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
8956 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
8957 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 8958
3c7012f5
AC
8959 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
8960 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
8961 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
8962 * configure.host: Remove m680[01]0-sun-sunos3*,
8963 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
8964 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
8965 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
8966 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
8967 mips-*-riscos*.
8968 * NEWS: Mention removed systems.
8969
99d16a21
AC
89702004-04-04 Andrew Cagney <cagney@redhat.com>
8971
8972 GDB 6.1 release created from 6.1 branch.
8973
6cdf9d98
AC
89742004-04-04 Andrew Cagney <cagney@redhat.com>
8975
98d346c3
AC
8976 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
8977 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
8978 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
8979
6cdf9d98
AC
8980 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
8981 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
8982 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
8983
859a326d
JB
89842004-04-03 Jim Blandy <jimb@redhat.com>
8985
8986 * MAINTAINERS: Chris Faylor has changed employers; add him to
8987 "paper trail" section, and update his E-mail address.
8988
b87178c3
AC
89892004-04-03 Andrew Cagney <cagney@redhat.com>
8990
4ea2acf0
AC
8991 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
8992 generic dummy frames.
8993 * dummy-frame.c: Update copyright.
8994 (dummy_frame_sniffer): Delete check for generic dummy frames.
8995
d0bd2d18 8996 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 8997 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
8998 (REG_PARM_STACK_SPACE): Delete.
8999 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
9000 Inline reference to REG_PARM_STACK_SPACE.
9001
b87178c3
AC
9002 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
9003 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9004 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
9005 (FRAME_BASE_BEFORE_SIGTRAMP)
9006 (hppa32_hpux_frame_base_before_sigtramp)
9007 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
9008 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
9009 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
9010 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9011 (FRAME_BASE_BEFORE_SIGTRAMP)
9012 (hppa64_hpux_frame_base_before_sigtramp)
9013 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
9014
43e2e1a0
AC
90152004-04-03 Andrew Cagney <cagney@redhat.com>
9016
9017 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
9018
ddc135a4
AC
90192004-04-02 Andrew Cagney <cagney@redhat.com>
9020
9021 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
9022 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
9023 * dummy-frame.h: Delete out-of-date comments.
9024 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
9025 * gdbarch.h, gdbarch.c: Re-generate.
9026
d15bfd3a 90272004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 9028
d15bfd3a
AC
9029 Committed by Andrew Cagney <cagney@redhat.com>.
9030 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
9031 into account an instruction saving a register if we have already
9032 seen an earlier instruction saving that same register.
9033
f04ceafa
AC
90342004-04-02 Andrew Cagney <cagney@redhat.com>
9035
08be3abd
AC
9036 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
9037 * gdbarch.h, gdbarch.c: Re-generate.
9038 * frame.c (legacy_get_prev_frame): Delete references to
9039 DEPRECATED_INIT_FRAME_PC_FIRST.
9040
f04ceafa
AC
9041 * infrun.c (pc_in_sigtramp): Delete function.
9042 (check_sigtramp2): Inline call to pc_in_sigtramp, use
9043 get_frame_type.
9044
08e69816
AC
90452004-04-02 Andrew Cagney <cagney@redhat.com>
9046
9047 * infrun.c (handle_step_into_function): Delete code conditional on
9048 legacy_frame_p.
9049 (handle_inferior_event, step_over_function): Ditto.
9050
adb54772
AC
90512004-04-02 Andrew Cagney <cagney@redhat.com>
9052
9053 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
9054 "previous frame inner to this frame" test.
9055
304396fb
AC
90562004-04-02 Andrew Cagney <cagney@redhat.com>
9057
9058 * frame.c (safe_frame_unwind_memory): New function.
9059 * frame.h (safe_frame_unwind_memory): Declare. Update description
9060 of /safe_/ methods.
9061 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
9062 "next_frame". Use safe_frame_unwind_memory.
9063 (tramp_frame_sniffer): Update call to tramp_frame_start.
9064
6502dd73
DJ
90652004-04-01 Daniel Jacobowitz <drow@mvista.com>
9066
9067 * dwarf2read.c (dwarf2_objfile_data_key): New.
9068 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
9069 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
9070 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
9071 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
9072 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
9073 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
9074 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
9075 Remove variables.
9076 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
9077 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
9078 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
9079 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
9080 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
9081 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
9082 Remove macros.
9083 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
9084 data.
9085 (dwarf2_locate_sections, dwarf2_build_psymtabs)
9086 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
9087 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
9088 (read_partial_die, read_full_die, read_indirect_string)
9089 (dwarf_decode_line_header, dwarf_decode_macros)
9090 (dwarf2_symbol_mark_computed): Remove use of removed macros.
9091 Update uses of removed variables.
9092 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
9093 of removed macros.
9094 (_initialize_dwarf2_read): New function.
9095 * symfile.h (dwarf2_has_info): Update prototype.
9096 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
9097 * elfread.c (elf_symfile_read): Likewise.
9098
408752b0
JB
90992004-04-01 Jim Blandy <jimb@redhat.com>
9100
9f744501
JB
9101 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
9102 function for register numbers on all the rs6000-derived targets.
9103 (rs6000_gdbarch_init): Don't register a separate
9104 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
9105 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
9106 variants.
9107
408752b0
JB
9108 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
9109 numbering.
9110
2de41bce
PH
91112004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
9112
9113 * valarith.c: Update copyright notice.
9114 (value_add): Handle range types.
9115 (value_sub): Ditto.
9116 (value_equal): Ditto.
9117 (value_less): Ditto.
9118 (value_neg): Ditto.
9119 (value_complement): Ditto.
8718a420 9120 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 9121 eliminiating unnecessary COERCE_ENUMs.
8718a420 9122
5613d8d3
AC
91232004-03-31 Andrew Cagney <cagney@redhat.com>
9124
9125 * frame.h (frame_unwind_id): Declare.
9126 * frame.c (frame_unwind_id): New function.
9127 (get_prev_frame_1): New function.
9128 (frame_debug_got_null_frame): New function.
9129 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
9130 code proper to prev_frame, update description.
9131 * infrun.c (step_over_function): Use frame_unwind_id.
9132
c4557624
JB
91332004-04-31 J. Brobecker <brobecker@gnat.com>
9134
9135 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
9136 (hppa64_push_dummy_call): Likewise.
9137
3e6bb910
JB
91382004-03-30 Jim Blandy <jimb@redhat.com>
9139
9140 From Ulrich Weigand:
9141 * utils.c (query): Do not use a va_list variable multiple times.
9142
a2f23071
DJ
91432004-03-29 Daniel Jacobowitz <drow@mvista.com>
9144
9145 * Makefile.in (linux_nat_h): Update dependencies.
9146 * configure.in: Check for <gnu/libc-version.h>.
9147 * configure: Regenerate.
9148 * config.in: Regenerate.
9149 * linux-nat.h: Include "target.h". Add waitstatus field to
9150 struct lwp_info.
9151 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
9152 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
9153 to.
9154 (lin_lwp_handle_extended): New function. Handle clone events.
9155 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
9156 thread exit events.
9157 (child_wait): Handle clone events.
9158 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
9159 * linux-nat.c (linux_enable_event_reporting): Turn on
9160 PTRACE_O_TRACECLONE.
9161 (linux_handle_extended_wait): Handle clone events.
9162 * thread-db.c: Include <gnu/libc-version.h>.
9163 (struct private_thread_info): Add dying flag.
9164 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
9165 higher.
9166 (attach_thread): Update comments. Handle dying threads.
9167 (detach_thread): Set the dying flag.
9168 (check_event): Always call attach_thread.
9169
8d5f9dcb
DJ
91702004-03-29 Daniel Jacobowitz <drow@mvista.com>
9171
9172 * mips-tdep.c (mips_pdr_data): New.
9173 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
9174 (_initialize_mips_tdep): Initialize mips_pdr_data.
9175
66337bb1
CV
91762004-03-29 Corinna Vinschen <vinschen@redhat.com>
9177
9178 * minsyms.c (install_minimal_symbols): Move dropping leading
9179 char from linkage name from here...
9180 (prim_record_minimal_symbol_and_info): ...to here. Simplify
9181 test for "__gnu_compiled*" symbols.
9182
e802b915
JB
91832004-03-28 Jim Blandy <jimb@redhat.com>
9184
9185 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
9186 registers to temp register r0 and byte stores as prologue
9187 instructions.
9188
72b56458
AC
91892004-03-28 Andrew Cagney <cagney@redhat.com>
9190
9191 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
9192 arm*-*-*.
9193
0bfbda3b
SC
91942004-03-28 Stephane Carrez <stcarrez@nerim.fr>
9195
9196 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
9197 and switch the layout to force a display of register window.
9198
5a7225ed
JB
91992004-02-26 J. Brobecker <brobecker@gnat.com>
9200
9201 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
9202 of the INTEGER class.
9203
81a07a45
JB
92042004-03-26 Jim Blandy <jimb@redhat.com>
9205
9206 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
9207 bytes long on PPC GNU/Linux.
9208
8c691c7a
DC
92092004-03-26 David Carlton <carlton@kealia.com>
9210
9211 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
9212
103a0089
AC
92132004-03-25 Andrew Cagney <cagney@redhat.com>
9214
9215 * PROBLEMS: Add general section titles, remove references to
9216 specific releases.
9217
7a5ea0d4
DJ
92182004-03-25 Daniel Jacobowitz <drow@mvista.com>
9219
9220 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
9221 INT_REGISTER_SIZE.
9222 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
9223 FP_REGISTER_VIRTUAL_SIZE.
9224 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
9225 of DEPRECATED_REGISTER_RAW_SIZE.
9226 (arm_register_type): Add gdbarch argument.
9227 (arm_register_raw_size, arm_register_virtual_size): Delete.
9228 (arm_register_byte, arm_extract_return_value)
9229 (arm_store_return_value, arm_get_longjmp_target): Update references
9230 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
9231 (arm_gdbarch_init): Likewise. Don't set
9232 deprecated_register_raw_size, deprecated_register_virtual_size,
9233 deprecated_max_register_raw_size,
9234 deprecated_max_register_virtual_size, or
9235 deprecated_max_register_virtual_type. Do set register_type.
9236 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
9237 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
9238 (FP_REGISTER_VIRTUAL_SIZE): Delete.
9239 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
9240 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
9241 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
9242 INT_REGISTER_SIZE.
9243 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
9244 (remote_rdp_store_register): Likewise.
9245
5792a79b
DJ
92462004-03-24 Daniel Jacobowitz <drow@mvista.com>
9247
9248 * Makefile.in (mips-linux-tdep.o): Update dependencies.
9249 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
9250 to after osabi initialization.
9251 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
9252 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
9253 functions.
9254 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
9255 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
9256 variables.
9257 (mips_linux_init_abi): Append signal trampoline unwinders.
9258
1196bfda
AC
92592004-03-24 Andrew Cagney <cagney@redhat.com>
9260
9261 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
9262 * tramp-frame.c: Include "gdb_assert.h".
9263 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
9264 correct sizeof.
9265 (tramp_frame_append): Validate the tramp frame's instructions.
9266 * Makefile.in (tramp-frame.o): Update dependencies.
9267
4be282b4
AC
92682004-03-23 Andrew Cagney <cagney@redhat.com>
9269
9270 * trad-frame.h (trad_frame_set_reg_addr): Declare.
9271
69aec09b
AC
92722004-03-23 Andrew Cagney <cagney@redhat.com>
9273
9274 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
9275 Nasser as past testsuite/lib/ (and other) maintainers.
9276
63ed89b4
DJ
92772004-03-23 Daniel Jacobowitz <drow@mvista.com>
9278
9279 * infcmd.c (attach_command): Reread symbols if we already have
9280 an exec file.
9281
f3b36427
AC
92822004-03-23 Andrew Cagney <cagney@redhat.com>
9283
9284 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
9285
aa2a3f87
AC
92862004-03-23 Andrew Cagney <cagney@redhat.com>
9287
9288 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
9289 * gdbarch.h, gdbarch.c: Re-generate.
9290 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9291 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9292 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 9293 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 9294 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 9295 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
9296 (DEPRECATED_SIGTRAMP_START): Update.
9297 * blockframe.c (find_pc_sect_partial_function): Update.
9298 * arch-utils.c (legacy_pc_in_sigtramp): Update.
9299
00cac895
DJ
93002004-03-23 Daniel Jacobowitz <drow@mvista.com>
9301
9302 * remote.c (remote_open_1): Reopen the exec file and reread symbols
9303 if necessary.
9304
f561f026
AC
93052004-03-23 Andrew Cagney <cagney@redhat.com>
9306
9307 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
9308 predicate, deprecate.
9309 * gdbarch.h, gdbarch.c: Re-generate.
9310 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
9311 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
9312 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
9313 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
9314 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
9315 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
9316 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
9317 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
9318 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
9319 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
9320 * blockframe.c (find_pc_partial_function): Update.
9321 * breakpoint.c (bpstat_what): Update.
9322 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
9323 * frv-linux-tdep.c (frv_linux_init_abi): Update.
9324 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
9325 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
9326 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9327 * i386-linux-tdep.c (i386_linux_init_abi): Update.
9328 * i386-nto-tdep.c (i386nto_init_abi): Update.
9329 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
9330 * i386-tdep.c (i386_sigtramp_frame_sniffer)
9331 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
9332 * i386bsd-tdep.c (i386bsd_init_abi): Update.
9333 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9334 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9335 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
9336 * infrun.c (pc_in_sigtramp): Update.
9337 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
9338 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
9339 * mips-tdep.c (mips_gdbarch_init): Update.
9340 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
9341 * ppc-linux-tdep.c: Update comment.
9342 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
9343 * shnbsd-tdep.c (shnbsd_init_abi): Update.
9344 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
9345 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
9346 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
9347 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
9348 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
9349 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
9350 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
9351 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 9352
8050c72f
AC
93532004-03-23 Andrew Cagney <cagney@redhat.com>
9354
d2259dd3
AC
9355 * tramp-frame.h, tramp-frame.h: New files.
9356 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
9357 Update rules to include "tramp-frame.h" and "tramp-frame.c".
9358
8050c72f
AC
9359 * Makefile.in: Update all dependencies.
9360
0db9b4b7
AC
93612004-03-23 Andrew Cagney <cagney@redhat.com>
9362
9363 * Makefile.in (trad_frame_h): Add $(frame_h).
9364 * trad-frame.h: Update copyright. Include "frame.h".
9365 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
9366 (trad_frame_set_id, trad_frame_get_id): Declare.
9367 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
9368 * trad-frame.c: Update copyright.
9369 (struct trad_frame_cache): Define.
9370 (trad_frame_cache_zalloc): New function.
9371 (trad_frame_set_id, trad_frame_get_id): New functions.
9372 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 9373
8e645ae7
AC
93742004-03-22 Andrew Cagney <cagney@redhat.com>
9375
9376 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
9377 s390_pltstub_unwind_cache.
9378 (s390_stub_frame_unwind_cache): Rename
9379 s390_pltstub_frame_unwind_cache.
9380 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
9381 (s390_stub_frame_prev_register): Rename
9382 s390_pltstub_frame_prev_register.
9383 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
9384 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
9385
9386 From Ulrich Weigand:
9387 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
9388 pointer calls like PLT calls.
9389
34fcf120
DJ
93902004-03-22 Daniel Jacobowitz <drow@mvista.com>
9391
9392 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
9393 PC rather than the partial function start address. Use the start
9394 address to sanity check the found PDR.
9395
5b917078
DJ
93962004-03-22 Daniel Jacobowitz <drow@mvista.com>
9397
9398 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
9399 linux_handle_extended_wait.
9400
8adf9e78
AC
94012004-03-22 Andrew Cagney <cagney@redhat.com>
9402
c3122434
AC
9403 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
9404 function.
9405
8adf9e78
AC
9406 * frame.h (generic_pop_current_frame): Delete declaration.
9407 (deprecate_pop_dummy_frame): Deprecate
9408 generic_pop_dummy_frame.
9409 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
9410 (generic_pop_current_frame): Delete function.
9411 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
9412 generic_pop_current_frame.
9413 * v850-tdep.c (v850_pop_frame): Update.
9414 * mcore-tdep.c (mcore_pop_frame): Update.
9415 * sh64-tdep.c (sh64_pop_frame): Update.
9416 * h8300-tdep.c (h8300_pop_frame): Update.
9417
90ba813f
AC
94182004-03-22 Andrew Cagney <cagney@redhat.com>
9419
9420 * frame.h (deprecated_pc_in_call_dummy): Rename
9421 generic_pc_in_call_dummy.
9422 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
9423 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
9424 generic_pc_in_call_dummy.
9425 (pc_in_dummy_frame): Make static.
9426 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
9427 * gdbarch.h, gdbarch.c: Re-generate.
9428 * dummy-frame.c (dummy_frame_sniffer): Simplify.
9429 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
9430 (legacy_get_prev_frame): Ditto.
9431 * inferior.h: Delete reference to generic_pc_in_call_dummy in
9432 comment.
8718a420 9433
ca4bb888
AC
94342004-03-21 Andrew Cagney <cagney@redhat.com>
9435
244675f9
AC
9436 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
9437 declaration and out-of-date comment.
9438 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
9439 Delete function.
9440 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
9441 deprecated_pc_in_call_dummy.
9442
ca4bb888
AC
9443 * infrun.c (handle_inferior_event): For non legacy frames, use the
9444 frame ID and frame type to identify a signal trampoline. Update
9445 comments.
9446
1777c7b4
NW
94472004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
9448
9449 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
9450 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
9451
82417da5
AC
94522004-03-21 Andrew Cagney <cagney@redhat.com>
9453
9454 * frame-unwind.h: Update copyright.
9455 (struct frame_data): Add opaque declaration.
9456 (frame_sniffer_ftype): Declare.
9457 (struct frame_unwind): Add "unwind_data" and "sniffer".
9458 (frame_unwind_register_unwinder): Declare.
9459 (frame_unwind_find_by_frame): Add parameter "this_cache".
9460 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
9461 (legacy_get_prev_frame, legacy_get_prev_frame)
9462 (get_frame_type): Pass the prologue_cache to
9463 frame_unwind_find_by_frame.
9464 * frame-unwind.c (struct frame_unwind_table_entry): Add field
9465 "unwinder".
9466 (frame_unwind_register_unwinder): New function.
9467 (frame_unwind_find_by_frame): Handle an unwind sniffer.
9468
b2ba182e
PH
94692004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
9470
9471 * bcache.c (print_percentage): Use floating point to avoid
9472 incorrect results when portion*100 overflows.
9473
81332287
KB
94742004-03-19 Kevin Buettner <kevinb@redhat.com>
9475
9476 * ppc_tdep.h (ppc_linux_frame_saved_pc)
9477 (ppc_linux_init_extra_frame_info)
9478 (ppc_linux_frameless_function_invocation)
9479 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
9480 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
9481 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
9482 (rs6000_frame_chain): Delete declarations.
9483 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
9484 (ppc_linux_init_extra_frame_info)
9485 (ppc_linux_frameless_function_invocation)
9486 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
9487 (ppc_linux_init_abi): Remove registration of above deleted functions.
9488 * rs6000-tdep.c (rs6000_init_extra_frame_info)
9489 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
9490 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
9491 (rs6000_pop_frame, rs6000_frameless_function_invocation)
9492 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
9493 (rs6000_gdbarch_init): Remove registration of above deleted functions.
9494 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
9495 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
9496 frame management for all OSABIs.
9497
61a65099
KB
94982004-03-19 Andrew Cagney <cagney@redhat.com>
9499
9500 Committed by Kevin Buettner <kevinb@redhat.com>.
9501
9502 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
9503 Update copyright.
9504 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
9505 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
9506 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
9507 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
9508 unwinders. #ifdef legacy frame code.
9509 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
9510 "frame-base.h".
9511 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
9512 (struct rs6000_frame_cache, rs6000_frame_cache)
9513 (rs6000_frame_this_id, rs6000_frame_prev_register)
9514 (rs6000_frame_sniffer, rs6000_frame_unwind)
9515 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
9516 (rs6000_frame_base): Implement a traditional frame unwinder.
9517 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
9518 frame unwinder.
9519
88f7da05
KB
95202004-03-19 Kevin Buettner <kevinb@redhat.com>
9521
9522 * breakpoint.c (adjust_breakpoint_address): Don't adjust
9523 breakpoint address for watchpoints or the catch eventpoints.
9524 Add new paramter ``bptype''. Adjust all callers.
9525
f826dce1
AC
95262004-03-19 Andrew Cagney <cagney@redhat.com>
9527
33cb8b0f
AC
9528 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
9529
f826dce1
AC
9530 * PROBLEMS: Delete note that ARM does not use frame code, problem
9531 fixed.
9532
43b1ab88
AC
95332004-03-18 Andrew Cagney <cagney@redhat.com>
9534
292ab034
AC
9535 * stack.c (return_command): Delete code wrapped in #ifdef
9536 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
9537
43b1ab88
AC
9538 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
9539
dbfe4626
AC
95402004-03-18 Andrew Cagney <cagney@redhat.com>
9541
9542 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
9543 DEPRECATED_IN_SIGTRAMP.
9544 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9545 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
9546 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9547 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9548 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9549 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9550 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9551 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9552 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
9553 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
9554
0cad6aec
AC
95552004-03-18 Andrew Cagney <cagney@redhat.com>
9556
9557 * frame-base.c: Update copyright. Include "gdb_obstack.h".
9558 (struct frame_base_table_entry): Define.
9559 (struct frame_base_table): Re-implement as a linked list.
9560 (frame_base_init): Re-implement.
9561 (frame_base_table): Delete function.
9562 (append_predicate): Delete function.
9563 (frame_base_append_sniffer): Update.
9564 (frame_base_set_default): Update.
9565 (frame_base_find_by_frame): Update.
9566 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
9567 * Makefile.in (frame-base.o): Update dependencies.
9568
9982c2e7
AC
95692004-03-17 Andrew Cagney <cagney@redhat.com>
9570
9571 * frame.c (legacy_get_prev_frame): Pass correct frame to
9572 frame_unwind_find_by_frame.
9573
8dfe8985
DC
95742004-03-17 David Carlton <carlton@kealia.com>
9575
9576 * NEWS: Mention C++ nested types and namespaces
9577
ed47347a
MC
95782004-03-16 Michael Chastain <mec.gnu@mindspring.com>
9579
9580 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
9581 and "Regressions since gdb 5.3.". Add known regressions since
9582 gdb 6.0.
9583
90aeadfc
DC
95842004-03-16 David Carlton <carlton@kealia.com>
9585
9586 * dwarf2read.c (process_structure_scope): Process children even
9587 when we're a declaration.
9588
73912b9b
AC
95892004-03-16 Andrew Cagney <cagney@redhat.com>
9590
9591 * symtab.h (find_pc_sect_partial_function): Delete declaration.
9592 * blockframe.c (find_pc_partial_function)
9593 (find_pc_sect_partial_function): Merge into a single
9594 find_pc_partial_function.
9595
283accbc
MK
95962004-03-16 Mark Kettenis <kettenis@gnu.org>
9597
9598 * i386bsd-nat.c: s/regno/regnum/g.
9599 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
9600 FP0_REGNUM.
9601 (store_inferior_registers): Likewise.
9602
f5b1afdf
MK
96032004-03-16 Mark Kettenis <kettenis@gnu.org>
9604
9605 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
9606 of i387_fill_fsave.
9607 (store_inferior_registers): Call i387_collect_fsave and
9608 i387_collect_fxsave instead of i387_fill_fsave and
9609 i387_fill_fxsave.
9610
41fe5eb3
AC
96112004-03-15 Andrew Cagney <cagney@redhat.com>
9612
9613 * Makefile.in (frame-unwind.o): Update dependencies.
9614 * frame-unwind.c: Include "gdb_obstack.h".
9615 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
9616 parameter.
9617 (append_predicate): Delete function.
9618 (struct frame_unwind_table_entry): New structure.
9619 (struct frame_unwind_table): Replace "sniffer" with "head" and
9620 "tail".
9621 (frame_unwind_append_sniffer): Update.
9622 (frame_unwind_find_by_frame): Update.
9623 (_initialize_frame_unwind): Registe frame_unwind_init using
9624 gdbarch_data_register_pre_init.
9625
3f63813d
MK
96262004-03-15 Mark Kettenis <kettenis@gnu.org>
9627
9628 * i386bsd-nat.c: Update copyright year.
9629 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
9630 define unconditionally.
9631
3248c325 96322004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
9633
9634 * i387-tdep.h (i387_collect_fsave): New prototype.
9635 * i387-tdep.c (i387_collect_fsave): New function containing most
9636 of the code from i387_fill_fsave.
3248c325 9637 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 9638
871fbe6a
MK
96392004-03-15 Mark Kettenis <kettenis@gnu.org>
9640
9641 * i386-linux-tdep.c: Update copyright year.
9642 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
9643 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
9644 svr4_ilp32_link_map_offsets instead of
9645 i386_linux_svr4_fetch_link_map_offsets.
9646
8176b9b8
DC
96472004-03-15 David Carlton <carlton@kealia.com>
9648
9649 Fix for PR c++/1553:
9650 * dwarf2read.c (read_structure_type): Determine type name by
9651 calling determine_class_name.
9652 (determine_class_name): New.
9653 (determine_prefix): Look at TYPE_TAG_NAME and call
9654 determine_class_name when appropriate.
9655 (determine_prefix_aux, class_name): Delete.
9d58e29d 9656 (read_namespace): Set die->type.
8176b9b8 9657
fe8bf7d7
KB
96582004-03-15 Kevin Buettner <kevinb@redhat.com>
9659
9660 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
9661 unused macro definition. The definition in target.h (or perhaps
9662 elsewhere) takes precedence.
9663
ed6edd9b
AC
96642004-03-15 Andrew Cagney <cagney@redhat.com>
9665
f9be684a
AC
9666 * ppc-tdep.h: Update copyright.
9667 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
9668 function signatures to match "regsets.h".
9669 * ppc-linux-tdep.c: Include "regset.h".
9670 (ELF_GREGSET_SIZE): Delete.
9671 (right_supply_register): New function.
9672 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
9673 using right_supply_register.
9674 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
9675 functions.
9676 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
9677 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
9678 (_initialize_ppc_linux_tdep): Do not register
9679 ppc_linux_regset_core_fns.
9680 (ppc_linux_regset_from_core_section): Replace
9681 fetch_core_registers.
9682 (ppc_linux_regset_core_fns): Delete.
9683 * ppc-linux-nat.c: (right_fill_reg): New function.
9684 (supply_gregset): Update call to ppc_linux_supply_gregset.
9685 (fill_gregset): Clear the register set, use right_fill_reg.
9686 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
9687 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
9688
ed6edd9b
AC
9689 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
9690 unsigned.
9691
030f20e1
AC
96922004-03-15 Andrew Cagney <cagney@redhat.com>
9693
9694 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
9695 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
9696 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
9697 and register_gdbarch_data.
9698 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
9699 (struct gdbarch_data): Replace "init" by "pre_init" and
9700 "post_init".
9701 * gdbarch.h, gdbarch.c: Re-generate.
9702 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
9703 with"obstack", use OBSTACK_ZALLOC.
9704 (dwarf2_frame_ops): Delete.
9705 (dwarf2_frame_set_init_reg): Use gdbarch_data.
9706 (dwarf2_frame_init_reg): Use gdbarch_data.
9707 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 9708 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
9709 (_initialize_svr4_solib): Update.
9710 * user-regs.c (_initialize_user_regs): Update.
9711 * reggroups.c (_initialize_reggroup): Update.
9712 * regcache.c (_initialize_regcache): Update.
9713 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
9714 * libunwind-frame.c (_initialize_libunwind_frame): Update.
9715 * gnu-v3-abi.c (init_gnuv3_ops): Update.
9716 * frame-unwind.c (_initialize_frame_unwind): Update.
9717 * frame-base.c (_initialize_frame_base): Update.
9718 * user-regs.c (user_reg_add): Update.
9719 * reggroups.c (reggroup_add): Update.
9720 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
9721 * libunwind-frame.c (libunwind_frame_set_descr): Update.
9722 * frame-unwind.c (frame_unwind_append_sniffer): Update.
9723 * frame-base.c (frame_base_table): Update.
9724 * remote.c (_initialize_remote): Update.
9725 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 9726
3111a3fc
AC
97272004-03-15 Andrew Cagney <cagney@redhat.com>
9728
9729 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
9730
5ecb7103
KB
97312004-03-15 Kevin Buettner <kevinb@redhat.com>
9732
9733 * Makefile.in (frv-linux-tdep.o): Add dependencies.
9734 * frv-linux-tdep.c: New file.
9735 * frv-tdep.c (struct gdbarch_tdep): Add new field
9736 ``sigcontext_reg_addr''.
9737 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
9738 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
9739 (frv_sigramp_frame_sniffer): New functions.
9740 (frv_sigtramp_frame_unwind): New static global.
9741 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
9742 sniffers.
9743 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
9744 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
9745
1ccda5e9
KB
97462004-03-15 Kevin Buettner <kevinb@redhat.com>
9747
9748 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
9749 but not via a call to error(), when unable to read memory.
9750
b375a0a5
KB
97512004-03-15 Kevin Buettner <kevinb@redhat.com>
9752
9753 * frv-tdep.c (frv_call_dummy_words): Delete.
9754 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
9755
4fdf6121
AC
97562004-03-15 Andrew Cagney <cagney@redhat.com>
9757
9758 * infrun.c (handle_step_into_function, step_over_function): Only
9759 update and use STEP_FRAME_ID when the system is using legacy
9760 frames. Update comments.
9761
34021503
MK
97622004-03-14 Mark Kettenis <kettenis@gnu.org>
9763
187e21d1
MK
9764 * amd64-linux-tdep.h: Remove file.
9765 * amd64-linux-tdep.c: Don't include "inferior.h" and
9766 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
9767 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
9768 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
9769 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
9770 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
9771 macros.
9772 (user_to_gdb_regmap): Remove variable.
9773 (amd64_linux_gregset_reg_offset): New variable.
9774 (amd64_core_fns): Remove variable.
9775 (fetch_core_registers): Remove function.
9776 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
9777 functions.
9778 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
9779 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
9780 * Makefile.in (amd64_linux_tdep_h): Remove.
9781 (amd64-linux-nat.o): Update dependencies.
9782 (amd64-linux-tdep.o): Update dependencies.
9783
99679982
MK
9784 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
9785 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
9786 functions.
9787 (fetch_inferior_registers, store_inferior_registers): Rewrite.
9788
34021503
MK
9789 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
9790 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
9791
134d01f1
DJ
97922004-03-14 Daniel Jacobowitz <drow@mvista.com>
9793
9794 * dwarf2read.c (read_structure_type): Rename from
8718a420 9795 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
9796 Return immediately if die->type is set. Call read_type_die before
9797 dwarf2_add_member_fn.
9798 (process_structure_scope): New function.
9799 (read_enumeration_type, process_enumeration_scope): New functions,
9800 broken out from read_enumeration. Don't create the enumeration
9801 type if it has already been created.
9802 (read_enumeration): Removed.
9803 (process_die): Call read_structure_type, process_structure_scope,
9804 read_enumeration_type, and process_enumeration_scope. Just call
9805 new_symbol for base and subrange types. Add a comment about other
9806 type dies.
9807 (read_type_die): Call read_enumeration_type.
9808 (add_partial_structure, new_symbol): Update comments.
9809
65760afb
SC
98102004-03-13 Stephane Carrez <stcarrez@nerim.fr>
9811
9812 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
9813
10f59415
SC
98142004-03-13 Stephane Carrez <stcarrez@nerim.fr>
9815
9816 * tui/tui-win.h (tui_get_cmd_list): Declare.
9817 * tui/tui-win.c (tui_command): New function.
9818 (tui_get_cmd_list): New function.
9819 (_initialize_tui_win): Moved initialization of tui command in
9820 tui_get_cmd_list.
9821
9822 * tui/tui-data.c (init_content_element): Setup new data members.
9823 (init_win_info): Likewise.
9824 (free_content_elements): Free it.
9825 * tui/tui-data.h (struct tui_data_element): Store the register
9826 content to print.
9827 (struct tui_data_info): Keep the current register group.
9828
9829 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
9830
9831 * tui/tui-regs.h (tui_show_registers): Update prototype.
9832 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
9833 (tui_resize_all): No need to calculate anything for register window.
9834 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
9835 (tui_set_register_element, tui_set_general_regs_content): Remove.
9836 (tui_set_special_regs_content): Remove.
9837 (tui_set_general_and_special_regs_content): Remove.
9838 (tui_set_float_regs_content): Remove.
9839 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
9840 (tui_set_regs_content): Remove.
9841 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
9842 (tui_v_show_registers_command_support): Remove.
9843 (tui_show_registers): Use a reggroup to specify the registers to show.
9844 (tui_show_register_group): New function.
9845 (tui_display_registers_from): Compute the layout of register window
9846 and refresh with new API; be sure to delete old register windows.
9847 (tui_check_register_values): Update to use tui_get_register and
9848 tui_display_data.
9849 (tui_display_register): Just refresh the register window part.
9850 (tui_register_format): Format registers and save in tui_data_element.
9851 (tui_get_register): New to combine tui_reg_value_has_changed and
9852 tui_get_register_raw_value; fix to use the new gdb API.
9853 (tui_show_float_command): Renamed tui_reg_float_command.
9854 (tui_show_general_command): Renamed tui_reg_general_command.
9855 (tui_show_special_command): Renamed tui_reg_system_command.
9856 (_initialize_tui_regs): Remove unused commands.
9857
c3364ea4
MK
98582004-03-13 Mark Kettenis <kettenis@gnu.org>
9859
27d1e716
MK
9860 * NEWS (New native configurations): Mention OpenBSD/amd64.
9861
c3364ea4
MK
9862 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
9863 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
9864 Remove defines.
9865 * config/i386/nm-fbsd64.h: Likewise.
9866 * config/i386/nm-obsd.h: Likewise.
9867 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
9868 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
9869
b2d6d697
KB
98702004-03-12 Kevin Buettner <kevinb@redhat.com>
9871
9872 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
9873 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
9874 New constants.
9875
76e43199
KB
9876 From Richard Sandiford <rsandifo@redhat.com>:
9877 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
9878
34ce532e
KB
98792004-03-12 Kevin Buettner <kevinb@redhat.com>
9880
9881 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
9882 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
9883 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
9884 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
9885 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
9886 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
9887 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
9888 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
9889 definitions from frv-tdep.c to frv-tdep.h.
9890
c4d10515
KB
98912004-03-12 Kevin Buettner <kevinb@redhat.com>
9892
9893 Add shared library support for FR-V FDPIC ABI:
9894 * Makefile.in (solib-frv.o): Add dependencies.
9895 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
9896 New functions.
9897 (frv_push_dummy_call): Add support for FDPIC ABI.
9898 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
9899 for FDPIC ABI.
9900 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
9901 (frv_fdpic_find_canonical_descriptor): Declare.
9902 * solib-frv.c: New file.
9903 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
9904 * config/frv/tm-frv.h (solib.h): Include.
9905
ed1bd989
KB
99062004-03-12 Kevin Buettner <kevinb@redhat.com>
9907
9908 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
9909 (frv-tdep.o): Update dependencies.
9910 * frv-tdep.h: New file.
9911 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
9912 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
9913 constants.
9914 (struct gdbarch_tdep): Add new member ``frv_abi''.
9915 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
9916 functions.
9917 (new_variant): Set ``frv_abi'' field.
9918 (gdb_arch_init): Detect FDPIC executables.
9919
82b38f72
MK
99202004-03-12 Mark Kettenis <kettenis@gnu.org>
9921
9922 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
9923 wrapper.
9924
db1ea9ba
AC
99252004-03-11 Andrew Cagney <cagney@redhat.com>
9926
9927 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
9928
f8766ec1
KB
99292004-03-11 Kevin Buettner <kevinb@redhat.com>
9930
9931 * solist.h (master_so_list): New function.
9932 * solib.c (master_so_list): Likewise.
9933 * solib-svr4.c (enable_break): Iterate over so_list entries
9934 obtained from master list instead of entries obtained directly
9935 via svr4_current_sos().
9936
523f6a27
BE
99372004-03-10 Ben Elliston <bje@gnu.org>
9938
9939 * MAINTAINERS: Update my mail address.
9940
37814c18
KI
99412004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
9942
9943 * remote-m32r-sdi.c: Support hardware watchpoint.
9944
8b9740d8
DJ
99452004-03-09 Daniel Jacobowitz <drow@mvista.com>
9946
9947 * user-regs.c: Update copyright years.
9948 (struct user_regs): Rename to gdb_user_regs.
9949 (append_user_reg, builtin_user_regs, user_regs_init)
9950 (user_reg_add, user_reg_map_name_to_regnum)
9951 (usernum_to_user_reg): Update.
9952
4bb7a0a7
DJ
99532004-03-09 Daniel Jacobowitz <drow@mvista.com>
9954
9955 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
9956 (skip_children): New functions.
9957 (locate_pdi_sibling): Call skip_children.
9958
44e1a9eb
DJ
99592004-03-09 Daniel Jacobowitz <drow@mvista.com>
9960
9961 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
9962 * gdbtypes.c (check_typedef): Update comments.
9963
f3dd6933
DJ
99642004-03-09 Daniel Jacobowitz <drow@mvista.com>
9965
9966 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
9967 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
9968 pointer. Update comment about comp_unit_head.
9969 (struct abbrev_info): Shorten two int flags.
9970 (dwarf_alloc_abbrev): Take a CU argument.
9971 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
9972 each time through the loop. Update cleanup argument.
9973 (psymtab_to_symtab_1): Update cleanup call.
9974 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
9975 abbrev_obstack.
9976 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
9977 Just call obstack_free and clear the pointer.
9978
b40c7d58
DJ
99792004-03-09 Daniel Jacobowitz <drow@mvista.com>
9980
9981 * infrun.c (handle_inferior_event): Remove short-circuit code for
9982 events in a different thread.
9983
333dabeb
DJ
99842004-03-09 Daniel Jacobowitz <drow@mvista.com>
9985
9986 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
9987 print the whole transfer.
9988 (initialize_targets): Update description of "set debug target".
9989
aa17d93e
DJ
99902004-03-09 Daniel Jacobowitz <drow@mvista.com>
9991
9992 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
9993
0b71f08f
NW
99942004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
9995
9996 * MAINTAINERS (write after approval): Add myself.
9997
3930f270
CV
99982004-03-08 Corinna Vinschen <vinschen@redhat.com>
9999
10000 * sh-tdep.c (sh_print_registers_info): Use for loop.
10001 Don't skip multiple registers when a float register is encountered.
10002
a2b4a96c
CV
100032004-03-08 Corinna Vinschen <vinschen@redhat.com>
10004
10005 Fix PR tdep/1291.
10006 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
10007 to official SH documentation.
10008
f15a4bc0
AC
100092004-03-07 Andrew Cagney <cagney@redhat.com>
10010
10011 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
10012 unused function.
10013
9498281f
DJ
100142004-03-07 Daniel Jacobowitz <drow@mvista.com>
10015
10016 * arm-tdep.c (thumb_get_next_pc): Handle BX.
10017 (arm_get_next_pc): Handle BX and BLX.
10018
449e1137
AC
100192004-03-07 Andrew Cagney <cagney@redhat.com>
10020
eded0a31
AC
10021 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
10022 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
10023 HPPA_SP_REGNUM.
10024 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
10025 (hppa_target_read_fp): Delete.
10026 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
10027 register_virtual_size, max_register_raw_size,
10028 max_register_virtual_size, register_byte, register_size,
10029 target_read_fp, fp_regnum, and register_bytes. Set register_type
10030 instead of register_virtual_type.
10031 (hppa32_register_type, hppa64_register_type): Replace
10032 hppa32_register_virtual_type and hppa64_register_virtual_type.
10033 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
10034 (HPPA_FP_REGNUM): Define.
10035
f5f907e2
AC
10036 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
10037
69b4bbe4
AC
10038 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
10039 (pa_do_registers_info): Delete.
10040 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 10041 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 10042 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 10043
78161e48
AC
10044 * infcall.c (legacy_push_dummy_code): Delete #ifdef
10045 GDB_TARGET_IS_HPPA code.
10046 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 10047 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
10048 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
10049 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
10050 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
10051 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
10052 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 10053 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
10054 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
10055 (hppa_frameless_function_invocation, hppa64_store_return_value)
10056 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 10057 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 10058 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 10059 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
10060 (find_proc_framesize, deposit_21, restore_pc_queue)
10061 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 10062 (rp_saved, pc_in_linker_stub): Delete.
78161e48 10063
782eae8b
AC
10064 Unconditionally enable 64-bit frame and ABI code.
10065 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
10066 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
10067 push_dummy_frame, fix_call_dummy, push_arguments,
10068 call_dummy_location, extract_return_value, use_struct_convention,
10069 store_return_value, store_struct_return, saved_pc_after_call,
10070 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
10071 frame_chain, frame_chain_valid, frameless_function_invocation,
10072 frame_saved_pc, and pop_frame.
78161e48 10073
449e1137
AC
10074 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
10075 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
10076 (hppa_gdbarch_init): Do not set PC_REGNUM.
10077
12507572
MK
100782004-03-06 Mark Kettenis <kettenis@gnu.org>
10079
10080 * config/alpha/tm-fbsd.h: Remove file.
10081 * config/alpha/fbsd.mt: Tweak comment.
10082 (TM_FILE): Set to tm-alpha.h.
10083
c107cc1b
AC
100842004-03-05 Andrew Cagney <cagney@redhat.com>
10085
10086 * infrun.c (step_over_function): When non-legacy code, and no
10087 step_frame_id, use the unwinder to get the caller's frame ID.
10088
f2e7c15d
MK
100892004-03-05 Mark Kettenis <kettenis@gnu.org>
10090
8b0c3633
MK
10091 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
10092 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
10093 bfd_arch_unknown. Adjust comment.
10094
f2e7c15d
MK
10095 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
10096 * i386obsd-tdep.c: Correct spelling in comment.
10097 * i386nbsd-tdep.c: Correct spelling in comment.
10098 * sparc-tdep.c: Correct spelling in comments.
10099
1198ecbe
DC
101002004-03-05 David Carlton <carlton@kealia.com>
10101
10102 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
10103 bug.
10104
9eb42ed1
MK
101052004-03-05 Mark Kettenis <kettenis@gnu.org>
10106
10107 * sparc-tdep.c: Fix typo in comment.
10108
52b5e991
JB
101092004-03-04 J. Brobecker <brobecker@gnat.com>
10110
10111 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
10112
d8151005
DJ
101132004-03-04 Daniel Jacobowitz <drow@mvista.com>
10114
10115 * dwarf2read.c: Add comment describing memory lifetimes.
10116 (struct dwarf2_pinfo): Update comment.
10117 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
10118 (read_enumeration, new_symbol): Don't use obsavestring.
10119
cbeae229
MK
101202004-03-04 Mark Kettenis <kettenis@gnu.org>
10121
722d18c2
MK
10122 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
10123 instead of amd64_fill_fxsave.
10124 * amd64bsd-nat.c (store_inferior_registers): Likewise.
10125 * amd64fbsd-nat.c (fill_fpregset): Likewise.
10126
cbeae229
MK
10127 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
10128 Reorganize code a bit.
10129
b4206d25
OF
101302004-03-04 Orjan Friberg <orjanf@axis.com>
10131
10132 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
10133 when the frame pointer is pushed. Don't set the frame pointer's
10134 address on the stack unless it's actually located there.
b4206d25
OF
10135 Set the SRP's address on the stack correctly when the PC is still in
10136 the prologue.
10137 (cris_return_value): New function.
10138 (cris_gdbarch_init): Clear deprecated store_return_value,
10139 extract_return_value.
10140
49b0b195
JB
101412004-03-02 Jim Blandy <jimb@redhat.com>
10142
10143 * stabsread.c (reg_value_complaint): The maximum register number
10144 is one less than the number of registers.
10145
e9ff708b
AC
101462004-03-02 Andrew Cagney <cagney@redhat.com>
10147
10148 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
10149 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
10150 trailing comma and redundant assignment of I386_ST0_REGNUM.
10151 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
10152 32-bit segment registers.
10153
d4715e41
AC
101542004-03-01 Andrew Cagney <cagney@redhat.com>
10155
10156 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
10157 use frame_relative_level and get_next_frame.
10158
3ce2bf18
AC
101592004-02-29 Andrew Cagney <cagney@redhat.com>
10160
10161 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
10162 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
10163 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
10164 Delete macro.
10165
2da6aac3
DJ
101662004-02-29 Daniel Jacobowitz <drow@mvista.com>
10167
10168 * inflow.c (terminal_inferior): Don't give up the terminal if we
10169 previously couldn't get the inferior's terminal state.
10170
6ba34a8d
DJ
101712004-02-29 Daniel Jacobowitz <drow@mvista.com>
10172
10173 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
10174 PC_REGNUM.
10175
faae5abe
AC
101762004-02-28 Andrew Cagney <cagney@redhat.com>
10177
10178 * NEWS: Refer to GDB 6.1.
10179 * README: Refer to GDB 6.1.
10180 * PROBLEMS: Refer to GDB 6.1.
10181
2227a3c5
DJ
101822004-02-28 Daniel Jacobowitz <drow@mvista.com>
10183
10184 * thread-db.c (disable_thread_signals): Remove unused function.
10185
80571bff
MK
101862004-02-28 Mark Kettenis <kettenis@gnu.org>
10187
041bd74b
MK
10188 * amd64-nat.c: Include "gdb_string.h".
10189 (amd64_collect_native_gregset): Zero-extend the 32-bit
10190 general-purpose registers and %eip.
10191
3c017e40
MK
10192 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
10193 * amd64-tdep.c (amd64_collect_fxsave): New function.
10194 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
10195
80571bff
MK
10196 * i387-tdep.h: Update copyright year.
10197 (i387_collect_fxsave): New prototype.
10198 * i387-tdep.c: Update copyright year.
10199 (i387_collect_fxsave): New function containing most of the code
10200 from i387_fill_fxsave.
10201 (i387_fill_fxsave): Call i387_collect_fxsave.
10202
50d71875
AC
102032004-02-28 Andrew Cagney <cagney@redhat.com>
10204
10205 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
10206 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
10207
4a28816e
MK
102082004-02-28 Mark Kettenis <kettenis@gnu.org>
10209
10210 * amd64-tdep.c (amd64_frame_cache): Fix comment.
10211
dbda9972
AC
102122004-02-28 Andrew Cagney <cagney@redhat.com>
10213
10214 * utils.c: Use "", instead of <>, to include readline.
10215 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
10216 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
10217 * source.c, solib.c, exec.c, event-top.c: Ditto.
10218 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
10219 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
10220 * Makefile.in: Update all dependencies.
10221 (readline_tilde_h, readline_history_h): Define.
10222 (readline_headers): Delete.
10223
83277a99
MK
102242004-02-28 Mark Kettenis <kettenis@gnu.org>
10225
91ae4303
MK
10226 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
10227 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
10228 "config/i386/tm-lx64.h".
10229
83277a99
MK
10230 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
10231 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
10232 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
10233
6e1d7d6c
AC
102342004-02-28 Andrew Cagney <cagney@redhat.com>
10235
ecc9ac84
AC
10236 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
10237
6e1d7d6c
AC
10238 * breakpoint.c (_initialize_breakpoint): Use
10239 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
10240 Add help to show command.
10241
9671aeef
MK
102422004-02-28 Mark Kettenis <kettenis@gnu.org>
10243
7fa2737c
MK
10244 * i386-nat.c: Reformat to be closer to coding standards.
10245 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
10246 `retval'. Make variables `align' and `size' local to while-loop.
10247 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
10248 (_initialize_i386_nat): New prototype.
10249
9671aeef
MK
10250 * tui/tui.c: Include <readline/readline.h> instead of
10251 "readline/readline.h". Include it after <term.h> and
10252 "gdb_curses.h".
10253
fca7aa43
AC
102542004-02-27 Andrew Cagney <cagney@redhat.com>
10255
412275d5
AC
10256 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
10257 the new frame unwind code.
10258 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
10259 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
10260 PCOQ_HEAD_REGNUM.
10261
fca7aa43
AC
10262 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
10263 "return_value" and "push_dummy_call".
10264 (hppa32_use_struct_convention): Delete unused function.
10265 (hppa32_store_return_value): Delete unused function.
10266 (hppa32_extract_return_value): Delete unused function.
10267 (hppa32_stack_align): Delete function.
10268
e6a8a7d2
EZ
102692004-02-27 Eli Zaretskii <eliz@elta.co.il>
10270
10271 * coffread.c (enter_linenos): Don't let rawptr reference memory
10272 outside linetab[]'s limits.
10273
1797a8f6
AC
102742004-02-27 Andrew Cagney <cagney@redhat.com>
10275
10276 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
10277 inferior stack space - the stack needs to grow upwards.
10278 (hppa32_frame_align): New function.
10279 (hppa64_frame_align): Replace hppa_frame_align.
10280 (hppa_gdbarch_init): Update.
10281
2e4b5889
OF
102822004-02-26 Orjan Friberg <orjanf@axis.com>
10283
10284 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
10285 (dwarf2-frame.h): Include.
10286 (enum cris_regnums): New enum CRIS_FP_REGNUM.
10287 Remove static variables related to ABI setting.
10288 (struct gdbarch_tdep): Remove cris_abi member.
10289 (struct frame_extra_info): Remove.
10290 (cris_unwind_cache, stack_item): New structs.
10291 (cris_frame_unwind, cris_frame_base): New variables.
10292 (push_stack_item, pop_stack_item)
10293 (cris_frame_unwind_cache, cris_frame_this_id)
10294 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
10295 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
10296 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
10297 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
10298 (cris_reg_struct_has_addr): New functions.
10299 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 10300 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
10301 (cris_store_struct_return, cris_frameless_function_invocation)
10302 (cris_pop_frame, cris_skip_prologue_main)
10303 (cris_abi_original_store_return_value)
10304 (cris_abi_v2_store_return_value)
10305 (cris_abi_original_extract_return_value)
10306 (cris_abi_v2_extract_return_value)
10307 (cris_abi_original_reg_struct_has_addr)
10308 (cris_abi_v2_reg_struct_has_addr)
10309 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
10310 (cris_push_return_address, cris_abi_update): Remove.
10311 (_initialize_cris_tdep): Remove ABI command.
10312 (cris_dump_tdep): Ditto.
8718a420 10313 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
10314 Set store_return_value, extract_return_value, push_dummy_code,
10315 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
10316 frame_unwind_append_sniffer, frame_base_set_default.
10317 Clear deprecated init_frame_pc, push_arguments, store_return_value,
10318 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
10319 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 10320 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
10321 init_extra_frame_info, frameless_function_invocation, frame_chain,
10322 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
10323 dummy_write_sp.
8718a420 10324
6b9acc27
JJ
103252004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10326
10327 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
10328 * valprint.c (print_hex_chars): Change from static to external.
10329 (print_char_chars): New function.
10330 * printcmd.c (print_scalar_formatted): For integer and enum types
10331 that are longer than LONGEST, perform processing via appropriate
10332 print_*_chars routines.
10333
a431654a
AC
103342004-02-26 Andrew Cagney <cagney@redhat.com>
10335
10336 * Makefile.in: Update dependencies.
10337 Changes from Ulrich Weigand,
10338 * s390-tdep.c: Include "dwarf2-frame.h".
10339 (s390_dwarf2_frame_init_reg): New function.
10340 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
10341 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
10342
fa8d40ab
JJ
103432004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10344
10345 * breakpoint.c (pending_break_support): New setting variable.
10346 (break_command_1): Account for pending_break_support setting
10347 when creating pending breakpoints.
10348 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
10349 (_initialize_breakpoint): Add "set breakpoint pending" and
10350 "show breakpoint pending" commands.
10351
0dcd613f
AC
103522004-02-26 Andrew Cagney <cagney@redhat.com>
10353
10354 Fix PR i18n/1570.
10355 * charset.c (backslashable, backslashed, represented): Remove 'e'
10356 from list of escaped characters, not part of ISO-C.
10357
479272a3
JB
103582004-02-25 J. Brobecker <brobecker@gnat.com>
10359
10360 From Peter Schauer <schauer@pdf.de>:
10361 * tui/tui.c: Move system header includes after local includes.
10362 Fixes a build failure on solaris systems.
10363
7613d933
JB
103642004-02-25 J. Brobecker <brobecker@gnat.com>
10365
10366 * configure.in: Refine the previous change.
10367 * configure: Regenerate.
10368
9c1488cb
MK
103692004-02-25 Mark Kettenis <kettenis@gnu.org>
10370
10371 * amd64-tdep.h: Renamed from x86-64-tdep.h.
10372 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
10373 "amd64-tdep.h" instead of "x86-64-tdep.h".
10374 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10375 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
10376 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
10377 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10378 and "x86-64-tdep.c".
10379 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
10380 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10381 and "x86-64-tdep.c".
10382 * amd64bsd-nat.c: Update copyright year.
10383 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10384 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
10385 "x86-64-tdep.h".
10386 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
10387 "x86-64-tdep.h".
10388 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
10389 "x86-64-tdep.h".
10390 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
10391 "x86-64-tdep.h".
10392 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
10393 "x86-64-tdep.h".
10394 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
10395 "x86-64-tdep.h".
8718a420 10396 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
10397 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
10398 * Makefile.in (amd64_linux_tdep_h): Renamed from
10399 x86_64_linux_tdep_h.
10400 (amd64_tdep_h): Renamed from x86_64_tdep_h.
10401 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
10402 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
10403 (amd64obsd-tdep.o): Update dependencies.
10404 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
10405 dependencies.
10406 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
10407 dependencies.
10408 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
10409 amd64-linux-nat.c amd64-linux-tdep.c.
10410 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
10411 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
10412 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
10413 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
10414 amd64-tdep.o and amd64-linux-tdep.o.
10415 (TM_FILE): Set to tm-linux64.h.
10416 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
10417 (NAT_FILE): Set to nm-linux64.h.
10418 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
10419 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10420 amd64-tdep.o.
10421 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10422 amd64-tdep.o.
10423 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10424 amd64-tdep.o.
10425
4b8dad4a
RM
104262004-02-25 Roland McGrath <roland@redhat.com>
10427
10428 * remote.c (remote_protocol_qPart_auxv): New variable.
10429 (init_all_packet_configs): Initialize it.
10430 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
10431 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
10432 (show_remote_cmd): Call it.
10433 (_initialize_remote): Initialize commands.
10434 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
10435 service TARGET_OBJECT_AUXV requests.
10436
66745969
JB
104372004-02-25 J. Brobecker <brobecker@gnat.com>
10438
10439 * configure.in: Make sure that the wborder function is available.
10440 Otherwise, search for it in the cur_colr library.
10441 * configure: Regenerate.
10442
79508e1e
AC
104432004-02-25 Andrew Cagney <cagney@redhat.com>
10444
10445 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
10446
571ee600
MK
104472004-02-25 Mark Kettenis <kettenis@gnu.org>
10448
10449 * config/i386/tm-x86-64linux.h: Tweak comments.
10450
2b1b322f 104512004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
10452
10453 * MAINTAINERS: Add self to write-after-approval list.
10454
4d2acc65
AC
104552004-02-25 Andrew Cagney <cagney@redhat.com>
10456
4b8dad4a 10457 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
10458 * cli/cli-script.c (execute_control_command): Unconditionally
10459 install a cleanup. Default "ret" to "invalid_control". Use
10460 "break" instead of "return" to escape from the switch.
10461
4cfcaf21
JB
104622004-02-24 J. Brobecker <brobecker@gnat.com>
10463
10464 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
10465 with the lines macro defined in term.h on AiX.
10466 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
10467 a collision with the label_width macro defined in term.h on AiX.
10468
54a5c8d8
KB
104692004-02-23 David Mosberger <davidm@hpl.hp.com>
10470
10471 Committed by Kevin Buettner <kevinb@redhat.com>.
10472
10473 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
10474 * ia64-tdep.c (ia64_write_pc): Make it a global function.
10475 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
10476 instead of ia64_write_pc().
10477 * ia64-linux-tdep.c (regcache.h): Include.
10478 (ia64_linux_write_pc): New function.
4b8dad4a 10479
8a1dac83
RM
104802004-02-23 Roland McGrath <roland@redhat.com>
10481
10482 * auxv.c (info_auxv_command): Fix typos in error messages.
10483
90f90721
MK
104842004-02-23 Mark Kettenis <kettenis@gnu.org>
10485
8a1dac83 10486 * x86-64-tdep.h: Tweak comment.
90f90721
MK
10487 (enum amd64_regnum): New.
10488 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
10489 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
10490 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
10491 (X86_64_XMM1_REGNUM): Removed.
10492 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
10493 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
10494 prototypes for renamed functions.
10495 * x86-64-tdep.c: Fix typo.
10496 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
10497 register numbers.
10498 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
10499 Use constants from `enum amd64_regnum' for register numbers.
10500 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
10501 (amd64_analyze_prologue, amd64_frame_cache,
10502 amd64_sigtramp_frame_cache): Use constants from `enum
10503 amd64_regnum' for register numbers.
10504 (amd64_supply_fpregset): Adjust for renamed functions.
10505 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
10506 `enum amd64_regnum' for register numbers.
10507 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
10508 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
10509 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
10510 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
10511 (amd64_linux_fill_gregset): Adjust for renamed macros.
10512 (fetch_core_registers): Adjust for renamed functions.
10513 (amd64_linux_init_abi): Adjust for renamed functions.
10514 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
10515 renamed functions.
10516 * amd64-nat.c: Adjust for renamed macros.
10517 * amd64bsd-nat.c (fetch_inferior_registers)
10518 (store_inferior_registers): Use constants from `enum amd64_regnum'
10519 for register numbers. Adjust for renamed variables.
10520 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
10521 renamed variables.
10522 (_initialize_amd64fbsd_nat): Use constants from `enum
10523 amd64_regnum' for register numbers.
10524 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
10525 `enum amd64_regnum' for register numbers.
10526 (amd64fbsd_init_abi): Adjust for renamed functions.
10527 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
10528 `enum amd64_regnum' for register numbers.
10529 (amd64nbsd_init_abi): Adjust for renamed functions.
10530 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
10531 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
10532 `enum amd64_regnum' for register numbers.
10533 (amd64obsd_init_abi): Adjust for renamed functions.
10534 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
10535
d5479188
JJ
105362004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10537
10538 * breakpoint.c (print_one_breakpoint): Do not output spaces
10539 after printing <PENDING> for a pending breakpoint.
10540
81cb7cc9
JJ
105412004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10542
10543 * printcmd.c (print_scalar_formatted): Initialize val_long
10544 to remove compiler warning message.
10545
cbdeadca
JJ
105462004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10547
10548 * defs.h (nquery, yquery): New prototypes.
10549 * breakpoint.c (break_command_1): Use new nquery interface.
10550 * utils.c (defaulted_query, nquery, yquery): New functions.
10551
da6bab63
AC
105522004-02-23 Andrew Cagney <cagney@redhat.com>
10553
2f690297
AC
10554 * hppa-tdep.c (hppa_frame_align): New function.
10555 (hppa32_push_dummy_call): New function.
10556 (hppa64_push_dummy_call): New function.
10557 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
10558 disabled.
8a1dac83 10559
da6bab63
AC
10560 * infcall.c (legacy_push_dummy_code): Don't call deprecated
10561 FIX_CALL_DUMMY when push_dummy_call is available.
10562 (call_function_by_hand, push_dummy_code): Ditto.
10563
abf9b42d
AC
105642004-02-22 Andrew Cagney <cagney@redhat.com>
10565
10566 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
10567 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
10568 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
10569 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
10570 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
10571 call_dummy_location to ON_STACK.
10572
10fc94a4
MK
105732004-02-22 Mark Kettenis <kettenis@gnu.org>
10574
51433e4b
MK
10575 * x86-64-linux-tdep.c: Tweak comment.
10576 (amd64_linux_supply_gregset): Renamed from
10577 x86_64_linux_supply_gresget.
10578 (amd64_linux_fill_gregset): Renamed from
10579 x86_64_linux_fill_gregset.
10580 (fetch_core_registers): Adjust for renamed functions.
10581 (amd64_core_fns): Renamed from x86_64_core_fns.
10582 (amd64_linux_sigtramp_start): Renamed from
10583 x86_64_linux_sigtramp_start.
10584 (amd64_linux_pc_in_sigtramp): Renamed from
10585 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
10586 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
10587 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
10588 (amd64_linux_sigcontext_addr): Renamed from
10589 x86_64_linux_sigcontext_addr.
10590 (amd64_linux_sc_reg_offset): Renamed from
10591 x86_64_linux_sc_reg_offset.
10592 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
10593 Adjust for renamed functions and variables.
10594 (_initialize_amd64_linux_tdep): Renamed from
10595 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
10596 variables.
10597 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
10598 Adjust for renamed functions.
10599
430eaf2e
MK
10600 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
10601 from x86_64_linux_gregset64_reg_offset.
10602 (amd64_linux_gregset32_reg_offset): Rename from
10603 x86_64_linux_gregset64_reg_offset.
10604 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
10605 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
10606 (amd64_linux_dr_set_control): Renamed from
10607 x86_64_linux_dr_set_control. Adjust for renamed functions.
10608 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
10609 Adjust for renamed functions.
10610 (amd64_linux_dr_reset_addr): Renamed from
10611 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
10612 (amd64_linux_dr_get_status): Renamed from
10613 x86_64_linux_dr_get_status. Adjust for renamed functions.
10614 (_initialize_amd64_linux_nat): Renamed from
10615 _initialize_x86_64_linux_nat. Adjust for renamed variables and
10616 functions.
10617 * config/i386/nm-x86-64linux.h: Update copyright year.
10618 Adjust for renamed functions.
10619
10fc94a4
MK
10620 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
10621 amd64fbsd_sigtramp_start.
10622 (amd64fbsd_sigtramp_end_addr): Renamed from
10623 amd64fbsd_sigtramp_end.
10624 (amd64fbsd_init_abi): Adjust for renamed variables.
10625 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
10626 variables.
10627 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
10628 amd64fbsd_sigtramp_start.
10629 (amd64fbsd_sigtramp_end_addr): Renamed from
10630 amd64fbsd_sigtramp_end.
10631
343af405
AC
106322004-02-22 Andrew Cagney <cagney@redhat.com>
10633
537987fc
AC
10634 * hppa-tdep.c (hppa32_return_value): New function.
10635 (hppa64_return_value): New function.
10636 (hppa_gdbarch_init): Set return_value; keep disabled.
10637
fad850b2
AC
10638 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
10639 struct-return and inferior function call methods.
10640
26d08f08
AC
10641 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10642 "frame-base.h".
10643 (struct hppa_frame_cache): Define.
10644 (hppa_frame_cache, hppa_frame_this_id): New functions.
10645 (hppa_frame_prev_register): New function.
10646 (hppa_frame_unwind, hppa_frame_base): New variables.
10647 (hppa_frame_unwind_sniffer): New function.
10648 (hppa_frame_base_address, hppa_unwind_pc): New function.
10649 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
10650 sniffer, and frame base sniffer; keep disabled.
10651 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
10652 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
10653
e7d7bd65
AC
10654 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
10655 to predicates for "seriously old code".
10656
e963316f
AC
10657 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
10658 runtime if(0).
10659
56132691
AC
10660 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
10661 unsigned.
10662 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 10663
343af405
AC
10664 * config/pa/tm-hppa.h: Update copyright.
10665 (DEPRECATED_INIT_FRAME_PC): Delete macro.
10666 (deprecated_init_frame_pc_default): Delete declaration.
10667 (hppa_frame_init_saved_regs): Delete declaration.
10668 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10669 * hppa-tdep.c: Include "arch-utils.h".
10670 (hppa_gdbarch_init): Set deprecated init_frame_pc
10671 and deprecated frame_init_saved_regs.
10672 (hppa_frame_init_saved_regs): Make static.
10673
f5859b4d
MK
106742004-02-22 Mark Kettenis <kettenis@gnu.org>
10675
86f6f8e7 10676 Remove old 386BSD support.
cf7c5c23 10677 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
10678 * configure.host: Remove i[34567]86-*-bsd*.
10679 * configure.tgt: Remove i[34567]86-*-bsd*.
10680 * i386b-nat.c: Removed.
10681 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
10682 (i386b-nat.o): Remove dependencies.
10683
86f6f8e7
MK
10684 * config/i386/i386bsd.mh: Removed.
10685 * config/i386/i386bsd.mt: Removed.
10686 * config/i386/nm-i386bsd.h: Removed.
10687 * config/i386/tm-i386bsd.h: Removed.
10688 * config/i386/xm-i386bsd.h: Removed.
10689
971218cd
MK
10690 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
10691
7e654c37
MK
10692 * amd64fbsd-tdep.c: Include "solib-svr4.h".
10693 (amd64fbsd_init_abi): Set link map offsets.
10694 * amd64nbsd-tdep.c: Include "slib-svr4.h".
10695 (amd64nbsd_init_abi): Set link map offsets.
10696 * amd64obsd-tdep.c: Include "solib-svr4.h".
10697 (amd64obsd_init_abi): Set link map offsets.
10698 * i386fbsd-tdep.c: Include "solib-svr4.h".
10699 (i386fbsd_init_abi): Set link map offsets.
10700 * i386nbsd-tdep.c: Include "solib-svr4.h".
10701 (i386nbsdelf_init_abi): Set link map offsets.
10702 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
10703 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
10704 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
10705 solib-legacy.o and core-aout.o. Reformat.
10706 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
10707 solib-svr4.o, solib-legacy.o. Reformat.
10708 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
10709 * config/i386/nbsdelf.mh: Reformat.
10710 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
10711 solib-svr4.o, solib-legacy.o and corelow.o.
10712 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
10713 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
10714 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
10715 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
10716 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
10717 (TM_FILE): Set to tm-fbsd.h.
10718 * config/i386/nbsd.mt (TDEPFILES): Reformat.
10719 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
10720 solib-svr4.o.
10721 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
10722 solib-svr4.o.
10723 (TM_FILE): Set to nm-nbsd.h.
10724 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
10725 Simplify shared library support. Don't include "elf/common.h".
10726 (SVR4_SHARED_LIBS): Don't define.
10727 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
10728 "solib.h".
10729 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
10730 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
10731 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
10732 Don't include "i386/tm-i386.h". Include "solib.h".
10733 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
10734 Don't include "i386/tm-i386.h".
10735 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
10736 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
10737 Include "i386/xm-i386.h".
10738 (HOST_LONG_DOUBLE_FORMAT): Remove.
10739
5d93ae8c
MK
10740 Fix OpenBSD/i386 sigtramp recognition.
10741 * i386-tdep.h: Update copyright year.
10742 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
10743 (i386bsd_sigtramp_end): New prototypes.
10744 (i386fbsd_sigtramp_start_addr): Renamed from
10745 i386fbsd_sigtramp_start.
10746 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
10747 (i386obsd_sigtramp_start_addr): Renamed from
10748 i386obsd_sigtramp_start.
10749 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
10750 * i386bsd-tdep.c: Update copyright year.
10751 (i386bsd_pc_in_sigtramp): Make public.
10752 * i386fbsd-nat.c: Update copyright year.
10753 (_initialize_i386fbsd_nat): Adjust for renamed variables.
10754 * i386fbsd-tdep.c: Update copyright year.
10755 (i386fbsd_sigtramp_start_addr): Renamed from
10756 i386fbsd_sigtramp_start.
10757 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
10758 (i386fbsdaout_init_abi): Adjust for renamed variables.
10759 * i386obsd-nat.c: Update copyright year.
10760 (_initialize_i386obsd_nat): Adjust for renamed variables.
10761 * i386obsd-tdep.c: Include "target.h".
10762 (i386obsd_page_size): New variable.
10763 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
10764 (i386obsd_sigtramp_end): New functions.
10765 (i386obsd_sigtramp_start_addr): Renamed from
10766 i386obsd_sigtramp_start.
10767 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
10768 (i386obsd_init_abi): Adjust for renamed variables. Set
10769 pc_in_sigtramp, sigtramp_start and sigtramp_end.
10770 * Makefile.in (i386obsd-tdep.o): Update dependencies.
10771
84d04465
MK
10772 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
10773 trampoline change in OpenBSD kernel.
10774
b053aceb
MK
10775 * amd64-nat.c: Update copyright year.
10776 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
10777 architecture from REGCACHE.
10778
f5859b4d
MK
10779 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
10780 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
10781
e4bbbda8
MK
107822004-02-21 Mark Kettenis <kettenis@gnu.org>
10783
ba361932
MK
10784 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
10785 i[34567]86-*-openbsd3.[0-3].
10786 * config/i386/obsdaout.mh: New file.
10787
d3e48264
MK
10788 * config/i386/obsd.mh (MH_FLAGS): Remove.
10789
60a6eeb6
MK
10790 Fix PR build/1549.
10791 * i386obsd-tdep.c: Update copyright years. Include
10792 "solib-svr4.h".
10793 (i386obsd_init_abi): Don't set regset_from_core_section here.
10794 (i386obsd_aout_init_abi): New function. Set
10795 regset_from_core_section here.
10796 (i386obsd_elf_init_abi): New function.
10797 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
10798 * Makefile.in (i386obsd-tdep.o): Update dependecies.
10799 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
10800 (TM_FILE): Set to tm-nbsd.h.
10801
10802 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
10803 solib-sunos.o.
10804
e4bbbda8
MK
10805 * solib-svr4.h: Update copyright year.
10806 (svr4_ilp32_fetch_link_map_offsets)
10807 (svr4_lp64_fetch_link_map_offsets): New prototype.
10808 * solib-svr4.c: Update copyright year.
10809 (svr4_ilp32_fetch_link_map_offsets)
10810 (svr4_lp64_fetch_link_map_offsets): New function.
10811
f6fe98ef
DJ
108122004-02-20 Daniel Jacobowitz <drow@mvista.com>
10813
10814 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
10815 to the partial symbol table.
10816
589ca796
JB
108172004-02-20 J. brobecker <brobecker@gnat.com>
10818
10819 * PROBLEMS: Add description of problem documented under gdb/1560.
10820
2031c21a
MK
108212004-02-20 Mark Kettenis <kettenis@gnu.org>
10822
30b344b1
MK
10823 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
10824 comments.
10825 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
10826 functions.
10827 (amd64obsd_init_abi): Reorder initializations. Use
10828 amd64obsd_r_reg_offset to initialize the general-purpose register
10829 set details. Set regset_from_core_section.
10830 (_initialize_amd64obsd_tdep): Rename from
10831 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
10832 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
10833 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
10834
2031c21a
MK
10835 * NEWS (New native configurations): Mention OpenBSD/alpha.
10836 * configure.tgt: Add alpha*-*-openbsd*.
10837 * configure.host: Add alpha*-*-openbsd*.
10838 * alphanbsd-tdep.c: Update copyright year.
10839 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
10840
42471775
AC
108412004-02-20 Andrew Cagney <cagney@redhat.com>
10842
10843 Fix PR tdep/1372.
10844 * configure.tgt: Delete target "none-*-*".
10845 * configure.host: Delete host "none-*-*".
10846 * config/none/none.mh: Delete file.
10847 * config/none/none.mt: Delete file.
10848 * config/none/xm-none.h: Delete file.
10849 * config/none/tm-none.h: Delete file.
10850 * config/none/nm-none.h: Delete file.
10851
960ccd7d
FF
108522004-02-19 Fred Fish <fnf@redhat.com>
10853
10854 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
10855 cache->uses_fp prior to setting it.
10856
5f883edd
FF
108572004-02-19 Fred Fish <fnf@redhat.com>
10858
10859 Fix for PR breakpoint/1558.
10860 * sh-tdep.c (IS_JSR): New macro.
10861 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
10862
f98c22d5
JB
108632004-02-19 Jim Blandy <jimb@redhat.com>
10864
10865 * findvar.c (value_from_register): Doc fix.
10866
95051d27
JJ
108672004-02-19 Jeff Johnston <jjohnstn@redhat.com>
10868
10869 * printcmd.c (print_scalar_formatted): Do not check for sizeof
10870 type being greater than sizeof of host's LONGEST. Always use
10871 unpack_long() unless format 'f' chosen.
10872
ccefbec3
EZ
108732004-02-19 Joel Brobecker <brobecker@gnat.com>
10874
10875 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 10876
ccefbec3
EZ
10877 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
10878 contains a symbol wich is the best, non-exact match for the given
10879 pc. Update comments.
10880
108812004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 10882
2ede629f
EZ
10883 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
10884 macro, which was part of the now removed Mach 3 port.
10885 * utils.c (request_quit): Ditto.
10886
567ee972
MK
108872004-02-18 Mark Kettenis <kettenis@gnu.org>
10888
10889 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
10890 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
10891
50cca7bb
MK
108922004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10893
10894 Committed by Mark Kettenis <kettenis@gnu.org>.
10895
10896 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
10897 Define.
10898
226361c4
AC
108992004-02-18 Andrew Cagney <cagney@redhat.com>
10900
10901 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
10902 CONFIG_INSTALL and CONFIG_UNINSTALL.
10903 * configure: Re-generate.
10904 * interps.h (INTERP_TUI): Define.
10905 * Makefile.in: Update dependencies.
10906 (TUI): New macro.
10907 (tui-main.o): Specify dependencies.
10908 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
10909 * tui/tui-main.c: New file.
10910
49cfa46f
MK
109112004-02-18 Mark Kettenis <kettenis@gnu.org>
10912
e2879ccb
MK
10913 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
10914 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
10915 dependencies.
10916 * configure.host: Add x86_64-*-openbsd*.
10917 * configure.tgt: Add x86_64-*-openbsd*.
10918 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
10919
c43f4bec
MK
10920 * tui/tui.c: Don't include <malloc.h>.
10921
09ae75b6
MK
10922 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
10923 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
10924 amd64nbsd-tdep.c.
10925
49cfa46f 10926 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 10927 static. Remove extraneous whitespace.
49cfa46f
MK
10928 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
10929 static.
10930
05957fdb
JB
109312004-02-17 Jim Blandy <jimb@redhat.com>
10932
10933 * findvar.c (value_from_register): Doc fix.
10934
d0f54f9d
JB
109352004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10936
10937 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 10938
8a1dac83 10939 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
10940 CORE_ADDR as type for selectors. Correct types for GNU run time
10941 message lookup function to use double indirection.
10942 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
10943 * objc-lang.h (lookup_child_selector): Adapt prototype.
10944
9cbd5950
JB
10945 * s390-nat.c (SUBOFF): New macro.
10946 (supply_gregset, fill_gregset): Use it to handle debugging
10947 of 32-bit exectuables running under a 64-bit kernel.
10948 * s390-tdep.c: Include "solib-svr4.h".
10949 (s390_svr4_fetch_link_map_offset): New function.
10950 (s390x_svr_fetch_link_map_offset): Likewise.
10951 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
10952 * Makefile.in (s390-tdep.o): Update dependencies.
10953
a8c99f38
JB
10954 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
10955 "frame-unwind.h".
10956 (s390_readinstruction): Reformat. Use read_memory_nobpt.
10957 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
10958 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
10959 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
10960 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
10961 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 10962 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
10963 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
10964 (struct frame_extra_info): Remove.
10965 (s390_memset_extra_info): Remove.
f73b1eff
JB
10966 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
10967 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
10968 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
10969 (is_rse): Renamed to ...
10970 (is_rsy): ... this. Support long displacements.
10971 (is_rxe): Renamed to ...
10972 (is_rxy): ... this. Support long displacements.
10973 (compute_x_addr): Support long displacements.
10974 (struct s390_prologue_data): New data type.
10975 (s390_on_stack): Change API to use struct s390_prologue_data.
10976 (s390_store): Reimplement.
10977 (s390_load): New function.
10978 (s390_get_signal_frame_info): Remove.
10979 (s390_get_frame_info): Remove, replace by ...
10980 (s390_analyze_prolog): ... this new function.
10981 (s390_check_function_end): Remove.
10982 (s390_function_start): Remove.
10983 (s390_frameless_function_invokation): Remove.
10984 (s390_is_sigreturn): Remove.
10985 (s390_init_frame_pc_first): Remove.
10986 (s390_init_frame_extra_info): Remove.
10987 (s390_frame_init_saved_regs): Remove.
10988 (s390_frame_saved_pc_nofix): Remove.
10989 (s390_frame_saved_pc): Remove.
10990 (s390_frame_chain): Remove.
10991 (s390_fp_regnum, s390_read_fp): Remove.
10992 (s390_pop_frame_regular, s390_pop_frame): Remove.
10993 (s390_saved_pc_after_call): Remove.
10994 (s390_skip_prologue): Reimplement.
10995 (s390_in_function_epilogue_p): Support long displacements.
10996 (struct s390_unwind_cache): New data structure.
10997 (s390_frame_unwind_cache): New function.
10998 (s390_prologue_frame_unwind_cache): Likewise.
10999 (s390_backchain_frame_unwind_cache): Likewise.
11000 (s390_frame_this_id, s390_frame_prev_register): Likewise.
11001 (s390_frame_unwind): Define.
11002 (s390_frame_sniffer): New function.
11003 (struct s390_pltstub_unwind_cache): New data structure.
11004 (s390_pltstub_frame_unwind_cache): New function.
11005 (s390_pltstub_frame_this_id): Likewise.
11006 (s390_pltstub_frame_prev_register): Likewise.
11007 (s390_pltstub_frame_unwind): Define.
11008 (s390_pltstub_frame_sniffer): New function.
11009 (struct s390_sigtramp_unwind_cache): New data structure.
11010 (s390_sigtramp_frame_unwind_cache): New function.
11011 (s390_sigtramp_frame_this_id): Likewise.
11012 (s390_sigtramp_frame_prev_register): Likewise.
11013 (s390_sigtramp_frame_unwind): Define.
11014 (s390_sigtramp_frame_sniffer): New function.
11015 (s390_frame_base_address, s390_local_base_address): New functions.
11016 (s390_frame_base): Define.
11017 (s390_unwind_pc, s390_unwind_sp): New function.
11018 (s390_push_dummy_call): Use new frame base location.
11019 (s390_unwind_dummy_id): Likewise.
11020 (s390_gdbarch_init): Remove calls to:
11021 set_gdbarch_frameless_function_invocation,
11022 set_gdbarch_deprecated_init_frame_pc,
11023 set_gdbarch_deprecated_frame_chain,
11024 set_gdbarch_deprecated_frame_init_saved_regs,
11025 set_gdbarch_deprecated_pop_frame,
11026 set_gdbarch_deprecated_init_extra_frame_info,
11027 set_gdbarch_deprecated_init_frame_pc_first,
11028 set_gdbarch_deprecated_target_read_fp,
11029 set_gdbarch_deprecated_frame_saved_pc,
11030 set_gdbarch_deprecated_saved_pc_after_call,
11031 set_gdbarch_deprecated_fp_regnum.
11032 Add calls to:
11033 set_gdbarch_in_solib_call_trampoline,
11034 frame_unwind_append_sniffer,
11035 frame_base_set_default,
11036 set_gdbarch_unwind_pc,
11037 set_gdbarch_unwind_sp.
11038 * Makefile.in (s390-tdep.o): Update dependencies.
11039
b0cf273e
JB
11040 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
11041 (S390_STACK_FRAME_OVERHEAD): Remove.
11042 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
11043 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
11044 (s390_promote_integer_argument): Remove.
11045 (s390_cannot_extract_struct_value_address): Remove.
11046 (s390_use_struct_convention, s390_store_struct_return): Remove.
11047 (s390_extract_return_value, s390_store_return_value): Remove.
11048 (s390_return_value_convention, s390_return_value): New functions.
11049 (is_float_singleton): Handle typedefs.
8a1dac83 11050 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
11051 Remove, replace by ...
11052 (s390_function_arg_pass_by_reference, s390_function_arg_float,
11053 s390_function_arg_integer): ... these new functions.
11054 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
11055 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
11056 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
11057 Fill in tdep->abi.
11058 Remove calls to:
11059 set_gdbarch_deprecated_store_struct_return,
11060 set_gdbarch_deprecated_extract_return_value,
11061 set_gdbarch_deprecated_store_return_value,
11062 set_gdbarch_use_struct_convention,
11063 set_gdbarch_extract_struct_value_address,
11064 set_gdbarch_deprecated_pc_in_call_dummy,
11065 set_gdbarch_deprecated_push_arguments,
11066 set_gdbarch_deprecated_save_dummy_frame_tos,
11067 set_gdbarch_deprecated_push_return_address,
11068 set_gdbarch_deprecated_sizeof_call_dummy_words,
11069 set_gdbarch_deprecated_call_dummy_words,
11070 set_gdbarch_deprecated_dummy_write_sp.
11071 Add calls to:
11072 set_gdbarch_push_dummy_call,
11073 set_gdbarch_unwind_dummy_id,
11074 set_gdbarch_return_value.
8a1dac83 11075
e1457d83
JB
11076 * config/s390/nm-linux.h: Update comments.
11077 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
11078 (STOPPED_BY_WATCHPOINT): Redefine.
11079 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
11080 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
11081 (s390_stopped_by_watchpoint): Likewise.
11082 (watch_area_cnt): Remove.
11083 * s390-nat.c: Update comments.
11084 (watch_area): Remove typedef.
11085 Global replace watch_area by struct watch_area.
11086 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 11087 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
11088 use s390_inferior_tid. Add short-cut for the no watchpoint case.
11089 (s390_fix_watch_points): Remove pid argument,
11090 use s390_inferior_tid. Recompute area spanned by watchpoints.
11091 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
11092 argument. Reimplement.
11093
d0f54f9d
JB
11094 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
11095 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
11096 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 11097 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
11098 core-regset.o.
11099 * config/s390/s390x.mt: Remove.
11100 * config/s390/tm-s390.h: Remove.
11101 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
11102 (TARGET_ELF64): Remove.
11103 (SKIP_TRAMPOLINE_CODE): Do not undefine.
11104 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
11105 s390*-*-* case; always set gdb_target to s390.
11106 * regformats/reg-s390.dat: Remove control registers.
11107 * regformats/reg-s390x.dat: Likewise.
11108 * s390-tdep.h: New file.
8a1dac83 11109 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
11110 Include "inferior.h" and "s390-tdep.h".
11111 Remove private definition of offsetof.
11112 (s390_register_u_addr): Remove.
11113 (regmap_gregset, regmap_fpregset): Define.
11114 (supply_gregset, fill_gregset): Reimplement.
11115 (supply_fpregset, fill_fpregset): Likewise.
11116 (s390_inferior_tid): New function.
11117 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
11118 (fetch_inferior_registers, store_inferior_registers): Likewise.
11119 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
11120 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
11121 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
11122 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
11123 (struct gdbarch_tdep): Define.
11124 (struct s390_register_info): Define.
11125 (s390_register_info): New variable.
11126 (s390_register_name): Reimplement.
11127 (s390_register_type): New function.
11128 (s390_register_raw_size, s390x_register_raw_size): Remove.
11129 (s390_cannot_fetch_register): Remove.
11130 (s390_register_byte): Remove.
11131 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
11132 (s390_dwarf_regmap): New variable.
11133 (s390_dwarf_reg_to_regnum): New function.
11134 (s390_stab_reg_to_regnum): Remove.
11135 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
11136 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
11137 (s390_convert_register_p): Likewise.
11138 (s390_register_to_value, s390_value_to_register): Likewise.
11139 (s390_register_reggroup_p): Likewise.
11140 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
11141 s390_gregset, s390x_gregset, s390_fpregset): New variables.
11142 (s390_supply_regset, s390_regset_from_core_section): New functions.
11143 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
11144 (S390_FPR_SIZE): Likewise.
11145 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
11146 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
11147 (S390_NUM_GPRS): Move here from tm-s390.h.
11148 (S390_NUM_FPRS): Likewise.
11149 (s390_in_function_epilogue_p): New function.
11150 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
11151 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
11152 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
11153 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
11154 Replace S390_FP_REGNUM by S390_SP_REGNUM.
11155 Remove calls to:
11156 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
11157 set_gdbarch_deprecated_max_register_virtual_size,
11158 set_gdbarch_deprecated_register_byte,
d0f54f9d 11159 set_gdbarch_cannot_fetch_register,
8a1dac83 11160 set_gdbarch_cannot_store_register,
d0f54f9d
JB
11161 set_gdbarch_deprecated_register_size,
11162 set_gdbarch_deprecated_register_raw_size,
11163 set_gdbarch_deprecated_register_virtual_size,
11164 set_gdbarch_deprecated_register_virtual_type,
11165 set_gdbarch_deprecated_register_bytes.
11166 Add calls to:
11167 set_gdbarch_num_pseudo_regs,
11168 set_gdbarch_register_type,
11169 set_gdbarch_convert_register_p,
11170 set_gdbarch_register_to_value,
11171 set_gdbarch_value_to_register,
11172 set_gdbarch_register_reggroup_p,
11173 set_gdbarch_regset_from_core_section,
11174 set_gdbarch_pseudo_register_read,
11175 set_gdbarch_pseudo_register_write,
11176 set_gdbarch_in_function_epilogue_p.
11177 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
11178 (s390_tdep_h): New variable.
11179
8cfe231d
JB
111802004-02-17 Jim Blandy <jimb@redhat.com>
11181
4589a601
JB
11182 * findvar.c (value_from_register): If the type has no length, just
11183 return an acceptable value --- don't report an internal error.
11184
8cfe231d
JB
11185 * stabsread.c (read_type): If we find any type numbers that are
11186 forward references, complain if the references aren't resolved by
11187 the time we're finished reading.
11188 (cleanup_undefined_types): Make error message more appropriate for
11189 a complaint.
11190
5bf0017e
EZ
111912004-02-17 Elena Zannoni <ezannoni@redhat.com>
11192
9d62932d
EZ
11193 * Makefile.in (defs_h): Remove dependency on progress_h.
11194 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
11195 progress.h.
11196 * main.c (captured_main): Delete use of START_PROGRESS and
11197 END_PROGRESS.
11198
111992004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 11200
5bf0017e
EZ
11201 * objfiles.c (terminate_minimal_symbol_table): Add back
11202 initialization of MSYMBOL_TYPE.
11203
9fc9f5e2
AC
112042004-02-17 David Mosberger <davidm@hpl.hp.com>
11205
11206 Committed by Andrew Cagney.
11207 * Makefile.in (ia64_tdep_h): New macro.
11208 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
11209 (ia64-tdep.o): Likewise.
11210 * ia64-tdep.h: New file.
11211 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
11212 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
11213 (ia64_aix_sigcontext_register_address): Likewise.
11214 (ia64_linux_getunwind_table): Delete declaration.
11215 * ia64-linux-tdep.c: Likewise.
11216
76cd2bd9
CV
112172004-02-17 Corinna Vinschen <vinschen@redhat.com>
11218
11219 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
11220 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
11221 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
11222
634aa483
AC
112232004-02-17 Andrew Cagney <cagney@redhat.com>
11224
11225 * symtab.c (skip_prologue_using_sal): New function.
11226 * symtab.h (skip_prologue_using_sal): Declare.
11227 * frv-tdep.c: Include "symtab.h".
11228 (skip_prologue_using_sal): Delete function.
11229 * mips-tdep.c (skip_prologue_using_sal): Delete function.
11230 * rs6000-tdep.c (refine_prologue_limit): Mention
11231 skip_prologue_using_sal.
11232 * ia64-tdep.c (refine_prologue_limit): Ditto.
11233 * Makefile.in: Update dependencies.
11234
112352004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 11236
39ce7b3f
AC
11237 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
11238 START_INFERIOR_TRAPS_EXPECTED.
11239 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
11240 START_INFERIOR_TRAPS_EXPECTED.
11241 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
11242 Delete macro.
11243 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
11244 macro, moved to "nm-osf.h". Update copyright.
11245 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
11246 update copyright.
11247
19772a2c
AC
11248 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
11249 and function replacing FRAMELESS_FUNCTION_INVOCATION.
11250 * blockframe.c (legacy_frameless_look_for_prologue): Rename
11251 frameless_look_for_prologue.
11252 * frame.h (legacy_frameless_look_for_prologue): Rename
11253 frameless_look_for_prologue.
11254 * gdbarch.h, gdbarch.c: Re-generate.
11255 * sh64-tdep.c (sh64_gdbarch_init): Update.
11256 * sh-tdep.c (sh_gdbarch_init): Update.
11257 * s390-tdep.c (s390_gdbarch_init): Update.
11258 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11259 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11260 * m68k-tdep.c (m68k_gdbarch_init): Update.
11261 (delta68_frame_args_address): Update.
11262 * m32r-tdep.c (m32r_gdbarch_init): Update.
11263 * hppa-tdep.c (hppa_gdbarch_init): Update.
11264 * h8300-tdep.c (h8300_gdbarch_init): Update.
11265 * frv-tdep.c (frv_gdbarch_init): Update.
11266 (frv_frameless_function_invocation): Update.
11267 * cris-tdep.c (cris_gdbarch_init): Update.
11268 (cris_frameless_function_invocation): Update.
11269 * avr-tdep.c (avr_gdbarch_init): Update.
11270 * arm-tdep.c (arm_gdbarch_init): Update.
11271 * stack.c (frame_info): Update, call predicate.
11272 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
11273 * frame.c (legacy_get_prev_frame): Update, call predicate..
11274 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
11275 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
11276 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
11277 invocation.
11278 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11279 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11280 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
11281
11282 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
11283 function.
11284
7dcaac91
DJ
112852004-02-16 Daniel Jacobowitz <drow@mvista.com>
11286
11287 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
11288 initializations.
11289
88289b6e
AC
112902004-02-16 Andrew Cagney <cagney@redhat.com>
11291
11292 * tui/tui-windata.c: Include "gdb_string.h".
11293 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
11294 * tui/tui-layout.c, tui/tui-command.c: Ditto.
11295 * Makefile.in: Update dependencies.
11296
9f976b41
DJ
112972004-02-16 Daniel Jacobowitz <drow@mvista.com>
11298
11299 * Makefile.in (infrun.o): Add $(gdb_assert_h).
11300 * infrun.c: Include "gdb_assert.h".
11301 (singlestep_ptid, saved_singlestep_ptid)
11302 (stepping_past_singlestep_breakpoint): New variables.
11303 (resume): Set singlestep_ptid. Check for singlestep thread
11304 hop.
11305 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
11306 (handle_inferior_event): Handle singlestep thread hop.
11307
c324d747
AC
113082004-02-16 Andrew Cagney <cagney@redhat.com>
11309
f090b9b1
AC
11310 * dwarf2-frame.c (dwarf2_frame_ops): New function.
11311 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
11312 (dwarf2_frame_init_reg): Ditto.
11313
fd33e6cb
AC
11314 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
11315 suggested by Joshua Neuheisel
11316
c324d747
AC
11317 * configure.in: Always check for curses, including pdcurses.
11318 Warn, instead of error, when no curses are found. Enable TUI when
11319 curses is available.
11320 * configure: Re-generate.
11321
b66ba949
CV
113222004-02-16 Corinna Vinschen <vinschen@redhat.com>
11323
11324 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
11325 sh_sh4_register_convert_to_virtual.
11326 (sh_register_convert_to_raw): Rename from
11327 sh_sh4_register_convert_to_raw.
11328 (sh_pseudo_register_read): Accomodate above name change.
11329 (sh_pseudo_register_write): Ditto.
11330
b58cbbf2
CV
113312004-02-16 Corinna Vinschen <vinschen@redhat.com>
11332
11333 * sh-tdep.c (sh_generic_register_name): Remove.
11334 (sh_gdbarch_init): Use sh_sh_register_name in default case.
11335
5929a910
AC
113362004-02-15 Andrew Cagney <cagney@redhat.com>
11337
4566dfcf
AC
11338 * configure.in (build_warnings): Add -Wunused-function.
11339 * configure: Re-generate.
11340
db11ed55
AC
11341 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
11342 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
11343
46ac7a5d
AC
11344 * procfs.c (procfs_init_inferior): Assume that
11345 START_INFERIOR_TRAPS_EXPECTED is defined.
11346 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
11347 * config/ns32k/tm-nbsd.h: Delete file,
11348 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
11349
ba801595
AC
11350 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
11351 * config/vax/tm-vax.h: Delete file.
11352
5929a910
AC
11353 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11354 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11355 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11356 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11357 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
11358 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11359 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
11360
8f22cb90
MK
113612004-02-15 Mark Kettenis <kettenis@gnu.org>
11362
11363 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
11364 * dwarf2-frame.c (dwarf2_frame_data): New variable.
11365 (struct dwarf2_frame_ops): New.
11366 (dwarf2_frame_default_init_reg): New function, based on
11367 dwarf2_frame_init_reg.
11368 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
11369 (dwarf2_frame_init_reg): Call architecture-specific function.
11370 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
11371 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
11372 instead of dwarf2_frame_data.
11373 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
11374 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
11375
8132723e
AC
113762004-02-15 Andrew Cagney <cagney@redhat.com>
11377
046a4708
AC
11378 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
11379 register_gdbarch_swap.
11380 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
11381 * f-lang.c (_initialize_f_language): Update, use
11382 DEPRECATED_REGISTER_GDBARCH_SWAP.
11383 * remote.c (_initialize_remote): Ditto.
11384 * regcache.c (_initialize_regcache): Ditto.
11385 * parse.c (_initialize_parse): Ditto.
11386 * infrun.c (_initialize_infrun): Ditto.
11387 * mi/mi-main.c (_initialize_mi_main): Ditto.
11388 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 11389
549c1eea
AC
11390 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
11391 poking .cacheable directly.
11392 * symfile.c (symfile_bfd_open): Ditto.
11393
0c0b39de
AC
11394 * Makefile.in: Update all dependencies.
11395
8132723e
AC
11396 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
11397 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
11398 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
11399 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
11400 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 11401
b9d26eb9
AC
114022004-02-14 Andrew Cagney <cagney@redhat.com>
11403
8e1f669a
AC
11404 * arch-utils.c (legacy_convert_register_p): Check
11405 DEPRECATED_REGISTER_CONVERTIBLE_P.
11406 * findvar.c (value_of_register): Ditto.
11407
cd0bfa36
AC
11408 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
11409 * gdbarch.h, gdbarch.c: Re-generate.
11410 * arch-utils.c (deprecated_register_convertible_not): Delete.
11411 * arch-utils.h (deprecated_register_convertible_not): Delete.
11412 * mi/mi-main.c (get_register): Update. Update copyright.
11413 * infcmd.c (default_print_registers_info): Update.
11414
b9d26eb9
AC
11415 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11416 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
11417 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 11418 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
11419 * frame.c (deprecated_get_next_frame_hack): Delete function.
11420 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
11421 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
11422 Update.
11423 * infcall.c (call_function_by_hand): Update.
11424
9ab9195f
EZ
114252004-02-14 Elena Zannoni <ezannoni@redhat.com>
11426
11427 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 11428 from here...
9ab9195f
EZ
11429 * objfiles.c (init_entry_point_info, entry_point_address):..to
11430 here.
11431 * symfile.h (init_entry_point_info, entry_point_address): Remove
11432 prototypes.
11433 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 11434 prototypes.
9ab9195f
EZ
11435 * cris-tdep.c: Remove include of symfile.h. Add include of
11436 objfiles.h.
11437 * infcall.c: Ditto.
11438 * mcore-tdep.c: Ditto.
11439 * mn10300-tdep.c: Ditto.
11440 * sh64-tdep.c: Ditto.
11441 * v850-tdep.c: Ditto.
11442 * arm-tdep.c: Remove include of symfile.h.
11443 * blockframe.c: Ditto.
11444 * coffread.c: Ditto.
11445 * dbxread.c: Ditto.
11446 * dwarf2read.c: Ditto.
11447 * dwarfread.c: Ditto.
8a1dac83 11448 * frv-tdep.c: Ditto.
9ab9195f
EZ
11449 * ia64-tdep.c: Ditto.
11450 * mdebugread.c: Ditto.
11451 * mipsread.c: Ditto.
8a1dac83 11452 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
11453 * s390-tdep.c: Ditto.
11454 * sh-tdep.c: Ditto.
8a1dac83 11455 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
11456 * gdbarch.sh: Remove include of symfile.h.
11457 * gdbarch.c: Regenerate.
11458 * solib-irix.c (enable_break): Use entry_point_address().
11459 Add comment about include file.
11460 * xcoffread.c: Add comment about include file.
8a1dac83
RM
11461 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
11462 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
11463 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
11464 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
11465 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
11466
c4c5b7ba
AC
114672004-02-13 Andrew Cagney <cagney@redhat.com>
11468
11469 * corelow.c (core_xfer_partial): Use "struct bfd_section".
11470 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
11471 copyright.
11472 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
11473
3e7879de
FF
114742004-02-12 Fred Fish <fnf@redhat.com>
11475
11476 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
11477 set_gdbarch_store_return_value.
11478
6a7760b6
AC
114792004-02-12 Andrew Cagney <cagney@redhat.com>
11480
11481 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
11482 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
11483 (interrupt_query): Ditto.
11484 (ofunc): Delete unused variable.
11485 * cris-tdep.c (cris_abi): Delete unused function.
11486 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
11487 (cris_get_wide_opcode, cris_get_short_size): Ditto.
11488 (cris_get_asr_quick_shift_steps): Ditto.
11489 (cris_skip_prologue_frameless_p): Ditto.
11490 * arm-tdep.c (arm_push_return_address): Delete unused function.
11491 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
11492 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
11493 * s390-tdep.c (s390_function_start): Delete unused function.
11494
31687c3c
AC
114952004-02-12 Andrew Cagney <cagney@redhat.com>
11496
11497 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
11498 gdbarch.h, gdbarch.c: Re-generate.
11499 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
11500 to generic_prologue_frameless_p.
11501 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
11502 * arch-utils.c (generic_prologue_frameless_p): Delete function.
11503
6de918a6
DJ
115042004-02-11 Daniel Jacobowitz <drow@mvista.com>
11505
11506 * mips-linux-tdep.c: Include "frame.h".
11507 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
11508 (mips_linux_skip_resolver): New functions.
11509 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
11510 and set_gdbarch_in_solib_call_trampoline.
11511 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
11512 to after set_gdbarch_in_solib_return_trampoline. Only set the
11513 solib hooks to mips16 functions if the OS ABI is unknown.
11514 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
11515 including "config/tm-linux.h".
11516 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
11517 * Makefile.in (mips-linux-tdep.o): Update.
11518
87b3ede8
DC
115192004-02-11 David Carlton <carlton@kealia.com>
11520
11521 * linespec.c (decode_compound): Only look for a class symbol when
11522 considering all but the rightmost component.
11523
5979bc46
AC
115242004-02-11 Andrew Cagney <cagney@redhat.com>
11525
11526 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
11527 abi code are are separatly grouped.
11528
5867a2fb
AC
115292004-02-11 Andrew Cagney <cagney@redhat.com>
11530
11531 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
11532 * gdbarch.h, gdbarch.c: Re-generate.
11533 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11534 * v850-tdep.c (v850_gdbarch_init): Update.
11535 * sh64-tdep.c (sh64_gdbarch_init): Update.
11536 * sh-tdep.c (sh_gdbarch_init): Update.
11537 * s390-tdep.c (s390_gdbarch_init): Update.
11538 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11539 * mips-tdep.c (mips_gdbarch_init): Update.
11540 * mcore-tdep.c (mcore_gdbarch_init): Update.
11541 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11542 * m32r-tdep.c (m32r_gdbarch_init): Update.
11543 * ia64-tdep.c (ia64_gdbarch_init): Update.
11544 * hppa-tdep.c (hppa_gdbarch_init): Update.
11545 * h8300-tdep.c (h8300_gdbarch_init): Update.
11546 * frv-tdep.c (frv_gdbarch_init): Update.
11547 * d10v-tdep.c (d10v_gdbarch_init): Update.
11548 * cris-tdep.c (cris_gdbarch_init): Update.
11549 * avr-tdep.c (avr_gdbarch_init): Update.
11550 * arm-tdep.c (arm_gdbarch_init): Update.
11551 * alpha-tdep.c (alpha_gdbarch_init): Update.
11552
026a72f8
CV
115532004-02-11 Corinna Vinschen <vinschen@redhat.com>
11554
11555 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
11556 comma.
11557 (sh_sh4al_dsp_register_name): Ditto.
11558
3903d437
AC
115592004-02-10 Andrew Cagney <cagney@redhat.com>
11560
11561 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
11562 (mips_init_frame_pc_first): Delete function.
11563 (mips_frame_saved_pc): Delete function.
11564 (mips_frame_chain): Delete function.
11565 (mips_init_extra_frame_info): Delete function.
11566 (mips_xfer_register): Delete unused variable "reg".
11567 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
11568 (mips_n32n64_return_value): Delete unused variable "reg".
11569 (mips_n32n64_return_value): Delete unused variable "pos".
11570 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
11571 (mips_o32_return_value): Delete unused variable "pos".
11572 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
11573 (mips_print_fp_register): Delete unused variable "namelen"
11574 (mips_print_fp_register): Delete unused variable "flt2"
11575 (get_frame_pointer): Delete function.
11576 (cached_proc_desc): Delete static variable.
11577 (mips_pop_frame): Delete function.
11578 (mips_find_saved_regs): Delete function.
11579 (mips_get_saved_register): Delete function.
11580 (mips_saved_pc_after_call): Delete function.
11581 (SIGFRAME_BASE): Delete macro.
11582 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
11583 (SIGFRAME_PC_OFF): Delete macro.
11584 (SIGFRAME_REGSAVE_OFF): Delete macro.
11585 (mips_dump_tdep): Do not print deleted macro definitions.
11586
b9fb98bd
AC
115872004-02-10 Andrew Cagney <cagney@redhat.com>
11588
11589 * Makefile.in (SFILES): Remove explictly listed tui files.
11590 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
11591
78ced177 115922004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 11593
78ced177
JJ
11594 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
11595 to use paddr functions to format ia64 addresses and long values.
11596 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
11597 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
11598 (get_kernel_table, ia64_find_proc_info_x): Ditto.
11599 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
11600 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
11601
6a83354a
AC
116022004-02-10 Andrew Cagney <cagney@redhat.com>
11603
11604 * defs.h: Do not include "tui.h".
11605 * gdb_curses.h: New file.
11606 * tui/tui-hooks.h: New file.
11607 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
11608 (tui_install_hooks, tui_remove_hooks): Delete declarations.
11609 (tui_initialize_io): Delete declaration.
11610 (tui_initialize_readline: Delete redundant declaration.
11611 (struct tui_point): Delete definition.
11612 * tui/tui-data.h (struct tui_point): Define.
11613 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
11614 * utils.c: Include "tui/tui.h".
11615 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
11616 * printcmd.c [TUI]: Include "tui/tui.h".
11617 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
11618 * tui/tui-command.c: Include "gdb_curses.h".
11619 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
11620 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
11621 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
11622 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
11623 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
11624 * Makefile.in: Update all dependencies.
11625 (tui_hooks_h, gdb_curses_h): Define.
11626 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
11627
997470ef
EZ
116282004-02-10 Elena Zannoni <ezannoni@redhat.com>
11629
11630 * objfiles.h (struct objfile): Remove unused fields auxf1 and
11631 auxf2. Add comments about some other rarely used fields.
11632
4ff2cc4d
AC
116332004-02-10 Andrew Cagney <cagney@redhat.com>
11634
11635 * Makefile.in (init.c): Fix script removing duplicates. Problem
11636 reported by Peter Schauer.
11637
1ab21617
EZ
116382004-02-09 Elena Zannoni <ezannoni@redhat.com>
11639
11640 * bcache.c (bcache_xmalloc): Use obstack_init instead of
11641 obstack_specify_allocation.
11642 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 11643 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
11644 (allocate_rt_common_objfile): Ditto.
11645 * symfile.c (reread_symbols): Ditto.
11646 * gdb_obstack.h: Add comment.
11647
17763fd9
EZ
116482004-02-09 Elena Zannoni <ezannoni@redhat.com>
11649
11650 * linespec.c (decode_line_1, locate_first_half)
11651 (decode_compound, lookup_prefix_sym): Update comments. Delete old
11652 commented out code.
11653
ec5cdd75
DJ
116542004-02-09 Daniel Jacobowitz <drow@mvista.com>
11655
11656 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
11657 obstack_free.
11658
43b54b88
AC
116592004-02-09 Andrew Cagney <cagney@redhat.com>
11660
11661 * blockframe.c (find_pc_partial_function): If find_pc_overlay
11662 fails, try find_pc_section. Fix PR c++/1267.
11663 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
11664 instead of find_pc_mapped_section.
11665 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
11666 not default to the section containing PC. Fix PR symtab/1519.
11667
edfae063
AC
116682004-02-09 Andrew Cagney <cagney@redhat.com>
11669
11670 * Makefile.in (mips-tdep.o): Update dependencies.
11671 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
11672 "trad-frame.h".
11673 (mips_unwind_pc): Return the pseudo PC register.
11674 (mips_unwind_dummy_id): New function.
11675 (mips16_fetch_instruction): New function.
11676 (mips32_fetch_instruction): New function.
11677 (struct mips_frame_cache): Define.
11678 (mips_mdebug_frame_cache): New function.
11679 (mips_mdebug_frame_this_id): New function.
11680 (mips_mdebug_frame_prev_register): New function.
11681 (mips_mdebug_frame_unwind): Define.
11682 (mips_mdebug_frame_sniffer): New function.
11683 (mips_mdebug_frame_base_address): New function.
11684 (mips_mdebug_frame_base): Define.
11685 (mips_mdebug_frame_base_sniffer): New function.
11686 (mips_gdbarch_init): Append unwind and base sniffers. Set
11687 unwind_dummy_id.
11688
defc864c
AC
116892004-02-08 Andrew Cagney <cagney@redhat.com>
11690
6764ddad
AC
11691 * frame.c: Print both the register number and name.
11692
defc864c
AC
11693 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
11694 and a sed into a single sed. Make .c and .o patterns more robust.
11695 (OBS): Delete.
11696 (INIT_FILES): Replace OBS with COMMON_OBS.
11697 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
11698
645d6d10
MK
116992004-02-08 Mark Kettenis <kettenis@gnu.org>
11700
11701 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
11702 the PT_WCOOKIE request.
11703
23e3c3fc
AC
117042004-02-08 Andrew Cagney <cagney@redhat.com>
11705
58dfe9ff
AC
11706 * mips-tdep.c (mips_unwind_pc): New function.
11707 (mips_gdbarch_init): Set mips_unwind_pc.
11708
1152e35e
AC
11709 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
11710 (get_frame_id): Allow the UNKNOWN_FRAME.
11711 (frame_register_unwind, get_frame_type): Ditto.
11712
31b75dbf
AC
11713 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
11714 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
11715 unwind_dummy_id indicates a legacy frame.
11716
3483b318
AC
11717 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
11718 * configure: Re-generate.
11719
23e3c3fc
AC
11720 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
11721 methods.
11722
33f8ca73
AC
117232004-02-08 Andrew Cagney <cagney@redhat.com>
11724
11725 * configure.in (CONFIG_ALL): Set to Makefile target, and not
11726 makefile macro.
11727 * configure: Re-generate.
11728 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
11729 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
11730 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
11731 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
11732 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
11733 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
11734 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
11735 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
11736 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
11737 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
11738
6ba8e26f 117392004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 11740
20d286a5
AC
11741 * Makefile.in: Update all dependencies.
11742
d836ee13
AC
11743 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
11744 * configure: Re-generate.
11745 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
11746 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
11747 (COMMON_OBS): Add "main.o" and "annotate.o".
11748 (ANNOTATE_OBS): Delete.
11749 (OBS): Remove ANNOTATE_OBS.
11750 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
11751 CONFIG_INITS.
11752 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
11753 against CONFIG_OBS and "main.o".
11754 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
11755 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
11756
d02c80cd
AC
11757 * tui/tui-command.c: Include "gdb_string.h", delete register
11758 attribute, use ISO-C function signatures.
11759 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
11760 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
11761 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
11762 * tui/tui.c: Ditto.
6ba8e26f
AC
11763
11764 * tui/tui-command.c: Change variable and function names to lower
11765 case.
11766 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
11767 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
11768 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
11769 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11770 * tui/tui-winsource.c, tui/tui.c: Ditto.
11771
4a146b47
EZ
117722004-02-07 Elena Zannoni <ezannoni@redhat.com>
11773
11774 * buildsym.c (free_pending_blocks, finish_block)
11775 (record_pending_block, make_blockvector, end_symtab): Replace
11776 symbol_obstack with objfile_obstack.
8a1dac83 11777 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 11778 (coff_read_enum_type): Ditto.
8a1dac83 11779 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 11780 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 11781 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
11782 (dwarf2_symbol_mark_computed): Ditto.
11783 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
11784 * elfread.c (elf_symtab_read): Ditto.
11785 * hpread.c (hpread_symfile_init, hpread_symfile_init)
11786 (hpread_read_enum_type, hpread_read_function_type)
11787 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
11788 Ditto.
8a1dac83 11789 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 11790 (java_link_class_type): Ditto.
8a1dac83 11791 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
11792 (new_symbol): Ditto.
11793 * minsyms.c (install_minimal_symbols): Ditto.
11794 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
11795 (terminate_minimal_symbol_table): Replace symbol_obstack with
11796 objfile_obstack.
11797 (free_objfile): Remove freeing of symbol_obstack.
11798 * objfiles.h: Remove symbol_obstack field.
11799 * pa64solib.c (add_to_solist): Replace symbol_obstack with
11800 objfile_obstack.
11801 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
11802 symbol_obstack.
11803 (solib_add_common_symbols): Replace symbol_obstack with
11804 objfile_obstack.
11805 * somsolib.c (som_solib_add): Ditto.
11806 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
11807 (common_block_start, common_block_end): Ditto.
11808 * symfile.c (reread_symbols): Remove freeing and init of
11809 symbol_obstack.
11810 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
11811 * symfile.h: Update comment.
11812 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
11813 stats printing.
11814 * symtab.c (symbol_set_names): Replace symbol_obstack with
11815 objfile_obstack.
11816 * symtab.h (struct general_symbol_info, struct minimal_symbol):
11817 Update comments.
11818 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
11819 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
11820 objfile_obstack.
11821
6d012f14
AC
118222004-02-07 Andrew Cagney <cagney@redhat.com>
11823
11824 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
11825 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
11826 fields and variables.
11827 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
11828 (m_beInvisible): Delete macro.
11829 * tui/tui-data.h: Fix case case fields and variables.
11830 (m_genWinPtrIsNull): Delete macro.
11831 (tui_win_list): Rename winList.
11832 (TUI_SRC_WIN): Rename srcWin.
11833 (TUI_DISASM_WIN): Rename disassemWin.
11834 (TUI_DATA_WIN): Rename dataWin.
11835 (TUI_CMD_WIN): Rename cmdWin.
11836 (m_genWinPtrNotNull): Delete macro.
11837 (m_winPtrIsNull): Delete macro.
11838 (m_winPtrNotNull): Delete macro.
11839 (tui_win_is_source_type): Replace m_winIsSourceType
11840 (tui_win_is_auxillary): Replace m_winIsAuzillary.
11841 (tui_win_has_locator): Replace m_hasLocator.
11842 (tui_set_win_highlight): Replace m_setWinHighlightOn and
11843 m_setWinHighlightOff.
11844 * tui/tui-data.c: Update references.
11845 (tui_win_is_source_type, tui_set_win_highlight): New functions.
11846 (tui_win_has_locator, tui_win_is_auxillary): New functions.
11847 * tui/tui-command.c, tui/tui-disasm.c: Update references.
11848 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
11849 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
11850 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11851 * tui/tui-winsource.c, tui/tui.c: Ditto.
11852
7d34766b
MK
118532004-02-07 Mark Kettenis <kettenis@gnu.org>
11854
1c800673
MK
11855 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
11856 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
11857 StackGhost.
11858
7d34766b
MK
11859 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
11860 variable `i6' to `i7'.
11861 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
11862
22940a24
AC
118632004-02-07 Andrew Cagney <cagney@redhat.com>
11864
11865 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
11866 (TuiPoint, TuiPointPtr): Ditto.
11867 (TuiStatus, TuiStatusPtr): Ditto.
11868 (TuiWinType, TuiWinTypePtr): Ditto.
11869 (struct tui_point): Rename _TuiPoint.
11870 (tui_get_low_disassembly_address): Rename
11871 tuiGetLowDisassemblyAddress.
11872 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
11873 (tuiFree): Delete declaration.
11874 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
11875 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
11876 * tui/tui.c (tuiFree): Delete function.
11877 * cli/cli-cmds.c (disassemble_command): Update references.
11878 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
11879 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
11880 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
11881 * tui/tui-winsource.c: Ditto.
11882
8b92e4d5
EZ
118832004-02-07 Elena Zannoni <ezannoni@redhat.com>
11884
11885 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
11886 coffstab_build_psymtabs, elfstab_build_psymtabs)
11887 (stabsect_build_psymtabs): Replace psymbol_obstack with
11888 objfile_obstack.
11889 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
11890 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
11891 Ditto.
11892 * dwarfread.c (scan_compilation_units): Ditto.
11893 * elfread.c (elfstab_offset_sections): Ditto.
11894 * hppa-tdep.c (read_unwind_info): Ditto.
11895 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
11896 (hpread_end_psymtab): Ditto.
11897 * mdebugread.c (mdebug_build_psymtabs, add_pending)
11898 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
11899 Ditto.
11900 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 11901 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
11902 (build_objfile_section_table): Ditto.
11903 (allocate_objfile): Remove init of psymbol_obstack.
11904 (free_objfile): Remove freeing of psymbol_obstack.
11905 * objfiles.h (struct objfile): Remove field
11906 psymbol_obstack. Update comments.
11907 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
11908 psymbol_obstack with objfile_obstack.
11909 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
11910 psymbol_obstack.
11911 * somread.c (som_symfile_offsets, init_import_symbols)
11912 (init_export_symbols): Replace psymbol_obstack with
11913 objfile_obstack.
11914 * somsolib.c (som_solib_add_solib_objfile): Ditto.
11915 * symfile.c (default_symfile_offsets, syms_from_objfile)
11916 (reread_symbols): Remove freeing and init of psymbol_obstack.
11917 (cashier_psymtab): Update comment.
11918 * symmisc.c (print_objfile_statistics): Don't report stats for
11919 psymbol obstack.
11920 * symtab.h (struct general_symbol_info, struct partial_symtab):
11921 Update comments.
11922 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
11923 (xcoff_symfile_offsets): Replace psymbol_obstack with
11924 objfile_obstack.
11925
b99607ea
EZ
119262004-02-07 Elena Zannoni <ezannoni@redhat.com>
11927
11928 * objfiles.h (struct objfile): Add objfile_obstack field.
11929 Remove type_obstack field.
11930
11931 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
11932 read_structure_scope read_enumeration, new_symbol): Replace
11933 type_obstack with objfile_obstack.
11934 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 11935 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
11936 (lookup_fundamental_type): Ditto.
11937 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
11938 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
11939 (hpread_read_doc_function_type, hpread_read_struct_type)
11940 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 11941 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 11942 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
11943 (java_link_class_type): Ditto.
11944 * mdebugread.c (parse_type): Ditto.
11945 * objfiles.c (allocate_objfile, free_objfile): Ditto.
11946 * solib-sunos.c (solib_add_common_symbols): Ditto.
11947 * stabsread.c (define_symbol, read_type, read_member_functions,
11948 read_cpp_abbrev, read_one_struct_field): Ditto.
11949 * symfile.c (reread_symbols): Ditto.
11950 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 11951
2a8854a7
AC
119522004-02-07 Andrew Cagney <cagney@redhat.com>
11953
11954 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
11955 (tui_exec_info_content): Rename TuiExecInfoContent.
11956 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
11957 (TuiWinInfo, TuiWinInfoPtr): Ditto.
11958 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
11959 (TuiList, TuiListPtr): Ditto.
11960 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
11961 (TuiDataType, TuiDataTypePtr): Ditto.
11962 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
11963 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
11964 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
11965 (TuiSourceElement, TuiSourceElementPtr): Ditto.
11966 (TuiDataElement, TuiDataElementPtr): Ditto.
11967 (TuiWinElement, TuiWinElementPtr): Ditto.
11968 (TuiDataInfo, TuiDataInfoPtr): Ditto.
11969 (TuiCommandElement, TuiCommandElementPtr): Ditto.
11970 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
11971 (TuiWhichElement, TuiWhichElementPtr): Ditto.
11972 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
11973 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
11974 * tui/tui-command.c, tui/tui-data.c: Update references.
11975 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
11976 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
11977 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11978 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 11979
05cbe71a
MK
119802004-02-07 Mark Kettenis <kettenis@gnu.org>
11981
11982 * dwarf2-frame.h: Update copyright.
11983 (enum dwarf2_frame_reg_rule): New.
11984 (struct dwarf2_frame_state_reg): New.
11985 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
11986 * dwarf2-frame.c: Update copyright.
11987 (enum dwarf2_reg_rule): Remove.
11988 (struct dwarf2_frame_state): Remove defenition of `struct
11989 dwarf2_frame_state_reg'.
11990 (read_reg): Call get_frame_arch to get the architecture instead of
11991 using CURRENT_GDBARCH.
11992 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
11993 DWARF2_FRAME_.
11994 (dwarf2_frame_init_reg): New function.
11995 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
11996 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
11997 initialize the register state. Prefix old `enum dwarf2_reg_rule'
11998 tags with DWARF2_FRAME_.
11999 (dwarf2_frame_prev_register): Call get_frame_arch to get the
12000 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
12001 dwarf2_reg_rule' tags with DWARF2_FRAME_.
12002
ec7d9e56
AC
120032004-02-06 Andrew Cagney <cagney@redhat.com>
12004
dd1abb8c
AC
12005 * tui/tui-data.h (struct tui_list): Rename _TuiList.
12006 (enum tui_data_type): Rename _TuiDataType.
12007 (struct tui_layout_def): Rename _TuiLayoutDef.
12008 (struct tui_source_element): Rename _TuiSourceElement.
12009 (struct tui_data_element): Rename _TuiDataElement.
12010 (struct tui_command_element): Rename _TuiCommandElement.
12011 (struct tui_locator_element): Rename _TuiLocatorElement.
12012 (union tui_which_element): Define.
12013 (struct tui_win_element): Rename _TuiWinElement.
12014 (struct tui_data_info): Rename _TuiDataInfo.
12015 (struct tui_source_info): Rename _TuiSourceInfo.
12016 (struct tui_command_info): Rename _TuiCommandInfo.
12017 (tui_initialize_static_data): Rename initializeStaticData.
12018 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
12019 (tui_alloc_win_info): Rename allocWinInfo.
12020 (tui_init_generic_part): Rename initGenericPart.
12021 (tui_init_win_info): Rename initWinInfo.
12022 (tui_alloc_content): Rename allocContent.
12023 (tui_add_content_elements): Rename addContentElements.
12024 (tui_init_content_element): Rename initContentElement.
12025 (tui_free_window): Rename freeWindow.
12026 (tui_free_win_content): Rename freeWinContent.
12027 (tui_free_data_content): Rename freeDataContent.
12028 (tui_free_all_source_wins_content): Rename
12029 freeAllSourceWinsContent.
12030 (tui_del_window): Rename tuiDelWindow.
12031 (tui_del_data_windows): Rename tuiDelDataWindows.
12032 (tui_partial_win_by_name): Rename partialWinByName.
12033 (tui_win_name): Rename winName.
12034 (tui_current_layout): Rename currentLayout.
12035 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
12036 (tui_term_height): Rename termHeight.
12037 (tui_set_term_height_to): Rename setTermHeightTo.
12038 (tui_term_width): Rename termWidth.
12039 (tui_set_term_width_to): Rename setTermWidthTo.
12040 (tui_set_gen_win_origin): Rename setGenWinOrigin.
12041 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
12042 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
12043 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
12044 (tui_source_windows): Rename sourceWindows.
12045 (tui_clear_source_windows): Rename clearSourceWindows.
12046 (tui_clear_source_windows_detail): Rename
12047 clearSourceWindowsDetail.
12048 (tui_clear_win_detail): Rename clearWinDetail.
12049 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
12050 (tui_default_tab_len): Rename tuiDefaultTabLen.
12051 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
12052 (tui_win_with_focus): Rename tuiWinWithFocus.
12053 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
12054 (tui_layout_def): Rename tuiLayoutDef.
12055 (tui_win_resized): Rename tuiWinResized.
12056 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
12057 (tui_next_win): Rename tuiNextWin.
12058 (tui_prev_win): Rename tuiPrevWin.
12059 (tui_add_to_source_windows): Rename addToSourceWindows.
12060 * tui/tui-winsource.c, tui/tui-win.c: Update references.
12061 * tui/tui-layout.c, tui/tui-source.c: Ditto.
12062 * tui/tui-stack.c, tui/tui-io.c: Ditto.
12063 * tui/tui.c, tui/tui-data.c: Ditto.
12064 * tui/tui-interp.c, tui/tui-data.c: Ditto.
12065 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
12066
a358af15
AC
12067 * tui/tui-source.h: Update copyright. Include "tui-data.h".
12068 (struct symtab): Declare.
12069 (tui_set_source_content): Rename tuiSetSourceContent.
12070 (tui_show_symtab_source): Rename tuiShowSource.
12071 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
12072 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
12073 * tui/tui-source.c: Update copyright. Update references.
12074 * tui/tui-win.c, tui/tui-winsource.c: Update references.
12075 * tui/tui-stack.c: Update references.
12076
a21fcd8f
AC
12077 * tui/tui-win.h: Update copyright. Include "tui-data.h".
12078 (struct tui_win_info): Declare.
12079 (tui_scroll_forward): Rename tuiScrollForward.
12080 (tui_scroll_backward): Rename tuiScrollBackward.
12081 (tui_scroll_left): Rename tuiScrollLeft.
12082 (tui_scroll_right): Rename tuiScrollRight.
12083 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
12084 (tui_resize_all): Rename tuiResizeAll.
12085 (tui_refresh_all_win): Rename tuiRefreshAll.
12086 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
12087 * tui/tui-layout.c, * tui/tui-io.c: Update references.
12088 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
12089 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
12090
edae1ccf
AC
12091 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
12092 (tui_erase_data_content): Rename tuiEraseDataContent.
12093 (tui_display_all_data): Rename tuiDisplayAllData.
12094 (tui_check_data_values): Rename tuiCheckDataValues.
12095 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
12096 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
12097 (tui_first_data_element_no_in_line): Rename
12098 tuiFirstDataElementNoInLine.
12099 (tui_delete_data_content_windows): Rename
12100 tuiDeleteDataContentWindows.
12101 (tui_refresh_data_win): Rename tuiRefreshDataWin.
12102 (tui_display_data_from): Rename tuiDisplayDataFrom.
12103 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
12104 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
12105 * tui/tui-win.c, tui/tui-regs.c: Update references.
12106 * tui/tui-layout.c, tui/tui.c: Update references.
12107
ec7d9e56
AC
12108 * tui/tui-wingeneral.h: Update copyright.
12109 (m_allBeVisible): Delete macro.
8a1dac83 12110 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
12111 (struct tui_gen_win_info): Declare.
12112 (struct tui_win_info): Declare.
12113 (tui_unhighlight_win): Rename unhighlightWin.
12114 (tui_make_visible, tui_make_invisible): Replace makeVisible.
12115 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
12116 (tui_make_window): Rename makeWindow.
12117 (tui_copy_win): Rename copyWin.
12118 (tui_box_win): Rename boxWin.
12119 (tui_highlight_win): Rename highlightWin.
12120 (tui_check_and_display_highlight_if_needed): Rename
12121 checkAndDisplayHighlightIfNeeded.
12122 (tui_refresh_all): Rename refreshAll.
12123 (tui_delete_win): Rename tuiDelwin.
12124 (tui_refresh_win): Rename tuiRefreshWin.
12125 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
12126 (tui_make_visible, tui_make_invisible): New functions.
12127 (tui_make_all_visible, tui_make_all_invisible): New functions.
12128 (make_all_visible): Rename makeAllVisible.
12129 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
12130 * tui/tui-data.c, tui/tui-winsource.c: Update references.
12131 * tui/tui-windata.c, tui/tui-win.c: Update references.
12132 * tui/tui-regs.c, tui/tui-layout.c: Update references.
12133 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
12134
1e52e2eb
MK
121352004-02-06 Mark Kettenis <kettenis@gnu.org>
12136
12137 * proc-api.c (write_with_trace): Initialize local variable to
12138 silence compiler warning.
12139
f80bda8e
AC
121402004-02-06 Andrew Cagney <cagney@redhat.com>
12141
12142 * tui/tui-source.h: Do not include "defs.h".
12143 (struct tui_win_info): Declare.
12144 (tui_set_source_content_nil): Declare.
12145 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
12146 (union tui_line_or_address): Rename _TuiLineOrAddress.
12147 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
12148 (tui_update_source_window): Rename tuiUpdateSourceWindow.
12149 (tui_update_source_window_as_is): Rename
12150 tuiUpdateSourceWindowAsIs.
12151 (tui_update_source_windows_with_addr): Rename
12152 tuiUpdateSourceWindowsWithAddr.
12153 (tui_update_source_windows_with_line): Rename
12154 tuiUpdateSourceWindowsWithLine.
12155 (tui_clear_source_content): Rename tuiClearSourceContent.
12156 (tui_erase_source_content): Rename tuiEraseSourceContent.
12157 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
12158 (tui_show_source_content): Rename tuiShowSourceContent.
12159 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
12160 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
12161 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
12162 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
12163 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
12164 (tui_update_exec_info): Rename tuiUpdateExecInfo.
12165 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
12166 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
12167 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
12168 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
12169 (struct tui_win_info): Declare.
12170 * tui/tui-stack.c: Update references.
12171 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
12172 * tui/tui-win.c, tui/tui-source.c: Ditto.
12173 * tui/tui.c, tui/tui-disasm.c: Ditto.
12174
9fbfb822
MK
121752004-02-06 Mark Kettenis <kettenis@gnu.org>
12176
12177 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
12178 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
12179
03cebad2
MK
121802004-02-05 Mark Kettenis <kettenis@gnu.org>
12181
12182 * infrun.c (handle_inferior_event): Allow for breakpoint
12183 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
12184 and SIGEMT. Update comments.
12185 * NEWS (Revised SPARC target): Mention support for non-executable
12186 stack.
12187
290281b1
MK
121882004-02-04 Mark Kettenis <kettenis@gnu.org>
12189
12190 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
12191 * inftarg.c: Update copyright year.
12192 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
12193 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
12194 (sparc_xfer_wcookie): New function.
12195 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12196 * Makefile.in (sparc-nat.o): Update dependencies.
12197 * config/sparc/nm-nbsd.h: Include "target.h".
12198 (NATIVE_XFER_WCOOKIE): New define.
12199 (sparc_xfer_wcookie): New prototype.
12200
212161df
AC
122012004-02-04 Andrew Cagney <cagney@redhat.com>
12202
12203 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
12204 SYSCALL_TRAP function.
12205 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
12206
6e4c6c91
DJ
122072004-02-04 Andrew Cagney <cagney@redhat.com>
12208 Daniel Jacobowitz <drow@mvista.com>
12209
12210 * objfiles.h: Delete comments refering to inside_entry_func and
12211 DEPRECATED_FRAME_CHAIN_VALID.
12212 * defs.h (inside_entry_func): Update prototype..
12213 * blockframe.c (inside_entry_func): Rename to
12214 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
12215 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
12216
cae688ec
JJ
122172004-02-03 Jeff Johnston <jjohnstn@redhat.com>
12218
12219 * breakpoint.c (struct captured_parse_breakpoint_args): Move
12220 outside of #ifdef SOLIB_ADD region.
12221 (do_restore_lang_radix_cleanup): Ditto.
12222 (resolve_pending_breakpoint): Ditto.
12223
19217676
AC
122242004-02-03 Andrew Cagney <cagney@redhat.com>
12225
12226 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
12227 (process_note_abi_tag_sections): Delete unused function.
12228 (ia64_read_fp): Delete unused function.
12229 (gdbarch_extract_struct_value_address): Delete declaration.
12230
876753be
AC
122312004-02-02 Andrew Cagney <cagney@redhat.com>
12232
12233 * vax-tdep.c (vax_frame_chain): Delete call to
12234 deprecated_inside_entry_file.
12235 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
12236
d4f10bf2
MK
122372004-02-02 Mark Kettenis <kettenis@gnu.org>
12238
12239 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
12240 column that's "empty" or "same value" when eliminating REG_RA
12241 rules.
12242
cae688ec
JJ
122432004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12244
12245 * NEWS: Add information about new pending breakpoint support.
12246
0101ce28
JJ
122472004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12248
12249 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
12250 and pending fields for pending breakpoint support.
12251 * breakpoint.c (breakpoint_enabled): Add check for not pending.
12252 (condition_command): Only parse condition if not a pending
12253 breakpoint.
12254 (print_one_breakpoint): Add support for pending breakpoints.
12255 (describe_other_breakpoints): Add checks to verify we are not
12256 dealing with pending breakpoints.
12257 (check_duplicates): Don't check pending breakpoints.
12258 (set_raw_breakpoint): Initialize pending flag.
12259 (do_restore_lang_radix_cleanup): New cleanup routine.
12260 (resolve_pending_breakpoint): New function.
12261 (re_enable_breakpoints_in_shlibs): Try and resolve any
12262 pending breakpoints via resolve_pending_breakpoint.
12263 (mention): Add pending breakpoint support.
12264 (parse_breakpoint_sals): Add new parameter to pass to
12265 decode_line_1 to indicate silent errors when files or functions
12266 are not found. Change all callers.
12267 (do_captured_parse_breakpoint): New function.
12268 (break_command_1): Change prototype to return an rc value and to
12269 take an optional pending breakpoint pointer. Support creating
12270 a pending breakpoint if a "not found" form of error occurs when
12271 parsing the breakpoint. Also support resolving an existing pending
12272 breakpoint and be silent if the resolution fails.
12273 (create_breakpoints): Change prototype to take pending breakpoint
12274 pointer. When resolving a pending breakpoint, use the new pointer
12275 to provide a conditional or commands added by the end-user.
12276 (delete_breakpoint): Add appropriate check for pending.
12277 (breakpoint_re_set_one): Ditto.
12278 (do_enable_breakpoint): Ditto.
12279
8d577d32
DC
122802004-02-02 David Carlton <carlton@kealia.com>
12281
12282 * valops.c (enum oload_classification): New.
12283 (find_overload_match): Break implementation into separate
12284 functions; delete #if 0'd code; look for symbols within
12285 namespaces.
12286 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
12287 (find_oload_champ,oload_method_static,classify_oload_match): New.
12288 * cp-support.h: Add declaration for cp_func_name; update
12289 declaration for make_symbol_overload_list.
12290 * cp-support.c (cp_func_name): New.
12291 (overload_list_add_symbol): Fix comment, use
12292 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
12293 (make_symbol_overload_list): Take a function name and a namespace
12294 instead of a symbol; change implementation.
12295 (make_symbol_overload_list_using): New.
12296 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
12297
22e8e3c7
FF
122982004-02-02 Fred Fish <fnf@redhat.com>
12299
12300 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 12301 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
12302 * remote-sim.c (gdb_os_write_stderr): Write output to
12303 gdb_stdtargerr stream instead of gdb_stdtarg stream.
12304 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 12305 gdb_stderr stream and update copyright years.
22e8e3c7 12306
6b753f60
DJ
123072004-02-01 Daniel Jacobowitz <drow@mvista.com>
12308
12309 * Makefile.in (mips-linux-nat.o): Update dependencies.
12310 * mips-linux-nat.c: Include mips-tdep.h.
12311
123122004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
12313
12314 * sol-thread.c (sol_thread_xfer_partial): New function.
12315 (init_sol_thread_ops): Use that for to_xfer_partial hook.
12316 (init_sol_core_ops): Likewise.
12317
12318 * procfs.c (procfs_xfer_partial): New function.
12319 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
12320 * Makefile.in (procfs.o): Add $(auxv_h) dep.
12321
12322 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
12323 procfs_xfer_auxv function.
12324
12325 * procfs.c (procfs_make_note_section): If we can read
12326 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
12327 * linux-proc.c (linux_make_note_section): Likewise.
12328
12329 * auxv.h: New file.
12330 * auxv.c: New file.
12331 * Makefile.in (auxv_h): New variable.
12332 (COMMON_OBS): Add auxv.o here.
12333 (auxv.o): New target.
12334
12335 * corelow.c (core_xfer_partial): New function.
12336 (init_core_ops): Use it for core_ops.to_xfer_partial.
12337
12338 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
12339 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
12340 macro if that is defined.
12341
fa5281d0
DJ
123422004-02-01 Daniel Jacobowitz <drow@mvista.com>
12343
12344 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
12345 and check the specified thread for each breakpoint.
12346 * breakpoint.h (bpstat_stop_status): Update prototype.
12347 * infrun.c (handle_inferior_event): Update calls to
12348 bpstat_stop_status.
12349
26ee262d
DJ
123502004-02-01 Daniel Jacobowitz <drow@mvista.com>
12351
12352 * Makefile.in (cli-cmds.o): Add $(readline_h).
12353
d9b52655
DJ
123542004-02-01 Daniel Jacobowitz <drow@mvista.com>
12355
12356 * cli/cli-cmds.c: Include readline.h.
12357 (complete_command): Pass the start of the last word to
12358 complete_line.
12359
9709f61c
DJ
123602004-01-31 Daniel Jacobowitz <drow@mvista.com>
12361
12362 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
12363 argument, and change first argument to a CORE_ADDR.
12364 * breakpoint.h (bpstat_stop_status): Update prototype.
12365 * infrun.c (adjust_pc_after_break): Add a new comment.
12366 (handle_inferior_event): Update calls to bpstat_stop_status.
12367
4f1280bb
DJ
123682004-01-31 Daniel Jacobowitz <drow@mvista.com>
12369
12370 * breakpoint.h: Update copyright years.
12371
4fa8626c
DJ
123722004-01-31 Daniel Jacobowitz <drow@mvista.com>
12373
12374 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
12375 (bpstat_stop_status): Don't decrement PC.
12376 * breakpoint.h (software_breakpoint_inserted_here_p): Add
12377 prototype.
12378 * infrun.c (adjust_pc_after_break): New function.
12379 (handle_inferior_event): Call it, early. Remove later references
12380 to DECR_PC_AFTER_BREAK.
12381 (normal_stop): Add commentary.
12382
fad0733a
DJ
123832004-01-31 Daniel Jacobowitz <drow@mvista.com>
12384
12385 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
12386 2004-01-27 double-free fix.
12387
42cdca6c
MK
123882004-01-31 Mark Kettenis <kettenis@gnu.org>
12389
12390 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12391 (sparc32_frame_prev_register): Handle StackGhost.
12392 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12393
932d5416
RM
123942004-01-29 Roland McGrath <roland@redhat.com>
12395
12396 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
12397 * configure: Regenerated.
12398
12399 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
12400 * Makefile.in (procfs.o): Add dep.
12401
47d3492a
AC
124022004-01-28 Andrew Cagney <cagney@redhat.com>
12403
12404 * tui/tui-stack.h: Update copyright.
12405 (struct frame_info): Add opaque declaration.
12406 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
12407 (tui_show_locator_content): Rename tuiShowLocatorContent.
12408 (tui_show_frame_info): Rename tuiShowFrameInfo.
12409 * tui/tui-stack.c: Update copyright. Update references.
12410 * tui/tui-winsource.c: Update references.
12411 * tui/tui-win.c: Update references.
12412 * tui/tui-layout.c: Update references.
12413 * tui/tui-hooks.c: Update copyright, update references.
12414 * tui/tui.c: Update copyright, update references.
12415 * tui/tui-disasm.c: Update references.
12416
5d51ca54
DC
124172004-01-28 David Carlton <carlton@kealia.com>
12418
12419 * dwarf2read.c (add_partial_structure): Use demangled name if
12420 namespace equals "".
12421
086ed43d
JB
124222004-01-27 Jim Blandy <jimb@redhat.com>
12423
12424 Clean up misapplied patch:
12425 * dwarf2read.c (determine_prefix): Change one of the two forward
12426 declarations for 'determine_prefix_aux' to a declaration for this.
12427 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
12428 argument to 'die_specification'.
12429
2a35147e
JB
12430 * dwarf2read.c (read_func_scope): Re-indent comment.
12431
a355c7de 124322004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 12433
a355c7de
AC
12434 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
12435 b->exp to NULL after freeing so that error during re-parsing or
12436 evaluation of expressions associated with breakpoint don't
12437 eventually lead to re-freeing of storage.
12438 Committed by Andrew Cagney.
12439
63ff5125
AC
124402004-01-27 Andrew Cagney <cagney@redhat.com>
12441
12442 * source.c (ambiguous_line_spec): Delete undefined declaration.
12443 * m32r-rom.c (m32r_set_board_address): Delete unused function.
12444 (m32r_set_server_address, m32r_set_download_path): Ditto.
12445 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
12446
e142c38c
DJ
124472004-01-27 Daniel Jacobowitz <drow@mvista.com>
12448
12449 * dwarf2read.c: Update calls to changed and renamed functions, and
12450 references to moved variables.
12451
12452 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
12453 language, language_defn, list_in_scope, and ftypes members.
12454 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
12455 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
12456 (baseaddr): Remove globals.
12457
12458 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
12459 (set_cu_language, die_is_declaration, die_specification)
12460 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
12461 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
12462 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
12463 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
12464
12465 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
12466 cu.list_in_scope. Don't initialize cu_header_offset.
12467 (add_partial_symbol): Add local baseaddr.
12468 (psymtab_to_symtab_1): Add local baseaddr. Use
12469 objfile->section_offsets for consistency. Don't initialize
12470 cu_header_offset; do initialize cu.header.offset and
12471 cu.list_in_scope.
12472 (read_file_scope, read_func_scope, read_lexical_block_scope)
12473 (dwarf_decode_lines, new_symbol): Add local baseaddr.
12474
c6e06ede
MC
124752004-01-27 Michael Chastain <mec.gnu@mindspring.com>
12476
fb328ecc 12477 * PROBLEMS: Add gdb/1516.
c6e06ede 12478
48184fd4
AC
124792003-12-29 Robert Millan <robertmh@gnu.org>
12480
12481 Patch committed by Andrw Cagney.
12482 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
12483 * configure.tgt: Match knetbsd*-gnu.
12484
c1321b30
AC
124852004-01-26 Andrew Cagney <cagney@redhat.com>
12486
f3699be3
AC
12487 * breakpoint.c (catch_command_1): Delete #ifdef code.
12488 (catch_fork_command_1): Delete #ifdef wrapper.
12489 (catch_exec_command_1): Ditto.
12490 (catch_load_command_1): Ditto.
12491 (catch_unload_command_1): Ditto.
12492
c1321b30
AC
12493 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
12494 (catch_breakpoint): Delete #if0ed function.
12495 (disable_catch_breakpoint): Ditto.
12496 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
12497 (disable_catch, enable_catch, delete_catch): Ditto.
12498
b4501125
AC
124992004-01-26 Andrew Cagney <cagney@redhat.com>
12500
12501 * remote.c (echo_check, quit_flag): Delete variables.
12502 (cisco_kernel_mode): Delete variable.
12503 (minitelnet_return, tty_input, escape_count): Delete variables.
12504 (remote_cisco_mode): Delete variable.
12505 (remote_cisco_open, remote_cisco_close): Delete function.
12506 (remote_cisco_mourn, remote_cisco_wait): Delete function.
12507 (init_remote_cisco_ops): Delete function.
12508 (_initialize_remote): Do not install "remote cisco" code.
12509 (read_frame): Delete cisco specific code.
12510 (remote_info_process): Delete function.
12511 (remote_wait): Delete cisco specific code.
12512 (remote_cisco_section_offsets): Delete function.
12513 (remote_cisco_objfile_relocate): Delete function.
12514 (remote_async_wait): Delete cisco specific code.
12515 (minitelnet, readtty, readsocket): Delete function.
12516
74055713
AC
125172004-01-26 Andrew Cagney <cagney@redhat.com>
12518
12519 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
12520 comments mentioning extract_returned_value_address.
12521 * infcmd.c (print_return_value): Update. Add comments on
12522 extract_returned_value_address.
12523 * stack.c (return_command): Add comments on
12524 extract_returned_value_address.
12525 * values.c: Update comment.
12526 * m32r-tdep.c: Update comment.
12527 * sparc-tdep.c: Update comment.
12528 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
12529 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12530 * sh64-tdep.c (sh64_gdbarch_init): Update.
12531 * sh-tdep.c (sh_gdbarch_init): Update.
12532 * s390-tdep.c (s390_gdbarch_init): Update.
12533 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12534 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
12535 * m68k-tdep.c (m68k_gdbarch_init): Update.
12536 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12537 * m32r-tdep.c (m32r_gdbarch_init): Update.
12538 * ia64-tdep.c (ia64_gdbarch_init): Update.
12539 * h8300-tdep.c (h8300_gdbarch_init): Update.
12540 * frv-tdep.c (frv_gdbarch_init): Update.
12541 * arm-tdep.c (arm_gdbarch_init): Update.
12542 * alpha-tdep.c (alpha_gdbarch_init): Update.
12543
a67af2b9
AC
125442004-01-26 Andrew Cagney <cagney@redhat.com>
12545
12546 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
12547 SYMBOL_LOCATION_FUNCS
12548 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
12549 "struct symbol_ops".
12550 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
12551 type to "struct symbol_ops".
12552 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
12553 (struct symbol): Replace ".aux_value.loc.funcs" and
12554 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
12555 (SYMBOL_OBJFILE): Delete macro.
12556 (SYMBOL_LOCATION_FUNCS): Delete macro.
12557 (SYMBOL_LOCATION_BATON): Update.
12558 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
12559 intead of SYMBOL_LOCATION_FUNCS.
12560 * ax-gdb.c (gen_var_ref): Ditto.
12561 * printcmd.c (address_info): Ditto.
12562 * findvar.c (read_var_value): Ditto.
12563 (symbol_read_needs_frame): Ditto.
12564
c034e007
AC
125652004-01-26 Andrew Cagney <cagney@redhat.com>
12566
12567 * dwarf2read.c (read_func_scope): Document frame-base hack.
12568
bb472c1e
MK
125692004-01-25 Mark Kettenis <kettenis@gnu.org>
12570
12571 * infcmd.c (print_return_value): Plug memory leak; delete
12572 ui_stream object. Rename argument `structure_return' to
12573 `struct_return'.
12574
c8e737d5
MK
125752004-01-25 Mark Kettenis <kettenis@gnu.org>
12576
f941662f
MK
12577 * infcmd.c (print_return_value): Wrap long lines.
12578 (finish_command_continuation, finish_command): Remove unused
12579 variable `funcaddr'. Fix some coding-standards problems.
12580
c558d81a 12581 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 12582 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
12583 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
12584 TDEP->fpregset to zero.
12585
bf1e5861 12586 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
12587 floating-point registers for traditional NetBSD core files.
12588 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
12589 TDEP->sizeof_fpregset here.
12590
4c72d57a
MK
125912004-01-25 Mark Kettenis <kettenis@gnu.org>
12592
566626fa
MK
12593 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
12594 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
12595 function with code split out from
12596 sparc32nbsd_sigcontext_frame_cache.
12597 (sparc32nbsd_sigcontext_frame_cache): Use
12598 sparc32nbsd_sigcontext_saved_regs.
12599 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
12600 OpenBSD.
12601 * sparcobsd-tdep.c: New file.
12602 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
12603 (sparcobsd-tdep.o): New dependency.
12604 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
12605 * config/sparc/obsd.mt: New file.
12606
4c72d57a
MK
12607 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
12608 TDEP->fpregset to be initialized to enable core file register
12609 sets.
12610
7e5e9f88
MK
126112004-01-24 Mark Kettenis <kettenis@gnu.org>
12612
f0f207fd 12613 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
12614 Add opaque declarations.
12615 (sparc64nbsd_sigcontext_saved_regs): New prototype.
12616 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
12617 function with code split out from
12618 sparc64nbsd_sigcontext_frame_cache.
12619 (sparc64nbsd_sigcontext_frame_cache): Use
12620 sparc64nbsd_sigcontext_saved_regs.
12621 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
12622 OpenBSD.
12623 * sparc64obsd-tdep.c: New file.
12624 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
12625 (sparc64obsd-tdep.o): New dependency.
12626 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
12627 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
12628 * config/sparc/obsd64.mt: New file.
12629
690668cc
MK
12630 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
12631 read the instruction at PC.
12632
7e5e9f88
MK
12633 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
12634 value of GDB_OSABI_DEFAULT.
12635 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
12636 instead of GDB_OSABI_NETBSD_AOUT.
12637
68b6dce9
NR
126382004-01-24 Nick Roberts <nick@nick.uklinux.net>
12639
12640 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
12641 copyright.
12642
080ce8c0
AC
126432004-01-23 Andrew Cagney <cagney@redhat.com>
12644
12645 * printcmd.c (display_command): Replace tui_set_display call with
12646 tui_set_layout_for_display_command.
12647 * tui/tui.h (enum tui_win_type): Define.
12648 (tui_set_layout): Delete declaration.
12649 (tui_set_layout_for_display_command): Rename set_tui_layout.
12650 * tui/tui-data.h (enum tui_layout_type): Define.
12651 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
12652 "tui.h".
12653 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
12654 (tui_default_win_height): Rename tuiDefaultWinHeight.
12655 (tui_default_win_viewport_height): Rename
12656 tuiDefaultWinViewportHeight.
12657 (tui_set_layout): RenametuiSetLayout.
12658 * tui/tui-layout.c: Update references.
12659 * tui/tui.c: Update references.
12660 * tui/tui-disasm.c: Update references.
12661
b368761e
DC
126622004-01-23 David Carlton <carlton@kealia.com>
12663
12664 Partial workaround for PR c++/1511:
12665 * cp-namespace.c: Include frame.h.
12666 (cp_lookup_transparent_type): New
12667 (cp_lookup_transparent_type_loop): New.
12668 * cp-support.h: Declare cp_lookup_transparent_type.
12669 * symtab.c (basic_lookup_transparent_type): Renamed from
12670 lookup_transparent_type.
12671 (lookup_transparent_type): Replace old body by a call to
12672 current_language->la_lookup_transparent_type.
12673 * symtab.h: Update copyright. Declare
12674 basic_lookup_transparent_type.
12675 * language.h: Update copyright.
12676 (struct language_defn): Add la_lookup_transparent_type.
12677 * language.c: Update copyright.
12678 (unknown_language_defn): Add basic_lookup_transparent_type.
12679 (auto_language_defn): Add basic_lookup_transparent_type.
12680 (local_language_defn): Add basic_lookup_transparent_type.
12681 * ada-lang.c: Update copyright.
12682 (ada_language_defn): Add basic_lookup_transparent_type.
12683 * c-lang.c: Update copyright.
12684 (c_language_defn): Add basic_lookup_transparent_type.
12685 (cplus_language_defn): Add basic_lookup_transparent_type.
12686 (asm_language_defn): Add basic_lookup_transparent_type.
12687 (minimal_language_defn): Add basic_lookup_transparent_type.
12688 * f-lang.c: Update copyright.
12689 (f_language_defn): Add basic_lookup_transparent_type.
12690 * jv-lang.c: Update copyright.
12691 (java_language_defn): Add basic_lookup_transparent_type.
12692 * m2-lang.c: Update copyright.
12693 (m2_language_defn): Add basic_lookup_transparent_type.
12694 * objc-lang.c: Update copyright.
12695 (objc_language_defn): Add basic_lookup_transparent_type.
12696 * p-lang.c: Update copyright.
12697 (p_language_defn): Add basic_lookup_transparent_type.
12698 * scm-lang.c: Update copyright.
12699 (scm_language_defn): Add basic_lookup_transparent_type.
12700 * Makefile.in (cp-namespace.o): Depend on frame.h.
12701
fdde2d81
DC
127022004-01-23 David Carlton <carlton@kealia.com>
12703
12704 Patch for PR c++/1520:
12705 * dwarf2read.c (read_func_scope): Set processing_current_prefix
12706 properly if we have a specification die.
12707 (determine_prefix_aux): Rename from determine_prefix.
12708 (determine_prefix): Like the old determine_prefix, but never
12709 returns NULL.
12710
5b828b6b
TR
127112004-01-23 Theodore A. Roth <troth@openavr.org>
12712
12713 * avr-tdep.c: Update copyright.
12714 (avr_iaddr_p): Delete unused function.
12715 (avr_saddr_p): Delete unused function.
12716
a1b8c067
DC
127172004-01-23 David Carlton <carlton@kealia.com>
12718
12719 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
12720 Fix for PR symtab/1534.
12721
f2cab569
MK
127222004-01-23 Mark Kettenis <kettenis@gnu.org>
12723
12724 * NEWS (New native configurations): Mention OpenBSD/sparc and
12725 OpenBSD/sparc64.
12726 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
12727 * configure.host: Likewise.
12728 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
12729 handler for OpenBSD.
12730 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
12731
642d8300
MK
127322004-01-22 Mark Kettenis <kettenis@gnu.org>
12733
89aac506
MK
12734 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
12735 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
12736
36662fde
MK
12737 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
12738 * cli/cli-cmds.c (shell_escape): Likewise.
12739
642d8300
MK
12740 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
12741 OpenBSD .note.openbsd.ident sections.
12742
fae299cd
DC
127432004-01-22 David Carlton <carlton@kealia.com>
12744
12745 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
12746 get_scope_pc_bounds.
12747 (read_file_scope): Ditto.
12748 (get_scope_pc_bounds): New function, produced by extracting code
12749 from the above two functions, consolidating it, and adding support
12750 for DW_TAG_namespace.
12751
a49d618c
MK
127522004-01-22 Mark Kettenis <kettenis@gnu.org>
12753
12754 * osabi.c (MAX_NOTESZ): New define.
12755 (check_note): New function.
12756 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
12757 check_note.
12758
fe61caab
RM
127592004-01-21 Roland McGrath <roland@redhat.com>
12760
12761 * MAINTAINERS (write after approval): Add myself.
12762
ec145965
EZ
127632004-01-21 Eli Zaretskii <eliz@gnu.org>
12764
12765 * utils.c (init_page_info): Move declarations of `rows' and
12766 `cols' before the __GO32__-specific code. Move the closing brace
12767 outside the #ifdef __GO32__..#endif block.
12768 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
12769
877522db
PB
127702004-01-21 Paul Brook <paul@codesourcery.com>
12771
12772 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
12773 BPSTAT_WHAT_CHECK_SHLIBS.
12774
dbf5be1c
PB
127752004-01-21 Paul Brook <paul@codesourcery.com>
12776
12777 * MAINTAINERS: Add myself to write-after-approval.
12778
81f08b92
AC
127792004-01-20 Andrew Cagney <cagney@redhat.com>
12780
5a1efed7
AC
12781 * ax-gdb.c (print_axs_value): Delete unused function.
12782 * jv-lang.c (java_lookup_type): Delete unused function.
12783 * cli/cli-dump.c (dump_filetype): Delete unused function.
12784 * remote-mips.c (remote_mips_insert_hw_breakpoint)
12785 (remote_mips_remove_hw_breakpoint): Delete unused functions.
12786 (mips_getstring): Delete unused function.
12787 (pmon_insert_breakpoint): Delete #if0ed function.
12788 (PMON_MAX_BP): Delete #if0ed MACRO.
12789 (mips_pmon_bp_info): Delete #if0ed variable.
12790 (pmon_remove_breakpoint): Delete #if0ed function.
12791 * monitor.c (monitor_write_even_block): Delete unused function.
12792 (monitor_write_memory_block): Delete #if0ed code.
12793 * dink32-rom.c (dink32_load): Delete unused function.
12794 (_initialize_dink32_rom): Delete #if0ed code.
12795 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
12796
b0a30fce
AC
12797 * tui/tui-command.c: Update references.
12798 * tui/tui-io.c: Update references.
12799 * tui/tui-command.h: Update copyright.
12800 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
12801
81f08b92
AC
12802 * source.c (ambiguous_line_spec): Delete never-defined function.
12803 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
12804 * gdbtypes.c (add_name, add_mangled_type): Ditto.
12805 * cli/cli-cmds.c (validate_comname): Ditto.
12806
65f05602
AC
12807 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
12808 "tui-data.h".
12809 (tui_set_disassem_content): Rename tuiSetDisassemContent.
12810 (tui_show_disassem): Rename tuiShowDisassem.
12811 (tui_show_disassem_and_update_source): Rename
12812 tuiVerticalDisassemScroll.
12813 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
12814 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
12815 * tui/tui.h: Update copyright.
12816 (enum tui_status): Define.
12817 * tui/tui-data.h (enum tui_scroll_direction): Define.
12818 * tui/tui-disasm.c: Update copyright. Update references.
12819 * tui/tui-winsource.c: Update copyright. Update references.
12820 * tui/tui-win.c: Update references.
12821 * tui/tui-layout.c: Update references.
12822
6bb0384f
AC
128232004-01-20 Andrew Cagney <cagney@redhat.com>
12824
12825 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
12826 sym2 to start of block.
12827
9175c9a3
MC
128282004-01-19 Michael Chastain <mec.gnu@mindspring.com>
12829
12830 * MAINTAINERS: Delete mmalloc.
12831 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
12832 * NEWS: Mention removal of --with-malloc.
12833 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
12834 * config.in: Regenerate.
12835 * configure: Regenerate.
6bb0384f
AC
12836 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
12837 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
12838 * gdbinit.in: Remove mmalloc.
12839 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
12840 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
12841 * config/i386/go32.mh: Likewise.
12842 * config/i386/interix.mh: Likewise.
12843 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
12844
4fcef00a
JJ
128452004-01-19 Jeff Johnston <jjohnstn@redhat.com>
12846
12847 * linespec.c (decode_variable, symtab_from_filename): Call
12848 error_silent with error message instead of throwing an exception
12849 directly.
12850 * defs.h (error_silent, error_output_message): Add prototypes.
12851 (catch_exceptions_with_msg): Ditto.
12852 * utils.c (error_silent, error_output_message): New functions.
12853 * top.c (catch_exceptions_with_msg): New function.
12854
8e94b928
NR
128552004-01-20 Nick Roberts <nick@nick.uklinux.net>
12856
12857 * mi/mi-cmds.h (enum print_values): Add definition.
12858
12859 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
12860 type and value for simple data types and just the name and type
12861 for complex ones, if required.
12862
12863 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
12864 children, if required.
12865
a02d6af8
KB
128662004-01-19 Kevin Buettner <kevinb@redhat.com>
12867
12868 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
12869 unused declarations.
12870
78a4a9b9
AC
128712004-01-19 Andrew Cagney <cagney@redhat.com>
12872
12873 * top.h (mapped_symbol_files): Delete declaration.
12874 * main.c (captured_main): Delete option "m" and "mapped".
12875 * objfiles.c (mapped_symbol_files): Delete variable.
12876 * symfile.c (symbol_file_command): Delete mmap code.
12877 (symbol_file_add_with_addrs_or_offsets): Ditto.
12878 (add_symbol_file_command, reread_separate_symbols): Ditto.
12879 * objfiles.h (OBJF_MAPPED): Delete.
12880 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
12881 (free_objfile) [USE_MMALLOC]: Ditto.
12882 (open_existing_mapped_file): Delete function.
12883 (open_mapped_file): Delete function.
12884 (map_to_file): Delete function.
12885
2dbd5e30
KB
128862004-01-19 Kevin Buettner <kevinb@redhat.com>
12887
12888 * infrun.c (step_into_function): Account for possible breakpoint
12889 adjustment when computing ``stop_func_start''.
12890
437b434f
KB
128912004-01-19 Kevin Buettner <kevinb@redhat.com>
12892
12893 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
12894 the region size against the size of a pointer, not the size of
12895 a register as given by DEPRECATED_REGISTER_SIZE.
12896
55fb0713
AC
128972004-01-19 Andrew Cagney <cagney@redhat.com>
12898
12899 * tui/tui-regs.h: Include "tui-data.h".
12900 (tuiFirstRegElementNoInLine): Delete declaration.
12901 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
12902 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
12903 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
12904 (tui_calculate_regs_column_count): Rename
12905 tuiCalculateRegsColumnCount.
12906 (tui_check_register_values): Rename tuiCheckRegisterValues.
12907 (tui_show_registers): Rename tuiShowRegisters.
12908 (tui_display_registers_from_line): Rename
12909 tuiDisplayRegistersFromLine.
12910 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
12911 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
12912 (tui_first_reg_element_no_inline): Rename
12913 tuiFirstRegElementNoInLine.
12914 * tui/tui-data.h: Update copyright.
12915 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
12916 * tui/tui-windata.c: Update copyright, update references.
12917 * tui/tui-regs.c: Update copyright, update references.
12918 * tui/tui-win.c: Update copyright, update references.
12919 * tui/tui-layout.c: Update copyright, update references.
fe61caab 12920
cebe9500
AC
129212004-01-18 Andrew Cagney <cagney@redhat.com>
12922
bcdf1568
AC
12923 * tui/tui-io.c: Update copyright.
12924 (key_is_end_sequence, key_is_backspace): New functions.
12925 (key_is_command_char, key_is_start_sequence): New function.
12926 (tui_getc): Update references.
12927 * tui/tui-io.h: Update copyright.
12928 (m_tuiStartNewLine): Delete macro.
12929 (m_isBackspace, m_isDeleteChar): Delete macros.
12930 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
12931 (m_isNextPage, m_isPrevPage): Delete macros.
12932 (m_isLeftArrow, m_isRightArrow): Delete macros.
12933 (m_isXdbStyleCommandChar): Delete macro.
12934 (key_is_start_sequence): Declare, replace m_isStartSequence.
12935 (key_is_end_sequence): Declare, replace m_isEndSequence.
12936 (key_is_backspace): Declare ,replace m_isBackspace.
12937 (key_is_command_char): Declare, replace m_isCommandChar.
12938 * tui/tui-command.c: Update copyright.
12939 (tuiDispatchCtrlChar): Update references.
12940
130d87e6
AC
12941 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
12942 tuiSourceWin.h.
12943
d7b2e967
AC
12944 * tui/tui-command.c: Rename tui/tuiCommand.c.
12945 * tui/tui-command.h: Rename tui/tuiCommand.h.
12946 * tui/tui-data.c: Rename tui/tuiData.c.
12947 * tui/tui-data.h: Rename tui/tuiData.h.
12948 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
12949 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
12950 * tui/tui-io.c: Rename tui/tuiIO.c.
12951 * tui/tui-io.h: Rename tui/tuiIO.h.
12952 * tui/tui-layout.c: Rename tui/tuiLayout.c.
12953 * tui/tui-layout.h: Rename tui/tuiLayout.h.
12954 * tui/tui-regs.c: Rename tui/tuiRegs.c.
12955 * tui/tui-regs.h: Rename tui/tuiRegs.h.
12956 * tui/tui-source.c: Rename tui/tuiSource.c.
12957 * tui/tui-source.h: Rename tui/tuiSource.h.
12958 * tui/tui-stack.c: Rename tui/tuiStack.c.
12959 * tui/tui-stack.h: Rename tui/tuiStack.h.
12960 * tui/tui-win.c: Rename tui/tuiWin.c.
12961 * tui/tui-win.h: Rename tui/tuiWin.h.
12962 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
12963 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
12964 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
12965 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
12966 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
12967 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
12968 * tui/tui-file.c: Update includes.
12969 * tui/tui-hooks.c: Update includes.
12970 * tui/tui-interp.c: Update includes.
12971 * tui/tui.c: Update includes.
12972 * Makefile.in: Update all tui/ dependencies.
12973 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
12974
b2100910
AC
12975 * Makefile.in: Update copyright. Update dependencies.
12976
cebe9500
AC
12977 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
12978 problem.
12979
c6f0559b
AC
129802004-01-18 Andrew Cagney <cagney@redhat.com>
12981
43e9390b
AC
12982 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
12983 instead of register_gdbarch_init.
12984
c6f0559b
AC
12985 * remote-sds.c (tohex): Delete unused function. Update copyright.
12986 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
12987 * v850-tdep.c (v850_register_virtual_size): Ditto.
12988 * target.c (normal_target_post_startup_inferior): Ditto.
12989 * source.c (ambiguous_line_spec): Ditto.
12990 * remote.c (adapt_remote_get_threadinfo): Ditto.
12991 * mi/mi-out.c (out_field_fmt): Ditto.
12992 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
12993 (output_control_change_notification): Ditto.
12994 * m68k-tdep.c (m68k_register_byte): Ditto.
12995 (m68k_remote_breakpoint_from_pc): Ditto.
12996 * ui-out.c (init_ui_out_state): Delete unused declaration.
12997 * stabsread.c (search_value): Ditto.
12998 * mi/mi-cmd-env.c (env_cli_command): Ditto.
12999 * maint.c (print_section_table): Ditto.
13000 * infrun.c (set_follow_fork_mode_command): Ditto.
13001
a8504492
MK
130022004-01-18 Mark Kettenis <kettenis@gnu.org>
13003
13004 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
13005 DW_CFA_def_cfa_exporession. Add support for
13006 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
13007 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
13008
0bd8997e
AC
130092004-01-18 Andrew Cagney <cagney@redhat.com>
13010
13011 * ocd.c: Update copyright.
13012 (bdm_read_register_command): Delete unused function.
13013 (_initialize_remote_ocd): Delete commented out reference.
13014 (get_quoted_char, reset_packet): Delete #if0ed function.
13015 (output_packet, put_quoted_char): Delete #if0ed function.
13016 (stu_put_packet, stu_get_packet): Delete #if0ed function.
13017 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
13018 (BDM_BREAKPOINT): Delete #if0ed macro.
13019 (remote_timeout): Delete #if0ed variable.
13020
31bb40e4
MK
130212004-01-18 Mark Kettenis <kettenis@gnu.org>
13022
13023 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
13024 (core-sol2.o): Remove dependency.
13025 * core-sol2.c: Remove file.
13026
887432a5
AC
130272004-01-17 Andrew Cagney <cagney@redhat.com>
13028
13029 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
13030 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
13031 enums.
13032
29182b13
DJ
130332004-01-17 Daniel Jacobowitz <drow@mvista.com>
13034
13035 * remote.c: Update copyright years.
13036
2963ee1d
DJ
130372004-01-17 Daniel Jacobowitz <drow@mvista.com>
13038
13039 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
13040
79d45cd4
AC
130412004-01-17 Andrew Cagney <cagney@redhat.com>
13042
ee300cd4
AC
13043 * mdebugread.c: Update copyright.
13044 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
13045 (parse_type, parse_procedure): Ditto.
13046 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
13047
fcacc9c2
AC
13048 * cris-tdep.c (cris_store_struct_return): Put back accidently
13049 deleted function.
13050
79d45cd4
AC
13051 * gdbarch.sh: Update copyright year.
13052 * gdbarch.h, gdbarch.c: Re-generate.
13053
b263358a
DJ
130542004-01-17 Daniel Jacobowitz <drow@mvista.com>
13055
13056 Suggested by George Anzinger.
13057 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
13058 correct stack offset. Include unknown opcode numbers in the error
13059 message.
13060
931aecf5
AC
130612004-01-17 Andrew Cagney <cagney@redhat.com>
13062
13063 * x86-64-tdep.c (x86_64_init_abi): No need to clear
13064 extract_struct_value_address, i386 does not set it.
13065 * sparc64-tdep.c (sparc64_init_abi): Do not set
13066 extract_struct_value_address, never called.
13067 (sparc64_extract_struct_value_address): Delete function.
13068 * m68hc11-tdep.c: Update copyright.
13069 (m68hc11_gdbarch_init): Delete redundant assignment of
13070 extract_struct_value_address.
13071 * i386-tdep.c: Update copyright.
13072 (i386_gdbarch_init): Do not set extract_struct_value_address,
13073 never called.
13074 (i386_extract_struct_value_address): Delete function.
13075 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
13076 extract_struct_value_address, never called.
13077 (sparc32_extract_struct_value_address): #if 0 function. Add
13078 comments explaining its future.
13079
756fe439
DJ
130802004-01-17 Daniel Jacobowitz <drow@mvista.com>
13081
13082 * arm-tdep.c (arm_write_pc): New function.
13083 (arm_gdbarch_init): Call set_gdbarch_write_pc.
13084
e74f0f02
DJ
130852004-01-17 Daniel Jacobowitz <drow@mvista.com>
13086
13087 * breakpoint.c (must_shift_inst_regs): Delete.
13088 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
13089 and SHIFT_INST_REGS.
13090 * infcmd.c (step_1, step_1_continuation): Delete references to
13091 SHIFT_INST_REGS.
13092 * infrun.c (keep_going): Likewise.
13093 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
13094 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
13095
b6cb9035
AC
130962004-01-17 Andrew Cagney <cagney@redhat.com>
13097
444a1e2e
AC
13098 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13099 * gdbarch.h, gdbarch.c: Re-generate.
13100 * infcmd.c (print_return_value): Delete reference to
13101 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
13102
def7e6ed
AC
13103 * cris-tdep.c (cris_gdbarch_init): Do not set
13104 deprecated_extract_struct_value_address.
13105
07be497a
AC
13106 * xstormy16-tdep.c: Update copyright.
13107 (xstormy16_extract_struct_value_address): Update to current
13108 extract struct value address interface.
13109 (xstormy16_gdbarch_init): Set extract_struct_value_address.
13110 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
13111 current extract struct value address interface.
13112 (sh64_gdbarch_init): Set extract_struct_value_address.
13113
6b4d5c91
AC
13114 * cris-tdep.c: Update copyright.
13115 (cris_extract_struct_value_address): Delete function.
13116 (struct_return_address): Delete variable.
13117 (cris_store_struct_return): Do not set struct_return_address.
13118
464e0365
AC
13119 * mcore-tdep.c: Update copyright.
13120 (mcore_extract_struct_value_address): Delete function. Update
13121 comments.
13122 (mcore_gdbarch_init): Update.
13123 * mn10300-tdep.c: Update copyright.
13124 (mn10300_extract_struct_value_address): Delete function.
13125 (mn10300_gdbarch_init): Update.
13126 * v850-tdep.c: Update copyright.
13127 (v850_extract_struct_value_address): Delete.
13128 (v850_gdbarch_init): Update.
13129 * ns32k-tdep.c: Update copyright.
13130 (ns32k_extract_struct_value_address): Delete.
13131 (ns32k_gdbarch_init): Update.
13132 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
13133 (hppa_gdbarch_init): Update.
13134 * vax-tdep.c: Update copyright.
13135 (vax_extract_struct_value_address): Delete.
13136 (vax_gdbarch_init): Update.
13137
afb18d0f
AC
13138 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
13139 * gdbarch.h, gdbarch.c: Re-generate.
13140 * procfs.c (procfs_fetch_registers): Delete reference to
13141 DEPRECATED_NPC_REGNUM.
13142 (procfs_store_registers): Ditto.
13143 * regcache.c (generic_target_write_pc): Simplify.
13144 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
13145
a698f53e
AC
13146 * core-sol2.c (fetch_core_registers): Replace
13147 DEPRECATED_NPC_REGNUM with equivalent tdep value.
13148
adc11376
AC
13149 * hppa-tdep.c: Update copyright year.
13150 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
13151 NPC_REGNUM.
13152 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
13153
b6cb9035
AC
13154 * mips-tdep.c (mips_write_pc): New function.
13155 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
13156 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
13157 (mips_find_saved_regs, mips_software_single_step: Ditto.
13158 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
13159 mips_init_extra_frame_info, mips_pop_frame): Ditto.
13160
6d82d43b
AC
131612004-01-17 Andrew Cagney <cagney@redhat.com>
13162
13163 * mips-tdep.c: Re-indent. Group functions by ABI.
13164
71bd6bd4
AC
131652004-01-17 Andrew Cagney <cagney@redhat.com>
13166
13167 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
13168 * gdbarch.c: Re-generate.
13169 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13170 DECR_PC_AFTER_BREAK to zero.
13171 * vax-tdep.c (vax_gdbarch_init): Ditto.
13172 * v850-tdep.c (v850_gdbarch_init): Ditto.
13173 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13174 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13175 * sh-tdep.c (sh_gdbarch_init): Ditto.
13176 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13177 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13178 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13179 * mips-tdep.c (mips_gdbarch_init): Ditto.
13180 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13181 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13182 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13183 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13184 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
13185 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13186 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13187 * frv-tdep.c (frv_gdbarch_init): Ditto.
13188 * cris-tdep.c (cris_gdbarch_init): Ditto.
13189 * avr-tdep.c (avr_gdbarch_init): Ditto.
13190 * arm-tdep.c (arm_gdbarch_init): Ditto.
13191 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
13192
a02abb62
JB
131932004-01-17 J. Brobecker <brobecker@gnat.com>
13194
13195 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
13196 Delete, no longer used.
13197 (read_subrange_type): New function, mostly extracted from
13198 read_array_type().
13199 (read_array_type): Replace extracted code by call to
13200 read_subrange_type().
13201 (dwarf2_get_attr_constant_value): New function.
13202 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
13203 (add_partial_symbol): Likewise.
13204 (process_die): Likewise.
13205 (new_symbol): Likewise.
13206 (read_type_die): Likewise.
13207
cf5b2f1b
AC
132082004-01-16 Andrew Cagney <cagney@redhat.com>
13209
13210 * symfile.c: Update copyright year.
13211 (compare_symbols): Delete unused function.
13212 * stabsread.c: Update copyright year.
13213 (lrs_general_complaint): Delete unused function.
13214 (ref_search_value): Ditto.
13215 (get_substring): Delete declaration.
13216 * sh64-tdep.c: Update copyright year.
13217 (sh64_get_gdb_regnum): Delete unused function.
13218 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
13219 Delete unused function.
13220
d33b9831
MK
132212004-01-17 Mark Kettenis <kettenis@gnu.org>
13222
13223 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
13224 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
13225
7aea86e6
AC
132262004-01-16 Andrew Cagney <cagney@redhat.com>
13227
13228 Changes from Peter Schauer.
13229 * rs6000-tdep.c: Update copyright year.
13230 (rs6000_push_dummy_call): Update the stack pointer before
13231 accessing the corresponding stack region.
13232 * rs6000-nat.c: Update copyright year.
13233 (set_host_arch): Set "info.abfd" to "exec_bfd".
13234
26b0da32
MK
132352004-01-15 Mark Kettenis <kettenis@gnu.org>
13236
13237 * blockframe.c: Update copyright year.
13238 (inside_entry_func): Don't treat a zero PC specially.
13239
86fbe6cc
EZ
132402004-01-14 Elena Zannoni <ezannoni@redhat.com>
13241
13242 * gcore.c (gcore_copy_callback): Use paddr_d to print size
13243 variable.
13244 (gcore_create_callback): Ditto. Skip any memory segment that has
13245 no permissions set.
13246
63d06c5c
DC
132472004-01-14 David Carlton <carlton@kealia.com>
13248
13249 Change symbols for C++ nested types to contain the fully qualified
13250 name, if possible. (At least in the DWARF-2 case.) Partial fix
13251 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
13252 c++/895.
13253 * c-exp.y (qualified_type): Handle types nested within classes.
13254 * cp-namespace.c: Update comments.
13255 (cp_set_block_scope): Delete #if 0.
13256 (cp_lookup_nested_type): Handle types nested within classes.
13257 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
13258 when appropriate.
13259 (add_partial_symbol): Add the name of the enclosing namespace to
13260 types.
13261 (pdi_needs_namespace): New.
13262 (add_partial_namespace): Tweak comment.
13263 (add_partial_structure): New.
13264 (psymtab_to_symtab_1): Initialize processing_current_prefix
13265 here...
13266 (process_die): instead of here.
13267 (read_structure_scope): Try to figure out the name of the class or
13268 namespace that the structure might be defined within.
13269 (read_enumeration): Generate fully-qualified names, if possible.
13270 (read_namespace): Don't set name to NULL.
13271 (die_specification): New.
13272 (new_symbol): Generate fully-qualified names for types.
13273 (read_type_die): Determine appropriate prefix.
13274 (determine_prefix): New.
13275 (typename_concat): New.
13276 (class_name): New.
13277 * valops.c (value_aggregate_elt): Pass NOSIDE to
13278 value_struct_elt_for_reference.
13279 (value_struct_elt_for_reference): Make static, add NOSIDE
13280 parameter, call value_maybe_namespace_elt as a last resort.
13281 (value_namespace_elt): Break out code into
13282 value_maybe_namespace_elt.
13283 (value_maybe_namespace_elt): New.
13284
87783b8b
AC
132852004-01-12 Andrew Cagney <cagney@redhat.com>
13286
13287 * mips-tdep.c (mips_convert_register_p): Handle both raw and
13288 cooked floating-point registers.
13289 (mips_gdbarch_init): Set convert_register_p, register_to_value,
13290 and value_to_register.
13291
6503b91e
AC
132922004-01-13 Andrew Cagney <cagney@redhat.com>
13293
13294 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
13295 * gdbarch.c: Re-generate.
13296 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13297 FUNCTION_START_OFFSET.
13298 * v850-tdep.c (v850_gdbarch_init): Ditto.
13299 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13300 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13301 * sh-tdep.c (sh_gdbarch_init): Ditto.
13302 * s390-tdep.c (s390_gdbarch_init): Ditto.
13303 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13304 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13305 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13306 * mips-tdep.c (mips_gdbarch_init): Ditto.
13307 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13308 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
13309 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13310 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13311 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13312 * i386-tdep.c (i386_gdbarch_init): Ditto.
13313 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13314 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13315 * frv-tdep.c (frv_gdbarch_init): Ditto.
13316 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
13317 * cris-tdep.c (cris_gdbarch_init): Ditto.
13318 * avr-tdep.c (avr_gdbarch_init): Ditto.
13319 * arm-tdep.c (arm_gdbarch_init): Ditto.
13320 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
13321
ea1dd7bc
DJ
133222004-01-13 Daniel Jacobowitz <drow@mvista.com>
13323
13324 * infrun.c (follow_fork_mode_ask): Remove.
13325 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
13326 (follow_fork): Simplify and remove internal error for
13327 follow_fork_mode_ask.
13328 (_initialize_infrun): Update "set follow-fork-mode" help text.
13329
0f0cffd2
AC
133302004-01-13 Andrew Cagney <cagney@redhat.com>
13331
13332 * configure.in: Update copyright year.
13333 (build_warnings): Add -Wunused-label.
13334 * configure: Re-generate.
13335
de38af99
AC
133362004-01-12 Andrew Cagney <cagney@redhat.com>
13337
954a7fba
AC
13338 * exec.h (exec_ops): Make "extern".
13339
de38af99
AC
13340 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
13341 the function is void.
13342 (mips_pseudo_register_write): Ditto.
13343
1a111ce3
AC
133442004-01-12 Andrew Cagney <cagney@redhat.com>
13345
13346 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
13347 call. Never defined.
13348 * sparc-tdep.h (struct frame_info): Add opaque declaration.
13349 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
13350 (struct sparc_gregset, struct regcache): Ditto.
13351 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
13352
48efe704
AC
133532004-01-12 Andrew Cagney <cagney@redhat.com>
13354
13355 * mi/ChangeLog: Delete file. Renamed to ...
13356 * mi/ChangeLog-1999-2003: New file.
13357 * tui/ChangeLog: Delete file. Renamed to ...
13358 * tui/ChangeLog-1998-2003: New file.
fe61caab 13359
a54124c5
MK
133602004-01-11 Mark Kettenis <kettenis@gnu.org>
13361
2ca62865
MK
13362 * sparc64nbsd-tdep.c: Include "regset.h".
13363 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
13364 Remove variables.
13365 (fetch_core_registers): Remove function.
13366 (sparc64nbsd_core_fns): Remove variable.
13367 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
13368 functions.
13369 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
13370 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
13371 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
13372
ca9d58e9
MK
13373 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
13374 sparc_extract_struct_value_address.
13375 (sparc32_gdbarch_init): Set extract_struct_value_address.
13376 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
13377 function.
13378 (sparc64_init_abi): Set extract_struct_value_address. Don't set
13379 return_value_on_stack.
13380
3cc87ec0
MK
13381 * NEWS: Mention that %cs and %ss have been added to the AMD64
13382 configurations
13383
5bf00f29
MK
13384 * frame.c: Update copyright year.
13385 (get_prev_frame): Improve comment.
13386
4f7ec84e
MK
13387 * sparc64fbsd-tdep.c: Include "regset.h".
13388 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
13389 Remove variables.
13390 (fetch_core_registers): Remove function.
13391 (sparc64fbsd_core_fns): Remove variable.
13392 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
13393 functions.
13394 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
13395 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 13396 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 13397
4e7b0cd3
MK
13398 * sparcnbsd-tdep.c: Include "regset.h".
13399 (fetch_core_registers): Remove function.
13400 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
13401 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
13402 functions.
13403 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
13404 TDEP->fpregset.
46b58ce9 13405 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 13406
a54124c5
MK
13407 * sparc-tdep.h (struct regset): Provide opaque declaration.
13408 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
13409 fpregset and sizeof_fpregset members.
13410 * sparc-tdep.c (struct regset): Provide opaque declaration.
13411 (sparc_regset_from_core_section): New function.
13412 (sparc32_gdbarch_init): Initialize TDEP->gregset,
13413 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
13414 Set regset_from_core_section when appropriate.
13415
29ff87c5
MK
134162004-01-10 Mark Kettenis <kettenis@gnu.org>
13417
79b1ab3d
MK
13418 * x86-64-tdep.c (amd64_non_pod_p): New function.
13419 (amd64_classify_aggregate): Return class memory for non-POD
13420 C++ structure types.
13421
6470d250
MK
13422 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
13423 argument. Use it to reserve a register if necessary.
13424 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
13425 amd64_push_arguments.
13426
562c50c2
MK
13427 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
13428
af233647
MK
13429 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
13430 register numbers in comments.
13431 * x86-64-tdep.h: Update copyright year.
13432 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
13433 Adjust for addition of %cs and %ss.
13434 * amd64fbsd-nat.c: Update copyright year.
13435 (reg_offset): Add register offsets for %cs and %ss.
13436 * amd64fbsd-tdep.c: Update copyright year.
13437 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
13438 (amd64fbsd_sc_reg_offset): Likewise.
13439 * x86-64-linux-nat.c: Update copyright year.
13440 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
13441 and %ss.
13442 * amd64nbsd-nat.c: Update copyright year.
13443 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
13444 * amd64nbsd-tdep.c: Update copyright year.
13445 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
13446 * x86-64-linux-tdep.c: Update copyright year.
13447 (user_to_gdb_regmap): Add mapping for %cs and %ss.
13448 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
13449 * regformats/reg-x86-64.dat: Add %cs and %ss.
13450
29ff87c5
MK
13451 * blockframe.c (inside_entry_func): Reformat. Introduce new local
13452 variables to prevent long lines. Update comments to reflect
13453 reality.
13454
38d518c9
EZ
134552004-01-09 David Carlton <carlton@kealia.com>
13456
13457 Checked in by Elena Zannoni <ezannoni@redhat.com>.
13458 * dwarf2read.c (read_namespace): Pull out name-generating code
13459 into namespace_name. Rename previous_namespace to previous_prefix
13460 and processing_current_namespace to processing_current_prefix..
13461 (namespace_name): New function.
13462 (add_partial_symbol): Substitute uses of pdi->name with
13463 actual_name.
13464 * cp-support.h: Rename processing_current_namespace to
13465 processing_current_prefix.
13466 Update copyright year.
13467 * cp-namespace.c: Rename processing_current_namespace to
13468 processing_current_prefix.
13469 Update copyright year.
fe61caab 13470
1e4728e7
AC
134712004-01-09 Andrew Cagney <cagney@redhat.com>
13472
13473 * jv-valprint.c, ser-unix.c: Add missing copyright years.
13474
c77c642a
MK
134752004-01-09 Mark Kettenis <kettenis@gnu.org>
13476
13477 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
13478 complaining.
13479 (process_one_symbol): Deal with N_PATCH stabs.
13480
b44e9041
EZ
134812004-01-09 Elena Zannoni <ezannoni@redhat.com>
13482
13483 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
13484 ifdeffed code.
13485 Update copyright year.
38d518c9 13486
eccfb640
MC
134872004-01-08 Michael Chastain <mec.gnu@mindspring.com>
13488
13489 * config/pa/tm-hppa.h: Update extern declarations for
13490 hppa32_hpux_frame_saved_pc_in_sigtramp,
13491 hppa32_hpux_frame_base_before_sigtramp, and
13492 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
13493
848c5feb
MC
134942004-01-08 Michael Chastain <mec.gnu@mindspring.com>
13495
13496 * config/pa/tm-hppah.h: Update copyright years.
13497
3cc5d663
AC
134982004-01-08 Andrew Cagney <cagney@redhat.com>
13499
13500 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
13501 (mips_o32_reg_struct_has_addr): Delete function.
13502 (mips_gdbarch_init): Update.
13503 (mips_extract_struct_value_address): Delete function.
13504
bfec0b41
JJ
135052004-01-08 David Mosberger <davidm@hpl.hp.com>
13506
13507 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
13508 reality.
13509
16e109ca
AC
135102004-01-07 Andrew Cagney <cagney@redhat.com>
13511
6214a8a1
AC
13512 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
13513 architecture's elf flags (when available).
13514
8d5838b5
AC
13515 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
13516 FPU to the start, check the MIPS FPU when looking for an old
13517 architecture.
13518 (set_mipsfpu_single_command): Update the architecture.
13519 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
13520
480d3dd2
AC
13521 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
13522 (mips_mask_address_p): Add "tdep" parameter.
13523 (show_mask_address, mips_addr_bits_remove): Update.
13524 (mips_dump_tdep): Update.
13525 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
13526 (MIPS_STACK_ARGSIZE): Delete macro.
13527 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
13528 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
13529 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
13530 (mips_dump_tdep): Update.
13531 (MIPS_SAVED_REGSIZE): Delete macro.
13532 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
13533 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
13534 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
13535 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
13536 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
13537 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
13538 (mips_pop_frame, return_value_location): Update.
13539 (mips_n32n64_return_value, mips_dump_tdep): Update.
13540
ec03c1ac
AC
13541 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
13542 MIPS ABI.
13543
16e109ca
AC
13544 * mips-tdep.c: Update copyright.
13545 (mips_gdbarch_init): Merge two code blocks handling the register
13546 name and number layout.
13547
15255275
MS
135482004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
13549
13550 * tracepoint.c (validate_actionline): Fix segv at EOF
13551
9f9057da
MC
135522004-01-07 Michael Chastain <mec.gnu@mindspring.com>
13553
13554 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
13555 properly for static fields.
13556
0127c0d3 135572004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 13558 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
13559
13560 * disasm.c: Update copyright to include 2004.
13561 (do_mixed_source_and_assembly): For uiout asm list
13562 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 13563 NULL and do so prior to loop. Only reset when we close off
0127c0d3 13564 the tuple/list. Move check for whether to close off the
fe61caab 13565 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
13566 on each loop iteration.
13567
5269965e
AC
135682004-01-05 Andrew Cagney <cagney@redhat.com>
13569
54f1137d
AC
13570 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
13571 should be a switch case and not a label.
13572 * mips-tdep.c (mips32_next_pc): Delete unused labels
13573 "greater_equal_branch" and "less_zero_branch".
13574 * jv-valprint.c (java_print_value_fields): Delete unused label
13575 "flush_it".
13576
5269965e
AC
13577 * target.c (unpush_target): Only close a target that is in the
13578 target stack.
13579
dbc22fa1
MK
135802004-01-05 Mark Kettenis <kettenis@gnu.org>
13581
9515395e
MK
13582 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
13583 address from [sp + 64] instead of %o2.
13584
dbc22fa1
MK
13585 * frame.c (get_prev_frame): Don't try to unwind the PC. This
13586 fixes PR backtrace/1476.
13587
5439edaa
AC
135882004-01-05 Andrew Cagney <cagney@redhat.com>
13589
13590 * libunwind-frame.h (struct frame_id): Add opaque declaration,
13591 move to start of file.
13592 * i386-tdep.h (struct regcache): Add opaque declaration.
13593 * config/ia64/nm-linux.h (struct target_ops): Add opaque
13594 declaration.
13595 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
13596 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
13597 * win32-nat.c (fake_create_process): Use ISO C style definition.
13598 * stabsread.c (define_symbol): Delete #ifndef
13599 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
13600 stabs_argument_has_addr call, macro never defined.
13601
19061abe
MC
136022004-01-04 Michael Chastain <mec.gnu@mindspring.com>
13603
13604 * op50-rom.c: Delete.
13605 * w89k-rom.c: Delete.
13606 * Makefile.in: Remove references.
13607
e53bef9f
MK
136082004-01-04 Mark Kettenis <kettenis@gnu.org>
13609
13610 * x86-64-tdep.c: Update copyright year.
13611 (struct amd64_register_info): Rename from x86_64_register_info.
13612 (amd64_register_info): Rename from x86_64_register_info.
13613 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
13614 (amd64_register_name): Rename from x86_64_register_name.
13615 (amd64_register_type): Rename from x86_64_register_type.
13616 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
13617 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
13618 (amd64_dwarf_reg_to_regnum): Rename from
13619 x86_64_dwarf_reg_to_regnum.
13620 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
13621 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
13622 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
13623 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
13624 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
13625 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
13626 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
13627 (amd64_frame_cache): Rename from x86_64_frame_cache.
13628 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
13629 (amd64_frame_prev_register): Rename from
13630 x86_64_frame_prev_register.
13631 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
13632 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
13633 (amd64_sigtramp_frame_cache): Rename from
13634 x86_64_sigtramp_frame_cache.
13635 (amd64_sigtramp_frame_prev_register): Rename from
13636 x86_64_sigtramp_frame_prev_register.
13637 (amd64_sigtramp_frame_unwind): Rename from
13638 x86_64_sigtramp_frame_unwind.
13639 (amd64_sigtramp_frame_sniffer): Rename from
13640 x86_64_sigtramp_frame_sniffer.
13641 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
13642 (amd64_frame_base): Rename from x86_64_frame_base.
13643 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
13644 (amd64_frame_align): Rename from x86_64_frame_align.
13645 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
13646 (amd64_regset_from_core_section): Rename from
13647 x86_64_regset_from_core_section.
13648 (x86_64_init_abi): Update comments.
13649
fca6aa58
NR
136502004-01-04 Nick Roberts <nick@nick.uklinux.net>
13651
13652 * MAINTAINERS (write after approval): Add myself.
13653
8ada74e3
MK
136542004-01-04 Mark Kettenis <kettenis@gnu.org>
13655
13656 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
13657 `float' arguments.
13658
5154b0cd
MK
136592004-01-04 Mark Kettenis <kettenis@gnu.org>
13660
13661 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
13662 such that it mentions a specific version of GCC that exhibits this
13663 bug.
13664
fb316966
MK
136652004-01-03 Mark Kettenis <kettenis@gnu.org>
13666
200cc553
MK
13667 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
13668 structure that has a single `float' member, store it in %f1 in
13669 addition to %f0.
13670
e226a4a0
MK
13671 * sparc-sol2-nat.c: Add missing '\'.
13672
b9d4c5ed
MK
13673 * sparc-tdep.c (sparc32_return_value): New function.
13674 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
13675 Remove functions.
13676 (sparc32_gdbarch_init): Set return_value, don't set
13677 extract_return_value, store_return_value, use_struct_convention
13678 and return_value_on_stack.
13679
fb316966
MK
13680 * sparc-sol2-nat.c: Add missing ')'.
13681
1af510a8
JB
136822004-01-03 J. Brobecker <brobecker@gnat.com>
13683
13684 * infrun.c (handle_step_into_function): New function.
13685 (handle_inferior_event): Extract out some code into the new
13686 function above.
13687
5cf4d23a
JB
136882004-01-03 J. Brobecker <brobecker@gnat.com>
13689
13690 * infrun.c (handle_inferior_event): Move the declaration of
13691 real_stop_pc inside the if blocks where it is used.
13692
60af1db2
MK
136932004-01-03 Mark Kettenis <kettenis@gnu.org>
13694
13695 * sparc64-tdep.c (sparc64_16_byte_align_p)
13696 (sparc64_store_floating_fields, sparc64_store_floating_fields):
13697 Use check_typedef to get subtypes of structures and unions.
13698 (sparc64_store_return_value): Fix calculation of the appropriate
13699 offset into VALBUF when storing a structure or union.
13700 (sparc64_return_value): New function.
13701 (sparc64_use_struct_convention): Remove function.
13702 (sparc64_init_abi): Set return_value, don't set
13703 extract_return_value, store_return_value and
13704 use_struct_convention.
13705
1a901d3f
EZ
137062004-01-03 Eli Zaretskii <eliz@elta.co.il>
13707
13708 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
13709 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
13710 gdb/config/alpha/xm-alphaosf.h,
13711 gdb/config/powerpc/tm-ppcle-eabi.h,
13712 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
13713 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
13714 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
13715 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
13716 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
13717 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
13718 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
13719 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
13720 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
13721 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
13722 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
13723 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
13724 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
13725 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
13726 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
13727 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
13728 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
13729 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
13730 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
13731 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
13732 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
13733 Remove lines for .cvsignore files.
13734
ef52e463
JB
137352004-01-03 J. Brobecker <brobecker@gnat.com>
13736
13737 * infrun.c: Back out the previous change.
13738
cb1bf9dc
MK
137392004-01-03 Mark Kettenis <kettenis@gnu.org>
13740
f0424ef6
MK
13741 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
13742 sparc-*-sunos4* to the list of REMOVED configurations.
13743
cb1bf9dc
MK
13744 * configure.tgt: Add back sparc-*-vxworks*.
13745 * remote-vxsparc.c: Remove all includes except for "defs.h",
13746 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
13747 Include "sparc-tdep.h".
13748 (SPARC_R_G1): New define.
13749 (vxsparc_gregset): New variable.
13750 (ext_format_sparc): Remove extern declaration.
13751 (vx_read_register): Rewrite to use sparc32_supply_gregset and
13752 sparc32_supply_fpregset.
13753 (vx_write_register): Rewrite to use sparc32_collect_gregset,
13754 sparc_collect_rwindow and sparc32_collect_fpregset.
13755 * config/sparc/tm-vxworks.h: New file, based on recently removed
13756 tm-vxsparc.h.
13757 * config/sparc/vxworks.mt: New file, based on recently removed
13758 vxworks.mt.
fe61caab 13759
5e938f9f
JB
137602004-01-03 J. Brobecker <brobecker@gnat.com>
13761
13762 * infrun.c (handle_step_into_function): New function.
13763 (handle_inferior_event): Extract out some code into the new
13764 function above.
13765
386c036b
MK
137662004-01-02 Mark Kettenis <kettenis@gnu.org>
13767
13768 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
13769 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
13770 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
13771 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
13772 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
13773 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
13774 (sparc_nat_h): New variable.
13775 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
13776 (tm-sun4os4.h): Remove dependency.
13777 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
13778 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
13779 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
13780 sparc-tdep.o): Update dependencies.
13781 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
13782 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
13783 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
13784 dependencies.
13785 * configure.host: Remove existing sparc-*-lynxos*,
13786 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
13787 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
13788 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
13789 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
13790 triplets.
13791 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
13792 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
13793 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
13794 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
13795 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
13796 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
13797 sparc64-*-solaris2* and sparc64-*-* triplets.
13798 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
13799 "symtab.h" and "objfiles.h".
13800 (BIAS): Remove define.
13801 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
13802 (X_DISP19): Remove macros.
13803 (sparc_fetch_instruction): Remove function.
13804 (struct gdbarch_tdep): Remove definition.
13805 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
13806 (sparc_breakpoint_from_pc): Remove function.
13807 (struct sparc64_frame_cache): Remove definition.
13808 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
13809 sparc64_unwind_pc): Remove functions.
13810 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
13811 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
13812 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
13813 (sparc64_frame_cache): Change return type to `struct
13814 sparc_frame_cache *'. Simply call sparc_frame_cache.
13815 (sparc64_frame_this_id, sparc64_frame_prev_register,
13816 sparc64_frame_base_address): Use `struct sparc_frame_cache'
13817 instead of `struct sparc64_frame_cache.
13818 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
13819 sparc_analyze_control_transfer, sparc_software_single_step,
13820 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
13821 _initialize_sparc64_tdep): Remove functions.
13822 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
13823 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
13824 macros.
13825 (sparc64_supply_gregset, sparc64_collect_gregset,
13826 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
13827 (sparc64_init_abi): New function.
13828 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
13829 inclusion guard. Include "sparc-tdep.h".
13830 (BIAS): Define.
13831 (r_tstate_offset, r_fprs_offset): New defines.
13832 (enum sparc_regnum): Remove defenition.
13833 (enum sparc64_regnum): Reformat.
13834 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
13835 (sparc64_init_abi, sparc64_supply_gregset,
13836 sparc64_collect_gregset, sparc64_supply_fpregset,
13837 sparc64_collect_fpregset): New prototypes.
13838 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
13839 Add extern declarations.
13840 (sparc64_sol2_init_abi): New prototype.
13841 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
13842 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
13843 prototypes.
13844 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
13845 "sparnbsd-nat.h".
13846 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
13847 functions.
13848 (_initialize_sparc64fbsd_nat): Remove initialization of
13849 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
13850 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 13851 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
13852 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
13853 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
13854 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
13855 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
13856 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
13857 (sparc64fbsd_r_y_offset): Remove variables.
13858 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
13859 Make static and const.
13860 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
13861 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
13862 functions.
13863 (sparc64fbsd_gregset): New variable.
13864 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
13865 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
13866 and sparc64_supply_fpregset.
13867 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
13868 (sparc64fbsd_sigtramp_frame_this_id)
13869 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
13870 (sparc64fbsd_sigtramp_frame_unwind): New variable.
13871 (sparc64fbsd_sigtramp_frame_sniffer): New function.
13872 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
13873 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
13874 * sparcnbsd-tdep.c: Update copyright year. Include
13875 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
13876 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
13877 "value.h" and "sparcnbsd-tdep.h".
13878 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
13879 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
13880 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
13881 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
13882 defines.
13883 (sparcnbsd_gregset): New variable.
13884 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
13885 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
13886 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
13887 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
13888 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
13889 variables.
13890 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
13891 (sparc32nbsd_sigcontext_frame_this_id)
13892 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
13893 (sparc32nbsd_sigcontext_frame_unwind): New variable.
13894 (sparc32nbsd_sigtramp_frame_sniffer): New function.
13895 (sparcnbsd_get_longjmp_target_32,
13896 sparcnbsd_get_longjmp_target_64): Remove functions.
13897 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
13898 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
13899 sparcnbsd_init_elf): Remove.
13900 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
13901 (sparcnbsd_elf_init_abi): New functions.
13902 (_initialize_sparcnbsd_tdep): New prototype.
13903 (_initialize_sparnbsd_tdep): Update.
13904 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
13905 corelow.o. Add sparc64-nat.o and sparc-nat.o.
13906 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
13907 * config/sparc/linux.mh: Update comment.
13908 (XM_FILE, HOST_IPC): Remove variables.
13909 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
13910 sparc-linux-nat.o.
13911 * config/sparc/linux.mt: Update comment.
13912 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
13913 * config/sparc/nbsd.mt: Reformat.
13914 * config/sparc/nbsd64.mh: Update comment.
13915 (NATDEPFILES): Add sparc-nat.o.
13916 * config/sparc/nbsd64.mt: Update comment.
13917 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
13918 (TM_FILE): Set to tm-nbsd.h.
13919 * config/sparc/nbsdelf.mh: Update comment.
13920 (NATDEPFILES): Add sparc-nat.o.
13921 (XM_FILE): Delete.
13922 * config/sparc/nbsdaout.mh: Update comment.
13923 (NATDEPFILES): Add sparc-nat.o
13924 (XM_FILE): Delete.
13925 * config/sparc/nm-linux.h: Update copyright year. Don't include
13926 "config/nm-svr4.h" and "solib.h". Add protection against multiple
13927 inclusion.
13928 (KERNEL_U_SIZE): Remove define.
13929 (kernel_u_size): Remove prototype.
13930 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
13931 * config/sparc/nm-nbsd.h: Update copyright. Don't include
13932 "regcache.h".
13933 (CHILD_PREPARE_TO_STORE): Remove define.
13934 * config/sparc/nm-nbsdaout.h: Tweak some comments.
13935 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
13936 sparcnbsd-nat.c: Rewrite files.
13937 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
13938 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
13939 sparcnbsd-tdep.h: Remove files.
13940 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
13941 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
13942 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
13943 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
13944 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
13945 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
13946 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
13947 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
13948 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
13949 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
13950 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
13951 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
13952 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
13953 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
13954 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
13955 * config/sparc/linux64.mh, config/sparc/linux64.mt,
13956 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
13957 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
13958 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
13959
ee84457a
AC
139602004-01-02 Andrew Cagney <cagney@redhat.com>
13961
13962 From 2003-12-18 Kazuhiro Inaoka:
13963 * configure.host: Add m32r-linux target.
13964
0bc2134e
MC
139652004-01-02 Michael Chastain <mec.gnu@mindspring.com>
13966
13967 * top.c (print_gdb_version): Update year to 2004.
13968
89a72f9c
MM
139692004-01-02 Mark Mitchell <mark@codesourcery.com>
13970
13971 * MAINTAINERS: Add myself to the write-after-approval category.
13972
86b013ed
DJ
139732004-01-02 Daniel Jacobowitz <drow@mvista.com>
13974
13975 From Bernardo Innocenti <bernie@develer.com>:
13976 * configure.tgt: Add uClinux target.
13977
e42c9534
AC
139782004-01-02 Andrew Cagney <cagney@redhat.com>
13979
13980 * utils.c (do_my_cleanups): Make static, add forward declaration.
13981 * defs.h (do_my_cleanups): Delete declaration.
13982
162467d3
EZ
139832004-01-02 Eli Zaretskii <eliz@elta.co.il>
13984
13985 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
13986 bfd/ChangeLog-0203.
13987
78434e59
MK
139882004-01-02 Mark Kettenis <kettenis@gnu.org>
13989
13990 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
13991 in <machine/reg.h>.
13992 * configure, config.in: Regenerate.
13993
48efe704
AC
13994For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
13995tui/ChangeLog-1998-2003.
c906108c
SS
13996\f
13997Local Variables:
13998mode: change-log
13999left-margin: 8
14000fill-column: 74
14001version-control: never
14002End:
This page took 1.442469 seconds and 4 git commands to generate.